summaryrefslogtreecommitdiff
path: root/doc/source/cli/command-objects/compute-service.rst
diff options
context:
space:
mode:
authorMatt Riedemann <mriedem.os@gmail.com>2019-07-24 14:39:07 -0400
committerDean Troyer <dtroyer@gmail.com>2019-08-09 16:00:13 +0000
commit4bd53dc1090fda86f6ce25b76a079e250c9206d8 (patch)
tree5ef4f8f39106a0ed98ae867675bee5caf8ee9a6d /doc/source/cli/command-objects/compute-service.rst
parentb52a831f6b92daaba100e09299ec967679adf308 (diff)
downloadpython-openstackclient-4bd53dc1090fda86f6ce25b76a079e250c9206d8.tar.gz
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
Diffstat (limited to 'doc/source/cli/command-objects/compute-service.rst')
0 files changed, 0 insertions, 0 deletions