Make share_types require a driver mode

Registered by Igor Malinovskiy on 2015-01-27

Currently the driver_manages_share_servers is an optional extra_spec on each share_type that allows the scheduler to filter. We want to make this a required extra spec, so that every share type has this value set to true or false.

The share-type-create command should have an additional required argument which specifies whether the extra spec is true or false after share type creation.
It should not be possible to remove that extra spec.
Modifying the extra spec is allowed as long as the value remains either true or false.

The share-type-list API should be modified to report the value of the driver_manages_share_servers=True/False extra spec for each share_type.
The API should also include a flag indicating which share_type is the default.

Manila should refuse to start if no default_share_type is specified. If the default share type is defined but does not exist, share creation with not share type should fail. Devstack should automatically create a share type and set the name to match the default in the config file.

Blueprint information

Status:
Complete
Approver:
Ben Swartzlander
Priority:
High
Drafter:
Igor Malinovskiy
Direction:
Approved
Assignee:
Igor Malinovskiy
Definition:
Approved
Series goal:
Accepted for kilo
Implementation:
Implemented
Milestone target:
milestone icon 2015.1.0
Started by
Ben Swartzlander on 2015-02-03
Completed by
Ben Swartzlander on 2015-03-12

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/share-type-require-driver-mode,n,z

Addressed by: https://review.openstack.org/151607
    Add required extra spec driver_manages_share_servers to share_type

(?)

Work Items

Work items:
- Update share-type-create API method : TODO
- Update share-type-list API method : TODO
- Add default_share_type config option : DONE
- Add creation of default_share_type in devstack : DONE

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.