Skip to content

Can't Get correct port by ip for server #431

Closed

Description

@FengyunPan

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

The code comes from getPortByIP()
https://github.com/kubernetes/kubernetes/blob/master/pkg/cloudprovider/providers/openstack/openstack_loadbalancer.go#L101

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 nova code as following:
https://github.com/openstack/python-novaclient/blob/master/novaclient/v2/servers.py#L1851

Activity

  1. changed the title [-]Get incorrect port by ip[/-] [+]Can't Get correct port by ip[/+] on Jul 23, 2017
  2. changed the title [-]Can't Get correct port by ip[/-] [+]Can't Get correct port by ip for server[/+] on Jul 23, 2017
  3. jtopjian commented on Jul 24, 2017

    @jtopjian
    Contributor

    @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.

  4. FengyunPan commented on Jul 25, 2017

    @FengyunPan
    Author

    @jtopjian Is it ok? Need anything else?
    Thank you.

  5. jtopjian commented on Jul 25, 2017

    @jtopjian
    Contributor

    @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.

  6. FengyunPan commented on Jul 25, 2017

    @FengyunPan
    Author

    @jtopjian OK, thank you very much.

  7. jtopjian commented on Jul 28, 2017

    @jtopjian
    Contributor

    Implemented by #430

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions