You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there are same ips in different network, so user could get incorrect port by ip.
The openstack cloud provider of kubernetes have this issue: kubernetes/kubernetes#43909
Actraully we can use 'nova interface-list' to get port for instance.
So it is necessary to support list interface for a server.
through a GET on: /v2.1/{tenant_id}/servers/{server_id}/os-interface
The link you gave is to the nova client. We need the server implementation. This is so we can verify that the structs and API calls you are submitting in #430 are correct.
@FengyunPan I did a quick look and this does indeed to be closer to what we need - thank you! I hope to have some time this week to look at this in more detail.
Activity
[-]Get incorrect port by ip[/-][+]Can't Get correct port by ip[/+][-]Can't Get correct port by ip[/-][+]Can't Get correct port by ip for server[/+]jtopjian commentedon Jul 24, 2017
@FengyunPan Thanks for opening this.
The link you gave is to the nova client. We need the server implementation. This is so we can verify that the structs and API calls you are submitting in #430 are correct.
See these issues for examples:
Please let me know if you have any questions.
FengyunPan commentedon Jul 24, 2017
All right, I find it:
The value of interfaceAttachments:
https://github.com/openstack/nova/blob/4f91ed3a547965ed96a22520edcfb783e7936e95/nova/api/openstack/compute/attach_interfaces.py#L36
It is hard to find the value of fixed_ips:
subnet_id:
https://github.com/openstack/nova/blob/4f91ed3a547965ed96a22520edcfb783e7936e95/nova/network/neutronv2/api.py#L1358
ip_address:
https://github.com/openstack/nova/blob/4f91ed3a547965ed96a22520edcfb783e7936e95/nova/api/openstack/compute/schemas/attach_interfaces.py#L35
Thank you.
FengyunPan commentedon Jul 25, 2017
@jtopjian Is it ok? Need anything else?
Thank you.
jtopjian commentedon Jul 25, 2017
@FengyunPan I did a quick look and this does indeed to be closer to what we need - thank you! I hope to have some time this week to look at this in more detail.
FengyunPan commentedon Jul 25, 2017
@jtopjian OK, thank you very much.
jtopjian commentedon Jul 28, 2017
Implemented by #430
Enable multiattach functionality (gophercloud#431)