You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by GitBox <gi...@apache.org> on 2022/03/22 08:37:10 UTC

[GitHub] [libcloud] lionel-van-bemten opened a new issue #1670: Error getting node_id in OpenStack_2_FloatingIpAddress

lionel-van-bemten opened a new issue #1670:
URL: https://github.com/apache/libcloud/issues/1670


   There seems to be a regression between libcloud 3.4.1 and 3.5.0. Not sure whether related to #1411.
   
   > \>\>\> libcloud.__version__
   > '3.5.0'
   > \>\>\> from libcloud.compute.providers import get_driver
   > \>\>\> from libcloud.compute.types import Provider
   > \>\>\> dr = get_driver(Provider.OPENSTACK)("###", "###", ex_force_auth_url="###", ex_tenant_name="###", api_version='2.0', ex_force_auth_version='3.x_password')
   > \>\>\> for ip in dr.ex_list_floating_ips():
   > ...   print(ip.node_id)
   > ...
   > None
   > None
   > None
   > None
   > None
   > None
   > None
   > None
   > None
   > None
   > \>\>\> print(nesc.ex_list_floating_ips()[0])
   > <OpenStack_2_FloatingIpAddress: id=2e0ad6dd-c134-4434-bd1d-6409bbde6376, ip_addr=###, pool=None, driver=<libcloud.compute.drivers.openstack.OpenStack_2_NodeDriver object at 0x7f02c8cb7b80>>
   
   
   > \>\>\> libcloud.__version__
   > '3.4.1'
   > \>\>\> dr = get_driver(Provider.OPENSTACK)("###", "###", ex_force_auth_url="###", ex_tenant_name="###", api_version='2.0', ex_force_auth_version='3.x_password')
   > \>\>\> for ip in dr.ex_list_floating_ips():
   > ...   print(ip.node_id)
   > ...
   > f2e4a54e-6f85-48b7-a523-8548032dce32
   > a92b9f8a-5f81-4f68-8331-a15ef99bf446
   > None
   > None
   > None
   > None
   > None
   > None
   > None
   > None
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@libcloud.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [libcloud] Kami commented on issue #1670: Error getting node_id in OpenStack_2_FloatingIpAddress

Posted by GitBox <gi...@apache.org>.
Kami commented on issue #1670:
URL: https://github.com/apache/libcloud/issues/1670#issuecomment-1077489459


   @micafer Thanks for looking into it.
   
   Since the behavior seemed to have changed, it would also be good to explicitly note that in the upgrade notes (``docs/upgrade_notes.rst``) with an example of how to achieve the same behavior in the new version.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@libcloud.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [libcloud] lionel-van-bemten closed issue #1670: Error getting node_id in OpenStack_2_FloatingIpAddress

Posted by GitBox <gi...@apache.org>.
lionel-van-bemten closed issue #1670:
URL: https://github.com/apache/libcloud/issues/1670


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@libcloud.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [libcloud] micafer commented on issue #1670: Error getting node_id in OpenStack_2_FloatingIpAddress

Posted by GitBox <gi...@apache.org>.
micafer commented on issue #1670:
URL: https://github.com/apache/libcloud/issues/1670#issuecomment-1076179030


   Using new network API the value of `node_id` is not returned in the floating ip list call, so you need to call the `get_node_id()'  method to get it:
   
   https://github.com/apache/libcloud/blob/trunk/libcloud/compute/drivers/openstack.py#L4546


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@libcloud.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [libcloud] Kami commented on issue #1670: Error getting node_id in OpenStack_2_FloatingIpAddress

Posted by GitBox <gi...@apache.org>.
Kami commented on issue #1670:
URL: https://github.com/apache/libcloud/issues/1670#issuecomment-1076152899


   Thanks for reporting this.
   
   I would imagine that this regression is likely related to #1638. @micafer could you please have a look when you get a chance? Thanks.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@libcloud.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [libcloud] micafer edited a comment on issue #1670: Error getting node_id in OpenStack_2_FloatingIpAddress

Posted by GitBox <gi...@apache.org>.
micafer edited a comment on issue #1670:
URL: https://github.com/apache/libcloud/issues/1670#issuecomment-1076179030


   Using new network API the value of `node_id` is not returned in the floating ip list call, so you need to call the `get_node_id()'  method to get it:
   
   https://github.com/apache/libcloud/blob/trunk/libcloud/compute/drivers/openstack.py#L4546
   
   It is commented in the changelog of the issue GITHUB-1638:
   
   [CHANGES.rst](https://github.com/apache/libcloud/blob/trunk/CHANGES.rst)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@libcloud.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [libcloud] lionel-van-bemten commented on issue #1670: Error getting node_id in OpenStack_2_FloatingIpAddress

Posted by GitBox <gi...@apache.org>.
lionel-van-bemten commented on issue #1670:
URL: https://github.com/apache/libcloud/issues/1670#issuecomment-1076236981


   Ok thank you, will use the method instead. Didn't check the changelog. I did check the doc, did not find about this method.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@libcloud.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org