[Openstack-operators] Failed to map partitions whith nova-rootwrap kpartx -a /dev/nbd15
Igor Laskovy
igor.laskovy at gmail.com
Wed May 16 19:33:03 UTC 2012
Hello all from rainy Kiev))
Have a problem with running new instance:
$ nova boot --image cirros-0.3-x86_64 --flavor m1.tiny --key_name test
my-first-server
$ nova list
+--------------------------------------+-----------------+--------+----------+
| ID | Name | Status | Networks |
+--------------------------------------+-----------------+--------+----------+
| e73ea05a-bf79-4913-8691-2998171c1e00 | my-first-server | ERROR | |
+--------------------------------------+-----------------+--------+----------+
In /var/log/nova/nova-compute.log have this:
2012-05-16 15:04:34 DEBUG nova.utils
[req-0458eab4-2125-433f-bd10-9cad04afde2d
50be127b9b7f49dcbf5ffea06d23d83a ebf29e67cbd445daa5ad09f76cdf69f9]
Running cmd (subprocess): qemu-img create -f qcow2 -o
cluster_size=2M,backing_file=/var/lib/nova/instances/_base/673deeeda607ab6405864d0bc9db6ef0d753bfa0
/var/lib/nova/instances/instance-0000000d/disk from (pid=1030) execute
/usr/lib/python2.7/dist-packages/nova/utils.py:219
2012-05-16 15:04:35 INFO nova.virt.libvirt.connection
[req-0458eab4-2125-433f-bd10-9cad04afde2d
50be127b9b7f49dcbf5ffea06d23d83a ebf29e67cbd445daa5ad09f76cdf69f9]
[instance: e73ea05a-bf79-4913-8691-2998171c1e00] Injecting key into
image ededd2f9-011e-4f12-b201-2abaea32b5c5
2012-05-16 15:04:35 DEBUG nova.utils
[req-0458eab4-2125-433f-bd10-9cad04afde2d
50be127b9b7f49dcbf5ffea06d23d83a ebf29e67cbd445daa5ad09f76cdf69f9]
Running cmd (subprocess): sudo nova-rootwrap qemu-nbd -c /dev/nbd15
/var/lib/nova/instances/instance-0000000d/disk from (pid=1030) execute
/usr/lib/python2.7/dist-packages/nova/utils.py:219
2012-05-16 15:04:35 DEBUG nova.utils
[req-0458eab4-2125-433f-bd10-9cad04afde2d
50be127b9b7f49dcbf5ffea06d23d83a ebf29e67cbd445daa5ad09f76cdf69f9]
Running cmd (subprocess): sudo nova-rootwrap kpartx -a /dev/nbd15 from
(pid=1030) execute /usr/lib/python2.7/dist-packages/nova/utils.py:219
2012-05-16 15:04:35 DEBUG nova.utils
[req-0458eab4-2125-433f-bd10-9cad04afde2d
50be127b9b7f49dcbf5ffea06d23d83a ebf29e67cbd445daa5ad09f76cdf69f9]
Result was 1 from (pid=1030) execute
/usr/lib/python2.7/dist-packages/nova/utils.py:235
2012-05-16 15:04:35 DEBUG nova.utils
[req-0458eab4-2125-433f-bd10-9cad04afde2d
50be127b9b7f49dcbf5ffea06d23d83a ebf29e67cbd445daa5ad09f76cdf69f9]
Unexpected error while running command.
Command: sudo nova-rootwrap kpartx -a /dev/nbd15
Exit code: 1
Stdout: ''
Stderr: 'device-mapper: resume ioctl failed: Invalid
argument\ncreate/reload failed on nbd15p1\n' from (pid=1030) trycmd
/usr/lib/python2.7/dist-packages/nova/utils.py:277
2012-05-16 15:04:35 DEBUG nova.utils
[req-0458eab4-2125-433f-bd10-9cad04afde2d
50be127b9b7f49dcbf5ffea06d23d83a ebf29e67cbd445daa5ad09f76cdf69f9]
Running cmd (subprocess): sudo nova-rootwrap qemu-nbd -d /dev/nbd15
from (pid=1030) execute
/usr/lib/python2.7/dist-packages/nova/utils.py:219
2012-05-16 15:04:35 DEBUG nova.virt.disk.api
[req-0458eab4-2125-433f-bd10-9cad04afde2d
50be127b9b7f49dcbf5ffea06d23d83a ebf29e67cbd445daa5ad09f76cdf69f9]
Failed to map partitions: Unexpected error while running command.
Command: sudo nova-rootwrap kpartx -a /dev/nbd15
Exit code: 1
I have nova+quantum+openvswitch without nova-volume lab on two nodes -
one controller with everything on it except nova-compute and second
dedicated compute node with nova-compute:
$ sudo nova-manage service list
Binary Host Zone
Status State Updated_At
nova-consoleauth novactrl01.labspace.chashkacoffee.me nova
enabled :-) 2012-05-16 19:15:49
nova-network novactrl01.labspace.chashkacoffee.me nova
enabled :-) 2012-05-16 19:15:45
nova-scheduler novactrl01.labspace.chashkacoffee.me nova
enabled :-) 2012-05-16 19:15:51
nova-cert novactrl01.labspace.chashkacoffee.me nova
enabled :-) 2012-05-16 19:15:51
nova-compute nova01.labspace.chashkacoffee.me nova
enabled :-) 2012-05-16 19:15:44
$ sudo nova-manage network quantum_list
uuid project priority
cidr_v4 , cidr_v6
1da50335-06e8-4033-87a2-4a17da6d9b7d None 0
192.168.1.80/28 , None
98712829-6b63-449b-bf8e-6aa7ab715b6d
ebf29e67cbd445daa5ad09f76cdf69f9 1 10.10.10.0/24
, None
Please help!
--
Igor Laskovy
Kiev, Ukraine
More information about the Openstack-operators
mailing list