server list --locked and --unlocked report same list

Bug #2085881 reported by Sean Matheny
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Incomplete
Undecided
Unassigned

Bug Description

With python-openstackclient 6.6.0 and Python 3.12.7 (though confirmed around the office with a few others), `openstack server list --project <project> --locked` and `openstack server list --project <project> --unlocked` produce the same list (i.e. all) of instances in the project.

- Have tried specifying the minimum/specififed compute service API version:
  `os server list --project 19616f0d69cc4241b12e09b287a6cd46 --unlocked --os-compute-api-version 2.73`
- Have tried actually locking instances and listing, and both locked/unlocked modifiers always list all instances

e.g.:

```
openstack --version
openstack 6.6.0

python --version
Python 3.12.7

openstack server list --help | grep locked
                             [--locked | --unlocked] [--tags <tag>]
  --locked Only display locked servers (supported by --os-
  --unlocked Only display unlocked servers (supported by --os-

openstack server list --project 1961<RD>6cd46 --locked | wc -l
      15
openstack server list --project 1961<RD>6cd46 --unlocked | wc -l
      15

for i in $(openstack server list --project 1961<RD>6cd46 -c ID -f value);do openstack server show $i | grep -w locked;done
| locked | False |
| locked | False |
| locked | False |
| locked | False |
| locked | False |
| locked | False |
| locked | False |
| locked | False |
| locked | False |
| locked | False |
| locked | False |
```

Cheers,
Sean

Revision history for this message
Sean Matheny (smat924) wrote :

Forgot to include:
nova-api is Yoga, API version:
{"version": {"id": "v2.1", "status": "CURRENT", "version": "2.90", "min_version": "2.1",...

Revision history for this message
Takashi Kajinami (kajinamit) wrote :

I wonder if you still see the same behavior even when you append "--os-compute-api-version 2.73" (or even "--os-compute-api-version 2.90") to the command ?

Changed in python-openstackclient:
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.