<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hey Sinat,<div><br></div><div>The error message suggests that you have volumes that use the volume type you're modifying. If yes, with cinder API, since the Rocky release [1], you cannot modify volume types that are currently in use. The original design for cinder volume types was that they were always mutable - and changes to existing volume types didn't affect pre-existing volumes. However, this behavior was modified in the Ocata release [2], and finally removed in the Rocky release.</div><div><br></div><div>One of your options is to also rename the existing volume type and create a new one if you'd like, with the original name. </div><div><br></div><div>[1] <a href="https://docs.openstack.org/releasenotes/cinder/rocky.html#relnotes-13-0-0-stable-rocky-upgrade-notes">https://docs.openstack.org/releasenotes/cinder/rocky.html#relnotes-13-0-0-stable-rocky-upgrade-notes</a></div><div>[2] <a href="https://review.opendev.org/#/c/440680/">https://review.opendev.org/#/c/440680/</a></div><div><div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 7, 2019 at 12:33 AM Sinan Polat <<a href="mailto:sinan@turka.nl">sinan@turka.nl</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><u></u>

    
<div><p>Hi,<br><br>I am using Ceph as the backend for Cinder. Within Ceph we have defined 2 RBD pools (ssdvolumes, sasvolumes).<br>In OpenStack I created 2 Volume Types (ssd, sas). Each Volume Type has property "volume_backend_name='tripleo_ceph_<ssd|sas>'".<br><br>In the Cinder configuration I have the following backends configured:<br></p><p>[tripleo_ceph_ssd]<br>backend_host=hostgroup<br>volume_backend_name=tripleo_ceph_ssd<br>volume_driver=cinder.volume.drivers.rbd.RBDDriver<br>rbd_ceph_conf=/etc/ceph/ceph.conf<br>rbd_user=openstack<br>rbd_pool=ssdvolumes</p><p>[tripleo_ceph_sas]<br>backend_host=hostgroup<br>volume_backend_name=tripleo_ceph_sas<br>volume_driver=cinder.volume.drivers.rbd.RBDDriver<br>rbd_ceph_conf=/etc/ceph/ceph.conf<br>rbd_user=openstack<br>rbd_pool=sasvolumes<br><br>As you might have noticed, the backend name (tripleo_ceph_ssd) and the RBD pool name (ssdvolumes, not ssd) does not match. So far, we do not have any problems. But I want to correct the names and I do not want to have the mismatch anymore.<br><br>So I want to change the value of key volume_backend_name for both Volume Types (tripleo_ceph_ssd => tripleo_ceph_ssdvolumes).<br><br>I tried the following:<br>$ openstack volume type show 80cb25ff-376a-4483-b4f7-d8c75839e0ce<br>+--------------------+----------------------------------------+<br>| Field | Value |<br>+--------------------+----------------------------------------+<br>| access_project_ids | None |<br>| description | |<br>| id | 80cb25ff-376a-4483-b4f7-d8c75839e0ce |<br>| is_public | True |<br>| name | ssd |<br>| properties | volume_backend_name='tripleo_ceph_ssd' |<br>| qos_specs_id | None |<br>+--------------------+----------------------------------------+<br>$ <br><br><br>$ openstack volume type set --property volume_backend_name='tripleo_ceph_ssdvolumes' 80cb25ff-376a-4483-b4f7-d8c75839e0ce<br>Failed to set volume type property: Volume Type is currently in use. (HTTP 400) (Request-ID: req-5efaa5b7-910f-4802-8494-3115cfc4ab93)<br>Command Failed: One or more of the operations failed<br>$<br><br>How to solve my problem?<br><br>Thanks!<br><br>Sinan</p></div>
</blockquote></div></div>