Ask Your Question
1

How is local_gb set?

asked 2016-10-24 03:12:12 -0500

randall.crook gravatar image

Just finished installing Newton on Centos 7.2 using the current RDO packstack.

I made sure there was plenty of space by setting up a cinder-volumes VG and all seemed to be ok until i tried to launch a third instance and I got the following error:

"Error: Failed to perform requested operation on instance "dii", the instance has an error status: Please try again later [Error: No valid host was found. There are not enough hosts available.]".

The messages I'm getting in the log are:

2016-10-23 23:32:50.290 1507 WARNING nova.scheduler.host_manager [req-7fff9103-75ac-4578-8c11-0957545b7295 f68c4ddce4b24061ababda71362b7324 4752b726f6e84141b386e8f0adacae13 - - -] Host anesidora has more disk space than database expected (130 GB > 19 GB)
2016-10-23 23:32:50.291 1507 INFO nova.filters [req-7fff9103-75ac-4578-8c11-0957545b7295 f68c4ddce4b24061ababda71362b7324 4752b726f6e84141b386e8f0adacae13 - - -] Filter DiskFilter returned 0 hosts
2016-10-23 23:32:50.292 1507 INFO nova.filters [req-7fff9103-75ac-4578-8c11-0957545b7295 f68c4ddce4b24061ababda71362b7324 4752b726f6e84141b386e8f0adacae13 - - -] Filtering removed all hosts for the request with instance ID '9d0e6a3e-1401-4f14-bdd1-219dd60315be'. Filter results: ['RetryFilter: (start: 1, end: 1)', 'AvailabilityZoneFilter: (start: 1, end: 1)', 'RamFilter: (start: 1, end: 1)', 'DiskFilter: (start: 1, end: 0)']

Of course there is plenty of disk pace on my cinder-volumes VG where the volumes are actually being created:

[root@anesidora nova]# vgs
  VG             #PV #LV #SN Attr   VSize   VFree
  centos           1   3   0 wz--n- 246.00g  15.86g
  cinder-volumes   1   2   0 wz--n- 684.82g 504.82g

And the volumes are being created on the cinder VG

  LV                                          VG             Attr       LSize   Pool   Origin Data%  Meta%  Move Log Cpy%Sync Convert
  pool00                                      centos         twi-aotz-- 140.00g               10.73  5.67
  root                                        centos         Vwi-aotz-- 140.00g pool00        10.73
  swap                                        centos         -wi-ao----  90.00g
  volume-75aa56f5-03e9-4d04-b7b7-147e44bb5abe cinder-volumes -wi-ao----  80.00g
  volume-eab6405f-3824-456d-bad4-aabfcca87d0d cinder-volumes -wi-ao---- 100.00g

From what Im seeing, the hypervisor local_gb has been set to the size of the pool00 and not to the size of the cinder-volumes VG. And I gather that as I add instances the local_used is increased based on the instance volume size and so it runs out fast as the local_gb is wrong for this install.

Can anyone help with how I can reset the local_gb to the actual size of the cinder-volumes VG?

Thanks in advance,

Randall.

edit retag flag offensive close merge delete

Comments

I have similar issue. I can create instances up to my free disk space on root volume instead of cinder-volumes volume. All-in-one RDO packstack installation.

symydo gravatar imagesymydo ( 2016-10-24 13:15:46 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-10-24 13:48:32 -0500

symydo gravatar image

Just found the answer. Add the following to your /etc/nova/nova.conf to the [libvirt] section:

images_type=lvm
images_volume_group=cinder-volumes

Then restart your nova service.

edit flag offensive delete link more

Comments

Worked like a charm... Thanks very much for the quick response.

Regards,

Randall.

randall.crook gravatar imagerandall.crook ( 2016-10-24 15:16:16 -0500 )edit

Hi,

Isn't working in my setup, I already add those parameter on [DEFAULT] nova.conf or [libvirt] nova-compute.conf and still have this issue. I ran ocata version on ubuntu xenial lts

Thank you

Davidshu gravatar imageDavidshu ( 2017-10-16 23:32:54 -0500 )edit

Hi,

I didn't use that options and the problem was caused by root disk size in my flavors. Now, all of my flavor use disk root size = 0 and everything work fine.

Davidshu gravatar imageDavidshu ( 2017-10-18 07:02:23 -0500 )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

2 followers

Stats

Asked: 2016-10-24 03:12:12 -0500

Seen: 841 times

Last updated: Oct 24 '16