summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Add support for setting extra DHCP options on existing ports"5.8.0Zuul2022-02-252-0/+36
|\
| * Add support for setting extra DHCP options on existing portsSlawek Kaplonski2022-02-212-0/+36
| | | | | | | | | | | | | | | | | | It is now possible to set extra DHCP option for an existing port using "port set" command. It works in the same way like during port creation. Story: 2009095 Task: 42927 Change-Id: I3577d4e3a303137b708ae8687c44b486aa82e296
* | Merge "Add support for 'remote-managed' vnic type"Zuul2022-02-232-2/+9
|\ \ | |/ |/|
| * Add support for 'remote-managed' vnic typeFrode Nordahl2022-02-082-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | The 'remote-managed' vnic type will be used to support off-path SmartNIC port binding with OVN, and it is expected that the user will create ports with this vnic type as part of the workflow. As such the client must allow users to interact with this vnic type and this patch addresses that. Partial-Bug: #1932154 Depends-On: I496db96ea40da3bee5b81bcee1edc79e1f46b541 Change-Id: I566c3da594d757dd62edcf7f9ea3077db8d6b11a
* | Merge "image: Sanity check the 'SetImage' command"Zuul2022-02-092-49/+53
|\ \
| * | image: Sanity check the 'SetImage' commandStephen Finucane2021-11-172-49/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | This was a very difficult command to grok, due to the layering on of additional features over the years. Make this a little easier to follow by grouping related logic and making use of argparse features. Change-Id: I4e1a0aed09ea5d6a8c26ec3e888c9c7b6cefc25a Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | Merge "tests: Update fake image client in tests"Zuul2022-02-094-36/+28
|\ \ \ | |/ /
| * | tests: Update fake image client in testsStephen Finucane2021-11-174-36/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These clients are intended to fake out the old glanceclient client which we no longer use. They were only "working" because we weren't actually using any of the glancelclient-based stuff and were instead overriding everything within the tests. Move these overrides back to the main fake client and remove the crud. Change-Id: I92ee74a1df72a6dd23f9d2dc04342aab0cbd3210 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | Merge "image: Remove FakeImage test helper"Zuul2022-02-0911-222/+187
|\ \ \ | |/ /
| * | image: Remove FakeImage test helperStephen Finucane2021-11-1711-222/+187
| | | | | | | | | | | | | | | | | | | | | | | | | | | We're no longer creating fake versions of glanceclient's 'Resource' object but rather openstacksdk objects. As such, there's no point nesting things under a fake resource class. Change-Id: I39cd5302622f4542db9eebcccfad0cb90d077441 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | Merge "docs: Document additional 'server migration' commands"Zuul2022-02-091-1/+1
|\ \ \
| * | | docs: Document additional 'server migration' commandsStephen Finucane2022-02-081-1/+1
| | |/ | |/| | | | | | | | | | | | | | | | Only 'server migration list' was being documented. Change-Id: I038ff2bcf7bb852d619004bb00306d2d388135a7 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | Merge "compute: Don't warn if disk overcommit params unset"Zuul2022-02-092-12/+16
|\ \ \
| * | | compute: Don't warn if disk overcommit params unsetStephen Finucane2021-11-032-12/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to a small logic error, we were emitting a warning about a deprecated option when the user tried to live migrate an instance using microversion 2.25 even though the user hadn't actually set that option. Correct this. Change-Id: Ib61e817bd4ced9b5533e7c7f9d8f0b45fe81c211 Signed-off-by: Stephen Finucane <sfinucan@redhat.com> Story: 2009657 Task: 43836
* | | | Merge "Add missing command mapping in nova"Zuul2022-02-091-1/+1
|\ \ \ \
| * | | | Add missing command mapping in novaJieonLee2021-11-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | nova command: instance-action openstack command: server event show Change-Id: I8e5dad90cfd28b1f0d65be688651918869f679e4
* | | | | Merge "Support Neutron Local IP CRUD"Zuul2022-02-0912-2/+1657
|\ \ \ \ \ | |_|_|/ / |/| | | |
| * | | | Support Neutron Local IP CRUDNurmatov Mamatisa2022-01-2812-2/+1657
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for Neutron Local IP CRUD operations. Partial-Bug: #1930200 Depends-On: https://review.opendev.org/c/openstack/neutron/+/804523 Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/804988 Change-Id: I1095100efb27b8559412469f0a9d07fc0a3db9d5
* | | | | Merge "Add network update quota "limit_check" parameter"Zuul2022-02-034-0/+82
|\ \ \ \ \
| * | | | | Add network update quota "limit_check" parameterRodolfo Alonso Hernandez2021-12-074-0/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This new parameter commands the Neutron server to first check the resource usage before setting the new quota limit. If the resource usage is below the new limit, the Neutron server will raise an exception. Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/806254 Depends-On: https://review.opendev.org/c/openstack/neutron/+/801470 Partial-Bug: #1936408 Change-Id: Idc1b99492d609eb699d0a6bef6cd760458a774f6
* | | | | | Don't fail on extlinks warnings for reno buildDr. Jens Harbott2022-02-031-0/+8
| |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With Sphinx==4.4.0 some "helpful" warnings were introduced when an external link could be replaced by a macro, like for :lpbug:. Sadly we have a very high number of existing release notes that trigger these warnings and no good way to fix them retrospectively, because would mess up their mapping to releases. So we change the logging for the sphinx.ext.extlinks to ignore these warnings for now. Signed-off-by: Dr. Jens Harbott <harbott@osism.tech> Change-Id: I709de5e454434b8790a68d9e67ca1432387b21ab
* | | | | Merge "Get rid of tenant_id in the network commands"Zuul2022-01-1739-202/+103
|\ \ \ \ \
| * | | | | Get rid of tenant_id in the network commandsArtem Goncharov2022-01-1739-202/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Finally drop tenant_id completely from the networking service. Change-Id: I5f62f2a76592eaaaed6703624e959df41a6ecc8f
* | | | | | Merge "Skip original_name from flavor info"Zuul2022-01-171-1/+1
|\ \ \ \ \ \
| * | | | | | Skip original_name from flavor infoArtem Goncharov2022-01-141-1/+1
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the new SDK we are going to add additional parameter to the flavor which make no use for OSC. Exclude it explicitly since it also cause failing tests. Change-Id: Ie35e60498cf18f05c878611df6f88607a04b1870
* | | | | | Switch compute service list, delete and set to sdk.Ritvik Vinodkumar2022-01-144-156/+238
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | Switch the compute service commands from novaclient to SDK. Change-Id: I16498905101d6c2702a3ccbaf8cf5e3098d51992
* | | | | Merge "Add --security-group to port list"Zuul2022-01-133-0/+34
|\ \ \ \ \
| * | | | | Add --security-group to port listRodolfo Alonso Hernandez2021-12-023-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The neutron API supports filtering ports by security group. Closes-Bug: #1405057 Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/804979 Change-Id: I0f626882716c21ac200c1b929ea04664d21874d8
* | | | | | Fix volume set functional testDr. Jens Harbott2022-01-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sometimes it can happen that when extending a volume it is shown as status "extending" with the original size for a while. Wait for the volume to enter state "available" again before checking the result. Signed-off-by: Dr. Jens Harbott <harbott@osism.tech> Change-Id: Ib70cfa1c241ce94426214c7a05c550213f427caa
* | | | | | Merge "Include hosts in aggregate list --long"Zuul2021-12-252-0/+4
|\ \ \ \ \ \
| * | | | | | Include hosts in aggregate list --longDavid Caro2021-06-032-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes it easier to get the total list of aggregates and the hosts belonging to each of them (specially for scripting purposes). Change-Id: I94833c15075ae655bc11e7c0fc47c0abad5846fc Signed-off-by: David Caro <me@dcaro.es>
* | | | | | | Merge "compute: Return information about fixed IP"Zuul2021-12-253-33/+145
|\ \ \ \ \ \ \
| * | | | | | | compute: Return information about fixed IPStephen Finucane2021-12-143-33/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The compute API provides this information to us. We might as well use it. Change-Id: I5608fa80745975ce49712718452cfe296c0f64d2 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | | | Merge "Switch add fixed IP to SDK"Zuul2021-12-253-60/+211
|\ \ \ \ \ \ \ \ | |/ / / / / / /
| * | | | | | | Switch add fixed IP to SDKRitvik Vinodkumar2021-12-143-60/+211
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switch the add fixed IP command from novaclient to SDK. Change-Id: I4752ea7b4bfc17e04b8f46dbe9a68d938501a89e
* | | | | | | | Merge "compute: Pass through args to ssh"Zuul2021-12-253-25/+115
|\ \ \ \ \ \ \ \
| * | | | | | | | compute: Pass through args to sshHugh Saunders2021-12-153-25/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Why limit a user to preset ssh arguments? Capture them all and send them along to ssh to deal with. This allows users to use the full range of ssh arguments, including specifying a command to run on the instance. For example: openstack server ssh -4 upg -- -l cirros -i ~/id_rsa_upg "date; uptime" SSH arguments that openstackclient currently mirrors are deprecated except for -4 and -6, as they are useful for retrieving the correct instance IP. Change-Id: Ia50786d5eee52688e180550fe16aeb8af610154b Co-authored-by: Stephen Finucane <stephen@that.guru>
* | | | | | | | | Merge "compute: Fix weird option definition for 'server ssh'"Zuul2021-12-252-29/+81
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / /
| * | | | | | | | compute: Fix weird option definition for 'server ssh'Stephen Finucane2021-12-152-29/+81
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | argparse allows you to specify multiple options for a given argument when declaring the argument. For some reason, we weren't doing this for the 'server ssh' command. There's no apparent reason for doing things this way and it's been that way since the beginning (2013) so let's not do that. We also add unit tests since they were missing and should exist. Change-Id: I67a9e6516d7057266210cd4083e9ddeb1cfaa5de Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | | | | | Add location to fake network objectsDr. Jens Harbott2021-12-161-4/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Network objects returned from the SDK include a location column which has a reference to the cloud to which the object belongs. Add this column to our fake objects used for testing, so that we can make sure we don't include them in CLI output where they are useless. Change-Id: Ib09027af78e7bf2458cdc76ea9027faa3dbbfcf9 Signed-off-by: Dr. Jens Harbott <harbott@osism.tech>
* | | | | | | | Hide location columns for network objectsDr. Jens Harbott2021-12-1625-26/+142
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Network objects returned from the SDK include a location column which has a reference to the cloud to which the object belongs. We don't want to include them in CLI output where they are useless. The solution implemented in [0] was dropped as a sideeffect in [1]. [0] https://review.opendev.org/c/openstack/python-openstackclient/+/679445 [1] https://review.opendev.org/c/openstack/python-openstackclient/+/815032 Signed-off-by: Dr. Jens Harbott <harbott@osism.tech> Change-Id: I9a408d9721c9c57d752afaab520cd6ee379a5184
* | | | | | | Merge "Allow unset port's host_id"Zuul2021-12-133-1/+17
|\ \ \ \ \ \ \
| * | | | | | | Allow unset port's host_idSlawek Kaplonski2021-11-283-1/+17
| | |_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is supported by Neutron and needs to be done like that when e.g. admin wants to unbound port from the host. Task: #44043 Story: #2009705 Change-Id: I08f1bb40f4dc72cfa7c62feeb5f513455de0ca45
* | | | | | | Allow setting gateway when creating a routerDr. Jens Harbott2021-12-093-23/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These options are not only valid when modifying a router, but also when one is created initially. Signed-off-by: Dr. Jens Harbott <harbott@osism.tech> Change-Id: I3e12901f37cbd1639ac9dc9cc49b04114b80474c
* | | | | | | Fix RemoveServerVolumeDr. Jens Harbott2021-12-082-17/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The nova API we're using to delete a server volume attachment needs to be handed a volume, not a volume attachment. Also make sure that we create an error if the volume isn't actually attached to the server. Signed-off-by: Dr. Jens Harbott <harbott@osism.tech> Co-authored-by: Stephen Finucane <sfinucan@redhat.com> Change-Id: I12abd3787ea47acb4da282d00fdc1989405a0564
* | | | | | | Merge "compute: Show flavor in 'server list' with API >= 2.47"Zuul2021-11-303-260/+348
|\ \ \ \ \ \ \
| * | | | | | | compute: Show flavor in 'server list' with API >= 2.47Khomesh Thakre2021-11-303-260/+348
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the issue where the flavor name was empty in server list output. This requires somewhat invasive unit test changes to reflect the changed API response from the server, but this has the upside of meaning we don't need new tests since what we have validates things. Also drop the flavor ID column as it is removed from the compute API. Change-Id: Ica3320242a38901c1180b2b29109c9474366fde0 Signed-off-by: Khomesh Thakre <khomeshthakre24@gmail.com> Story: 2008257 Task: 41113
* | | | | | | | Merge "Switch openstack server remove port/network to using sdk"Zuul2021-11-304-28/+114
|\ \ \ \ \ \ \ \
| * | | | | | | | Switch openstack server remove port/network to using sdkDiwei Zhu2021-11-294-28/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I1540c1f52e9a107dba20eeea9dc323c5510fe2b1
* | | | | | | | | Merge "Switch server suspend and server resume to SDK"Zuul2021-11-303-14/+19
|\ \ \ \ \ \ \ \ \