[Openstack] folsom -- launch instance on a 2nd compute node -- looking for xapi0

Afef MDHAFFAR afef.mdhaffar at gmail.com
Thu Oct 25 13:06:49 UTC 2012


Hi all,

I installed Openstack (folsom release) on ubuntu 12.04, with XCP, via
devstack.
The installation of a single node was successful. However, problems appear
when I try a add a second compute node.
Then everything seems to be ok -- all services are running, enabled and
smiling.
But, I have a problem when I try to launch an instance on this 2nd compute
node: nova-compute is looking for xapi0 and hangs, since I don't have a
bridge called xapi0 on Dom0.
I tried to reconfigure that in nova.conf while setting
"flat_network_bridge=xapi1". However, this does not help and I still have
the same error -- It is still looking for xapi0.
Any help to solve this problem ???
Thank you,
Afef

Here are log errors:
2012-10-25 12:52:31 ERROR nova.utils
[req-331ec36c-5ace-4e26-af3d-071e8199949a admin demo] [instance:
b015381d-9eff-4462-a178-98a15a8fdb69] Failed to spawn, rolling back
2012-10-25 12:52:31 TRACE nova.utils [instance:
b015381d-9eff-4462-a178-98a15a8fdb69] Traceback (most recent call last):
2012-10-25 12:52:31 TRACE nova.utils [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]   File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 358, in spawn
2012-10-25 12:52:31 TRACE nova.utils [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]     vm_ref = create_vm_step(undo_mgr,
vdis, kernel_file, ramdisk_file)
2012-10-25 12:52:31 TRACE nova.utils [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]   File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 139, in inner
2012-10-25 12:52:31 TRACE nova.utils [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]     rv = f(*args, **kwargs)
2012-10-25 12:52:31 TRACE nova.utils [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]   File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 299, in create_vm_step
2012-10-25 12:52:31 TRACE nova.utils [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]     rescue=rescue)
2012-10-25 12:52:31 TRACE nova.utils [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]   File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 412, in _create_vm
2012-10-25 12:52:31 TRACE nova.utils [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]     self._create_vifs(vm_ref,
instance, network_info)
2012-10-25 12:52:31 TRACE nova.utils [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]   File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 1366, in _create_vifs
2012-10-25 12:52:31 TRACE nova.utils [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]     vm_ref=vm_ref, device=device)
2012-10-25 12:52:31 TRACE nova.utils [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]   File
"/opt/stack/nova/nova/virt/xenapi/vif.py", line 57, in plug
2012-10-25 12:52:31 TRACE nova.utils [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]     self._session,
vif['network']['bridge'])
2012-10-25 12:52:31 TRACE nova.utils [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]   File
"/opt/stack/nova/nova/virt/xenapi/network_utils.py", line 49, in
find_network_with_bridge
2012-10-25 12:52:31 TRACE nova.utils [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]     raise Exception(_('Found no
network for bridge %s') % bridge)
2012-10-25 12:52:31 TRACE nova.utils [instance:
b015381d-9eff-4462-a178-98a15a8fdb69] Exception: Found no network for
bridge xapi0
2012-10-25 12:52:31 TRACE nova.utils [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]
2012-10-25 12:52:31 DEBUG nova.virt.xenapi.vmops
[req-331ec36c-5ace-4e26-af3d-071e8199949a admin demo] [instance:
b015381d-9eff-4462-a178-98a15a8fdb69] Removing kernel/ramdisk files from
dom0 from (pid=19077) undo_create_kernel_ramdisk
/opt/stack/nova/nova/virt/xenapi/vmops.py:286
2012-10-25 12:52:32 ERROR nova.compute.manager
[req-331ec36c-5ace-4e26-af3d-071e8199949a admin demo] [instance:
b015381d-9eff-4462-a178-98a15a8fdb69] Instance failed to spawn
2012-10-25 12:52:32 TRACE nova.compute.manager [instance:
b015381d-9eff-4462-a178-98a15a8fdb69] Traceback (most recent call last):
2012-10-25 12:52:32 TRACE nova.compute.manager [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]   File
"/opt/stack/nova/nova/compute/manager.py", line 750, in _spawn
2012-10-25 12:52:32 TRACE nova.compute.manager [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]     block_device_info)
2012-10-25 12:52:32 TRACE nova.compute.manager [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]   File
"/opt/stack/nova/nova/virt/xenapi/driver.py", line 179, in spawn
2012-10-25 12:52:32 TRACE nova.compute.manager [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]     admin_password, network_info,
block_device_info)
2012-10-25 12:52:32 TRACE nova.compute.manager [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]   File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 369, in spawn
2012-10-25 12:52:32 TRACE nova.compute.manager [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]
undo_mgr.rollback_and_reraise(msg=msg, instance=instance)
2012-10-25 12:52:32 TRACE nova.compute.manager [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]   File
"/opt/stack/nova/nova/utils.py", line 1315, in rollback_and_reraise
2012-10-25 12:52:32 TRACE nova.compute.manager [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]     self._rollback()
2012-10-25 12:52:32 TRACE nova.compute.manager [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]   File
"/usr/lib/python2.7/contextlib.py", line 24, in __exit__
2012-10-25 12:52:32 TRACE nova.compute.manager [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]     self.gen.next()
2012-10-25 12:52:32 TRACE nova.compute.manager [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]   File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 358, in spawn
2012-10-25 12:52:32 TRACE nova.compute.manager [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]     vm_ref = create_vm_step(undo_mgr,
vdis, kernel_file, ramdisk_file)
2012-10-25 12:52:32 TRACE nova.compute.manager [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]   File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 139, in inner
2012-10-25 12:52:32 TRACE nova.compute.manager [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]     rv = f(*args, **kwargs)
2012-10-25 12:52:32 TRACE nova.compute.manager [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]   File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 299, in create_vm_step
2012-10-25 12:52:32 TRACE nova.compute.manager [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]     rescue=rescue)
2012-10-25 12:52:32 TRACE nova.compute.manager [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]   File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 412, in _create_vm
2012-10-25 12:52:32 TRACE nova.compute.manager [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]     self._create_vifs(vm_ref,
instance, network_info)
2012-10-25 12:52:32 TRACE nova.compute.manager [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]   File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 1366, in _create_vifs
2012-10-25 12:52:32 TRACE nova.compute.manager [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]     vm_ref=vm_ref, device=device)
2012-10-25 12:52:32 TRACE nova.compute.manager [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]   File
"/opt/stack/nova/nova/virt/xenapi/vif.py", line 57, in plug
2012-10-25 12:52:32 TRACE nova.compute.manager [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]     self._session,
vif['network']['bridge'])
2012-10-25 12:52:32 TRACE nova.compute.manager [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]   File
"/opt/stack/nova/nova/virt/xenapi/network_utils.py", line 49, in
find_network_with_bridge
2012-10-25 12:52:32 TRACE nova.compute.manager [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]     raise Exception(_('Found no
network for bridge %s') % bridge)
2012-10-25 12:52:32 TRACE nova.compute.manager [instance:
b015381d-9eff-4462-a178-98a15a8fdb69] Exception: Found no network for
bridge xapi0
2012-10-25 12:52:32 TRACE nova.compute.manager [instance:
b015381d-9eff-4462-a178-98a15a8fdb69]
2012-10-25 12:52:32 DEBUG nova.utils
[req-331ec36c-5ace-4e26-af3d-071e8199949a admin demo] Got semaphore
"compute_resources" for method "abort_resource_claim"... from (pid=19077)
inner /opt/stack/nova/nova/utils.py:721
2012-10-25 12:52:32 AUDIT nova.compute.resource_tracker
[req-331ec36c-5ace-4e26-af3d-071e8199949a admin demo] Claim
b015381d-9eff-4462-a178-98a15a8fdb69 not found.  It either timed out or was
already explicitly finished/aborted
2012-10-25 12:52:32 DEBUG nova.compute.manager
[req-331ec36c-5ace-4e26-af3d-071e8199949a admin demo] [instance:
b015381d-9eff-4462-a178-98a15a8fdb69] Deallocating network for instance
from (pid=19077) _deallocate_network
/opt/stack/nova/nova/compute/manager.py:776
2012-10-25 12:52:32 DEBUG nova.openstack.common.rpc.amqp [-] Making
asynchronous call on network ... from (pid=19077) multicall
/opt/stack/nova/nova/openstack/common/rpc/amqp.py:351
2012-10-25 12:52:32 DEBUG nova.openstack.common.rpc.amqp [-] MSG_ID is
f68a69a1e5ab4228b4a4847ef96fc784 from (pid=19077) multicall
/opt/stack/nova/nova/openstack/common/rpc/amqp.py:354
2012-10-25 12:52:34 DEBUG nova.compute.manager
[req-331ec36c-5ace-4e26-af3d-071e8199949a admin demo] [instance:
b015381d-9eff-4462-a178-98a15a8fdb69] Re-scheduling instance: attempt 1
from (pid=19077) _reschedule /opt/stack/nova/nova/compute/manager.py:582
2012-10-25 12:52:34 DEBUG nova.utils
[req-331ec36c-5ace-4e26-af3d-071e8199949a admin demo] Got semaphore
"compute_resources" for method "update_usage"... from (pid=19077) inner
/opt/stack/nova/nova/utils.py:721
2012-10-25 12:52:34 DEBUG nova.openstack.common.rpc.amqp [-] Making
asynchronous cast on scheduler... from (pid=19077) cast
/opt/stack/nova/nova/openstack/common/rpc/amqp.py:376
2012-10-25 12:52:34 ERROR nova.compute.manager
[req-331ec36c-5ace-4e26-af3d-071e8199949a admin demo] [instance:
b015381d-9eff-4462-a178-98a15a8fdb69] Build error: ['Traceback (most recent
call last):\n', '  File "/opt/stack/nova/nova/compute/manager.py", line
503, in _run_instance\n    injected_files, admin_password)\n', '  File
"/opt/stack/nova/nova/compute/manager.py", line 750, in _spawn\n
 block_device_info)\n', '  File
"/opt/stack/nova/nova/virt/xenapi/driver.py", line 179, in spawn\n
 admin_password, network_info, block_device_info)\n', '  File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 369, in spawn\n
 undo_mgr.rollback_and_reraise(msg=msg, instance=instance)\n', '  File
"/opt/stack/nova/nova/utils.py", line 1315, in rollback_and_reraise\n
 self._rollback()\n', '  File "/usr/lib/python2.7/contextlib.py", line 24,
in __exit__\n    self.gen.next()\n', '  File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 358, in spawn\n    vm_ref
= create_vm_step(undo_mgr, vdis, kernel_file, ramdisk_file)\n', '  File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 139, in inner\n    rv =
f(*args, **kwargs)\n', '  File "/opt/stack/nova/nova/virt/xenapi/vmops.py",
line 299, in create_vm_step\n    rescue=rescue)\n', '  File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 412, in _create_vm\n
 self._create_vifs(vm_ref, instance, network_info)\n', '  File
"/opt/stack/nova/nova/virt/xenapi/vmops.py", line 1366, in _create_vifs\n
 vm_ref=vm_ref, device=device)\n', '  File
"/opt/stack/nova/nova/virt/xenapi/vif.py", line 57, in plug\n
 self._session, vif[\'network\'][\'bridge\'])\n', '  File
"/opt/stack/nova/nova/virt/xenapi/network_utils.py", line 49, in
find_network_with_bridge\n    raise Exception(_(\'Found no network for
bridge %s\') % bridge)\n', 'Exception: Found no network for bridge xapi0\n']
2012-10-25 12:52:52 DEBUG nova.manager [-] Running periodic task
ComputeManager._publish_service_capabilities from (pid=19077)
periodic_tasks /opt/stack/nova/nova/manager.py:172
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20121025/c6f12614/attachment.html>


More information about the Openstack mailing list