Devstack - Can't create instances?

asked 2016-06-30 10:18:28 -0500

omarmtz gravatar image

Hi, I installed Openstack on Centos 7 using Devstack. When I try create an instance from console, the dashboard shows "No valid host was found. there are not enough hosts available". How can I solve this problem.

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2016-06-30 10:29:57 -0500

jckreddy gravatar image
Can you please give more info about failures .

is nova service-list showing services up and running ?
is neutron  agent-list showing services up and running ?

can you paste /var/log/nova/nova-compute.log error 

also please  give nova.conf for debug
edit flag offensive delete link more
0

answered 2016-06-30 10:41:20 -0500

omarmtz gravatar image

updated 2016-06-30 10:44:49 -0500

The services are Up and running /etc/nova/nova.conf :

lat_interface = eth0

flat_network_bridge = br100

vlan_interface = eth0

public_interface = br100

network_manager = nova.network.manager.FlatDHCPManager

firewall_driver = nova.virt.libvirt.firewall.IptablesFirewallDriver

compute_driver = libvirt.LibvirtDriver

default_ephemeral_format = ext4

dhcpbridge_flagfile = /etc/nova/nova-dhcpbridge.conf

graceful_shutdown_timeout = 5

metadata_workers = 2

osapi_compute_workers = 2

transport_url = rabbit://stackrabbit:dvKcTJ8vJmwG@149.56.3.33:5672/

logging_exception_prefix = %(color)s%(asctime)s.%(msecs)03d TRACE %(name)s %(instance)s

logging_debug_format_suffix = from (pid=%(process)d) %(funcName)s %(pathname)s:%(lineno)d

logging_default_format_string = %(asctime)s.%(msecs)03d %(color)s%(levelname)s %(name)s [-%(color)s] % (instance)s%(color)s%(message)s logging_context_format_string = %(asctime)s.%(msecs)03d %(color)s%(levelname)s %(name)s [%(request_id)s % (user_name)s %(project_name)s%(color)s] %(instance)s%(color)s%(message)s

force_config_drive = True

instances_path = /opt/stack/data/nova/instances

state_path = /opt/stack/data/nova

enabled_apis = osapi_compute,metadata

bindir = /usr/bin

s3_listen = 0.0.0.0

metadata_listen = 0.0.0.0

osapi_compute_listen = 0.0.0.0

instance_name_template = instance-%08x

my_ip = 149.56.3.33

s3_port = 3333

s3_host = 149.56.3.33

default_floating_pool = public

force_dhcp_release = True

scheduler_default_filters = RetryFilter,AvailabilityZoneFilter,RamFilter,DiskFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,ServerGroupAntiAffinityFilter,ServerGroupAffinityFilter,SameHostFilter,DifferentHostFilter

scheduler_driver = filter_scheduler

rootwrap_config = /etc/nova/rootwrap.conf

allow_resize_to_same_host = True

debug = True

[wsgi] api_paste_config = /etc/nova/api-paste.ini

[database] connection = mysql+pymysql://root:dvKcTJ8vJmwG@127.0.0.1/nova?charset=utf8

[api_database] connection = mysql+pymysql://root:dvKcTJ8vJmwG@127.0.0.1/nova_api?charset=utf8

[privsep_osbrick] helper_command = sudo nova-rootwrap $rootwrap_config privsep-helper --config-file /etc/nova/nova.conf

[vif_plug_ovs_privileged] helper_command = sudo nova-rootwrap $rootwrap_config privsep-helper --config-file /etc/nova/nova.conf

[vif_plug_linux_bridge_privileged] helper_command = sudo nova-rootwrap $rootwrap_config privsep-helper --config-file /etc/nova/nova.conf

[keystone_authtoken]

memcached_servers = 149.56.3.33:11211

signing_dir = /var/cache/nova

cafile = /opt/stack/data/ca-bundle.pem

auth_uri = http://149.56.3.33/identity

project_domain_name = Default

project_name = service

user_domain_name = Default

password = dvKcTJ8vJmwG

username = nova

auth_url = http://149.56.3.33/identity_v2_admin

auth_type = password

[oslo_concurrency]

lock_path = /opt/stack/data/nova

[vnc] xvpvncproxy_host = 0.0.0.0

novncproxy_host = 0.0.0.0

vncserver_proxyclient_address = 127.0.0.1

vncserver_listen = 127.0.0.1

enabled = true

xvpvncproxy_base_url = http://149.56.3.33:6081/console

novncproxy_base_url = http://149.56.3.33:6080/vnc_auto.html

[spice] enabled = false

html5proxy_base_url = http://149.56.3.33:6082/spice_auto.html

[glance] api_servers = http://149.56.3.33:9292

[conductor] workers = 2

[cinder] os_region_name = RegionOne

[libvirt] inject_partition = -2 live_migration_uri = qemu+ssh://opn@%s/system use_usb_tablet = False cpu_mode = none virt_type = qemu

[key_manager] fixed_key = ff01a6c64f7f5d4b6693f6ffacd7473a9aa2895983bbe8611d1dd854ce0e4a3e

edit flag offensive delete link more
0

answered 2016-07-04 19:16:02 -0500

Did you check nova service or nova agent list? ($ nova service-list)

If the result is good, you check nova hypervisor. ($ nova hypervisor-show)

If the result is good, you check network. (you check physical network and nova configuration file)

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2016-06-30 10:18:28 -0500

Seen: 642 times

Last updated: Jul 04 '16