[nova] Command 'sudo nova-rootwrap /etc/nova/rootwrap.conf kpartx -a /dev/nbd9' failed
Bug #1537761 reported by
Vladimir Khlyunev
This bug affects 5 people
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Mirantis OpenStack | Status tracked in 10.0.x | |||||
10.0.x |
Invalid
|
Medium
|
MOS Nova | |||
8.0.x |
Won't Fix
|
Medium
|
MOS Nova | |||
9.x |
Won't Fix
|
Medium
|
MOS Nova |
Bug Description
CI job failed: https:/
ISO 8.0-478
Error is not related to test scenario and hard-reproducible
Snapshot is attached
OSTF test "Launch instance with file injection" failed while building an instance. In nova-compute.log I found the following message:
http://
MOS-Nova team, please help with investigation - this is very annoying error (the second run of this tests always pass)
tags: | added: area-nova |
tags: |
added: area-linux removed: area-nova |
To post a comment you must log in.
So based on the feedback from
https:/ /bugs.launchpad .net/ubuntu/ +source/ linux/+ bug/1271205
and
https:/ /bugs.launchpad .net/nova/ +bug/1024586
this is a long standing issue of device- mapper/ kpartx.
Curiously, this only affects cirros qcow2 images:
http:// paste.openstack .org/show/ 484902/
While Ubuntu cloud image (also qcow2) works just fine:
http:// paste.openstack .org/show/ 484903/
as well as cirros image converted to raw format:
http:// paste.openstack .org/show/ 484904/
FWIW, we should not be using nbd for file injection and should use libguestfs instead, although it does not work out of the box on Ubuntu Trusty either and we have to config it properly (the most annoying part is to change access mode on host kernel images).
The bottom line is, this is a valid issue, I'm not convinced it's important enough to be fixed in 8.0 based on the user impact described above.
At the same time I agree we should somehow fix this for the sake of CI. The only part I don't currently understand is how this works in Nova in the second test run - on my ubuntu machine kpartx call fails every single time on cirros qcow2 images.