python-openstackclient/releasenotes/notes/story-2005349-compute-service-set-2.53-3d2db875154e633a.yaml
Matt Riedemann 4bd53dc109 Fix compute service set handling for 2.53+
With compute API microversion 2.53 there is a single
PUT /os-services/{service_id} API which takes the service
id as a UUID. Since the openstack compute service set
command only takes --host and --service (binary) to identify
the service, this change checks if 2.53 or greater is being
used and if so, looks up the service by host and binary and
calls the appropriate methods in novaclient.

If the command cannot uniquely identify a compute service
with the given host and binary, an error is raised. A future
change could add an --id option to be used with 2.53+ to
pass the service id (as UUID) directly to avoid the host/binary
filtering.

Change-Id: I868e0868e8eb17e7e34eef3d2d58dceedd29c2b0
Story: 2005349
Task: 30302
2019-08-09 16:00:13 +00:00

7 lines
204 B
YAML

---
fixes:
- |
The ``compute service set`` command now properly handles
``--os-compute-api-version`` 2.53 and greater.
[Story `2005349 <https://storyboard.openstack.org/#!/story/2005349>`_]