You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/03/11 19:05:44 UTC
[jira] [Commented] (LIBCLOUD-503) OpenStack public ip addresses fix
[ https://issues.apache.org/jira/browse/LIBCLOUD-503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13930675#comment-13930675 ]
ASF subversion and git services commented on LIBCLOUD-503:
----------------------------------------------------------
Commit 859a0a4f769c32761944e35bea0efac88add8207 in libcloud's branch refs/heads/trunk from [~mgogoulos]
[ https://git-wip-us.apache.org/repos/asf?p=libcloud.git;h=859a0a4 ]
[LIBCLOUD-503] OpenStack public ip addresses fix
Closes #235
Signed-off-by: Tomaz Muraus <to...@apache.org>
> OpenStack public ip addresses fix
> ---------------------------------
>
> Key: LIBCLOUD-503
> URL: https://issues.apache.org/jira/browse/LIBCLOUD-503
> Project: Libcloud
> Issue Type: Bug
> Reporter: Markos Gogoulos
> Attachments: 503_openstack.patch
>
>
> this is necessary for HP Cloud list_nodes to get public ip addresses (probably other OpenStack clouds too?)
> Problem is that on _to_node function of compute/drivers/openstack.py
> response (api_node['addresses']) is something like
> {'private': [{'version': 4, 'addr': '10.5.236.143'}, {'version': 4, 'addr': '15.185.109.64'}]}
> So it goes immediately on the private ip addresses (which is wrong)
> public_networks_labels = ['public', 'internet']
> public_ips, private_ips = [], []
> for label, values in api_node['addresses'].items():
> ips = [v['addr'] for v in values]
> if label in public_networks_labels:
> public_ips.extend(ips)
--
This message was sent by Atlassian JIRA
(v6.2#6252)