Ask Your Question

How to use the new feature of cinder about read-only volume

asked 2014-02-13 09:25:01 -0500

rmm0811 gravatar image

I found cinder in havana version add a new feature about the read-only volume. So I create a volume with setting volume metadata with key="readonly" and value="True", and attached it to an instance. However, it doesn't work. I still can write data in volume.

Any wrong with my steps? How could I use the read-only volume? Does multi-attach readonly volume support?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-02-14 03:14:06 -0500

Any wrong with my steps?

  1. Under current volume readonly feature implementation approach, we need the support from Cinder and Nova hypervisor both sides. Currently I only implemented libvirt hypervisor driver within Nova side.

  2. The Cinder side code change had been merged in H, but Nova side change change [1] been merged in I early [2][3]

[1] [2] ( [3] (

So I'm not sure if there is a code version issue in your test deployment.

How could I use the read-only volume?

For now I think the test steps what you mentioned in above question is correct.

Does multi-attach readonly volume support?

I believe multi-attach is another dedicated use case. There is one wiki page maybe you can refer ( .

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-02-13 09:25:01 -0500

Seen: 528 times

Last updated: Feb 14 '14