<div dir="ltr">Bummer :(<div><br></div><div>We have a couple of use cases where I would like this to be transparent and things to automagically-unicorn and rainbows ;)  Thanks for the insight Radoslaw!</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Apr 3, 2022 at 8:12 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 12:46, Laurent Dumont <<a href="mailto:laurentfdumont@gmail.com" target="_blank">laurentfdumont@gmail.com</a>> wrote:<br>
><br>
> Got it!<br>
><br>
> 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>
<br>
I meant the filesystem quota.<br>
And yes, this affects config drives.<br>
Unfortunately, the error message from nova might be confusing.<br>
<br>
> Just to be clear on the behavior, this means that boot-from-image requests would fail?<br>
><br>
> 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.<br>
><br>
> I assume, from what I now know, that there is no mechanism to default/transform a request to BFV.<br>
><br>
> # A negative number means unlimited. Setting max_local_block_devices<br>
> # to 0 means that any request that attempts to create a local disk<br>
> # will fail. This option is meant to limit the number of local discs<br>
> # (so root local disc that is the result of --image being used, and<br>
> # any other ephemeral and swap disks). 0 does not mean that images<br>
> # will be automatically converted to volumes and boot instances from<br>
> # volumes - it just means that all requests that attempt to create a<br>
> # local disk will fail.<br>
> #<br>
> # Possible values:<br>
> #<br>
> # * 0: Creating a local disk is not allowed.<br>
> # * Negative number: Allows unlimited number of local discs.<br>
> # * Positive number: Allows only these many number of local discs.<br>
> #                        (Default value is 3).<br>
> #  (integer value)<br>
> #max_local_block_devices = 3<br>
<br>
It seems this is actually the best approach (the error message now<br>
makes sense). Also confirmed by the faq -<br>
<a href="https://opendev.org/openstack/nova/src/commit/b0851b0e9c82446aec2ea0317514766fbc53abc0/doc/source/user/block-device-mapping.rst#faqs" rel="noreferrer" target="_blank">https://opendev.org/openstack/nova/src/commit/b0851b0e9c82446aec2ea0317514766fbc53abc0/doc/source/user/block-device-mapping.rst#faqs</a><br>
<br>
-yoctozepto<br>
</blockquote></div>