nova boot error failed to allocate the networks not scheduling

asked 2016-05-05 20:12:39 -0500

rushi gravatar image

hi I installed openstack kilo on suse 12 SP0 with flat network. All services running, nova, neutron, glance, cinder (local disk) and cirros image available. From nuetron i have dhcp iP is listen from my network where i can reach the port: qdhcp ip and all looks good but when i spin up cirros image from nova, i get this error.

Fyi, I use KVM and cofigured on NOVA.

--------error------

message": "Build of instance 2309bbb3-25c2-496a-9eeb-3ab7deb208b3 aborted: Failed to allocate the network(s), not rescheduling.", "code": 500, "details": " File \"/usr/lib/python2.7/site-packages/nova/compute/manager.py\", line 2248, in _do_build_and_run_instance

i found lot of related to this error, however they are not very clear. could some one thorugh any information how to fix this.

here are attached nova.conf nuetron.conf ,

------------nova.conf---- [DEFAULT] verbose = True log_dir = /var/log/nova connection_type = libvirt compute_driver = libvirt.LibvirtDriver image_service = nova.image.glance.GlanceImageService volume_api_class = nova.volume.cinder.API auth_strategy = keystone network_api_class = nova.network.neutronv2.api.API bindir = /usr/local/bin state_path = /var/lib/nova lock_path = /var/run/nova service_neutron_metadata_proxy = True security_group_api = neutron rabbit_host = 10.76.8.95 rabbit_userid = osrabbit rabbit_password = openstack_rabbit notification_driver = nova.openstack.common.notifier.rpc_notifier, ceilometer.compute.nova_notifier my_ip = 10.76.8.95 host = ld7035 notify_on_state_change = vm_and_task_state instance_usage_audit_period = hour enable_network_quota = True use_neutron_default_nets = True instance_usage_audit = True resume_guests_state_on_host_boot = True s3_host = $my_ip linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver network_size = 256 debug = False log_file = nova.log cinder_catalog_info = volumev2:cinderv2:internalURL firewall_driver = nova.virt.firewall.NoopFirewallDriver novncproxy_base_url = http://10.76.8.95:6080/vnc_auto.html vncserver_listen = 127.0.0.1 vncserver_proxyclient_address = 127.0.0.1 vnc_enabled = true volume_manager = cinder.volume.manager.VolumeManager [neutron] admin_username = neutron s3_host = $my_ip linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver network_size = 256 debug = False log_file = nova.log cinder_catalog_info = volumev2:cinderv2:internalURL firewall_driver = nova.virt.firewall.NoopFirewallDriver novncproxy_base_url = http://10.76.8.95:6080/vnc_auto.html vncserver_listen = 127.0.0.1 vncserver_proxyclient_address = 127.0.0.1 vnc_enabled = true volume_manager = cinder.volume.manager.VolumeManager

[neutron] admin_username = neutron admin_password = openstack_neutron admin_tenant_name = service admin_auth_url = http://localhost:5000/v2.0 auth_strategy = keystone metadata_proxy_shared_secret = metadata_secret url = http://10.76.8.95:9696 ovs_bridge = br-int

[database] connection = mysql://nova:openstack_nova@localhost/nova?unix_socket=/var/run/mysql/mysql.sock

[keystone_authtoken] signing_dir = /var/cache/nova/keystone-signing admin_tenant_name = service admin_user = nova admin_password = openstack_nova

[conductor] use_local = true

[libvirt] virt_type = kvm kvmvif_driver = nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver

[osapi_v3]

enabled = true

-----------nuetron.conf------- [DEFAULT] verbose = True core_plugin = neutron.plugins.ml2.plugin.Ml2Plugin service_plugins = neutron.services.l3_router.l3_router_plugin.L3RouterPlugin state_path = /var/lib/neutron log_dir = /var/log/neutron lock_path = /var/run/neutron allow_overlapping_ips = True force_gateway_on_subnet = False rabbit_host = 10.76.8.95 rabbit_userid = osrabbit rabbit_password = openstack_rabbit notification_driver = neutron.openstack.common.notifier.rpc_notifier router_distributed = False agent_down_time = 60 notify_nova_on_port_status_changes = True notify_nova_on_port_data_changes = True nova_url = http://10.76.8.95:8774/v2 nova_admin_username = nova nova_admin_tenant_id = d0c7d6b7ac974444ae0a3af87298ba74 nova_admin_password = openstack_nova nova_admin_auth_url = http://10.76.8.95:35357/v2.0/

# Print more verbose output (set logging level to INFO instead of default WARNING level).

edit retag flag offensive close merge delete

Comments

Lets try to drill down to the exact problem, it will suggest to create a port using the command "neutron --debug port-create external_network", assuming that you are spawning instances on the external network.

DarkKnight gravatar imageDarkKnight ( 2016-05-06 01:00:13 -0500 )edit

Then try to create an instance using the nova boot command using the same port and see if instance fails or gets created. nova boot --image <image-id> --flavor <name> --nic port-id=<port-id> InstanceName

DarkKnight gravatar imageDarkKnight ( 2016-05-06 01:07:41 -0500 )edit

Hi Dark

I tried your commands "neutron --debug port-create puand i was able to create port and launch instance from cirrors image with the port it was created before , but i want i notice that port assigned a DHCP IP: 10.76.8.107 is not pinging which i am thinking could be a issue.

BR RUshi

rushi gravatar imagerushi ( 2016-05-10 13:54:46 -0500 )edit

i get this error in neutron-server.log "35193 WARNING keystonemiddleware.auth_token [-] Identity response: {"error": {"message": "Could not find token: c3584970afc44c02ba12e6cdb5afde60", "code": 404, "title": "Not Found"}}" do you have any clue where this is error.

rushi gravatar imagerushi ( 2016-05-10 14:05:18 -0500 )edit