openstack: put floating ips in public_ips#291
Conversation
This patch use OS-EXT-IPS:type introduced in Nova 2013.1 ("Grizzly").
|
@bouttier Looks good, but can you please add some test cases for this change ( |
There was a problem hiding this comment.
What are the other possible values for this attribute besides floating?
There was a problem hiding this comment.
|
I'm not sure of how add test cases, theses values depends of openstack version (rackspace used in tests files apparently). I think |
|
@bouttier For testing we use response fixtures - you can find a bunch of examples in |
|
@bouttier Actually, I just checked at your pull description and OpenStack docs again and I don't actually think we want this in trunk - why would you want to see private IP as public (it seems like this should be handled in the code which uses Libcloud and not in the Libcloud itself)? Also, addresses should already be correctly split in the "private" and "public" attribute. |
|
In my case, I had an issue with salt-cloud who want remove the public key from .ssh/know_host on vm deletion. For that, salt-cloud search the first public ip (and I used an old version of libcloud that I fix in my way). I understand your point of view and I will search an other way in salt-cloud to select the right ip. |
|
@bouttier One thing we could do to make this easier for you it to store information about floating and fixed IP addresses in the Node |
|
I haven't had time to find the best way to modify salt yet, but yes this can be useful, and not only for me apparently (#296). |
This patch use OS-EXT-IPS:type introduced in Nova 2013.1 ("Grizzly") but stay compatible with older version.
This is useful in testing environment where floating ips can be private but we want see them as public.
I'm not sure that you want that merged but I think it could be nice so I propose ...