[Bug 1435428] Re: vivid: systemd breaks qemu-nbd mounting

2015-04-01 Thread Martin Pitt
I ran this loop for some 100 iterations without failure: sudo sh -exc 'while true; do qemu-nbd --snapshot --connect /dev/nbd0 /srv/vm/adt-vivid-i386-cloud.img; sleep 0.5; [ -e /dev/nbd0p1 ]; mount /dev/nbd0p1 /mnt; [ -d /mnt/root ]; umount /mnt; qemu-nbd --disconnect /dev/nbd0; sleep 0.5; [ ! -e

[Bug 1435428] Re: vivid: systemd breaks qemu-nbd mounting

2015-03-25 Thread Didier Roche
@Jason: I have uploaded yesterday 219-4ubuntu10 which may fix your issue (cherry-picking a race upstream), can you try to upgrade and tell me if this fixes it for you? -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu in Ubuntu.

[Bug 1435428] Re: vivid: systemd breaks qemu-nbd mounting

2015-03-25 Thread José A . Calvo
Fix confirmed after upgrading :) Thanks for the quick response! -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu in Ubuntu. https://bugs.launchpad.net/bugs/1435428 Title: vivid: systemd breaks qemu-nbd mounting To manage

[Bug 1435428] Re: vivid: systemd breaks qemu-nbd mounting

2015-03-25 Thread Jason Gerard DeRose
@didrocks - yup, it's working now! Thank you! -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu in Ubuntu. https://bugs.launchpad.net/bugs/1435428 Title: vivid: systemd breaks qemu-nbd mounting To manage notifications about this

[Bug 1435428] Re: vivid: systemd breaks qemu-nbd mounting

2015-03-25 Thread Jason Gerard DeRose
Hmm, and one more thing: qemu-nbd --disconnect (at least sometimes) doesn't seem to be working when booting with systemd: $ ls /dev/nbd0* /dev/nbd0 /dev/nbd0p1 /dev/nbd0p2 /dev/nbd0p5 $ sudo qemu-nbd --disconnect /dev/nbd0 /dev/nbd0 disconnected $ echo $? 0 $ ls /dev/nbd0* /dev/nbd0

[Bug 1435428] Re: vivid: systemd breaks qemu-nbd mounting

2015-03-25 Thread Jason Gerard DeRose
Hmmm, there may still be an issue, as I didn't encounter this yesterday when doing my task multiple times after booting with Upstart. I'm mounting these qcow2 disk images in order to export a tarball of the filesystem. First three tarballs exported swimmingly, but the fourth time it seemed to

[Bug 1435428] Re: vivid: systemd breaks qemu-nbd mounting

2015-03-25 Thread Jason Gerard DeRose
Hmm, maybe something else was going on. In an isolated test script, I haven't reproduced the disconnect problem again yet. I attached the script I'm using in case anyone else what's to give it ago. ** Attachment added: qemu-nbd-test.py

[Bug 1435428] Re: vivid: systemd breaks qemu-nbd mounting

2015-03-25 Thread Alberto Salvia Novella
** Changed in: qemu (Ubuntu) Importance: Undecided = High -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu in Ubuntu. https://bugs.launchpad.net/bugs/1435428 Title: vivid: systemd breaks qemu-nbd mounting To manage

[Bug 1435428] Re: vivid: systemd breaks qemu-nbd mounting

2015-03-24 Thread Jason Gerard DeRose
** Summary changed: - vivid: mounting with qemu-nbd fails + vivid: systemd breaks qemu-nbd mounting ** Description changed: On Trusty and Utopic, this works: $ sudo modprobe nbd $ sudo qemu-nbd --snapshot -c /dev/nbd0 my.qcow2 $ sudo mount /dev/nbd0p1 /mnt $ sudo umount /mnt