Ask Your Question
0

ssh key injection fails with error: libguestfs (list_md_devices: call launch before using this function

asked 2014-08-28 02:59:08 -0500

jmeph gravatar image

Using icehouse on centOS 6.5, when booting a coreOS instance, ssh key injection fails leaving this message in compute log:

2014-08-28 17:34:42.675 5843 WARNING nova.virt.disk.api [req-adb5aae4-2ce2-490e-a6d1-91a3143f04fa 08f9b06f4f5f4210946076e3efd535e5 28e00c10b14e439d9325ab6f3066d537] Ignoring error injecting data into image (Error mounting /var/lib/nova/instances/ec13c43d-7400-4649-9cbf-69b6c4e3781a/disk with libguestfs (list_md_devices: call launch before using this function\n(in guestfish, don't forget to use the 'run' command)))

nova.conf contains:

 libvirt_inject_key=true
  libvirt_inject_password=true
  libvirt_inject_partition= -1

Mounting the image manually with guestfish and running launch; list_md_devices works OK, albeit list_md_devices returns an empty list.

Any ideas?

------------ compute.log ------------------------

2014-08-28 17:34:33.550 5843 INFO nova.virt.libvirt.driver [req-adb5aae4-2ce2-490e-a6d1-91a3143f04fa 08f9b06f4f5f4210946076e3efd535e5 28e00c10b14e439d9325ab6f3066d537] [instance: ec13c43d-7400-4649-9cbf-69b6c4e3781a] Creating image
2014-08-28 17:34:37.479 5843 WARNING nova.virt.disk.vfs.guestfs [req-adb5aae4-2ce2-490e-a6d1-91a3143f04fa 08f9b06f4f5f4210946076e3efd535e5 28e00c10b14e439d9325ab6f3066d537] Failed to close augeas aug_close: do_aug_close: you must call 'aug-init' first to initialize Augeas
2014-08-28 17:34:42.668 5843 WARNING nova.virt.disk.vfs.guestfs [req-adb5aae4-2ce2-490e-a6d1-91a3143f04fa 08f9b06f4f5f4210946076e3efd535e5 28e00c10b14e439d9325ab6f3066d537] Failed to close augeas aug_close: call launch before using this function\n(in guestfish, don't forget to use the 'run' command)
2014-08-28 17:34:42.675 5843 WARNING nova.virt.disk.api [req-adb5aae4-2ce2-490e-a6d1-91a3143f04fa 08f9b06f4f5f4210946076e3efd535e5 28e00c10b14e439d9325ab6f3066d537] Ignoring error injecting data into image (Error mounting /var/lib/nova/instances/ec13c43d-7400-4649-9cbf-69b6c4e3781a/disk with libguestfs (list_md_devices: call launch before using this function\n(in guestfish, don't forget to use the 'run' command)))
2014-08-28 17:34:43.177 5843 INFO nova.virt.libvirt.firewall [req-adb5aae4-2ce2-490e-a6d1-91a3143f04fa 08f9b06f4f5f4210946076e3efd535e5 28e00c10b14e439d9325ab6f3066d537] [instance: ec13c43d-7400-4649-9cbf-69b6c4e3781a] Called setup_basic_filtering in nwfilter
2014-08-28 17:34:43.177 5843 INFO nova.virt.libvirt.firewall [req-adb5aae4-2ce2-490e-a6d1-91a3143f04fa 08f9b06f4f5f4210946076e3efd535e5 28e00c10b14e439d9325ab6f3066d537] [instance: ec13c43d-7400-4649-9cbf-69b6c4e3781a] Ensuring static filters
2014-08-28 17:34:44.457 5843 INFO nova.compute.manager [-] Lifecycle event 0 on VM ec13c43d-7400-4649-9cbf-69b6c4e3781a
2014-08-28 17:34:44.558 5843 INFO nova.virt.libvirt.driver [-] [instance: ec13c43d-7400-4649-9cbf-69b6c4e3781a] Instance spawned successfully.
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-09-07 19:41:16 -0500

jmeph gravatar image

The problem was btrfs in coreOS uses features that are not supported by kernel 2.6. A workaround is to upgrade the host to kernel v3.

The problem was identified by doing:

set LIBGUEST_DEBUG=1
virt-inspect -x disk

which produces:

    ...
mount -o ro /dev/sda9 /sysroot/
    [    2.954377] TECH PREVIEW: btrfs may not be fully supported.
    [    2.954380] Please review provided documentation for limitations.
    [    2.956583] Btrfs loaded
    [    2.957435] device label ROOT devid 1 transid 383 /dev/sda9
    [    2.958826] btrfs: disk space caching is enabled
    [    2.959531] BTRFS: couldn't mount because of unsupported optional features (40).
    [    2.960801] btrfs: open_ctree failed
    [    2.961364] BUG: unable to handle kernel paging request at fffffffffffffffa
    [    2.962341] IP: [<ffffffff811ac39b>] do_add_mount_unlocked+0x5b/0xe0
    [    2.962341] PGD 1a87067 PUD 1a88067 PMD 0
    [    2.962341] Oops: 0000 [#1] SMP
    [    2.962341] last sysfs file: /sys/module/libcrc32c/initstate
    [    2.962341] CPU 0
    [    2.962341] Modules linked in: btrfs(T) zlib_deflate lzo_decompress lzo_compress vfat fat dm_mod sg i2c_piix4 i2c_core ext2 ext4 jbd2 virtio_balloon virtio_pci virtio_net virtio_scsi virtio_blk virtio_console virtio_rng virtio virtio_ring sd_mod sym53c8xx scsi_transport_spi ata_piix sr_mod cdrom mbcache crc7 crc_ccitt crc_t10dif crc_itu_t crc32c_intel libcrc32c [last unloaded: scsi_wait_scan]
    [    2.962341]
    [    2.962341] Pid: 355, comm: mount Tainted: G           ---------------  T 2.6.32-431.el6.x86_64 #1 Red Hat KVM
    [    2.962341] RIP: 0010:[<ffffffff811ac39b>]  [<ffffffff811ac39b>] do_add_mount_unlocked+0x5b/0xe0
    [    2.962341] RSP: 0018:ffff88001d647e48  EFLAGS: 00010287
    [    2.962341] RAX: ffffffffffffffea RBX: ffff88001d647ed8 RCX: 0000000000000000
    [    2.962341] RDX: ffff88001d847ec0 RSI: 0000000000000001 RDI: ffff88001e7a2300
    [    2.962341] RBP: ffff88001d647e68 R08: 7fffffffffffffff R09: 0000000000000060
    [    2.962341] R10: 0000000000000005 R11: 00000000000000d2 R12: ffff88001d8479c0
    [    2.962341] R13: 0000000000000060 R14: ffff88001d7ec9c0 R15: ffff88001d7ec220
    [    2.962341] FS:  00007f7eafe137e0(0000) GS:ffff880002200000(0000) knlGS:0000000000000000
    [    2.962341] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
    [    2.962341] CR2: fffffffffffffffa CR3: 000000001d528000 CR4: 00000000000007f0
    [    2.962341] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
    [    2.962341] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
    [    2.962341] Process mount (pid: 355, threadinfo ffff88001d646000, task ffff88001d6e7540)
    [    2.962341] Stack:
    [    2.962341]  ffff88001d647e68 ffff88001d8479c0 ffff88001d647ed8 0000000000000060
    [    2.962341] <d> ffff88001d647e98 ffffffff811ac45c 0000000000000001 ffff88001d8479c0
    [    2.962341] <d> 0000000000000001 0000000000000000 ffff88001d647f18 ffffffff811ac976
    [    2.962341] Call Trace:
    [    2.962341]  [<ffffffff811ac45c>] __do_add_mount+0x3c/0x60
    [    2.962341]  [<ffffffff811ac976>] do_mount+0x326/0x930
    [    2.962341]  [<ffffffff81140d64>] ? strndup_user+0x64/0xc0
    [    2.962341]  [<ffffffff811ad010>] sys_mount+0x90/0xe0
    [    2.962341]  [<ffffffff8100b072>] system_call_fastpath+0x16/0x1b
    [    2.962341] Code: c0 78 4f 41 f7 c5 00 01 00 00 74 54 48 8b 13 48 8b 82 c0 00 00 00 48 85 c0 74 65 49 8b 44 24 28 48 39 42 28 74 72 49 8b 44 24 20 <48> 8b 40 10 0f b7 80 ae 00 00 00 25 00 f0 00 00 3d 00 a0 00 00
    [    2.962341] RIP  [<ffffffff811ac39b>] do_add_mount_unlocked+0x5b/0xe0
    [    2.962341]  RSP <ffff88001d647e48>
    [    2.962341] CR2: fffffffffffffffa
    [    2.962341] ---[ end trace bab09bc77731235f ]---
    [    2.962341] Kernel panic - not syncing: Fatal exception
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-08-28 02:59:08 -0500

Seen: 541 times

Last updated: Aug 28 '14