Skip to content

Commit 0001404

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Document 2.53 behavior for compute service list/delete"
2 parents a15e474 + 1557afb commit 0001404

2 files changed

Lines changed: 16 additions & 3 deletions

File tree

doc/source/cli/command-objects/compute-service.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,19 @@ Delete compute service(s)
1818
.. _compute_service_delete-service:
1919
.. describe:: <service>
2020

21-
Compute service(s) to delete (ID only)
21+
Compute service(s) to delete (ID only). If using
22+
``--os-compute-api-version`` 2.53 or greater, the ID is a UUID which can
23+
be retrieved by listing compute services using the same 2.53+ microversion.
2224

2325
compute service list
2426
--------------------
2527

2628
List compute services
2729

30+
Using ``--os-compute-api-version`` 2.53 or greater will return the ID as a
31+
UUID value which can be used to uniquely identify the service in a multi-cell
32+
deployment.
33+
2834
.. program:: compute service list
2935
.. code:: bash
3036

openstackclient/compute/v2/service.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ def get_parser(self, prog_name):
3737
"service",
3838
metavar="<service>",
3939
nargs='+',
40-
help=_("Compute service(s) to delete (ID only)")
40+
help=_("Compute service(s) to delete (ID only). If using "
41+
"``--os-compute-api-version`` 2.53 or greater, the ID is "
42+
"a UUID which can be retrieved by listing compute services "
43+
"using the same 2.53+ microversion.")
4144
)
4245
return parser
4346

@@ -60,7 +63,11 @@ def take_action(self, parsed_args):
6063

6164

6265
class ListService(command.Lister):
63-
_description = _("List compute services")
66+
_description = _("List compute services. Using "
67+
"``--os-compute-api-version`` 2.53 or greater will "
68+
"return the ID as a UUID value which can be used to "
69+
"uniquely identify the service in a multi-cell "
70+
"deployment.")
6471

6572
def get_parser(self, prog_name):
6673
parser = super(ListService, self).get_parser(prog_name)

0 commit comments

Comments
 (0)