Ask Your Question
0

Host compute1 has more disk space than database expected (73 GB > 14 GB)

asked 2016-11-22 12:38:48 -0600

cristhiannunez gravatar image

updated 2016-11-22 12:49:23 -0600

Hi again,

Im running Openstack mitaka on Centos 7 and after create 3 VMs, im getting errors and not allowed to continue creating VMs.

==> /var/log/nova/nova-scheduler.log <== 2016-11-22 14:19:10.040 1069 WARNING nova.scheduler.host_manager [req-8b3201ed-1665-4023-be44-396f6331749b 977b91bab27c437d885803b996433aea 382ad74c17064977a6d529182da88091 - - -] Host compute1 has more disk space than database expected (73 GB > 14 GB) 2016-11-22 14:19:10.041 1069 INFO nova.filters [req-8b3201ed-1665-4023-be44-396f6331749b 977b91bab27c437d885803b996433aea 382ad74c17064977a6d529182da88091 - - -] Filter DiskFilter returned 0 hosts 2016-11-22 14:19:10.042 1069 INFO nova.filters [req-8b3201ed-1665-4023-be44-396f6331749b 977b91bab27c437d885803b996433aea 382ad74c17064977a6d529182da88091 - - -] Filtering removed all hosts for the request with instance ID 'a5c3ec06-5f02-47b1-86fb-5d0e70025f17'. Filter results: ['RetryFilter: (start: 2, end: 2)', 'AvailabilityZoneFilter: (start: 2, end: 2)', 'RamFilter: (start: 2, end: 2)', 'DiskFilter: (start: 2, end: 0)']

==> /var/log/nova/nova-conductor.log <== 2016-11-22 14:19:10.045 2829 WARNING nova.scheduler.utils [req-8b3201ed-1665-4023-be44-396f6331749b 977b91bab27c437d885803b996433aea 382ad74c17064977a6d529182da88091 - - -] Failed to compute_task_build_instances: No valid host was found. There are not enough hosts available. Traceback (most recent call last):

File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 199, in inner return func(args, *kwargs)

File "/usr/lib/python2.7/site-packages/nova/scheduler/manager.py", line 104, in select_destinations dests = self.driver.select_destinations(ctxt, spec_obj)

File "/usr/lib/python2.7/site-packages/nova/scheduler/filter_scheduler.py", line 74, in select_destinations raise exception.NoValidHost(reason=reason)

NoValidHost: No valid host was found. There are not enough hosts available.

2016-11-22 14:19:10.046 2829 WARNING nova.scheduler.utils [req-8b3201ed-1665-4023-be44-396f6331749b 977b91bab27c437d885803b996433aea 382ad74c17064977a6d529182da88091 - - -] [instance: a5c3ec06-5f02-47b1-86fb-5d0e70025f17] Setting instance to ERROR state.

I would appreciate your help.

Thanks in advance

edit retag flag offensive close merge delete

Comments

The disk filter rejected both compute hosts. When you enable debug logging, it will tell you why. I would say that the instance requires too much disk space.

Bernd Bausch gravatar imageBernd Bausch ( 2016-11-22 19:02:58 -0600 )edit

The warning message about more disk space than expected indicates that the scheduler considers compute1 to only have 14GB. Investigate the actual disk space other instances on compute1 use, and the disk space Nova thinks they use.

Bernd Bausch gravatar imageBernd Bausch ( 2016-11-22 19:08:12 -0600 )edit

Thanks for reply. I have 2 computes with 22tb running as storage too. I think they are using only local disks because the volumes installed have the same size. Aparently, they are using local disks only. How can i fix that?.

cristhiannunez gravatar imagecristhiannunez ( 2016-11-23 06:49:33 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-11-23 08:34:09 -0600

cristhiannunez gravatar image

Hi,

Here is my solution for future references. When i got this error, specifically this one -> Failed to compute_task_build_instances: No valid host was found, in my case, when i try to create a VMs, they try to get disks spaces from local disks and thats the reason because got that error. As i have cinder volumes too, i edited default flavors and set "Root Disk" option to 0GB and my instance will use only the volumes.

I hope this help.

edit flag offensive delete link more

Comments

Yup, that helped me. Have a Ceph back-end. After setting the Root disk to zero I was able to work normally.

RFreire gravatar imageRFreire ( 2018-09-14 18:45:44 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-11-22 12:38:48 -0600

Seen: 1,389 times

Last updated: Nov 23 '16