Skip to content

Commit 6abfb01

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "volume: Add 'volume group type *' commands"
2 parents 8736998 + 83551d2 commit 6abfb01

8 files changed

Lines changed: 919 additions & 9 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
=================
2+
volume group type
3+
=================
4+
5+
Block Storage v3
6+
7+
.. autoprogram-cliff:: openstack.volume.v3
8+
:command: volume group type *

doc/source/cli/commands.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ referring to both Compute and Volume quotas.
160160
* ``volume backup record``: (**Volume**) volume record that can be imported or exported
161161
* ``volume backend``: (**Volume**) volume backend storage
162162
* ``volume group``: (**Volume**) group of volumes
163+
* ``volume group type``: (**Volume**) deployment-specific types of volumes groups available
163164
* ``volume host``: (**Volume**) the physical computer for volumes
164165
* ``volume message``: (**Volume**) volume API internal messages detailing volume failure messages
165166
* ``volume qos``: (**Volume**) quality-of-service (QoS) specification for volumes

doc/source/cli/data/cinder.csv

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ group-snapshot-create,,Creates a group snapshot. (Supported by API versions 3.14
5757
group-snapshot-delete,,Removes one or more group snapshots. (Supported by API versions 3.14 - 3.latest)
5858
group-snapshot-list,,Lists all group snapshots. (Supported by API versions 3.14 - 3.latest)
5959
group-snapshot-show,,Shows group snapshot details. (Supported by API versions 3.14 - 3.latest)
60-
group-specs-list,,Lists current group types and specs. (Supported by API versions 3.11 - 3.latest)
61-
group-type-create,,Creates a group type. (Supported by API versions 3.11 - 3.latest)
62-
group-type-default,,List the default group type. (Supported by API versions 3.11 - 3.latest)
63-
group-type-delete,,Deletes group type or types. (Supported by API versions 3.11 - 3.latest)
64-
group-type-key,,Sets or unsets group_spec for a group type. (Supported by API versions 3.11 - 3.latest)
65-
group-type-list,,Lists available 'group types'. (Admin only will see private types) (Supported by API versions 3.11 - 3.latest)
66-
group-type-show,,Show group type details. (Supported by API versions 3.11 - 3.latest)
67-
group-type-update,,Updates group type name description and/or is_public. (Supported by API versions 3.11 - 3.latest)
60+
group-specs-list,volume group type list,Lists current group types and specs. (Supported by API versions 3.11 - 3.latest)
61+
group-type-create,volume group type create,Creates a group type. (Supported by API versions 3.11 - 3.latest)
62+
group-type-default,volume group type list --default,List the default group type. (Supported by API versions 3.11 - 3.latest)
63+
group-type-delete,volume group type delete,Deletes group type or types. (Supported by API versions 3.11 - 3.latest)
64+
group-type-key,volume group type set,Sets or unsets group_spec for a group type. (Supported by API versions 3.11 - 3.latest)
65+
group-type-list,volume group type set,Lists available 'group types'. (Admin only will see private types) (Supported by API versions 3.11 - 3.latest)
66+
group-type-show,volume group type show,Show group type details. (Supported by API versions 3.11 - 3.latest)
67+
group-type-update,volume group type set,Updates group type name description and/or is_public. (Supported by API versions 3.11 - 3.latest)
6868
group-update,volume group set,Updates a group. (Supported by API versions 3.13 - 3.latest)
6969
image-metadata,volume set --image-property,Sets or deletes volume image metadata.
7070
image-metadata-show,volume show,Shows volume image metadata.

openstackclient/tests/unit/volume/v3/fakes.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,11 @@ class FakeVolumeGroupType:
129129
"""Fake one or more volume group types."""
130130

131131
@staticmethod
132-
def create_one_volume_group_type(attrs=None):
132+
def create_one_volume_group_type(attrs=None, methods=None):
133133
"""Create a fake group type.
134134
135135
:param attrs: A dictionary with all attributes of group type
136+
:param methods: A dictionary with all methods
136137
:return: A FakeResource object with id, name, description, etc.
137138
"""
138139
attrs = attrs or {}
@@ -152,6 +153,7 @@ def create_one_volume_group_type(attrs=None):
152153
group_type = fakes.FakeResource(
153154
None,
154155
group_type_info,
156+
methods=methods,
155157
loaded=True)
156158
return group_type
157159

0 commit comments

Comments
 (0)