Managing a share with an invalid share type results in a share created
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Shared File Systems Service (Manila) |
Fix Released
|
Medium
|
Rodrigo Barbieri |
Bug Description
Although the API correctly returns an HTTP 409 error, a share is still created. Since the API knows ahead of time, the share should never be created.
1. Create a share type
manila type-create invalid true
+------
| Property | Value |
+------
| required_
| Name | invalid |
| Visibility | public |
| is_default | - |
| ID | 5ca6a212-
| optional_
+------
2. Manage share
manila manage openstack2@
ERROR: Invalid host: Host openstack2@
3. Do a show on the uuid provided
manila show b943ecd1-
+------
| Property | Value |
+------
| status | manage_error |
| share_type_name | invalid |
| description | None |
| availability_zone | None |
| share_network_id | None |
| export_locations | |
| | path = 172.20.
| | preferred = False |
| | is_admin_only = False |
| | id = 8ca079bc-
| | share_instance_id = 2198adff-
| share_server_id | None |
| host | openstack2@
| access_rules_status | active |
| snapshot_id | None |
| is_public | False |
| task_state | None |
| snapshot_support | True |
| id | b943ecd1-
| size | None |
| name | None |
| share_type | 5ca6a212-
| has_replicas | False |
| replication_type | None |
| created_at | 2016-03-
| share_proto | NFS |
| consistency_
| source_
| project_id | 3d1d93550b1448f
| metadata | {} |
+------
Changed in manila: | |
importance: | Undecided → Medium |
tags: | added: api |
This seems to have been introduced by https:/ /review. openstack. org/#/c/ 294269/
You can see the cleanup failures in the NetApp CI runs here: http:// dcf901611175aa4 3f968-c54047c91 0227e27e1d6f03b b1796fd7. r95.cf5. rackcdn. com/69/ 294269/ 4/check/ manila- cDOT-no- ss/63b5fe0/