Read-only Volumes

Registered by Dmitry Russkikh

Provide the ability to attach volumes in the read-only mode. Read-only mode could be ensured by hypervisor configuration during the attachment.
Libvirt, Xen, VMware and Hyper-V support R/O volumes.

Use cases:
  - immutable volumes
  - cinder as a backend for glance https://blueprints.launchpad.net/glance/+spec/glance-cinder-driver
  - shared volume https://blueprints.launchpad.net/cinder/+spec/shared-volume

Blueprint information

Status:
Complete
Approver:
John Griffith
Priority:
Medium
Drafter:
Dmitry Russkikh
Direction:
Approved
Assignee:
Anastasiia Guzikova
Definition:
Approved
Series goal:
Accepted for havana
Implementation:
Implemented
Milestone target:
milestone icon 2013.2
Started by
Dmitry Russkikh
Completed by
John Griffith

Related branches

Sprints

Whiteboard

Implementation plan:
  - Add field 'readonly' (boolean) to 'volumes' table in Cinder DB
  - Add support of 'readonly' parameter in create and update operations in Cinder API
  - Add support of 'readonly' parameter in create and update operations in Cinder CLI client (python-cinderclient)
  - Visualize 'readonly' parameter in Horizon UI (volume create, volume list, volume details operations)
  - Modify logic of volume attachment operation in Nova - use 'read_only' option while configuring hypervisor for attaching Volume with 'readonly' option to a VM. Implement for all available virt drivers.

Gerrit topics: https://review.openstack.org/#q,topic:bp/read-only-volumes,n,z

cinder:https://review.openstack.org/#/c/34723/
python-cinderclient: https://review.openstack.org/#/c/34720/
nova: https://review.openstack.org/#/c/34722/
horizon: https://review.openstack.org/#/c/34724/

Gerrit topic: https://review.openstack.org/#q,topic:bug/1193378,n,z

Addressed by: https://review.openstack.org/34723
    Add support of Read Only mode for volumes.

Wiki page:
https://wiki.openstack.org/wiki/Cinder/blueprints/read-only-volumes

Addressed by: https://review.openstack.org/38322
    Adding Read-Only volume attaching support to Cinder

Addressed by: https://review.openstack.org/39683
    Add Volume ACL Permissions: API extension

Addressed by: https://review.openstack.org/43454
    Add Volume ACL Permissions: Volume ACL Module

Addressed by: https://review.openstack.org/43453
    Add Volume ACL Permissions: DB

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    Superseded here:
    * cinder: https://review.openstack.org/#/c/38322/
    * python-cinderclient: https://review.openstack.org/#/c/44672/
    * nova: https://review.openstack.org/#/c/44817/
    * nova (libvirt driver): https://review.openstack.org/#/c/44455/
    * python-novaclient: https://review.openstack.org/#/c/44674/
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.