← Back to team overview

openstack team mailing list archive

Error when using a custom raw CentOS 6.3 single partition image

 

Hello stackers,

I built a single partition raw image containing CentOS 6.3 as per this
instructions:

When I boot the image however I get this error (bolded in red):



2013-03-01 19:09:42 AUDIT nova.compute.manager
[req-f7ba7693-33b4-4fd5-9b01-908326f32d48 f8dcf284ebfc4f18bd14c3c392b5c5ce
90b5cb0ef6f34f798f61e2177e4db967] [instance:
2c946784-441e-4032-9fbc-43bfb1502738] Starting instance...
2013-03-01 19:09:42 AUDIT nova.compute.resource_tracker
[req-f7ba7693-33b4-4fd5-9b01-908326f32d48 f8dcf284ebfc4f18bd14c3c392b5c5ce
90b5cb0ef6f34f798f61e2177e4db967] Attempting claim: memory 512 MB, disk 0
GB, VCPUs 1
2013-03-01 19:09:42 AUDIT nova.compute.resource_tracker
[req-f7ba7693-33b4-4fd5-9b01-908326f32d48 f8dcf284ebfc4f18bd14c3c392b5c5ce
90b5cb0ef6f34f798f61e2177e4db967] Total memory: 7954 MB, used: 1024 MB,
free: 0 MB
2013-03-01 19:09:42 AUDIT nova.compute.resource_tracker
[req-f7ba7693-33b4-4fd5-9b01-908326f32d48 f8dcf284ebfc4f18bd14c3c392b5c5ce
90b5cb0ef6f34f798f61e2177e4db967] Memory limit: 11931 MB, free: 10907 MB
2013-03-01 19:09:42 AUDIT nova.compute.resource_tracker
[req-f7ba7693-33b4-4fd5-9b01-908326f32d48 f8dcf284ebfc4f18bd14c3c392b5c5ce
90b5cb0ef6f34f798f61e2177e4db967] Total disk: 314 GB, used: 0 GB, free: 314
GB
2013-03-01 19:09:42 AUDIT nova.compute.resource_tracker
[req-f7ba7693-33b4-4fd5-9b01-908326f32d48 f8dcf284ebfc4f18bd14c3c392b5c5ce
90b5cb0ef6f34f798f61e2177e4db967] Disk limit not specified, defaulting to
unlimited
2013-03-01 19:09:42 AUDIT nova.compute.resource_tracker
[req-f7ba7693-33b4-4fd5-9b01-908326f32d48 f8dcf284ebfc4f18bd14c3c392b5c5ce
90b5cb0ef6f34f798f61e2177e4db967] Total VCPUs: 4, used: 1
2013-03-01 19:09:42 AUDIT nova.compute.resource_tracker
[req-f7ba7693-33b4-4fd5-9b01-908326f32d48 f8dcf284ebfc4f18bd14c3c392b5c5ce
90b5cb0ef6f34f798f61e2177e4db967] VCPU limit not specified, defaulting to
unlimited
2013-03-01 19:09:49 INFO nova.virt.libvirt.driver
[req-f7ba7693-33b4-4fd5-9b01-908326f32d48 f8dcf284ebfc4f18bd14c3c392b5c5ce
90b5cb0ef6f34f798f61e2177e4db967] [instance:
2c946784-441e-4032-9fbc-43bfb1502738] Using config drive
2013-03-01 19:09:49 INFO nova.virt.libvirt.driver
[req-f7ba7693-33b4-4fd5-9b01-908326f32d48 f8dcf284ebfc4f18bd14c3c392b5c5ce
90b5cb0ef6f34f798f61e2177e4db967] [instance:
2c946784-441e-4032-9fbc-43bfb1502738] Creating image
2013-03-01 19:09:50 INFO nova.virt.libvirt.driver
[req-f7ba7693-33b4-4fd5-9b01-908326f32d48 f8dcf284ebfc4f18bd14c3c392b5c5ce
90b5cb0ef6f34f798f61e2177e4db967] [instance:
2c946784-441e-4032-9fbc-43bfb1502738] Creating config drive at
/var/lib/nova/instances/instance-0000001d/disk.config
2013-03-01 19:09:52 ERROR nova.virt.disk.api
[req-f7ba7693-33b4-4fd5-9b01-908326f32d48 f8dcf284ebfc4f18bd14c3c392b5c5ce
90b5cb0ef6f34f798f61e2177e4db967] Failed to mount container filesystem
'<nova.virt.disk.api._DiskImage object at 0x48d1a50>' on
'/var/lib/nova/instances/instance-0000001d/rootfs':
--
Failed to mount filesystem: Unexpected error while running command.
Command: sudo nova-rootwrap /etc/nova/rootwrap.conf mount /dev/nbd14
/var/lib/nova/instances/instance-0000001d/rootfs
Exit code: 32
Stdout: ''
*Stderr: 'mount: /dev/nbd14 already mounted or
/var/lib/nova/instances/instance-0000001d/rootfs busy\n'*
--
Failed to mount filesystem: Unexpected error while running command.
Command: sudo nova-rootwrap /etc/nova/rootwrap.conf guestmount --rw -a
/var/lib/nova/instances/instance-0000001d/disk -m /dev/sda
/var/lib/nova/instances/instance-0000001d/rootfs
Exit code: 1
Stdout: ''
Stderr: 'Traceback (most recent call last):\n  File
"/usr/bin/nova-rootwrap", line 89, in <module>\n
 env=filtermatch.get_environment(userargs))\n  File
"/usr/lib/python2.7/subprocess.py", line 679, in __init__\n    errread,
errwrite)\n  File "/usr/lib/python2.7/subprocess.py", line 1249, in
_execute_child\n    raise child_exception\nOSError: [Errno 2] No such file
or directory\n'
2013-03-01 19:09:52 ERROR nova.compute.manager
[req-f7ba7693-33b4-4fd5-9b01-908326f32d48 f8dcf284ebfc4f18bd14c3c392b5c5ce
90b5cb0ef6f34f798f61e2177e4db967] [instance:
2c946784-441e-4032-9fbc-43bfb1502738] Instance failed to spawn
2013-03-01 19:09:52 1018 TRACE nova.compute.manager [instance:
2c946784-441e-4032-9fbc-43bfb1502738] Traceback (most recent call last):
2013-03-01 19:09:52 1018 TRACE nova.compute.manager [instance:
2c946784-441e-4032-9fbc-43bfb1502738]   File
"/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 747, in
_spawn
2013-03-01 19:09:52 1018 TRACE nova.compute.manager [instance:
2c946784-441e-4032-9fbc-43bfb1502738]     block_device_info)
2013-03-01 19:09:52 1018 TRACE nova.compute.manager [instance:
2c946784-441e-4032-9fbc-43bfb1502738]   File
"/usr/lib/python2.7/dist-packages/nova/exception.py", line 117, in wrapped
2013-03-01 19:09:52 1018 TRACE nova.compute.manager [instance:
2c946784-441e-4032-9fbc-43bfb1502738]     temp_level, payload)
2013-03-01 19:09:52 1018 TRACE nova.compute.manager [instance:
2c946784-441e-4032-9fbc-43bfb1502738]   File
"/usr/lib/python2.7/contextlib.py", line 24, in __exit__
2013-03-01 19:09:52 1018 TRACE nova.compute.manager [instance:
2c946784-441e-4032-9fbc-43bfb1502738]     self.gen.next()
2013-03-01 19:09:52 1018 TRACE nova.compute.manager [instance:
2c946784-441e-4032-9fbc-43bfb1502738]   File
"/usr/lib/python2.7/dist-packages/nova/exception.py", line 92, in wrapped
2013-03-01 19:09:52 1018 TRACE nova.compute.manager [instance:
2c946784-441e-4032-9fbc-43bfb1502738]     return f(*args, **kw)
2013-03-01 19:09:52 1018 TRACE nova.compute.manager [instance:
2c946784-441e-4032-9fbc-43bfb1502738]   File
"/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 1090,
in spawn
2013-03-01 19:09:52 1018 TRACE nova.compute.manager [instance:
2c946784-441e-4032-9fbc-43bfb1502738]     admin_pass=admin_password)
2013-03-01 19:09:52 1018 TRACE nova.compute.manager [instance:
2c946784-441e-4032-9fbc-43bfb1502738]   File
"/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 1469,
in _create_image
2013-03-01 19:09:52 1018 TRACE nova.compute.manager [instance:
2c946784-441e-4032-9fbc-43bfb1502738]     use_cow=FLAGS.use_cow_images)
2013-03-01 19:09:52 1018 TRACE nova.compute.manager [instance:
2c946784-441e-4032-9fbc-43bfb1502738]   File
"/usr/lib/python2.7/dist-packages/nova/virt/disk/api.py", line 326, in
setup_container
2013-03-01 19:09:52 1018 TRACE nova.compute.manager [instance:
2c946784-441e-4032-9fbc-43bfb1502738]     raise
exception.NovaException(img.errors)
2013-03-01 19:09:52 1018 TRACE nova.compute.manager [instance:
2c946784-441e-4032-9fbc-43bfb1502738] NovaException:
2013-03-01 19:09:52 1018 TRACE nova.compute.manager [instance:
2c946784-441e-4032-9fbc-43bfb1502738] --
2013-03-01 19:09:52 1018 TRACE nova.compute.manager [instance:
2c946784-441e-4032-9fbc-43bfb1502738] Failed to mount filesystem:
Unexpected error while running command.
2013-03-01 19:09:52 1018 TRACE nova.compute.manager [instance:
2c946784-441e-4032-9fbc-43bfb1502738] Command: sudo nova-rootwrap
/etc/nova/rootwrap.conf mount /dev/nbd14
/var/lib/nova/instances/instance-0000001d/rootfs
2013-03-01 19:09:52 1018 TRACE nova.compute.manager [instance:
2c946784-441e-4032-9fbc-43bfb1502738] Exit code: 32
2013-03-01 19:09:52 1018 TRACE nova.compute.manager [instance:
2c946784-441e-4032-9fbc-43bfb1502738] Stdout: ''
2013-03-01 19:09:52 1018 TRACE nova.compute.manager [instance:
2c946784-441e-4032-9fbc-43bfb1502738] Stderr: 'mount: /dev/nbd14 already
mounted or /var/lib/nova/instances/instance-0000001d/rootfs busy\n'
2013-03-01 19:09:52 1018 TRACE nova.compute.manager [instance:
2c946784-441e-4032-9fbc-43bfb1502738] --
2013-03-01 19:09:52 1018 TRACE nova.compute.manager [instance:
2c946784-441e-4032-9fbc-43bfb1502738] Failed to mount filesystem:
Unexpected error while running command.
2013-03-01 19:09:52 1018 TRACE nova.compute.manager [instance:
2c946784-441e-4032-9fbc-43bfb1502738] Command: sudo nova-rootwrap
/etc/nova/rootwrap.conf guestmount --rw -a
/var/lib/nova/instances/instance-0000001d/disk -m /dev/sda
/var/lib/nova/instances/instance-0000001d/rootfs
2013-03-01 19:09:52 1018 TRACE nova.compute.manager [instance:
2c946784-441e-4032-9fbc-43bfb1502738] Exit code: 1
2013-03-01 19:09:52 1018 TRACE nova.compute.manager [instance:
2c946784-441e-4032-9fbc-43bfb1502738] Stdout: ''
2013-03-01 19:09:52 1018 TRACE nova.compute.manager [instance:
2c946784-441e-4032-9fbc-43bfb1502738] Stderr: 'Traceback (most recent call
last):\n  File "/usr/bin/nova-rootwrap", line 89, in <module>\n
 env=filtermatch.get_environment(userargs))\n  File
"/usr/lib/python2.7/subprocess.py", line 679, in __init__\n    errread,
errwrite)\n  File "/usr/lib/python2.7/subprocess.py", line 1249, in
_execute_child\n    raise child_exception\nOSError: [Errno 2] No such file
or directory\n'
2013-03-01 19:09:52 1018 TRACE nova.compute.manager [instance:
2c946784-441e-4032-9fbc-43bfb1502738]
2013-03-01 19:09:52 INFO nova.compute.resource_tracker
[req-f7ba7693-33b4-4fd5-9b01-908326f32d48 f8dcf284ebfc4f18bd14c3c392b5c5ce
90b5cb0ef6f34f798f61e2177e4db967] Aborting claim: [Claim
2c946784-441e-4032-9fbc-43bfb1502738: 512 MB memory, 0 GB disk, 1 VCPUS]
2013-03-01 19:09:52 ERROR nova.compute.manager
[req-f7ba7693-33b4-4fd5-9b01-908326f32d48 f8dcf284ebfc4f18bd14c3c392b5c5ce
90b5cb0ef6f34f798f61e2177e4db967] [instance:
2c946784-441e-4032-9fbc-43bfb1502738] Build error: ['Traceback (most recent
call last):\n', '  File
"/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 494, in
_run_instance\n    injected_files, admin_password)\n', '  File
"/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 747, in
_spawn\n    block_device_info)\n', '  File
"/usr/lib/python2.7/dist-packages/nova/exception.py", line 117, in
wrapped\n    temp_level, payload)\n', '  File
"/usr/lib/python2.7/contextlib.py", line 24, in __exit__\n
 self.gen.next()\n', '  File
"/usr/lib/python2.7/dist-packages/nova/exception.py", line 92, in wrapped\n
   return f(*args, **kw)\n', '  File
"/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 1090,
in spawn\n    admin_pass=admin_password)\n', '  File
"/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 1469,
in _create_image\n    use_cow=FLAGS.use_cow_images)\n', '  File
"/usr/lib/python2.7/dist-packages/nova/virt/disk/api.py", line 326, in
setup_container\n    raise exception.NovaException(img.errors)\n',
'NovaException: \n--\nFailed to mount filesystem: Unexpected error while
running command.\nCommand: sudo nova-rootwrap /etc/nova/rootwrap.conf mount
/dev/nbd14 /var/lib/nova/instances/instance-0000001d/rootfs\nExit code:
32\nStdout: \'\'\nStderr: \'mount: /dev/nbd14 already mounted or
/var/lib/nova/instances/instance-0000001d/rootfs busy\\n\'\n--\nFailed to
mount filesystem: Unexpected error while running command.\nCommand: sudo
nova-rootwrap /etc/nova/rootwrap.conf guestmount --rw -a
/var/lib/nova/instances/instance-0000001d/disk -m /dev/sda
/var/lib/nova/instances/instance-0000001d/rootfs\nExit code: 1\nStdout:
\'\'\nStderr: \'Traceback (most recent call last):\\n  File
"/usr/bin/nova-rootwrap", line 89, in <module>\\n
 env=filtermatch.get_environment(userargs))\\n  File
"/usr/lib/python2.7/subprocess.py", line 679, in __init__\\n    errread,
errwrite)\\n  File "/usr/lib/python2.7/subprocess.py", line 1249, in
_execute_child\\n    raise child_exception\\nOSError: [Errno 2] No such
file or directory\\n\'\n']



Any idea what might be causing this?