openstack-python-openstackc.../openstackclient
Johannes Kulik 773b869323 compute: Fix --host in server list for new openstacksdk
With `openstacksdk` 3.2.0 the `host` attribute of an Instance got added
to the `Server` class [0]. With that change, listing servers with the `host`
attribute leads to a query-filter for `compute_host` as expected, but
`openstacksdk` will also filter for the `host` attribute locally after
the results are returned. Since `compute_host` being
`OS-EXT-SRV-ATTR:host` is not the same as `host, this means no results
are returned.

Since we want to keep the old behaviour of filtering by `compute_host`
i.e. the service host name, we need to switch to filter for
`compute_host`. This is already supported in older versions of
`openstacksdk`.

[0] 0f311ff3e2

Change-Id: I0cd32c5b7d6d4d21194f3efdcfb9b205dea6a91e
Closes-bug: #2074200
(cherry picked from commit ffa683ab4e)
2024-10-03 10:48:24 +00:00
..
api network: Replace use of in-tree API client 2024-07-09 18:19:36 +01:00
common Merge "quota: Allow 'quota set' to function without volume service" 2024-09-06 15:46:49 +00:00
compute compute: Fix --host in server list for new openstacksdk 2024-10-03 10:48:24 +00:00
identity Merge "identity: in service set command, don't pass the enable option when it is None" into stable/2024.2 2024-10-02 17:26:48 +00:00
image Remove python-novaclient 2024-07-18 13:28:51 +01:00
locale/tr_TR/LC_MESSAGES Imported Translations from Zanata 2018-03-01 07:25:50 +00:00
network network: Replace use of in-tree API client 2024-07-09 18:19:36 +01:00
object trivial: Prepare for pyupgrade pre-commit hook 2024-04-23 12:24:23 +01:00
releasenotes/notes Show Created At column for volume backups 2024-05-19 22:17:06 +02:00
tests compute: Fix --host in server list for new openstacksdk 2024-10-03 10:48:24 +00:00
volume Merge "Show Created At column for volume backups" 2024-08-09 12:20:45 +00:00
__init__.py Clean up W503 and E402 pep8 errors 2018-04-15 12:23:06 +09:00
i18n.py Remove log translations 2017-03-21 17:23:09 +08:00
shell.py trivial: Prepare for pyupgrade pre-commit hook 2024-04-23 12:24:23 +01:00