openstack volume attachment list --volume-id returns attachments from other volumes
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| python-openstackclient |
New
|
Undecided
|
Unassigned | ||
Bug Description
The command
`openstack volume attachment list --volume-id <VOLUME-ID>`
returns attachments that does not belong to the requested volume.
The client appears to ignore the --volume-id filter entirely.
Example:
❯ openstack volume attachment list
+------
| ID | Volume ID | Server ID | Status |
+------
| aeecd115-
| 815f0697-
+------
❯ openstack volume attachment list --volume-id b56ffc7c-
+------
| ID | Volume ID | Server ID | Status |
+------
| aeecd115-
| 815f0697-
+------
I debugged the issue a little bit and it appears that the CLI always performs a single unfiltered request to:
GET /v3/<PROJECT-
without passing any volume_id filter and without applying client-side filtering.