[openstack-dev] Nova boot fails with "Failed to allocate network" error
Sobhan Samantaray
sobhan_saman at yahoo.com
Sat Apr 25 09:08:30 UTC 2015
Hi all, I installed the devstack on f20 and when I tried to boot the cirros image trhough nova it is successful whereas when I try to boot any other bigger image(like fedora-20 cloud image/ubuntu_1204_nfs_cifs) through nova it always fails with the error "Failed to allocate network" as below. I tried manually installing the image(fedora20,ubuntu) using qemu tools and it worked fine. I tried it multiple times (running clean.sh,unstack.sh , removing the /opt/stack) but it always errors out.
I tried changing the vif_plugging parameters(vif_plugging_timeout=0) in nova.conf and notify_* parameters in neutron.conf but the problem didnot get resolved. Could anyone help me in this regard?
RegardsSobhan
Additional details:===============
local.conf file.
DATABASE_PASSWORD=test
RABBIT_PASSWORD=test
SERVICE_TOKEN=test
SERVICE_PASSWORD=test
ADMIN_PASSWORD=test
disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service neutronenable_plugin manila https://github.com/openstack/manila
With cirros image the nova boot works fine=================================
[stack@~]$ [demo]nova boot --flavor m1.small --image cirros-0.3.2-x86_64-uec --nic net-id=20dd0262-3153-4ef1-86b2-895f5c0b276b --key-name mykey --security-groups default cirros1
+--------------------------------------+----------------------------------------------------------------+
| Property | Value |
+--------------------------------------+----------------------------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | nova |
| OS-EXT-STS:power_state | 0 |
| OS-EXT-STS:task_state | scheduling |
| OS-EXT-STS:vm_state | building |
| OS-SRV-USG:launched_at | - |
| OS-SRV-USG:terminated_at | - |
| accessIPv4 | |
| accessIPv6 | |
| adminPass | cBemgbpw7FU2 |
| config_drive | |
| created | 2015-04-25T08:23:20Z |
| flavor | m1.small (2) |
| hostId | |
| id | 76462668-bb22-4bbd-84a0-c5d691fbe998 |
| image | cirros-0.3.2-x86_64-uec (661e4fc2-ccec-446c-9609-10750dee2063) |
| key_name | mykey |
| metadata | {} |
| name | cirros1 |
| os-extended-volumes:volumes_attached | [] |
| progress | 0 |
| security_groups | default |
| status | BUILD |
| tenant_id | 72a0c2c58257452d92e22aaf56120c3b |
| updated | 2015-04-25T08:23:20Z |
| user_id | 980646389a724d1f9d7216e494acf788 |
+--------------------------------------+----------------------------------------------------------------+
[stack@ ~]$ [demo]nova list
+--------------------------------------+---------+--------+------------+-------------+-------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+---------+--------+------------+-------------+-------------------+
| 22c7527e-a460-45e7-9649-96f25f22f7a9 | cirros | ACTIVE | - | Running | private=10.0.0.13 |
| 76462668-bb22-4bbd-84a0-c5d691fbe998 | cirros1 | ACTIVE | - | Running | private=10.0.0.14 |
+--------------------------------------+---------+--------+------------+-------------+-------------------+
nova boot fails with fedora-20 cloud image/ubuntu image=============================================
Changed the /etc/nova/nova.conf
in [libvirt] section, ensure virt_type = qemu
in [default] section, append scheduler_default_filters = AllHostsFilter
Restarted n-cpu and n-sch services for the above nova.conf changes to take effect.
[stack@ ~]$ [demo]nova boot --image Fedora20VM --flavor m1.small --key-name mykey2 --nic net-id=20dd0262-3153-4ef1-86b2-895f5c0b276b --security-groups default fedoraVM3
stack at tools]$ [admin]nova list
n+--------------------------------------+-------------+--------+------------+-------------+----------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+-------------+--------+------------+-------------+----------+
| 0127da09-e8c8-44ed-b211-22cb8cfa1c65 | fedoraVM3 | ERROR | spawning | NOSTATE |
2015-04-09 06:54:14.516 ^[[00;32mDEBUG nova.compute.manager [^[[01;36mreq-193df1a8-78a8-411f-8524-1a5452a652fc ^[[00;36mNone None^[[00;32m] ^[[01;35m^[[00;32mCONF.reclaim_instance_interval <= 0, skipping...^[[00m ^[[00;33mfrom (pid=4098) _reclaim_queued_deletes /opt/stack/nova/nova/compute/manager.py:6192^[[00m
2015-04-09 06:54:14.516 ^[[00;32mDEBUG nova.openstack.common.loopingcall [^[[01;36mreq-193df1a8-78a8-411f-8524-1a5452a652fc ^[[00;36mNone None^[[00;32m] ^[[01;35m^[[00;32mDynamic looping call <bound method Service.periodic_tasks of <nova.service.Service object at 0x370efd0>> sleeping for 1.86 seconds^[[00m ^[[00;33mfrom (pid=4098) _inner /opt/stack/nova/nova/openstack/common/loopingcall.py:132^[[00m
2015-04-09 06:54:14.689 ^[[00;32mDEBUG nova.openstack.common.periodic_task [^[[01;36mreq-fb8f7ca1-3597-4683-a7cf-5bc2d6dca7fa ^[[00;36mNone None^[[00;32m] ^[[01;35m^[[00;32mRunning periodic task ComputeManager._reclaim_queued_deletes^[[00m ^[[00;33mfrom (pid=28634) run_periodic_tasks /opt/stack/nova/nova/openstack/common/periodic_task.py:219^[[00m
2015-04-09 06:54:14.689 ^[[00;32mDEBUG nova.compute.manager [^[[01;36mreq-fb8f7ca1-3597-4683-a7cf-5bc2d6dca7fa ^[[00;36mNone None^[[00;32m] ^[[01;35m^[[00;32mCONF.reclaim_instance_interval <= 0, skipping...^[[00m ^[[00;33mfrom (pid=28634) _reclaim_queued_deletes /opt/stack/nova/nova/compute/manager.py:6192^[[00m
2015-04-09 06:54:14.690 ^[[00;32mDEBUG nova.openstack.common.loopingcall [^[[01;36mreq-fb8f7ca1-3597-4683-a7cf-5bc2d6dca7fa ^[[00;36mNone None^[[00;32m] ^[[01;35m^[[00;32mDynamic looping call <bound method Service.periodic_tasks of <nova.service.Service object at 0x3f30f50>> sleeping for 6.00 seconds^[[00m ^[[00;33mfrom (pid=28634) _inner /opt/stack/nova/nova/openstack/common/loopingcall.py:132^[[00m
2015-04-09 06:54:16.379 ^[[00;32mDEBUG nova.openstack.common.periodic_task [^[[01;36mreq-193df1a8-78a8-411f-8524-1a5452a652fc ^[[00;36mNone None^[[00;32m] ^[[01;35m^[[00;32mRunning periodic task ComputeManager._sync_scheduler_instance_info^[[00m ^[[00;33mfrom (pid=4098) run_periodic_tasks /opt/stack/nova/nova/openstack/common/periodic_task.py:219^[[00m
2015-04-09 06:54:16.416 ^[[00;32mDEBUG nova.openstack.common.loopingcall [^[[01;36mreq-193df1a8-78a8-411f-8524-1a5452a652fc ^[[00;36mNone None^[[00;32m] ^[[01;35m^[[00;32mDynamic looping call <bound method Service.periodic_tasks of <nova.service.Service object at 0x370efd0>> sleeping for 31.00 seconds^[[00m ^[[00;33mfrom (pid=4098) _inner /opt/stack/nova/nova/openstack/common/loopingcall.py:132^[[00m
2015-04-09 06:54:18.211 ^[[01;33mWARNING nova.virt.libvirt.driver [^[[01;36mreq-8dd8d8bc-d7d4-4c57-9f1a-a675522c1a28 ^[[00;36mNone None^[[01;33m] ^[[01;35m^[[01;33mTimeout waiting for vif plugging callback for instance 0127da09-e8c8-44ed-b211-22cb8cfa1c65^[[00m
2015-04-09 06:54:18.419 ^[[00;32mDEBUG nova.virt.driver [^[[01;36mreq-4b6ed29a-27f7-4906-8df0-cc98de627200 ^[[00;36mNone None^[[00;32m] ^[[01;35m^[[00;32mEmitting event <LifecycleEvent: 1428576858.42, 0127da09-e8c8-44ed-b211-22cb8cfa1c65 => Stopped>^[[00m ^[[00;33mfrom (pid=28634) emit_event /opt/stack/nova/nova/virt/driver.py:1255^[[00m
2015-04-09 06:54:18.468 ^[[00;32mDEBUG nova.compute.manager [^[[01;36mreq-4b6ed29a-27f7-4906-8df0-cc98de627200 ^[[00;36mNone None^[[00;32m] ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00;32mSynchronizing instance power state after lifecycle event "Stopped"; current vm_state: building, current task_state: spawning, current DB power_state: 0, VM power_state: 4^[[00m ^[[00;33mfrom (pid=28634) handle_lifecycle_event /opt/stack/nova/nova/compute/manager.py:1237^[[00m
2015-04-09 06:54:18.470 ^[[00;32mDEBUG nova.compute.manager [^[[01;36mreq-7bc91ceb-0c8b-47ad-b7e4-59c95d0ef191 ^[[00;36mNone None^[[00;32m] ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00;32mSynchronizing instance power state after lifecycle event "Stopped"; current vm_state: building, current task_state: spawning, current DB power_state: 0, VM power_state: 4^[[00m ^[[00;33mfrom (pid=1292) handle_lifecycle_event /opt/stack/nova/nova/compute/manager.py:1237^[[00m
2015-04-09 06:54:18.488 ^[[00;32mDEBUG nova.compute.manager [^[[01;36mreq-e3a21886-55e8-4b98-b7ad-91bfc05b28b8 ^[[00;36mNone None^[[00;32m] ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00;32mSynchronizing instance power state after lifecycle event "Stopped"; current vm_state: building, current task_state: spawning, current DB power_state: 0, VM power_state: 4^[[00m ^[[00;33mfrom (pid=4098) handle_lifecycle_event /opt/stack/nova/nova/compute/manager.py:1237^[[00m
2015-04-09 06:54:18.514 ^[[00;32mDEBUG oslo_concurrency.processutils [^[[01;36mreq-8dd8d8bc-d7d4-4c57-9f1a-a675522c1a28 ^[[00;36mNone None^[[00;32m] ^[[01;35m^[[00;32mCMD "sudo nova-rootwrap /etc/nova/rootwrap.conf brctl delif qbrec9f9382-a8 qvbec9f9382-a8" returned: 0 in 0.094s^[[00m ^[[00;33mfrom (pid=4098) execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:225^[[00m
2015-04-09 06:54:18.515 ^[[00;32mDEBUG oslo_concurrency.processutils [^[[01;36mreq-8dd8d8bc-d7d4-4c57-9f1a-a675522c1a28 ^[[00;36mNone None^[[00;32m] ^[[01;35m^[[00;32mRunning cmd (subprocess): sudo nova-rootwrap /etc/nova/rootwrap.conf ip link set qbrec9f9382-a8 down^[[00m ^[[00;33mfrom (pid=4098) execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:199^[[00m
2015-04-09 06:54:18.516 ^[[00;36mINFO nova.compute.manager [^[[01;36mreq-4b6ed29a-27f7-4906-8df0-cc98de627200 ^[[00;36mNone None^[[00;36m] ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00;36mDuring sync_power_state the instance has a pending task (spawning). Skip.^[[00m
2015-04-09 06:54:18.517 ^[[00;36mINFO nova.compute.manager [^[[01;36mreq-7bc91ceb-0c8b-47ad-b7e4-59c95d0ef191 ^[[00;36mNone None^[[00;36m] ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00;36mDuring sync_power_state the instance has a pending task (spawning). Skip.^[[00m
2015-04-09 06:54:18.538 ^[[00;36mINFO nova.compute.manager [^[[01;36mreq-e3a21886-55e8-4b98-b7ad-91bfc05b28b8 ^[[00;36mNone None^[[00;36m] ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00;36mDuring sync_power_state the instance has a pending task (spawning). Skip.^[[00m
2015-04-09 06:54:18.590 ^[[00;32mDEBUG oslo_concurrency.processutils [^[[01;36mreq-8dd8d8bc-d7d4-4c57-9f1a-a675522c1a28 ^[[00;36mNone None^[[00;32m] ^[[01;35m^[[00;32mCMD "sudo nova-rootwrap /etc/nova/rootwrap.conf ip link set qbrec9f9382-a8 down" returned: 0 in 0.075s^[[00m ^[[00;33mfrom (pid=4098) execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:225^[[00m
2015-04-09 06:54:18.591 ^[[00;32mDEBUG oslo_concurrency.processutils [^[[01;36mreq-8dd8d8bc-d7d4-4c57-9f1a-a675522c1a28 ^[[00;36mNone None^[[00;32m] ^[[01;35m^[[00;32mRunning cmd (subprocess): sudo nova-rootwrap /etc/nova/rootwrap.conf brctl delbr qbrec9f9382-a8^[[00m ^[[00;33mfrom (pid=4098) execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:199^[[00m
ute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:225^[[00m
2015-04-09 06:54:18.683 ^[[00;32mDEBUG oslo_concurrency.processutils [^[[01;36mreq-8dd8d8bc-d7d4-4c57-9f1a-a675522c1a28 ^[[00;36mNone None^[[00;32m] ^[[01;35m^[[00;32mRunning cmd (subprocess): sudo nova-rootwrap /etc/nova/rootwrap.conf ovs-vsctl --timeout=120 -- --if-exists del-port br-int qvoec9f9382-a8^[[00m ^[[00;33mfrom (pid=4098) execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:199^[[00m
2015-04-09 06:54:18.766 ^[[00;32mDEBUG oslo_concurrency.processutils [^[[01;36mreq-8dd8d8bc-d7d4-4c57-9f1a-a675522c1a28 ^[[00;36mNone None^[[00;32m] ^[[01;35m^[[00;32mCMD "sudo nova-rootwrap /etc/nova/rootwrap.conf ovs-vsctl --timeout=120 -- --if-exists del-port br-int qvoec9f9382-a8" returned: 0 in 0.083s^[[00m ^[[00;33mfrom (pid=4098) execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:225^[[00m
2015-04-09 06:54:18.767 ^[[00;32mDEBUG oslo_concurrency.processutils [^[[01;36mreq-8dd8d8bc-d7d4-4c57-9f1a-a675522c1a28 ^[[00;36mNone None^[[00;32m] ^[[01;35m^[[00;32mRunning cmd (subprocess): sudo nova-rootwrap /etc/nova/rootwrap.conf ip link delete qvoec9f9382-a8^[[00m ^[[00;33mfrom (pid=4098) execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:199^[[00m
2015-04-09 06:54:18.865 ^[[00;32mDEBUG oslo_concurrency.processutils [^[[01;36mreq-8dd8d8bc-d7d4-4c57-9f1a-a675522c1a28 ^[[00;36mNone None^[[00;32m] ^[[01;35m^[[00;32mCMD "sudo nova-rootwrap /etc/nova/rootwrap.conf ip link delete qvoec9f9382-a8" returned: 0 in 0.098s^[[00m ^[[00;33mfrom (pid=4098) execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:225^[[00m
2015-04-09 06:54:18.865 ^[[00;32mDEBUG nova.network.linux_net [^[[01;36mreq-8dd8d8bc-d7d4-4c57-9f1a-a675522c1a28 ^[[00;36mNone None^[[00;32m] ^[[01;35m^[[00;32mNet device removed: 'qvoec9f9382-a8'^[[00m ^[[00;33mfrom (pid=4098) delete_net_dev /opt/stack/nova/nova/network/linux_net.py:1422^[[00m
2015-04-09 06:54:18.865 ^[[00;32mDEBUG oslo_concurrency.processutils [^[[01;36mreq-8dd8d8bc-d7d4-4c57-9f1a-a675522c1a28 ^[[00;36mNone None^[[00;32m] ^[[01;35m^[[00;32mRunning cmd (subprocess): mv /opt/stack/data/nova/instances/0127da09-e8c8-44ed-b211-22cb8cfa1c65 /opt/stack/data/nova/instances/0127da09-e8c8-44ed-b211-22cb8cfa1c65_del^[[00m ^[[00;33mfrom (pid=4098) execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:199^[[00m
2015-04-09 06:54:18.871 ^[[00;32mDEBUG oslo_concurrency.processutils [^[[01;36mreq-8dd8d8bc-d7d4-4c57-9f1a-a675522c1a28 ^[[00;36mNone None^[[00;32m] ^[[01;35m^[[00;32mCMD "mv /opt/stack/data/nova/instances/0127da09-e8c8-44ed-b211-22cb8cfa1c65 /opt/stack/data/nova/instances/0127da09-e8c8-44ed-b211-22cb8cfa1c65_del" returned: 0 in 0.006s^[[00m ^[[00;33mfrom (pid=4098) execute /usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py:225^[[00m
2015-04-09 06:54:18.872 ^[[00;36mINFO nova.virt.libvirt.driver [^[[01;36mreq-8dd8d8bc-d7d4-4c57-9f1a-a675522c1a28 ^[[00;36mNone None^[[00;36m] ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00;36mDeleting instance files /opt/stack/data/nova/instances/0127da09-e8c8-44ed-b211-22cb8cfa1c65_del^[[00m
2015-04-09 06:54:18.872 ^[[00;36mINFO nova.virt.libvirt.driver [^[[01;36mreq-8dd8d8bc-d7d4-4c57-9f1a-a675522c1a28 ^[[00;36mNone None^[[00;36m] ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00;36mDeletion of /opt/stack/data/nova/instances/0127da09-e8c8-44ed-b211-22cb8cfa1c65_del complete^[[00m
2015-04-09 06:54:18.872 ^[[00;36mINFO nova.virt.libvirt.driver [^[[01;36mreq-8dd8d8bc-d7d4-4c57-9f1a-a675522c1a28 ^[[00;36mNone None^[[00;36m] ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00;36mDeletion of /opt/stack/data/nova/instances/0127da09-e8c8-44ed-b211-22cb8cfa1c65_del complete^[[00m
2015-04-09 06:54:19.000 ^[[01;31mERROR nova.compute.manager [^[[01;36mreq-8dd8d8bc-d7d4-4c57-9f1a-a675522c1a28 ^[[00;36mNone None^[[01;31m] ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[01;31mInstance failed to spawn^[[00m
^[[01;31m2015-04-09 06:54:19.000 TRACE nova.compute.manager ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00mTraceback (most recent call last):
^[[01;31m2015-04-09 06:54:19.000 TRACE nova.compute.manager ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00m File "/opt/stack/nova/nova/compute/manager.py", line 2437, in _build_resources
^[[01;31m2015-04-09 06:54:19.000 TRACE nova.compute.manager ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00m yield resources
^[[01;31m2015-04-09 06:54:19.000 TRACE nova.compute.manager ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00m File "/opt/stack/nova/nova/compute/manager.py", line 2309, in _build_and_run_instance
^[[01;31m2015-04-09 06:54:19.000 TRACE nova.compute.manager ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00m block_device_info=block_device_info)
^[[01;31m2015-04-09 06:54:19.000 TRACE nova.compute.manager ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00m File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2354, in spawn
^[[01;31m2015-04-09 06:54:19.000 TRACE nova.compute.manager ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00m block_device_info=block_device_info)
^[[01;31m2015-04-09 06:54:19.000 TRACE nova.compute.manager ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00m File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 4412, in _create_domain_and_network
^[[01;31m2015-04-09 06:54:19.000 TRACE nova.compute.manager ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00m raise exception.VirtualInterfaceCreateException()
^[[01;31m2015-04-09 06:54:19.000 TRACE nova.compute.manager ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00mVirtualInterfaceCreateException: Virtual Interface creation failed
^[[01;31m2015-04-09 06:54:19.000 TRACE nova.compute.manager ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00m
2015-04-09 06:54:19.002 ^[[00;36mINFO nova.compute.manager [^[[01;36mreq-fea16bf7-e57b-42ff-ab48-aa8b731ca0f9 ^[[00;36madmin admin^[[00;36m] ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00;36mTerminating instance^[[00m
2015-04-09 06:54:19.007 ^[[00;36mINFO nova.virt.libvirt.driver [^[[00;36m-^[[00;36m] ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00;36mDuring wait destroy, instance disappeared.^[[00m
1;35m^[[00;32mLock "compute_resources" released by "abort_instance_claim" :: held 0.023s^[[00m ^[[00;33mfrom (pid=4098) inner /usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py:456^[[00m
2015-04-09 06:54:19.247 ^[[01;31mERROR nova.compute.manager [^[[01;36mreq-8dd8d8bc-d7d4-4c57-9f1a-a675522c1a28 ^[[00;36mNone None^[[01;31m] ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[01;31mFailed to allocate network(s)^[[00m
^[[01;31m2015-04-09 06:54:19.247 TRACE nova.compute.manager ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00mTraceback (most recent call last):
^[[01;31m2015-04-09 06:54:19.247 TRACE nova.compute.manager ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00m File "/opt/stack/nova/nova/compute/manager.py", line 2309, in _build_and_run_instance
^[[01;31m2015-04-09 06:54:19.247 TRACE nova.compute.manager ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00m block_device_info=block_device_info)
^[[01;31m2015-04-09 06:54:19.247 TRACE nova.compute.manager ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00m File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2354, in spawn
^[[01;31m2015-04-09 06:54:19.247 TRACE nova.compute.manager ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00m block_device_info=block_device_info)
^[[01;31m2015-04-09 06:54:19.247 TRACE nova.compute.manager ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00m File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 4412, in _create_domain_and_network
^[[01;31m2015-04-09 06:54:19.247 TRACE nova.compute.manager ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00m raise exception.VirtualInterfaceCreateException()
^[[01;31m2015-04-09 06:54:19.247 TRACE nova.compute.manager ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00mVirtualInterfaceCreateException: Virtual Interface creation failed
^[[01;31m2015-04-09 06:54:19.247 TRACE nova.compute.manager ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00m
2015-04-09 06:54:19.247 ^[[00;32mDEBUG nova.compute.utils [^[[01;36mreq-8dd8d8bc-d7d4-4c57-9f1a-a675522c1a28 ^[[00;36mNone None^[[00;32m] ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00;32mVirtual Interface creation failed^[[00m ^[[00;33mfrom (pid=4098) notify_about_instance_usage /opt/stack/nova/nova/compute/utils.py:310^[[00m
2015-04-09 06:54:19.248 ^[[01;31mERROR nova.compute.manager [^[[01;36mreq-8dd8d8bc-d7d4-4c57-9f1a-a675522c1a28 ^[[00;36mNone None^[[01;31m] ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[01;31mBuild of instance 0127da09-e8c8-44ed-b211-22cb8cfa1c65 aborted: Failed to allocate the network(s), not rescheduling.^[[00m
^[[01;31m2015-04-09 06:54:19.248 TRACE nova.compute.manager ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00mTraceback (most recent call last):
^[[01;31m2015-04-09 06:54:19.248 TRACE nova.compute.manager ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00m File "/opt/stack/nova/nova/compute/manager.py", line 2214, in _do_build_and_run_instance
^[[01;31m2015-04-09 06:54:19.247 TRACE nova.compute.manager ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00m File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 4412, in _create_domain_and_network
^[[01;31m2015-04-09 06:54:19.247 TRACE nova.compute.manager ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00m raise exception.VirtualInterfaceCreateException()
^[[01;31m2015-04-09 06:54:19.247 TRACE nova.compute.manager ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00mVirtualInterfaceCreateException: Virtual Interface creation failed
^[[01;31m2015-04-09 06:54:19.247 TRACE nova.compute.manager ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00m
2015-04-09 06:54:19.247 ^[[00;32mDEBUG nova.compute.utils [^[[01;36mreq-8dd8d8bc-d7d4-4c57-9f1a-a675522c1a28 ^[[00;36mNone None^[[00;32m] ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00;32mVirtual Interface creation failed^[[00m ^[[00;33mfrom (pid=4098) notify_about_instance_usage /opt/stack/nova/nova/compute/utils.py:310^[[00m
2015-04-09 06:54:19.248 ^[[01;31mERROR nova.compute.manager [^[[01;36mreq-8dd8d8bc-d7d4-4c57-9f1a-a675522c1a28 ^[[00;36mNone None^[[01;31m] ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[01;31mBuild of instance 0127da09-e8c8-44ed-b211-22cb8cfa1c65 aborted: Failed to allocate the network(s), not rescheduling.^[[00m
^[[01;31m2015-04-09 06:54:19.248 TRACE nova.compute.manager ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00mTraceback (most r
ption: Virtual Interface creation failed
^[[01;31m2015-04-09 06:54:19.247 TRACE nova.compute.manager ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00m
2015-04-09 06:54:19.247 ^[[00;32mDEBUG nova.compute.utils [^[[01;36mreq-8dd8d8bc-d7d4-4c57-9f1a-a675522c1a28 ^[[00;36mNone None^[[00;32m] ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00;32mVirtual Interface creation failed^[[00m ^[[00;33mfrom (pid=4098) notify_about_instance_usage /opt/stack/nova/nova/compute/utils.py:310^[[00m
2015-04-09 06:54:19.248 ^[[01;31mERROR nova.compute.manager [^[[01;36mreq-8dd8d8bc-d7d4-4c57-9f1a-a675522c1a28 ^[[00;36mNone None^[[01;31m] ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[01;31mBuild of instance 0127da09-e8c8-44ed-b211-22cb8cfa1c65 aborted: Failed to allocate the network(s), not rescheduling.^[[00m
^[[01;31m2015-04-09 06:54:19.248 TRACE nova.compute.manager ^[[01;35m[instance: 0127da09-e8c8-44ed-b211-22cb8cfa1c65] ^[[00mTraceback (most recent call last):
[stack at mytools]$ [admin]nova keypair-add --pub_key ~/.ssh/id_rsa.pub mykey
[stack at mytools]$ [admin]nova secgroup-add-rule default tcp 22 22 0.0.0.0/0
+-------------+-----------+---------+-----------+--------------+
| IP Protocol | From Port | To Port | IP Range | Source Group |
+-------------+-----------+---------+-----------+--------------+
| tcp | 22 | 22 | 0.0.0.0/0 | |
+-------------+-----------+---------+-----------+--------------+
[stack at mytools]$ [admin]nova secgroup-add-rule default icmp -1 -1 0.0.0.0/0
+-------------+-----------+---------+-----------+--------------+
| IP Protocol | From Port | To Port | IP Range | Source Group |
+-------------+-----------+---------+-----------+--------------+
| icmp | -1 | -1 | 0.0.0.0/0 | |
+-------------+-----------+---------+-----------+--------------+
[stack at mytools]$ [admin]nova boot --flavor m1.micro --image ubuntu_1204_nfs_cifs --key-name mykey --security-groups default myvm_ubuntu
+--------------------------------------+-------------------------------------------------------------+
| Property | Value |
+--------------------------------------+-------------------------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | nova |
| OS-EXT-SRV-ATTR:host | - |
| OS-EXT-SRV-ATTR:hypervisor_hostname | - |
| OS-EXT-SRV-ATTR:instance_name | instance-00000003 |
| OS-EXT-STS:power_state | 0 |
| OS-EXT-STS:task_state | scheduling |
| OS-EXT-STS:vm_state | building |
| OS-SRV-USG:launched_at | - |
| OS-SRV-USG:terminated_at | - |
| accessIPv4 | |
| accessIPv6 | |
| adminPass | 8QM7aNpKHkwg |
| config_drive | |
| created | 2015-04-09T10:49:15Z |
| flavor | m1.micro (84) |
| hostId | |
| id | 0127da09-e8c8-44ed-b211-22cb8cfa1c65 |
| image | ubuntu_1204_nfs_cifs (8bb3e666-4302-4313-950b-531a06816ff1) |
| key_name | mykey |
| metadata | {} |
| name | myvm_ubuntu |
| os-extended-volumes:volumes_attached | [] |
| progress | 0 |
| security_groups | default |
| status | BUILD |
| tenant_id | 0cb0c229e8344f37baf9205d83791a5e |
| updated | 2015-04-09T10:49:15Z |
| user_id | 15708fbeb1234c9ca65aa78fad3c02b3 |
+--------------------------------------+-------------------------------------------------------------+
[stack at mytools]$ [admin]nova list
+--------------------------------------+-------------+--------+------------+-------------+-------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+-------------+--------+------------+-------------+-------------------+
| 0127da09-e8c8-44ed-b211-22cb8cfa1c65 | myvm_ubuntu | BUILD | spawning | NOSTATE | public=172.24.4.3 |
+--------------------------------------+-------------+--------+------------+-------------+-------------------+
[stack at mytools]$ [admin]nova list
+--------------------------------------+-------------+--------+------------+-------------+-------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+-------------+--------+------------+-------------+-------------------+
| 0127da09-e8c8-44ed-b211-22cb8cfa1c65 | myvm_ubuntu | BUILD | spawning | NOSTATE | public=172.24.4.3 |
+--------------------------------------+-------------+--------+------------+-------------+-------------------+
[stack at mytools]$ [admin]nova list
+--------------------------------------+-------------+--------+------------+-------------+
stack at mytools]$ [admin]nova list
n+--------------------------------------+-------------+--------+------------+-------------+----------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+-------------+--------+------------+-------------+----------+
| 0127da09-e8c8-44ed-b211-22cb8cfa1c65 | myvm_ubuntu | ERROR | spawning | NOSTATE | |
+--------------------------------------+-------------+--------+------------+-------------+----------+
[stack at mytools]$ [admin]glance image-list
+--------------------------------------+---------------------------------+-------------+------------------+-----------+--------+
| ID | Name | Disk Format | Container Format | Size | Status |
+--------------------------------------+---------------------------------+-------------+------------------+-----------+--------+
| 2e4c04a1-fd2d-4ab4-b8bf-dd21ebd04f71 | cirros-0.3.2-x86_64-uec | ami | ami | 25165824 | active |
| 41faba12-2347-49d7-a74d-2ff2bb6d7c6f | cirros-0.3.2-x86_64-uec-kernel | aki | aki | 4969360 | active |
| b3da2ad9-6d6e-4eb2-8570-d0137dc44012 | cirros-0.3.2-x86_64-uec-ramdisk | ari | ari | 3723817 | active |
| 8bb3e666-4302-4313-950b-531a06816ff1 | ubuntu_1204_nfs_cifs | qcow2 | bare | 320733184 | active |
+--------------------------------------+---------------------------------+-------------+------------------+-----------+--------+
[stack at mytools]$ [admin]nova flavor-list
+-----+-----------------------+-----------+------+-----------+------+-------+-------------+-----------+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+-----+-----------------------+-----------+------+-----------+------+-------+-------------+-----------+
| 1 | m1.tiny | 512 | 1 | 0 | | 1 | 1.0 | True |
| 100 | manila-service-flavor | 64 | 0 | 0 | | 1 | 1.0 | True |
| 2 | m1.small | 2048 | 20 | 0 | | 1 | 1.0 | True |
| 3 | m1.medium | 4096 | 40 | 0 | | 2 | 1.0 | True |
| 4 | m1.large | 8192 | 80 | 0 | | 4 | 1.0 | True |
| 42 | m1.nano | 64 | 0 | 0 | | 1 | 1.0 | True |
| 5 | m1.xlarge | 16384 | 160 | 0 | | 8 | 1.0 | True |
| 84 | m1.micro | 128 | 0 | 0 | | 1 | 1.0 | True |
+-----+-----------------------+-----------+------+-----------+------+-------+-------------+-----------+
[stack at mytools]$ [admin]nova keypair-list
+-------+-------------------------------------------------+
| Name | Fingerprint |
+-------+-------------------------------------------------+
| mykey | df:ce:7b:bc:b6:79:ee:10:2c:ef:8a:d3:fc:7d:11:0a |
+-------+-------------------------------------------------+
Refer bug:https://bugs.launchpad.net/devstack/+bug/1442167
| |
| | | | | | | |
| openstack/manilamanila - Shared filesystem management project for OpenStack. |
| |
| View on github.com | Preview by Yahoo |
| |
| |
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150425/4a60b32b/attachment-0001.html>
More information about the OpenStack-dev
mailing list