Blazar CLI displays wrong information in error message when leases exist with the same name

Bug #1786030 reported by Pierre Riteau on 2018-08-08
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Blazar
Low
Pierre Riteau

Bug Description

$ blazar lease-list
+--------------------------------------+------------+----------------------------+----------------------------+
| id | name | start_date | end_date |
+--------------------------------------+------------+----------------------------+----------------------------+
| db485295-7dc7-4092-95ce-1a664515ec1e | test-lease | 2018-08-08T12:55:00.000000 | 2018-08-08T12:56:00.000000 |
| 8dc2fe73-3b42-4931-b047-8df751570156 | test-lease | 2018-08-08T12:56:00.000000 | 2018-08-08T12:57:00.000000 |
+--------------------------------------+------------+----------------------------+----------------------------+

$ blazar lease-show test-lease
There are more than one appropriate resources for the name 'test-lease' and type '{u'status': u'PENDING', u'user_id': u'78f152a4af08422f804dd7a7a36f2e58', u'name': u'test-lease', u'end_date': u'2018-08-08T12:57:00.000000', u'reservations': [{u'status': u'pending', u'before_end': u'default', u'lease_id': u'8dc2fe73-3b42-4931-b047-8df751570156', u'resource_id': u'a623c9ec-63c2-4179-b56b-bdb5adbc2b07', u'max': 1, u'created_at': u'2018-08-08 12:49:36', u'min': 1, u'updated_at': u'2018-08-08 12:49:36', u'missing_resources': False, u'hypervisor_properties': u'', u'resource_properties': u'', u'id': u'ef0e91fd-2418-4041-b42c-90967e1bb460', u'resource_type': u'physical:host', u'resources_changed': False}], u'created_at': u'2018-08-08 12:49:36', u'updated_at': u'2018-08-08 12:49:36', u'id': u'8dc2fe73-3b42-4931-b047-8df751570156', u'start_date': u'2018-08-08T12:56:00.000000', u'degraded': False, u'project_id': u'94b6f00c6a9f4f9ab772628818da3a04', u'events': [{u'status': u'UNDONE', u'lease_id': u'8dc2fe73-3b42-4931-b047-8df751570156', u'event_type': u'end_lease', u'created_at': u'2018-08-08 12:49:36', u'updated_at': None, u'time': u'2018-08-08T12:57:00.000000', u'id': u'6452b96e-a9f5-4e28-a0a8-369d27414304'}, {u'status': u'UNDONE', u'lease_id': u'8dc2fe73-3b42-4931-b047-8df751570156', u'event_type': u'before_end_lease', u'created_at': u'2018-08-08 12:49:36', u'updated_at': None, u'time': u'2018-08-08T12:56:00.000000', u'id': u'c842a6c1-7465-48ca-9043-4f7f8bd54fc1'}, {u'status': u'UNDONE', u'lease_id': u'8dc2fe73-3b42-4931-b047-8df751570156', u'event_type': u'start_lease', u'created_at': u'2018-08-08 12:49:36', u'updated_at': None, u'time': u'2018-08-08T12:56:00.000000', u'id': u'c9ef056c-493d-4ad1-ae31-a899e42dfe77'}], u'trust_id': u'0d782cf5b6c64c5eba9c98c50d031c37'}'

Pierre Riteau (priteau) on 2018-08-08
Changed in blazar:
status: New → In Progress
importance: Undecided → Low
assignee: nobody → Pierre Riteau (priteau)

This issue was fixed in the openstack/python-blazarclient 2.0.1 release.

Pierre Riteau (priteau) on 2018-09-10
Changed in blazar:
status: In Progress → Fix Released

This issue was fixed in the openstack/python-blazarclient 2.1.0 release.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers