2016-09-29 18:44:00 |
Matthew Edmonds |
description |
The fix that was committed for https://bugs.launchpad.net/python-openstacksdk/+bug/1384230 appears not to have worked, or to have been broken again by a subsequent change. Using openstacksdk 0.9.5, I can find a flavor by id:
(Pdb) conn.compute.find_flavor('72d1d0cf-4f0d-4736-895b-abfe62f13651')
openstack.compute.v2.flavor.Flavor(name=test, links=[{u'href': u'https://ip9-114-192-114.pok.stglabs.ibm.com:8774/v2.1/2d4c094a598d4888851d8db0a170f33e/flavors/72d1d0cf-4f0d-4736-895b-abfe62f13651', u'rel': u'self'}, {u'href': u'https://ip9-114-192-114.pok.stglabs.ibm.com:8774/2d4c094a598d4888851d8db0a170f33e/flavors/72d1d0cf-4f0d-4736-895b-abfe62f13651', u'rel': u'bookmark'}], ram=1024, OS-FLV-DISABLED:disabled=False, vcpus=1, swap=, os-flavor-access:is_public=True, rxtx_factor=1.0, OS-FLV-EXT-DATA:ephemeral=0, disk=0, id=72d1d0cf-4f0d-4736-895b-abfe62f13651)
but I cannot find by name:
(Pdb) conn.compute.find_flavor('test')
*** NotFound: Not Found (HTTP 404) |
The fix that was committed for https://bugs.launchpad.net/python-openstacksdk/+bug/1384230 appears not to have worked, or to have been broken again by a subsequent change. Using openstacksdk 0.9.5, I can find a flavor by id:
(Pdb) conn.compute.find_flavor('72d1d0cf-4f0d-4736-895b-abfe62f13651')
openstack.compute.v2.flavor.Flavor(name=test, links=[{u'href': u'https://myhostname:8774/v2.1/2d4c094a598d4888851d8db0a170f33e/flavors/72d1d0cf-4f0d-4736-895b-abfe62f13651', u'rel': u'self'}, {u'href': u'https://myhostname:8774/2d4c094a598d4888851d8db0a170f33e/flavors/72d1d0cf-4f0d-4736-895b-abfe62f13651', u'rel': u'bookmark'}], ram=1024, OS-FLV-DISABLED:disabled=False, vcpus=1, swap=, os-flavor-access:is_public=True, rxtx_factor=1.0, OS-FLV-EXT-DATA:ephemeral=0, disk=0, id=72d1d0cf-4f0d-4736-895b-abfe62f13651)
but I cannot find by name:
(Pdb) conn.compute.find_flavor('test')
*** NotFound: Not Found (HTTP 404) |
|