<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>(updated subject with correct project name)<br>
</p>
<div class="moz-cite-prefix">On 8/5/20 9:33 AM, Marc Vorwerk wrote:<br>
</div>
<blockquote type="cite"
cite="mid:24E5E9E3-6BF6-492C-BBBB-670DC070CF15@gmx.net">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:12.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
span.E-MailFormatvorlage17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:12.0pt;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;color:black;mso-fareast-language:DE"
lang="EN-US">I'm looking for</span><span
style="font-size:11.0pt;mso-fareast-language:DE"
lang="EN-US"> a way to add the property <i>volume_backend_name</i>
to an existing Volume Type which is in use.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;mso-fareast-language:DE"
lang="EN-US">If I try to change this, I got the following
error:<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;mso-fareast-language:DE"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;mso-fareast-language:DE"
lang="EN-US">root@control01rt:~# openstack volume type show
test-type<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;mso-fareast-language:DE"
lang="EN-US">+--------------------+--------------------------------------+<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;mso-fareast-language:DE"
lang="EN-US">| Field |
Value |<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;mso-fareast-language:DE"
lang="EN-US">+--------------------+--------------------------------------+<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;mso-fareast-language:DE"
lang="EN-US">| access_project_ids |
None |<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;mso-fareast-language:DE"
lang="EN-US">| description |
None |<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;mso-fareast-language:DE"
lang="EN-US">| id |
68febdad-e7b1-4d41-ba11-72d0e1a1cce0 |<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;mso-fareast-language:DE"
lang="EN-US">| is_public |
True |<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;mso-fareast-language:DE"
lang="EN-US">| name |
test-type |<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;mso-fareast-language:DE"
lang="EN-US">| properties
| |<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;mso-fareast-language:DE"
lang="EN-US">| qos_specs_id | None
|<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;mso-fareast-language:DE"
lang="EN-US">+--------------------+--------------------------------------+<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;mso-fareast-language:DE"
lang="EN-US">root@control01rt:~# openstack volume type set
--property volume_backend_name=ceph test-type<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;mso-fareast-language:DE"
lang="EN-US">Failed to set volume type property: Volume Type
is currently in use. (HTTP 400) (Request-ID:
req-2b8f3829-5c16-42c3-ac57-01199688bd58)<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;mso-fareast-language:DE"
lang="EN-US">Command Failed: One or more of the operations
failed<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;mso-fareast-language:DE"
lang="EN-US">root@control01rt:~#<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;mso-fareast-language:DE"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;mso-fareast-language:DE"
lang="EN-US">Problem what I see is, that there are
instances/volumes which use this volume type.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;mso-fareast-language:DE"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;mso-fareast-language:DE"
lang="EN-US">Have anybody an idea, how I can add the <i>volume_backend_name</i>
property to the existing Volume Type?<o:p></o:p><o:p> <br>
</o:p></span></p>
</div>
</blockquote>
<p>This is not allowed since the scheduler may have already
scheduled these volumes to a different backend than the one you
are now specifying in the extra specs. That would lead to a
mismatch between the volumes and their volume type that isn't
obvious.</p>
<p>To get around this, you will need to create a new volume type
with the volume_backend_name you want specified first. You can
then retype your existing volumes to this new volume type.
Assuming most or all of these volumes are already on that backend,
the retype operation should just be a quick database update.</p>
<p>If needed, you can then delete the original volume type that is
no longer being used, then rename the new volume type to get back
to using the same type name. This part isn't necessary, but you
may need that if you've configured the old name as the default
volume type in your cinder.conf file.</p>
<p>Hope that helps.</p>
<p>Sean<br>
</p>
</body>
</html>