"no valid host found" when migrating

asked 2017-09-07 04:54:06 -0600

pacman gravatar image

hi

i have an openstack cloud runnung pike release on centos7. it has 5 identical compute nodes. i am able to spawn new instances without problems but when trying to migrate instances (cold migrate) i get following error:

[root@controller01 ~]# nova migrate e-1
ERROR (BadRequest): No valid host was found. No valid host found for cold migrate (HTTP 400) (Request-ID: req-b94b9aa1-f647-4ea0-af3f-80151bad231b)

there are no messages in scheduler log but some lines in conductor log:

2017-09-07 11:12:18.063 19264 DEBUG nova.conductor.tasks.migrate [req-5a76e692-f637-43d4-a5d9-f7685473d541 2c80438429c845138cc97e47d78733a8 767ad44cde3949ba9fbe2da5d75e948a - default default] [instance: f6bfd21c-8942-41d9-82c5-baa9b8bfffe8] Requesting cell 32d993fc-4209-40c7-8659-88e8ad0c449c(cell1) while migrating _execute /usr/lib/python2.7/site-packages/nova/conductor/tasks/migrate.py:58
2017-09-07 11:12:19.965 19264 WARNING nova.scheduler.utils [req-5a76e692-f637-43d4-a5d9-f7685473d541 2c80438429c845138cc97e47d78733a8 767ad44cde3949ba9fbe2da5d75e948a - default default] Failed to compute_task_migrate_server: 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 232, in inner
    return func(*args, **kwargs)

  File "/usr/lib/python2.7/site-packages/nova/scheduler/manager.py", line 149, in select_destinations
    alloc_reqs_by_rp_uuid, provider_summaries)

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

NoValidHost: No valid host was found. There are not enough hosts available.
: NoValidHost_Remote: 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 232, in inner
    return func(*args, **kwargs)

  File "/usr/lib/python2.7/site-packages/nova/scheduler/manager.py", line 149, in select_destinations
    alloc_reqs_by_rp_uuid, provider_summaries)

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

NoValidHost: No valid host was found. There are not enough hosts available.
2017-09-07 11:12:19.966 19264 WARNING nova.scheduler.utils [req-5a76e692-f637-43d4-a5d9-f7685473d541 2c80438429c845138cc97e47d78733a8 767ad44cde3949ba9fbe2da5d75e948a - default default] [instance: f6bfd21c-8942-41d9-82c5-baa9b8bfffe8] Setting instance to ACTIVE state.: NoValidHost_Remote: 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 232, in inner
    return func(*args, **kwargs)

  File "/usr/lib/python2.7/site-packages/nova/scheduler/manager.py", line 149, in select_destinations
    alloc_reqs_by_rp_uuid, provider_summaries)

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

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

i am stuck now since there are definitly enough ressources available and i am even able to spawn instances... any ideas?

edit retag flag offensive close merge delete

Comments

i just realized that it only happens for instances booted from cinder volumes - if i boot directly from an glance image migration works just fine

pacman gravatar imagepacman ( 2017-09-07 06:49:37 -0600 )edit