Incorrect default type lookup when using "openstack share create"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-manilaclient |
Fix Released
|
Low
|
Goutham Pacha Ravi |
Bug Description
When you perform "openstack share create" without specifying a share type, the command tries to lookup a default share type for the user. However, this lookup assumes that the default share type is always called "default" - this may not be the case:
$ grep "default_
default_share_type = cephfsnfstype
$ openstack share type list
+------
| ID | Name | Visibility | Is Default | Required Extra Specs | Optional Extra Specs | Description |
+------
| c6807c53-
| | | | | | create_
| 8ffeefeb-
| | | | | | create_
| 8a0ec79e-
| | | | | | create_
+------
$ openstack share create nfs 1 --name testshare
There is no default share type available. You must pick a valid share type to create a share.
The lookup is happening here: https:/
Changed in python-manilaclient: | |
importance: | Undecided → Low |
assignee: | nobody → Goutham Pacha Ravi (gouthamr) |
milestone: | none → bobcat-client-release |
Changed in python-manilaclient: | |
milestone: | bobcat-client-release → none |
Changed in python-manilaclient: | |
milestone: | none → caracal-1 |
Fix proposed to branch: master /review. opendev. org/c/openstack /python- manilaclient/ +/890835
Review: https:/