[RFE] add user message for share creation failure because of no share-type
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Shared File Systems Service (Manila) |
Fix Released
|
Medium
|
Ashley Rodriguez | ||
python-manilaclient |
New
|
Undecided
|
Unassigned |
Bug Description
Description of problem:
Although 'share type' is a mandatory argument while creating a share it is
displayed as an optional argument in the command description.
Version-Release number of selected component (if applicable):
python2-
How reproducible:
100%
Steps to Reproduce:
# create a share without specifying share type.
(overcloud) [stack@undercloud-0 ~]$ manila create NFS 1 --name share1
+------
| Property | Value |
+------
| status | creating |
| share_type_name | None |
| description | None |
| availability_zone | None |
| share_network_id | None |
| share_server_id | None |
| share_group_id | None |
| host | |
| revert_
| access_rules_status | active |
| snapshot_id | None |
| create_
| is_public | False |
| task_state | None |
| snapshot_support | False |
| id | 4c95b542-
| size | 1 |
| source_
| user_id | ceee86a910d54af
| name | share1 |
| share_type | None |
| has_replicas | False |
| replication_type | None |
| created_at | 2019-02-
| share_proto | NFS |
| mount_snapshot_
| project_id | fd808698c9c3458
| metadata | {} |
+------
(overcloud) [stack@undercloud-0 ~]$ manila list
+------
| ID | Name | Size | Share Proto | Status | Is Public | Share Type Name | Host | Availability Zone |
+------
| 4c95b542-
+------
Actual results:
Share type is displayed as an optional argument in manila create command.
overcloud) [stack@undercloud-0 ~]$ manila help create
usage: manila create [--snapshot-id <snapshot-id>] [--name <name>]
Creates a new share (NFS, CIFS, CephFS, GlusterFS, HDFS or MAPRFS).
Positional arguments:
<share_protocol> Share protocol (NFS, CIFS, CephFS, GlusterFS, HDFS or
<size> Share size in GiB.
Optional arguments:
--snapshot-id <snapshot-id>, --snapshot_id <snapshot-id>
--name <name> Optional share name. (Default=None)
--metadata [<key=value> [<key=value> ...]]
--share-network <network-info>, --share_network <network-info>
--description <description>
#######
--share-type <share-type>, --share_type <share-type>, --volume-type <share-type>, --volume_type <share-type>
#######
--public Level of visibility for share. Defines whether other
--availabilit
--share-group <share-group>, --share_group <share-group>, --group <share-group>
Expected results:
Share type should be displayed as a positional argument in manila create command.
Additional info:
manila-
=======
2019-02-18 13:46:28.090 1 ERROR oslo_messaging.
2019-02-18 13:46:28.090 1 ERROR oslo_messaging.
2019-02-18 13:46:28.090 1 ERROR oslo_messaging.
2019-02-18 13:46:28.090 1 ERROR oslo_messaging.
2019-02-18 13:46:28.090 1 ERROR oslo_messaging.
2019-02-18 13:46:28.090 1 ERROR oslo_messaging.
2019-02-18 13:46:28.090 1 ERROR oslo_messaging.
2019-02-18 13:46:28.090 1 ERROR oslo_messaging.
2019-02-18 13:46:28.090 1 ERROR oslo_messaging.
2019-02-18 13:46:28.090 1 ERROR oslo_messaging.
2019-02-18 13:46:28.090 1 ERROR oslo_messaging.
2019-02-18 13:46:28.090 1 ERROR oslo_messaging.
2019-02-18 13:46:28.090 1 ERROR oslo_messaging.
2019-02-18 13:46:28.090 1 ERROR oslo_messaging.
2019-02-18 13:46:28.090 1 ERROR oslo_messaging.
2019-02-18 13:46:28.090 1 ERROR oslo_messaging.
Changed in manila: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in manila: | |
assignee: | nobody → Goutham Pacha Ravi (gouthamr) |
milestone: | none → wallaby-3 |
Changed in manila: | |
milestone: | wallaby-3 → none |
milestone: | none → xena-1 |
Changed in manila: | |
milestone: | xena-1 → xena-2 |
assignee: | Goutham Pacha Ravi (gouthamr) → nobody |
Changed in manila: | |
assignee: | nobody → Nahim Alves de Souza (nahimsouza) |
milestone: | xena-2 → xena-3 |
Changed in manila: | |
milestone: | xena-3 → xena-2 |
assignee: | Nahim Alves de Souza (nahimsouza) → nobody |
importance: | Medium → Undecided |
Changed in manila: | |
assignee: | nobody → Ashley Rodriguez (ashrod98) |
Changed in manila: | |
importance: | Undecided → Medium |
Changed in manila: | |
status: | Triaged → In Progress |
Additional comments http:// eavesdrop. openstack. org/meetings/ manila/ 2020/manila. 2020-04- 02-15.01. log.html