summaryrefslogtreecommitdiff
path: root/openstackclient/tests/unit
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | network: Add missing subnet unset --gateway <subnet-id>Bharat Kunwar2021-03-051-0/+4
|/ / / / | | | | | | | | | | | | | | | | | | | | Story: 2008695 Task: 42003 Change-Id: I9486a09531b11f27a9ff0d68fd4ad8c68a65cccf
* | | | Merge "compute: Remove deprecated 'server migrate --live' option"Zuul2021-03-041-163/+40
|\ \ \ \
| * | | | compute: Remove deprecated 'server migrate --live' optionStephen Finucane2021-01-221-163/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's been long enough. Time to remove this. Change-Id: I37ef09eca0db9286544a4b0bb33f845311baa9b2 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | Merge "compute: Stop silently ignore --(no-)disk-overcommit"Zuul2021-03-041-0/+34
|\ \ \ \ \ | |/ / / /
| * | | | compute: Stop silently ignore --(no-)disk-overcommitStephen Finucane2021-01-221-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These options are not supported from Nova API microversion 2.25 and above. This can be a source of confusion. Start warning, with an eye on erroring out in the future. Change-Id: I53f27eb3e3c1a84d0d77a1672c008d0e8bb8536f Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | Merge "compute: Auto-configure shared/block live migration"Zuul2021-03-041-20/+25
|\ \ \ \ \ | |/ / / /
| * | | | compute: Auto-configure shared/block live migrationStephen Finucane2021-01-221-20/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | API microversion 2.25 introduced the 'block_migration=auto' value for the os-migrateLive server action. This is a sensible default that we should use, allowing users to avoid stating one of the '--block-migration' or '--shared-migration' parameters explicitly. While we're here, we take the opportunity to fix up some formatting in the function, which is really rather messy. Change-Id: Ieedc77d6dc3d4a3cd93b29672faa97dd4e8c1185 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | Merge "compute: Add 'server create --block-device' option"Zuul2021-03-041-0/+256
|\ \ \ \ \ | |/ / / /
| * | | | compute: Add 'server create --block-device' optionStephen Finucane2021-01-221-0/+256
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | One of the last big gaps with novaclient. As noted in the release note, the current '--block-device-mapping' format is based on the old BDM v1 format, even though it actually results in BDM v2-style requests to the server. It's time to replace that. Change-Id: If4eba38ccfb208ee186b90a0eec95e5fe6cf8415 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | Merge "compute: Add missing 'server create' options"Zuul2021-03-041-0/+233
|\ \ \ \ \ | |/ / / /
| * | | | compute: Add missing 'server create' optionsStephen Finucane2021-01-211-0/+233
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add some volume-related options, namely '--snapshot', '--swap', and '--ephemeral'. All are shortcuts to avoid having to use '--block-device-mapping'. Change-Id: I450e429ade46a7103740150c90e3ba9f2894e1a5 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | Merge "compute: Improve 'server create --block-device-mapping' option parsing"Zuul2021-03-041-29/+76
|\ \ \ \ \ | |/ / / /
| * | | | compute: Improve 'server create --block-device-mapping' option parsingStephen Finucane2021-01-211-29/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Once again, custom actions to the rescue. Change-Id: I6b4f80882dbbeb6a2a7e877f63becae7211b7f9a Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | Merge "compute: Rename 'server migrate (confirm|revert)'"Zuul2021-03-041-0/+152
|\ \ \ \ \ | |/ / / /
| * | | | compute: Rename 'server migrate (confirm|revert)'Stephen Finucane2021-01-211-0/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We're confirming or reverting a server migration, not a server migrate. We've a number of 'server migration *' commands now so it makes sense to move them under here. Change-Id: Ib95bb36511dad1aafe75f0c88d10ded382e4fa5c Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | Merge "compute: Add 'server migration show' command"Zuul2021-03-042-0/+171
|\ \ \ \ \ | |/ / / /
| * | | | compute: Add 'server migration show' commandStephen Finucane2021-01-212-0/+171
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This replaces the 'server-migration-show' command provided by novaclient. Change-Id: I413310b481cc13b70853eb579417f6e6fad10d98 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | Merge "Rename FakeServerMigration to FakeMigration"Zuul2021-03-042-12/+12
|\ \ \ \ \ | |/ / / /
| * | | | Rename FakeServerMigration to FakeMigrationStephen Finucane2021-01-212-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Server migrations are (confusingly) a different thing returned by a different API. Change-Id: Ib6b7c8f9cc3d1521a993616f832d41651dc46f73 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | Merge "compute: Add support for 'server boot --nic ...,tag=<tag>'"Zuul2021-03-041-0/+107
|\ \ \ \ \ | |/ / / /
| * | | | compute: Add support for 'server boot --nic ...,tag=<tag>'Stephen Finucane2021-01-211-0/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This has been around for a long time but was not exposed via OSC. Close this gap. Change-Id: I71aabf10f791f68ee7405ffb5e8317cc96cb3b38 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | Merge "compute: Improve 'server create --nic' option parsing"Zuul2021-03-041-52/+52
|\ \ \ \ \ | |/ / / /
| * | | | compute: Improve 'server create --nic' option parsingStephen Finucane2021-01-211-52/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Simplify the parsing of this option by making use of a custom action. Change-Id: I670ff5109522d533ef4e62a79116e49a35c4e8fa Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | Merge "compute: Add missing options for 'server event list'"Zuul2021-03-041-1/+234
|\ \ \ \ \ | |/ / / / | | | | / | |_|_|/ |/| | |
| * | | compute: Add missing options for 'server event list'Stephen Finucane2021-01-211-1/+234
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add pagination parameters, '--limit' and '--offset', and filtering parameters, '--changes-since' and '--changes-before'. Change-Id: Ieca8267c3b204ae2db580502cc8fe72c95eddf09 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | Merge "Add --name to port list"Zuul2021-03-031-0/+20
|\ \ \ \
| * | | | Add --name to port listBrian Haley2021-02-231-0/+20
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The neutron API supports filtering ports by name, but the CLI was missing support for it like it does for other networking resources. Change-Id: I4ff339e18656013218a26f045b205cb7a02dd2fb Story: #2008654
* | | | Merge "compute: Add missing options for 'server group list'"Zuul2021-03-031-4/+43
|\ \ \ \ | | |/ / | |/| |
| * | | compute: Add missing options for 'server group list'Stephen Finucane2021-01-211-4/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add pagination parameters, '--limit' and '--offset'. It's unfortunate that we can't use '--marker' like elsewhere but that requires server-side support to be truly effective. Change-Id: I186adc8cdf28e9c540ad22bca6684d9dd892976a Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | Merge "compute: Add 'server * --all-projects' option"Zuul2021-03-031-0/+66
|\ \ \ \ | |/ / /
| * | | compute: Add 'server * --all-projects' optionStephen Finucane2021-01-211-0/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add an '--all-projects' option to a number of commands: - server delete - server start - server stop This is in addition to 'server list', which already supports this option. This option allows users to request the corresponding action on one or more servers using the server names when that server exists in another project. This is admin-only by default. As part of this work, we also introduce a 'boolenv' helper function that allows us to parse the environment variable as a boolean using 'bool_from_string' helper provided by oslo.utils. This could probably be clever and it has the unfortunate side effect of modifying the help text in environments where this is configured, but it's good enough for now. It also appears to add a new dependency, in the form of oslo.utils, but that dependency was already required by osc-lib and probably more. Change-Id: I4811f8f66dcb14ed99cc1cfb80b00e2d77afe45f Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | Add 'address_group' type support to rbac commandsMiguel Lavalle2021-02-101-1/+5
| |/ / |/| | | | | | | | | | | Depends-On: https://review.opendev.org/c/openstack/neutron/+/772460 Change-Id: Icd5e96d180364b979d1e93fcb39f9133a41a06e5
* | | Merge "Add device profile to ``port``"Zuul2021-01-222-0/+30
|\ \ \ | |/ / |/| |
| * | Add device profile to ``port``Rodolfo Alonso Hernandez2021-01-192-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | Added device profile parameter to ``port create`` command. Related-Bug: #1906602 Change-Id: I4c222ac334d3a0a0ee568ed1e0bc8518baa375e1
* | | Merge "Support remote-address-group in SG rules"Zuul2021-01-202-0/+44
|\ \ \ | |/ / |/| |
| * | Support remote-address-group in SG rulesHang Yang2021-01-122-0/+44
| | | | | | | | | | | | | | | | | | | | | | | | Add support for using remote-address-group in security group rules. Change-Id: Ib1972244d484839943bc3cda07519a6c6d4b945a Implements: blueprint address-groups-in-sg-rules Depends-On: https://review.opendev.org/755644
* | | Merge "compute: Improve 'server migration list' options"Zuul2021-01-151-19/+32
|\ \ \
| * | | compute: Improve 'server migration list' optionsStephen Finucane2021-01-121-19/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve both the '--user' and '--project' options to allow names as well as UUIDs. There's no release note included since this entire command was added in change I15b4a5aca8d0dee59dd293e7b1c7272cdfbeea20, which hasn't been included in a release yet. Change-Id: I7654f3ffc54d38d5cfb03d8d1b2f4dc4fb06fb3d Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | Merge "compute: Add '--force' option to 'server delete'"Zuul2021-01-151-0/+21
|\ \ \ \ | |/ / /
| * | | compute: Add '--force' option to 'server delete'Stephen Finucane2021-01-121-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an admin-only operation by default but can be useful. Change-Id: I25a4da697e27c0fba4d28b504377667eb18f15fe Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | Merge "compute: Add missing options for 'hypervisor list'"Zuul2021-01-151-0/+96
|\ \ \ \ | |/ / /
| * | | compute: Add missing options for 'hypervisor list'Stephen Finucane2021-01-121-0/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Yet more pagination parameters. Change-Id: I9f0145c89ddc49c1d907e6e6e294319cf80fc6ff Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | Merge "compute: Add 'server volume update' command"Zuul2021-01-151-0/+120
|\ \ \ \ | |/ / / | | / / | |/ / |/| |
| * | compute: Add 'server volume update' commandStephen Finucane2021-01-121-0/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We're not going to expose the ability to swap volumes since that's a things humans should not generally use. From the API docs [1]: When updating volumeId, this API is typically meant to only be used as part of a larger orchestrated volume migration operation initiated in the block storage service via the os-retype or os-migrate_volume volume actions. Direct usage of this API to update volumeId is not recommended and may result in needing to hard reboot the server to update details within the guest such as block storage serial IDs. Furthermore, updating volumeId via this API is only implemented by certain compute drivers. We *do* want users to have the ability to change the delete on termination behavior though, so that's what we expose. [1] https://docs.openstack.org/api-ref/compute/?expanded=update-a-volume-attachment-detail#update-a-volume-attachment Change-Id: I50938e1237b4d298521b26a5f9cb90c018dfebaf Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | Merge "network: Address nits for I3c313fc9329837dde67815901528a34dca98ebcc"Zuul2021-01-121-4/+3
|\ \ \
| * | | network: Address nits for I3c313fc9329837dde67815901528a34dca98ebccStephen Finucane2021-01-121-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Address comments left in the review for $subject. Change-Id: I69449112027736152c9fb62f5fe427efd6a25107 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | Merge "Support Neutron Address Group CRUD"Zuul2021-01-112-0/+576
|\ \ \ \ | |/ / /
| * | | Support Neutron Address Group CRUDHang Yang2020-12-242-0/+576
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for Neutron address group CRUD operations. Subsequent patches will be added to use address groups in security group rules. Change-Id: I3c313fc9329837dde67815901528a34dca98ebcc Implements: blueprint address-groups-in-sg-rules Depends-On: https://review.opendev.org/738274 Depends-On: https://review.opendev.org/745594
* | | | Merge "Add 'server unshelve --wait' option"Zuul2021-01-111-29/+51
|\ \ \ \
| * | | | Add 'server unshelve --wait' optionStephen Finucane2021-01-081-29/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was recently added to the 'server shelve' command. Add it now for the 'unshelve' command. Change-Id: I633dd85b60cf70b4f8610f414d82669dd6a53111 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>