server list by 'tags' does not work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned | ||
python-openstackclient |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Copied from a downtream bug [1]:
Description of problem:
I have a number of servers tagged with 'capo-e2e'. I want to list them by tag. I cannot do this. I added a second tag 'capo_e2e', and I can't select by that, either.
$ openstack --os-compute-
+------
| Field | Value |
+------
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-STS:vm_state | active |
| OS-SRV-
| OS-SRV-
| accessIPv4 | |
| accessIPv6 | |
| addresses | capo-e2e-
| config_drive | |
| created | 2021-10-
| description | capo-e2e-worker |
| flavor | m1.xlarge (86d33ae4-
| hostId | 6ad047fd6e10b28
| id | 64232f5b-
| image | ubuntu-2004-lts (cbabe19a-
| key_name | None |
| locked | False |
| name | capo-e2e-worker |
| progress | 0 |
| project_id | 25c8689dad974ac
| properties | |
| security_groups | name='capo-
| status | ACTIVE |
| tags | capo-e2e, capo_e2e |
| updated | 2021-10-
| user_id | bc844776c9a143b
| volumes_attached | |
+------
$ openstack --os-compute-
Invalid input for query parameters tags. Value: ['capo-e2e']. "['capo-e2e']" is not a 'regex' (HTTP 400) (Request-ID: req-91a4d02a-
(Incidentally, there may be good technical reasons for 👆 but it's a very bad api experience)
The following all list no servers:
$ openstack --os-compute-
$ openstack --os-compute-
$ openstack --os-compute-
$ openstack --os-compute-
$ openstack --os-compute-
(I'm basically just guessing random syntax)
Version-Release number of selected component (if applicable):
openstack-
How reproducible:
Always
Fix proposed to branch: master /review. opendev. org/c/openstack /nova/+ /813736
Review: https:/