summaryrefslogtreecommitdiff
path: root/doc/source/cli/command-objects/server.rst
diff options
context:
space:
mode:
authorMatt Riedemann <mriedem.os@gmail.com>2019-07-24 14:39:07 -0400
committerMatt Riedemann <mriedem.os@gmail.com>2019-09-21 23:27:18 +0000
commitfc5f2978c0f4f1e3360325b00c1f1b99f1e6318f (patch)
treed12db52a11100b72871a0f3b7f47d8e452c014aa /doc/source/cli/command-objects/server.rst
parent47a9f4f9d7ae087ca7b7506e2770fe0c5a184945 (diff)
downloadpython-openstackclient-fc5f2978c0f4f1e3360325b00c1f1b99f1e6318f.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 (cherry picked from commit 4bd53dc1090fda86f6ce25b76a079e250c9206d8) (cherry picked from commit 100d34c54ecdfedf6fb40a2686e1aae1f54df97e)
Diffstat (limited to 'doc/source/cli/command-objects/server.rst')
0 files changed, 0 insertions, 0 deletions