No valid host was found.

asked 2019-04-02 05:20:56 -0500

Bakyt gravatar image

When ever I try to launch an instance it shows no valid host was found.Could you please, help to resolve this issue?

from nova-compute.log it says total allocated vcpus=0 or it just info log indicating that no instance launched.I dont understand this log and others as well

2019-04-02 12:08:26.616 2132 INFO nova.compute.resource_tracker [req-d8f3c0e3-fa06-4d04-92e9-1455bfd7bc8d - - - - -] Compute_service record updated for compute1:compute1 2019-04-02 12:09:27.495 2132 INFO nova.compute.resource_tracker [req-d8f3c0e3-fa06-4d04-92e9-1455bfd7bc8d - - - - -] Auditing locally available compute resources for node compute1 2019-04-02 12:09:27.587 2132 INFO nova.compute.resource_tracker [req-d8f3c0e3-fa06-4d04-92e9-1455bfd7bc8d - - - - -] Total usable vcpus: 3, total allocated vcpus: 0 2019-04-02 12:09:27.588 2132 INFO nova.compute.resource_tracker [req-d8f3c0e3-fa06-4d04-92e9-1455bfd7bc8d - - - - -] Final resource view: name=compute1 phys_ram=5919MB used_ram=512MB phys_disk=47GB used_disk=0GB total_vcpus=3 used_vcpus=0 pci

root@controller:~# openstack compute service list +----+------------------+------------+----------+---------+-------+----------------------------+ | ID | Binary | Host | Zone | Status | State | Updated At | +----+------------------+------------+----------+---------+-------+----------------------------+ | 1 | nova-scheduler | controller | internal | enabled | up | 2019-04-02T10:03:16.000000 | | 5 | nova-consoleauth | controller | internal | enabled | up | 2019-04-02T10:03:16.000000 | | 6 | nova-conductor | controller | internal | enabled | up | 2019-04-02T10:03:15.000000 | | 8 | nova-compute | compute1 | nova | enabled | up | 2019-04-02T10:03:15.000000 | +----+------------------+------------+----------+---------+-------+----------------------------+

root@controller:~# openstack network agent list +--------------------------------------+--------------------+------------+-------------------+-------+-------+---------------------------+ | ID | Agent Type | Host | Availability Zone | Alive | State | Binary | +--------------------------------------+--------------------+------------+-------------------+-------+-------+---------------------------+ | 1eea37b4-7d8f-4c3d-99dd-d99535fed931 | Linux bridge agent | compute1 | None | :-) | UP | neutron-linuxbridge-agent | | 23c07fed-83ef-48af-9d9a-0f9d5396e1de | Metadata agent | controller | None | :-) | UP | neutron-metadata-agent | | 473be661-d3b9-4888-9dd6-a0da4045aea2 | Linux bridge agent | controller | None | :-) | UP | neutron-linuxbridge-agent | | 7193f0da-693c-444f-a5a3-90ed5bca4c6a | L3 agent | controller | nova | :-) | UP | neutron-l3-agent | | e882fe7b-7852-48b1-a307-e5b803d1d77f | DHCP agent | controller | nova | :-) | UP | neutron-dhcp-agent | +--------------------------------------+--------------------+------------+-------------------+-------+-------+---------------------------+

root@controller:~# openstack hypervisor list +----+---------------------+-----------------+-------------+-------+ | ID | Hypervisor Hostname | Hypervisor Type | Host IP | State | +----+---------------------+-----------------+-------------+-------+ | 1 | compute1 | QEMU | 10.10.10.53 | up | +----+---------------------+-----------------+-------------+-------+

root@controller:~# grep -v -e "^#" -e "^$" /etc/nova/nova.conf [DEFAULT] my_ip = 10.10.10.51 use_neutron = true firewall_driver = nova.virt.firewall.NoopFirewallDriver transport_url = rabbit://openstack:stack@controller lock_path = /var/lock/nova state_path = /var/lib/nova [api] auth_strategy = keystone [api_database] connection = mysql+pymysql://nova:stack@controller/nova_api [barbican] [cache] [cells] enable = False [cinder] [compute] [conductor] [console] [consoleauth] [cors] [crypto] [database] connection = mysql+pymysql://nova:stack@controller/nova [devices] [ephemeral_storage_encryption] [filter_scheduler] [glance] api_servers = http://controller:9292 [guestfs] [healthcheck] [hyperv] [ironic] [key_manager] [keystone] [placement_database] connection = mysql+pymysql://placement:stack@controller/placement [keystone_authtoken] auth_url = http://controller:5000/v3 memcached_servers = controller:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = service username = nova password = stack [libvirt] [matchmaker_redis] [metrics] [mks] [neutron] url = http://controller:9696 auth_url = http://controller:5000 auth_type = password project_domain_name = default user_domain_name = default region_name = RegionOne project_name = service username = neutron password = stack service_metadata_proxy = true metadata_proxy_shared_secret = stack [notifications] [osapi_v21] [oslo_concurrency] lock_path = /var/lib/nova/tmp [oslo_messaging_amqp] [oslo_messaging_kafka] [oslo_messaging_notifications] [oslo_messaging_rabbit] [oslo_messaging_zmq] [oslo_middleware] [oslo_policy] [pci] [placement] region_name = RegionOne project_domain_name = Default project_name = service auth_type = password user_domain_name = Default auth_url = http://controller:5000/v3 username = placement password = stack [quota] [rdp] [remote_debug] [scheduler] discover_hosts_in_cells_interval = 300 [serial_console] [service_user] [spice] [upgrade_levels] [vault] [vendordata_dynamic_auth] [vmware] [vnc] enabled = true server_listen = $my_ip server_proxyclient_address = $my_ip [workarounds] [wsgi] [xenserver] [xvp]

root@controller:~# grep -v -e "^#" -e "^$" /etc/neutron/neutron.conf [DEFAULT] core_plugin = ml2 service_plugins = router allow_overlapping_ips = true transport_url = rabbit://openstack:stack@controller auth_strategy = keystone notify_nova_on_port_status_changes = true notify_nova_on_port_data_changes = true [agent] root_helper = "sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap ... (more)

edit retag flag offensive close merge delete