* Update python-openstackclient from branch 'master'
to ee23995004086cc3129e453be9ca5595ef02cd1f
- pre-commit: Bump versions
We fold in the new black changes also.
Change-Id: I326a0529b6b9f2aa9fbc33862567131839460797
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Update python-openstackclient from branch 'master'
to 147503f3c6a3fc443c455865e33a64f3f679fc68
- Merge "Add NUMA affinity policy options "socket""
- Add NUMA affinity policy options "socket"
Added a new port NUMA affinity policy option called "socket".
Depends-On: https://review.opendev.org/c/openstack/neutron/+/910594
Related-Bug: #2052786
Change-Id: Icff9070db68ba83b47b344d56ee93b235383b2f2
* Update python-openstackclient from branch 'master'
to 4d3052765917ebad76608ae8a507d5ddac7f7d5b
- Merge "Add support for showing requested az in output"
- Add support for showing requested az in output
This change adds support for showing the availability zone
requested during instance create in server show and server
list --long output.
Depends-On: https://review.opendev.org/c/openstack/nova/+/904568
Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/904490
Change-Id: I1772e06b4f043ef3118f036f3908ec70515144bd
* Update python-openstackclient from branch 'master'
to c99c189ac5abb1ccd07bc47787d9d25e2478c09c
- Merge "Update master for stable/2024.1"
- Update master for stable/2024.1
Add file to the reno documentation build to show release notes for
stable/2024.1.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2024.1.
Sem-Ver: feature
Change-Id: I13bb45d30d3dff73ca48ad8a2ed8bdc982b62d86
* Update python-openstackclient from branch 'master'
to c13977fd68e591098c537ea852c8da0b00ff6b23
- Merge "image cache clear: fix value of default target"
- image cache clear: fix value of default target
When using the "openstack image cache clear" command, the "clear_cache"
method from the OpenStack SDK is used. It expects its only argument to
be one of "both", "cache" or "queue". However, when passing neither
"--cache" nor "--queue", it is currently passed None as a value. Fix
this by specifying "both" as the default value to be passed.
Change-Id: I17c6e3d435a84b4ba453845086ff3fe272b54f58
* Update python-openstackclient from branch 'master'
to 7e3664ff0779514f5474d12a387aa794ea7d2842
- Merge "Adds CLI support for ``glance md-object-property-show``"
- Adds CLI support for ``glance md-object-property-show``
This patch adds a command "image metadef object property show" which
describe a specific metadata definitions property inside an object.
Change-Id: I738e2e3c27c9819290d5a2a8781878b81f03b5f9
* Update python-openstackclient from branch 'master'
to 54bb7477f2a5b14b05540174a04f9e91614267cf
- Merge "Do not sort subnet dns_nameservers field"
- Do not sort subnet dns_nameservers field
When using table output format, the dns_nameservers field
of a subnet is sorted, but it should not be as the order
is important.
Created an UnsortedListColumn() class in subnet.py so the
output is correct.
Updated the unit test accordingly to verify the order is
correct when an entry is removed.
Change-Id: I60a15a944f83549738305dd025db38ff8e165be7
Closes-bug: #2053201
* Update python-openstackclient from branch 'master'
to e9aa6f57c5a24a7ff11397040be75933f73045cd
- Merge "Identity: Properly list users in a group in 'user list' commands"
- Identity: Properly list users in a group in 'user list' commands
Change-Id: Ia4457eaea5016b2e0325c6eb704d1592058e455e
* Update python-openstackclient from branch 'master'
to 07b71fc99ccbf53a0feac6856849973f22703725
- Merge "Tox: Fix install commands for unit-tips and functional-tips"
- Tox: Fix install commands for unit-tips and functional-tips
Change-Id: I352ea2b18a8bdb57cd3027c2024834db091a5643
* Update python-openstackclient from branch 'master'
to 9db8902c2b7e9e05bef4bdd9e13f3f35ed0b426c
- Merge "tests: Remove use of unnecessary fake argparse Namespace"
- tests: Remove use of unnecessary fake argparse Namespace
Change-Id: I135c24d0f6450d5af4e1860218bf3a65c09e36cc
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Update python-openstackclient from branch 'master'
to 9ca9eba62400cee166624c76b0ac590d93a222fc
- Merge "tests: Use consistent shortcut to fake identity client"
- tests: Use consistent shortcut to fake identity client
Change-Id: I72e016b8146e38948b6ae857bf7ec0b18f4e3663
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Update python-openstackclient from branch 'master'
to 7c18388235bbe28d5f5e5b9da0531f958ffdbeb9
- Merge "Fix typo in the list of Glanceclient/OSC commands"
- Fix typo in the list of Glanceclient/OSC commands
Change-Id: I9c5cf24e51fa8d4ab1428280f25408391c8556c8
* Update python-openstackclient from branch 'master'
to 9467b404c7f98bdabfbb5d03ffce605197482c7b
- Merge "volume: Deprecate '--retype-policy' in favor of '--migration-policy'"
- volume: Deprecate '--retype-policy' in favor of '--migration-policy'
The '--retype-policy' option is used in the 'volume set' command to
specify the migration policy during the retype operation. The
'--retype-policy' option does not convey the correct meaning of its
usage. The migration policy determines whether we are going to perform
the migration in the retype operation or not and is not related to the
actual retype which just changes the volume type of the volume.
Change-Id: I2ea8fd3f5277bb3422ccae915d05e8ad44ff1912
* Update python-openstackclient from branch 'master'
to 1a38af53eb08378c8d7aa9c17a0edac2ca2383a2
- Merge "volume list: Don't call nova if no volume is attached"
- volume list: Don't call nova if no volume is attached
Currently 'openstack volume list' calls nova to resolve server UUIDs
to server names. This is not required if:
1. no volume is attached to an instance
2. no volume exists in deployment
This patch fixes this by checking volume statuses and, if any volume has
status 'in-use', we will call nova to resolve server names.
Note that we don't check for 'reserved', 'attaching', 'detaching'
states since those are transition states and doesn't guarantee that
the volume is actually attached to the instance.
Change-Id: Ic4d89db69244d3fba44d4b69c79b3e7632ee3d53
* Update python-openstackclient from branch 'master'
to 79974668b8167b45a71366dfbae29a879fb89c06
- Merge "Add support for managing external gateways"
- Add support for managing external gateways
This change implements the logic to call the new API for managing
external gateways.
Relevant Neutron core change:
https://review.opendev.org/c/openstack/neutron/+/873593
Co-Authored-by: Frode Nordahl <frode.nordahl@canonical.com>
Related-Bug: #2002687
Change-Id: Ib45f30f552934a0a5c035c3b7fadfc0d522219ba
* Update python-openstackclient from branch 'master'
to c86b9d8cc7d6435e3f73be732c69c9886301dfa3
- tests: Add identity v2, v3 FakeClientMixin
This ensures we are speccing the identity proxy API, as we did
previously for other services.
Change-Id: I4d090bab001f9b7e1d83ca8fee9e7e1117844cd8
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Update python-openstackclient from branch 'master'
to 948034e6c177966b8099f0d1a76347fe798bce79
- Merge "router: Use plural form for storage of ``--fixed_ip`` argument"
- router: Use plural form for storage of ``--fixed_ip`` argument
The variable already takes multiple values, let's make it obvious
just by reading the code.
Related-Bug: #2002687
Change-Id: I294ee710d989d7a3a54331fca424e84708a2faab
Signed-off-by: Frode Nordahl <frode.nordahl@canonical.com>
* Update python-openstackclient from branch 'master'
to 5f4236d7db23c80c901a438a4be5fba719154ce2
- Merge "Parse external-gateway argument in separate helper"
- Parse external-gateway argument in separate helper
This is to prepare for subsequent patches that will add support
for managing multiple gateways.
Related-Bug: #2002687
Change-Id: Ic088dca0b7cd83bd7568d775b4e70285ce72411d
Signed-off-by: Frode Nordahl <frode.nordahl@canonical.com>
* Update python-openstackclient from branch 'master'
to 6373c91a77ca87d5d1306c610586b6397cc626ad
- Merge " Bug Fix, Default SG Rule Custom SG"
- Bug Fix, Default SG Rule Custom SG
Currently the Default setting for CustomSG Rule
is set to True, this means all new SGs inherit
these rules, with no way for user to override
this behavior.
Closes Bug: #2054629
Change-Id: Icef7c91654dbced76a5492437e723c4e2a0f3102
* Update python-openstackclient from branch 'master'
to 2f9a523765ca99c9ef9a6968e430bab102f3208d
- Merge "reno: Update master for unmaintained/victoria"
- reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.
Change-Id: Ic41670b3f6c9a1b78074319f445e468827590b68
* Update python-openstackclient from branch 'master'
to 7e7fb3923dd30378497f539e814fa36d5938ea21
- Merge "reno: Update master for unmaintained/wallaby"
- reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.
Change-Id: I925f6c38bcfe315edfed129dea76d092ec9110b9
* Update python-openstackclient from branch 'master'
to 772c27658cbc258e07125eed531dcc35a676e9e8
- reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.
Change-Id: I5ffcd8daa4822fddaf48877fc1201847ec5e9340
* Update python-openstackclient from branch 'master'
to 2eea916b35fd6f01947dce168c50c314ed9072db
- Merge "Adds CLI support for ``glance md-object-update``"
- Adds CLI support for ``glance md-object-update``
This patch adds a command "image metadef object update" which
update metadata definitions object inside a namespace.
Change-Id: I2dd8f54f9224abda5adc7a1b6a1c270c49d473a7
* Update python-openstackclient from branch 'master'
to c128ae19694eb3b4871481ec180bca8c8467f6a1
- trivial: Don't ignore missing resources
An openstacksdk 'find_foo' proxy method will return None by default if a
resource is not found. You can change this behavior by setting
'ignore_missing=False'. We were doing this in most, but not all cases:
correct the issue.
In the event of calling 'image delete' with multiple images, it will no
longer fail on the first missing image and will instead attempt to
delete remaining images before failing.
Change-Id: I1e01d3c096dcaab731c28e496a182dd911229227
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Update python-openstackclient from branch 'master'
to 99c7f583df39a3e0303092ff069b038d92c7980d
- Merge "pre-commit: Bump linter versions"
- pre-commit: Bump linter versions
We also migrate to the native hacking pre-commit hook.
Change-Id: Idb5a825c20cb7f189997a4d6c3a9a88218fdb335
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Update python-openstackclient from branch 'master'
to 07c05d8ae555c140fc1510765d99095d644fda30
- reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.
Change-Id: Id5ecff72f0a7ebdcab32964480dc351b96beb8b0
* Update python-openstackclient from branch 'master'
to c8ecba2a9e63a85300518150803c24e1869dfdab
- Merge "image: Fix the default description of image visibility"
- image: Fix the default description of image visibility
The default image visibility was changed to 'shared' in API v2.5. Fix
the help information of image visibility, centralizing options in the
process.
Change-Id: Ib3017fc4f618c1e14e3b26b616ff9374d0e24eaa
Co-authored-by: Stephen Finucane <stephenfin@redhat.com>
* Update python-openstackclient from branch 'master'
to f0f811ce4b507b9625d205a76b7d5096f7ac222d
- Merge "[codespell] fix typos in doc,tests and help messages"
- [codespell] fix typos in doc,tests and help messages
Change-Id: I4823782daa1af3872bc22603147e3073152cc777
* Update python-openstackclient from branch 'master'
to a00cc44acc0b56d1e54d2a7893f4f2fabb41641a
- Merge "doc: Drop tripleoclient"
- doc: Drop tripleoclient
The TripleO project has been deprecated and its master is no longer
maintained. The complete project retirement is now on-going.
Change-Id: If7b390fc2230c16ef138ceb4a7bc5d97dcf790e6
* Update python-openstackclient from branch 'master'
to 6e246f1566dcbdd6d317e90d2f99c5ebd157ae7b
- Merge "doc: Remove RSD subcommand"
- doc: Remove RSD subcommand
The python-rsdclient library hasn't been updated for 5 years and is no
longer maintained.
Change-Id: Ia378a9001836bbaa4f679dddf1ed743e4332a72e
* Update python-openstackclient from branch 'master'
to b30135457aa36293191fa1721296a601f21b8485
- Merge "doc: Remove Searchlight subcommands"
- doc: Remove Searchlight subcommands
... because the project was retired. These were overlooked during
cleanup[1].
[1] a79e7db4aeb6990912497eb0fd313ae3e60adafb
Change-Id: I8eeeb3ea8c49ed3c9405f54f0dd3be0402cd2a8a
* Update python-openstackclient from branch 'master'
to 432f1dee736f901545ce36bc521816bc02c2dcab
- Merge "doc: magnumclient provides a OSC plugin"
- doc: magnumclient provides a OSC plugin
The magnumclient library now provides an OSC plugin. So update
the document accordingly.
Change-Id: Ie828f005a38a511bb0f34ab86cbf97e4a3aae2fe
* Update python-openstackclient from branch 'master'
to 5435f11dd09e4e983d0da49062080af1971834c4
- Merge "image: Trivial fixes"
- image: Trivial fixes
Mostly stylistic, with the exception that we now allow deleting multiple
metadef properties in a given namespace.
Change-Id: Ib0c243f0d647ce74c0165ee666beed6eb5d5c5a7
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Update python-openstackclient from branch 'master'
to 2ed10e9a72524717e11b96b00a19d10d06280460
- Introduce `schema_version` in the federated attribute mapping API
Depends-On: https://review.opendev.org/c/openstack/keystone/+/739966
Change-Id: I276ebd49094368dd823e50ff11a6e65fa2a6dcfb
* Update python-openstackclient from branch 'master'
to dc8d9d3541d785684a4629763b401b8286d1ce55
- Merge "Adding CLI command for ``glance member-get``"
- Adding CLI command for ``glance member-get``
This patch adds a command ``image member get`` which displays
a particular member associated to the image.
Change-Id: I48d3151f8e204e1eb5cfff67ce1e333d1cfb9322
* Update python-openstackclient from branch 'master'
to 9cb8e4c3b5871a8d452582a078f332101dcb1b8c
- Merge "Explicitly specify namespace fields for output"
- Explicitly specify namespace fields for output
Rather than excluding the few fields we don't want, explicitly indicate
the ones we do want.
Note that this is a problem in the tests for virtually all commands
that will be seen as the SDK continues to evolve and new fields are
added to existing resources.
Change-Id: Ia8d487e1e7804fa177fce46497c0202aed8acb08
* Update python-openstackclient from branch 'master'
to 03da934605bfcee7cc058520a6555da006df86ad
- Merge "Revert "Temporarily drop aodhclient from doc build""
- Revert "Temporarily drop aodhclient from doc build"
This reverts commit 860d6360474b2f215097d1aa4018a57070e44924.
Reason for revert:
The issue with aodhclient and latest pyparsing was fixed by [1].
[1] 3a36ed1774ba0bbb3ad6a3716c6c014246bc9613
Change-Id: I461edafc5be7b3afbde485f1620bff71e178b078
* Update python-openstackclient from branch 'master'
to 03044eaf11444f2a9b3fd099dbbb10ffddeddbfd
- doc: Add manilaclient as a OSC plugin
The manilaclient library now provides OSC plugin for share API access.
Change-Id: I0afdf4d48e16191283916065719ba7cf623e7377
* Update python-openstackclient from branch 'master'
to 50544ae78b69b94eed4bb75c82edc4739bbcb23f
- Merge "compute: Fix formatting of 'server show'"
- compute: Fix formatting of 'server show'
In change Ic253184ee5f911ec2052419d328260dc4664b273, we switched to
using the SDK for the 'server show' command. There were a couple of
issues with this change, which we address here:
- openstacksdk uses different names for fields than the nova API. We
opted to output both the original names and the openstacksdk aliases
in the output. With testing, however, it's become obvious that the
resulting output is very long and rather unfriendly from a UX
perspective. We opt to only show fields with their original names.
- A number of fields included in the output are only valid in requests
and will never be present in responses. These are removed.
- A number of fields are not present in later API microversions or are
only present under certain conditions. These are removed from output
when not included in responses.
- The image and flavor fields both had errant logic that resulted in
unnecessary or incorrect information being show. This logic is
corrected.
With these changes, the output now resembles the output seen before the
migration to openstacksdk. In the future we may wish to build on this
further and switch from a blacklist model (removing the fields we do not
wish to show from output) to a whitelist model (specifically stating
which fields to show) but that's a change for another day.
Change-Id: I7e3eaa0149bff202c8fd4538356cbc75b4f7e708
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Update python-openstackclient from branch 'master'
to 37b420142852c3875097859c47ceba7c5e4cc0b6
- Update python classifier in setup.cfg
As per the current release tested runtime, we test
python version from 3.8 to 3.11 so updating the
same in python classifier in setup.cfg
Change-Id: Ic137b2eecee65d43afeca2c936e195a8652237af
* Update python-openstackclient from branch 'master'
to 4bafc326164c87f11d8d72128df86b1f12ffe7ba
- Merge "Fix clearing of dns_domain and description on a network by setting to empty strings"
- Fix clearing of dns_domain and description on a network by setting to empty strings
After setting a default dns_domain on a network
openstack net set --dns-domain 'example.com.' <NETWORKID>
the setting could not be reverted back to an empty string using
openstack net set --dns-domain '' <NETWORKID>
and the call also does not emit any error.
The same is true for the description of a network.
Reason was using the parsed argument directly as a condition instead of
comparing against None -- dropping the empty string as valid value.
The name parameter already accepted an empty string.
This change also adds a testcase for dns_domain, description and the
network name parameter, checking if the empty string is forwarded.
Change-Id: Ia7b9738205002b028c19e4f397411c86469cba1a
* Update python-openstackclient from branch 'master'
to b740f2f6bd99ddf622805b47b484fdf0f07c760e
- Merge "Correct error message for "create server --wait""
- Correct error message for "create server --wait"
Error message should say "Error creating server" and not "unshelving".
Change-Id: I49dc6160f47a13d38128b3da1ba16437bd089c86
Closes-Bug: #2048896
* Update python-openstackclient from branch 'master'
to e7bc3d9b82283690988f6707be716c94846a862c
- Fix --use-prefix-delegation subnet create argument
The --use-prefix-delegation argument when creating a
subnet should not take an argument of True/False, it
should simply trigger the code to set subnetpool_id
value to 'prefix_delegation'. Change action to correct
this.
Added unit test to cover missing checks.
Related-bug: #2028159
Change-Id: Ib7ee80100327b8611d4a354c7f4eb0e696c953da