<div dir="auto"><div style="word-wrap:break-word" dir="auto">


<p><span style="font-family:'courier new'">I am using
openstack latest victoria release on ubuntu 20.04. The instance is launched
from horizon and storage types are created.</span></p>

<p><span style="font-family:'courier new'"> </span></p>

<p><span style="font-family:'courier new'">From UI, </span></p>

<p><span style="font-family:'courier new'">boot source is:
IMAGE</span></p>

<p><span style="font-family:'courier new'">Create New
Volume: Yes</span></p>

<p><span style="font-family:'courier new'">Size: 5</span></p>

<p><span style="font-family:'courier new'"> </span></p>

<p><span style="font-family:'courier new'">Below is the
output that I have set default volume type in cinder.conf</span></p>

<p><span style="font-family:'courier new'"> </span></p>

<p><span style="font-family:'courier new'">root@storage:/etc/cinder#
grep default_volume_type cinder.conf</span></p>

<p><span style="font-family:'courier new'">default_volume_type
= lvm_backed</span></p>

<p><span style="font-family:'courier new'"> </span></p>

<p><span style="font-family:'courier new'">However from
openstack cli I have created a volume from image in lvm_backend storage type
and booted a instance from it. It goes successful.</span></p>

<p><span style="font-family:'courier new'"> </span></p>

<p><span style="font-family:'courier new'">I haven't set any
property in image. Below is the image output.</span></p>

<p><span style="font-family:'courier new'"> </span></p>

<p><span style="font-family:'courier new'">+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+</span></p>

<p><span style="font-family:'courier new'">| Field            | Value                                                          
                                                                                                                                                                                                                                                                                          |</span></p>

<p><span style="font-family:'courier new'">+------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+</span></p>

<p><span style="font-family:'courier new'">| checksum         |
ab8436743c2a55b25615afa265631584                                                           
                                                                                                                                                                                                                                                              |</span></p>

<p><span style="font-family:'courier new'">|
container_format | bare                                                                                                                                                                                                                                     
                                                                                                                |</span></p>

<p><span style="font-family:'courier new'">| created_at       | 2020-12-17T08:58:56Z                                                                                                   
                                                                                                                                                                                                                                  |</span></p>

<p><span style="font-family:'courier new'">|
disk_format      | qcow2                                                                                                                                                                                                                                                                                                                                                     |</span></p>

<p><span style="font-family:'courier new'">| file             |
/v2/images/1024317b-0db6-418c-bc39-de9b61d8ce59/file                                                                                               
                                                                                                                                                                                                      |</span></p>

<p><span style="font-family:'courier new'">| id               |
1024317b-0db6-418c-bc39-de9b61d8ce59                                                                                                                                                                                                                                                             
                                                        |</span></p>

<p><span style="font-family:'courier new'">| min_disk         | 0                                                                                                                                                                              
                                                                                                                                                                          |</span></p>

<p><span style="font-family:'courier new'">| min_ram          | 0                                                            
                                                                                                                                                                                                                                                                                            |</span></p>

<p><span style="font-family:'courier new'">| name             | Ubuntu2004-Official                                                                                                                                                                                        
                                                                                                                                              |</span></p>

<p><span style="font-family:'courier new'">| owner            |
890eb2b7d1b8488aa88de7c34d08817a                                                         
                                                                                                                                                                                                                                                                |</span></p>

<p><span style="font-family:'courier new'">| properties       | os_distro='ubuntu20.04',
os_hash_algo='sha512',
os_hash_value='e8c8eb68bfca0aa3f165750d7b913f51cf7ded73e6f51f4c59d08b8788ad4e570f04e92318fd52ffea396ee55e2771d3def475c5b52992c6b43eb591d2a288e2',
os_hidden='False', owner_specified.openstack.md5='',
owner_specified.openstack.object='images/Ubuntu2004-Official',
owner_specified.openstack.sha256='' |</span></p>

<p><span style="font-family:'courier new'">| protected        | False                                                                                                                
                                                                                                                                                                                                                                    |</span></p>

<p><span style="font-family:'courier new'">| schema           | /v2/schemas/image                                                                                                                                                                                                                                                  
                                                                                      |</span></p>

<p><span style="font-family:'courier new'">| size             | 547815424                                                                                                                                        
                                                                                                                                                                                                        |</span></p>

<p><span style="font-family:'courier new'">| status           | active                                                                                                                                                                                                                                                                                                                                                    |</span></p>

<p><span style="font-family:'courier new'">| tags             |                                                                                                                                                                              
                                                                                                                                                                            |</span></p>

<p><span style="font-family:'courier new'">| updated_at       | 2021-02-09T06:29:57Z                                                                                                                                                                                                                                                                                                                                      |</span></p>

<p><span style="font-family:'courier new'">|
virtual_size     | 2361393152                                                                                                                                                                                               
                                                                                                                                                |</span></p>

<p><span style="font-family:'courier new'">| visibility       | public                                                                                 
                                                                                                                                                                                                                                                                  | Look like horizon is prefering __DEFAULT__
storage type while creating an instance from cinder backed volume.  </span></p></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 18 Feb 2021, 18:47 Rajat Dhasmana, <<a href="mailto:rdhasman@redhat.com" target="_blank" rel="noreferrer">rdhasman@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi Malik,</div><div><br></div><div>I would like to know which openstack release is used.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 18, 2021 at 4:41 PM Malik Obaid <<a href="mailto:malikobaidadil@gmail.com" rel="noreferrer noreferrer" target="_blank">malikobaidadil@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><p style="box-sizing:border-box;margin:0.5em 0px 0px;font-size:13.5px;line-height:1.6em;white-space:pre-wrap;width:1024px;word-break:break-word;color:rgb(61,60,64);font-family:"Open Sans",sans-serif">Hi,</p><p style="box-sizing:border-box;margin:0.5em 0px 0px;font-size:13.5px;line-height:1.6em;white-space:pre-wrap;width:1024px;word-break:break-word;color:rgb(61,60,64);font-family:"Open Sans",sans-serif">I am creating nova instance with cinder backed iscsi storage. I have created multiple storage types. But my launched instance from image use storage type __<span style="box-sizing:border-box;font-weight:600">DEFAULT__</span> for flavor's root volume.</p></div></blockquote><div><br></div><div>Is the instance launched via horizon or CLI and if CLI which command is used?<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><p style="box-sizing:border-box;margin:0.5em 0px 0px;font-size:13.5px;line-height:1.6em;white-space:pre-wrap;width:1024px;word-break:break-word;color:rgb(61,60,64);font-family:"Open Sans",sans-serif">I have changed default_volume_type to mystoragetype in cinder.conf but instances root volume still goes in __<span style="box-sizing:border-box;font-weight:600">DEFAULT__</span> storage type. </p></div></blockquote><div><br></div><div>This should not happen since default_volume_type has a higher preference than the __DEFAULT__ type<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><p style="box-sizing:border-box;margin:0.5em 0px 0px;font-size:13.5px;line-height:1.6em;white-space:pre-wrap;width:1024px;word-break:break-word;color:rgb(61,60,64);font-family:"Open Sans",sans-serif">However new volume creation in mystoragetype is successful.</p><p style="box-sizing:border-box;margin:0.5em 0px 0px;font-size:13.5px;line-height:1.6em;white-space:pre-wrap;width:1024px;word-break:break-word;color:rgb(61,60,64);font-family:"Open Sans",sans-serif">Need help, how can I set instance root volume storage type during its deployment ?</p></div></blockquote><div><br></div><div>My guess is that the image used has ``<b>cinder_img_volume_type</b>`` property set to __DEFAULT__ else there is no way cinder prefers __DEFAULT__ type over any other in this case.<br></div><div>Also if you're using victoria release and no volume is using the __DEFAULT__ type then you can delete it as well.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><p style="box-sizing:border-box;margin:0.5em 0px 0px;font-size:13.5px;line-height:1.6em;white-space:pre-wrap;width:1024px;word-break:break-word;color:rgb(61,60,64);font-family:"Open Sans",sans-serif">Regards,</p><p style="box-sizing:border-box;margin:0.5em 0px 0px;font-size:13.5px;line-height:1.6em;white-space:pre-wrap;width:1024px;word-break:break-word;color:rgb(61,60,64);font-family:"Open Sans",sans-serif">Malik Obaid</p></div>
</blockquote></div></div>
</blockquote></div>