Read more

[Openstack] "Failed to schedule_prep_resize: No valid host was found." when trying to resize an instance

Kim Klotz
January 30, 2014Software engineer at makandra GmbH

If you get this error while trying to resize an openstack instance:

# nova resize fooinstance 16 --poll

==> /var/log/nova/nova-scheduler.log <==
2014-01-30 17:40:34 WARNING nova.scheduler.manager [req-aaaaaaa-bbbb-cccc-dddd-1ed34b64adef bajd7394hftgs71dba31d642342effa0f bfe2djhg6538sg384jgb82ks070ce0b] Failed to schedule_prep_resize: No valid host was found. 
2014-01-30 17:40:34 WARNING nova.scheduler.manager [req-aaaaaaa-bbbb-cccc-dddd-1ed34b64adef bajd7394hftgs71dba31d642342effa0f bfe2djhg6538sg384jgb82ks070ce0b] Setting instance aaaaaaaa-uuuu-dddd-bbbb-esdfg63asdfb to ACTIVE state.
Illustration UI/UX Design

UI/UX Design by makandra brand

We make sure that your target audience has the best possible experience with your digital product. You get:

  • Design tailored to your audience
  • Proven processes customized to your needs
  • An expert team of experienced designers
Read more Show archive.org snapshot

You have to set

--allow_resize_to_same_host=true

in /etc/nova/nova.conf and /etc/nova/nova-compute.conf and after that you need to restart the nova-compute and nova-api daemon.

Posted by Kim Klotz to makandra dev (2014-01-30 18:06)