[OpenStack-Infra] [shade] Get server public/private ip failed on VLAN environment

xudan (N) xudan16 at huawei.com
Thu Jun 21 04:16:27 UTC 2018


Hi all,

I am from OPNFV community and working on Dovetail project.

I have a question about shade getting server public ipv4 ip and private ipv4 ip with VLAN environment.
The private ip I got is None and the public ip I got is not the floating ip assigned to the server.
I guess this is because of shade filters the public ip with 'router:external = True' or 'provider:physical_network' https://github.com/openstack-infra/shade/blob/master/shade/openstackcloud.py#L2494
For vlan, all networks have the attribute 'provider:physical_network', so all networks are regarded as public network.
Also it filters private ip with condition 'not network.get('router:external', False) and not network.get('provider:physical_network')' https://github.com/openstack-infra/shade/blob/master/shade/openstackcloud.py#L2509
Then there is no private network for vlan. So the server's private ip is None.

I reached out you for some suggestions about how to use shade for VLAN environment? Have you considered that or I just misunderstood something.

Regards,
Xudan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-infra/attachments/20180621/cbaeea35/attachment.html>


More information about the OpenStack-Infra mailing list