Ask Your Question
0

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
0

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] https://review.openstack.org/#/c/44455/7 [2] https://github.com/openstack/nova/blob/master/nova/virt/libvirt/volume.py#L148 (https://github.com/openstack/nova/blo...) [3] https://github.com/openstack/nova/blob/stable/havana/nova/virt/libvirt/volume.py#L134 (https://github.com/openstack/nova/blo...)

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 https://wiki.openstack.org/wiki/Cinder/blueprints/multi-attach-volume (https://wiki.openstack.org/wiki/Cinde...) .

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 389 times

Last updated: Feb 14 '14