<div dir="ltr"><div>Hello people,</div><div><br></div><div>After setting up an Ocata cloud and spinning up a few instances in it all of them using local storage I noticed I wasn't able to create more than a handfull of instances all thought the cloud had much more capacity.</div><div><br></div><div>After some debugging I noticed the compute node reporting more disk space as used than actual disk space available, which caused an Exception in the nova api service:</div><div><br></div><div><br></div><div>Controller:</div><br><div><div>2017-03-08 14:48:53.271 26649 ERROR nova.api.openstack.placement.<wbr>handlers.allocation [req-ea35f8ee-b5fc-4502-8b5e-<wbr>8400e7a275b7 - - - - -] Bad inventory</div><div>2017-03-08 14:48:53.271 26649 ERROR nova.api.openstack.placement.<wbr>handlers.allocation Traceback (most recent call last):</div><div>2017-03-08 14:48:53.271 26649 ERROR nova.api.openstack.placement.<wbr>handlers.allocation   File "/usr/lib/python2.7/site-<wbr>packages/nova/api/openstack/<wbr>placement/handlers/allocation.<wbr>py", line 254, in set_allocations</div><div>2017-03-08 14:48:53.271 26649 ERROR nova.api.openstack.placement.<wbr>handlers.allocation     allocations.create_all()</div><div>2017-03-08 14:48:53.271 26649 ERROR nova.api.openstack.placement.<wbr>handlers.allocation   File "/usr/lib/python2.7/site-<wbr>packages/nova/objects/<wbr>resource_provider.py", line 1184, in create_all</div><div>2017-03-08 14:48:53.271 26649 ERROR nova.api.openstack.placement.<wbr>handlers.allocation     self._set_allocations(self._<wbr>context, self.objects)</div><div>2017-03-08 14:48:53.271 26649 ERROR nova.api.openstack.placement.<wbr>handlers.allocation   File "/usr/lib/python2.7/site-<wbr>packages/oslo_db/sqlalchemy/<wbr>enginefacade.py", line 894, in wrapper</div><div>2017-03-08 14:48:53.271 26649 ERROR nova.api.openstack.placement.<wbr>handlers.allocation     return fn(*args, **kwargs)</div><div>2017-03-08 14:48:53.271 26649 ERROR nova.api.openstack.placement.<wbr>handlers.allocation   File "/usr/lib/python2.7/site-<wbr>packages/nova/objects/<wbr>resource_provider.py", line 1146, in _set_allocations</div><div>2017-03-08 14:48:53.271 26649 ERROR nova.api.openstack.placement.<wbr>handlers.allocation     before_gens = _check_capacity_exceeded(conn, allocs)</div><div>2017-03-08 14:48:53.271 26649 ERROR nova.api.openstack.placement.<wbr>handlers.allocation   File "/usr/lib/python2.7/site-<wbr>packages/nova/objects/<wbr>resource_provider.py", line 1074, in _check_capacity_exceeded</div><div>2017-03-08 14:48:53.271 26649 ERROR nova.api.openstack.placement.<wbr>handlers.allocation     resource_provider=rp_uuid)</div><div>2017-03-08 14:48:53.271 26649 ERROR nova.api.openstack.placement.<wbr>handlers.allocation InvalidAllocationCapacityExcee<wbr>ded: Unable to create allocation for 'DISK_GB' on resource provider '19315d4c-3834-4835-90b1-<wbr>a70639f44f9b'. The requested amount would exceed the capacity.</div></div><div><br></div><div><br></div><div>Compute:</div><div>2017-03-08 14:43:47.209 3386 INFO nova.compute.resource_tracker [req-1486e04b-7548-4b17-b095-<wbr>b5b08768ba67 - - - - -] Final resource view: name=redacted_hostname phys_ram=12287MB used_ram=6656MB phys_disk=48GB used_disk=60GB total_vcpus=4 used_vcpus=3 pci_stats=[]<br></div><div><br></div><div>The underlying issue (more disk space reported than available) seems to not be new, people already asked about it back in '14[1] which is why I didn't create a bugzilla but asking here.</div><div><br></div><div>I assume this is caused by nova counting the virtual disk size of all instances on that host as 'used_disk'. This in turn means it is not possible to overprovision local storage. Is there a configuration setting or a workaround for this?</div><div><br></div><div><br></div><div>BR</div><div>Alvaro Aleman</div><div><br></div><div><br></div><div>[1] <a href="https://ask.openstack.org/en/question/32919/hypervisor-summary-confused/" target="_blank">https://ask.openstack.org/en/<wbr>question/32919/hypervisor-<wbr>summary-confused/</a></div></div>