fog-openstack icon indicating copy to clipboard operation
fog-openstack copied to clipboard

Instance addresses are assumed to always be named 'public' or 'private'

Open plribeiro3000 opened this issue 9 years ago • 4 comments
trafficstars

I have a cloud where the default names of 'public' and 'private' are not used for the collection of addresses returned upon a new server's creation. Newer OpenStack deployments offer metadata along with the addresses to give a hint as to whether they are public or private, but given that with Neutron you can have arbitrary numbers of networks and IP addresses, simply assuming 'public' and 'private' here is insufficient.

Most OpenStack deployments have an extension enabled that gives you metadata called OS-EXT-IPS which gives you a hint as to whether the IP address is public or private. There is a 'type' field which can contain the following values: "fixed", "floating", where fixed is assumed private and floating is assumed public.

For more detail: https://github.com/openstack/nova/blob/master/doc/api_samples/OS-EXT-IPS/servers-detail-resp.json

Original issue opened by @devcamcar at fog/fog#2559.

plribeiro3000 avatar Mar 10 '16 19:03 plribeiro3000

cc/ @devcamcar @geemus @krames @gdahlm @wolf31o2

plribeiro3000 avatar Mar 10 '16 19:03 plribeiro3000

@plribeiro3000 @geemus : I've the same pb with my provider(mine is called Ext-Net), please have this fixed _( ゚Д゚)ノ

zhitongLBN avatar Jul 04 '16 13:07 zhitongLBN

cc/ @fog/fog-openstack In case someone in here is active to take a look.

plribeiro3000 avatar Jul 04 '16 17:07 plribeiro3000

I'll attempt to repo asap

jjasghar avatar Jul 04 '16 17:07 jjasghar