<div dir="ltr">Got it!<div><br></div><div>By quota, do you mean reserved_host_disk_mb in nova.conf? I could make the /var/lib/nova/instances RO but I am not sure how that would impact config drive that are created locally (since I dont have ceph)<br><div><div><br></div><div>Just to be clear on the behavior, this means that boot-from-image requests would fail?</div><div><br></div><div>Looking at nova.conf, I can disable the number of local-disks supported, but this doesn't act as a behavior change when the requests are made.</div><div><br></div><div>I assume, from what I now know, that there is no mechanism to default/transform a request to BFV.</div><div><br></div><div><pre style="box-sizing:border-box;overflow:auto;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;padding:20px 30px;margin-top:0px;margin-bottom:10px;line-height:1.42857;color:rgb(255,255,255);word-break:break-all;background-color:rgb(51,51,51);border:1px solid rgb(204,204,204);border-radius:4px"><span class="gmail-c1" style="box-sizing:border-box;color:rgb(153,153,153);font-style:italic"># A negative number means unlimited. Setting max_local_block_devices</span>
<span class="gmail-c1" style="box-sizing:border-box;color:rgb(153,153,153);font-style:italic"># to 0 means that any request that attempts to create a local disk</span>
<span class="gmail-c1" style="box-sizing:border-box;color:rgb(153,153,153);font-style:italic"># will fail. This option is meant to limit the number of local discs</span>
<span class="gmail-c1" style="box-sizing:border-box;color:rgb(153,153,153);font-style:italic"># (so root local disc that is the result of --image being used, and</span>
<span class="gmail-c1" style="box-sizing:border-box;color:rgb(153,153,153);font-style:italic"># any other ephemeral and swap disks). 0 does not mean that images</span>
<span class="gmail-c1" style="box-sizing:border-box;color:rgb(153,153,153);font-style:italic"># will be automatically converted to volumes and boot instances from</span>
<span class="gmail-c1" style="box-sizing:border-box;color:rgb(153,153,153);font-style:italic"># volumes - it just means that all requests that attempt to create a</span>
<span class="gmail-c1" style="box-sizing:border-box;color:rgb(153,153,153);font-style:italic"># local disk will fail.</span>
<span class="gmail-c1" style="box-sizing:border-box;color:rgb(153,153,153);font-style:italic">#</span>
<span class="gmail-c1" style="box-sizing:border-box;color:rgb(153,153,153);font-style:italic"># Possible values:</span>
<span class="gmail-c1" style="box-sizing:border-box;color:rgb(153,153,153);font-style:italic">#</span>
<span class="gmail-c1" style="box-sizing:border-box;color:rgb(153,153,153);font-style:italic"># * 0: Creating a local disk is not allowed.</span>
<span class="gmail-c1" style="box-sizing:border-box;color:rgb(153,153,153);font-style:italic"># * Negative number: Allows unlimited number of local discs.</span>
<span class="gmail-c1" style="box-sizing:border-box;color:rgb(153,153,153);font-style:italic"># * Positive number: Allows only these many number of local discs.</span>
<span class="gmail-c1" style="box-sizing:border-box;color:rgb(153,153,153);font-style:italic">#                        (Default value is 3).</span>
<span class="gmail-c1" style="box-sizing:border-box;color:rgb(153,153,153);font-style:italic">#  (integer value)</span>
<span class="gmail-c1" style="box-sizing:border-box;color:rgb(153,153,153);font-style:italic">#max_local_block_devices = 3</span></pre></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Apr 3, 2022 at 5:54 AM Radosław Piliszek <<a href="mailto:radoslaw.piliszek@gmail.com">radoslaw.piliszek@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">On Sun, 3 Apr 2022 at 11:47, Radosław Piliszek<br>
<<a href="mailto:radoslaw.piliszek@gmail.com" target="_blank">radoslaw.piliszek@gmail.com</a>> wrote:<br>
><br>
> On Sat, 2 Apr 2022 at 16:00, Laurent Dumont <<a href="mailto:laurentfdumont@gmail.com" target="_blank">laurentfdumont@gmail.com</a>> wrote:<br>
> ><br>
> > Hey folks,<br>
><br>
> Hi Laurent,<br>
><br>
> > I am trying to see if there are any ways to instruct Openstack to prevent the usage of local storage/ephemeral disks.<br>
> ><br>
> > There are cases where :<br>
> ><br>
> > I don't want the added complexity of Ceph.<br>
> > I don't want the added hassle of using local volumes/nfs/shared storage on the computes directly.<br>
> ><br>
> > In an ideal world, creating a VM would mean that you always have a boot-from-volume with the volume being in your chosen backend.<br>
> ><br>
> > I've seen this spec : <a href="https://blueprints.launchpad.net/nova/+spec/flavor-root-disk-none" rel="noreferrer" target="_blank">https://blueprints.launchpad.net/nova/+spec/flavor-root-disk-none</a><br>
> ><br>
> > But it doesn't seem to have survived the Ocata cycle.<br>
> ><br>
> > Any thoughts?<br>
><br>
> You can set the root and ephemeral disk sizes to 0 which means the<br>
> flavor is not usable without a volume.<br>
<br>
Sorry, I somehow forgot to write the actual workaround.<br>
There should be this sentence in here:<br>
And then, make the nova's local disk store readonly / with a small quota.<br>
<br>
> This way you are forced to use Cinder and what it offers.<br>
><br>
> -yoctozepto<br>
</blockquote></div>