简体   繁体   中英

can not create instance in a new compute node openstack-ansible?

when I add a new compute node to OpenStack-ansible everything seems ok but any instance can't create on it

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. 2019-09-02 07:33:22.273 192 WARNING nova.scheduler.utils [req-f85f9433-9585-407d-902a-108e90d8aa7a 4831a71d258444ffb7a51491f45dfe05 4e537668e9eb44639c1075f6013e367d - default default] [instance: 56160be3-4f0c-48b2-bd24-0c2ac2331372] Setting instance to ERROR state.: NoValidHost_Remote: No valid host was found. There are not enough hosts available.

You may need to run nova-manage to map the new host to the cell.

nova-manage cell_v2 discover_hosts --verbose

Not a hundred percent sure on how to do this with openstack-ansible, but basically you need to execute this .

If you are unsure, make sure you ran these .

# cd /opt/openstack-ansible/playbooks
# openstack-ansible setup-hosts.yml --limit localhost,NEW_HOST_NAME
# ansible nova_all -m setup -a 'filter=ansible_local gather_subset="!all"'
# openstack-ansible setup-openstack.yml --limit localhost,NEW_HOST_NAME

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM