Openstack cli return wrong aggreate when aggreate name starts with a number
Issue
- Aggregate name starts with a number that matches the id of another aggregate
- For example the aggregate
20test
starts with the id of7test
- For example the aggregate
openstack aggregate create 20test
(overcloud) [stack@undercloud-0 ~]$ openstack aggregate list
+----+--------+-------------------+
| ID | Name | Availability Zone |
+----+--------+-------------------+
| 14 | 8test | None |
| 17 | test | None |
| 20 | 7test | None |
| 23 | 20test | None |
+----+--------+-------------------+
openstack aggregate show
returns wrong aggregateopenstack aggregate set
applies properties to wrong aggregateopenstack aggregate add host
adds host to wrong aggregateopenstack aggregate delete
deletes wrong aggregate
Environment
- Red Hat Openstack Platform 13
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.