[Bug 1078530] Re: upstart job fails to start under lxc

2013-01-29 Thread Serge Hallyn
** Changed in: qemu-kvm (Ubuntu Precise)
   Status: Fix Released = Triaged

** Changed in: qemu-kvm (Ubuntu Precise)
 Assignee: (unassigned) = Serge Hallyn (serge-hallyn)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in Ubuntu.
https://bugs.launchpad.net/bugs/1078530

Title:
  upstart job fails to start under lxc

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1078530/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1078530] Re: upstart job fails to start under lxc

2013-01-14 Thread Launchpad Bug Tracker
This bug was fixed in the package qemu-kvm - 1.0+noroms-0ubuntu14.6

---
qemu-kvm (1.0+noroms-0ubuntu14.6) precise-proposed; urgency=low

  * Fix qemu-kvm.upstart: just don't run in a container.  Otherwise we'll
still try to load/unload kernel modules.  Also undo the || true after
sysfs writes.  Since setting those is a part of configuring qemu-kvm
on the host, failing when they fail makes sense.

qemu-kvm (1.0+noroms-0ubuntu14.5) precise-proposed; urgency=low

  * add udev to qemu-kvm Depends to ensure that postinst succeeds.
(LP: #1080912)

qemu-kvm (1.0+noroms-0ubuntu14.4) precise-proposed; urgency=low

  [ Serge Hallyn ]
  * debian/qemu-kvm.postinst: use udevadm trigger to change /dev/kvm perms as
recommended by Steve Langasek (LP: #1057024)
  * apply debian/patches/nbd-fixes-to-read-only-handling.patch from upstream to
make read-write mount after read-only mount work.  (LP: #1077838)

  [ Robert Collins ]
  * Fix upstart job to succeed if ksm settings can't be altered in the same way
other settings are handled. (LP: #1078530)
 -- Serge Hallyn serge.hal...@ubuntu.com   Thu, 20 Dec 2012 12:34:52 -0600

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in Ubuntu.
https://bugs.launchpad.net/bugs/1078530

Title:
  upstart job fails to start under lxc

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1078530/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1078530] Re: upstart job fails to start under lxc

2013-01-14 Thread Launchpad Bug Tracker
This bug was fixed in the package qemu-kvm - 1.2.0+noroms-
0ubuntu2.12.10.1

---
qemu-kvm (1.2.0+noroms-0ubuntu2.12.10.1) quantal-proposed; urgency=low

  [ Serge Hallyn ]
  * debian/qemu-kvm.postinst: use udevadm trigger to change /dev/kvm perms as
recommended by Steve Langasek (LP: #1057024)
  * apply debian/patches/nbd-fixes-to-read-only-handling.patch from upstream to
make read-write mount after read-only mount work.  (LP: #1077838)
  * make qemu-kvm depend on udev (LP: #1080912)

  [ Robert Collins ]
  * Fix upstart job to succeed if ksm settings can't be altered in the same way
other settings are handled. (LP: #1078530)
 -- Serge Hallyn serge.hal...@ubuntu.com   Mon, 19 Nov 2012 09:15:42 -0600

** Changed in: qemu-kvm (Ubuntu Quantal)
   Status: Fix Committed = Fix Released

** Changed in: qemu-kvm (Ubuntu Precise)
   Status: Fix Committed = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in Ubuntu.
https://bugs.launchpad.net/bugs/1078530

Title:
  upstart job fails to start under lxc

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1078530/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1078530] Re: upstart job fails to start under lxc

2013-01-02 Thread Serge Hallyn
Verified in precise - I installed qemu-kvm in a precise container on a
precise host (which had qemu-kvm installed, so the kernel module was
loaded).  Package installation succeeded, as does 'sudo stop qemu-kvm;
sudo start qemu-kvm'

** Tags removed: verification-needed
** Tags added: verification-done

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in Ubuntu.
https://bugs.launchpad.net/bugs/1078530

Title:
  upstart job fails to start under lxc

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1078530/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1078530] Re: upstart job fails to start under lxc

2012-12-20 Thread Serge Hallyn
This bug is not fully solved by this version, because the init job still
tries to load and unload kvm modules.

The qemu-kvm job should detect that it is running in a container and
gracefully exit.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in Ubuntu.
https://bugs.launchpad.net/bugs/1078530

Title:
  upstart job fails to start under lxc

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1078530/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1078530] Re: upstart job fails to start under lxc

2012-12-20 Thread Serge Hallyn
Verified in quantal, where the upstart job also does ||true when
modprobe and rmmod fail.

However, not running in a container at all would be safer.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in Ubuntu.
https://bugs.launchpad.net/bugs/1078530

Title:
  upstart job fails to start under lxc

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1078530/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 1078530] Re: upstart job fails to start under lxc

2012-12-20 Thread Robert Collins
Well, its hard to run the openstack test suite in a container
*without* qemu-kvm, because python-libvirt depends on libvirt depends
on qemu-kvm.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in Ubuntu.
https://bugs.launchpad.net/bugs/1078530

Title:
  upstart job fails to start under lxc

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1078530/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1078530] Re: upstart job fails to start under lxc

2012-12-20 Thread Serge Hallyn
@lifeless,

the upstart job is only responsible for setting up the kvm kernel module
and related kernel settings.  With my new proposed change, the upstart
job would detect it's in a container and consider itself done.

In reality, for quantal the modprobes and rmmods were already doing '||
true'.  So the only thing my new upload changes is that rather than try
to do all these things and be denied, it won't try.  (Or, rather than
try to do them and succeed due to a bad policy, and potentially break
the host.)

The host will have to set up kvm;  but it would have to anyway, since
containers are never allowed to modprobe by default.  And quantal and
later always modprobe kvm on the host.

Finally, libvirt and python-libvirt do not depend on qemu-kvm.  But
again, qemu-kvm will install just fine and even be usable in the
container.  It just can't be set up there.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in Ubuntu.
https://bugs.launchpad.net/bugs/1078530

Title:
  upstart job fails to start under lxc

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1078530/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 1078530] Re: upstart job fails to start under lxc

2012-12-20 Thread Robert Collins
On Fri, Dec 21, 2012 at 9:20 AM, Serge Hallyn
1078...@bugs.launchpad.net wrote:
 @lifeless,

 the upstart job is only responsible for setting up the kvm kernel module
 and related kernel settings.  With my new proposed change, the upstart
 job would detect it's in a container and consider itself done.

Cool, thanks.

-Rob

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in Ubuntu.
https://bugs.launchpad.net/bugs/1078530

Title:
  upstart job fails to start under lxc

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1078530/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1078530] Re: upstart job fails to start under lxc

2012-11-15 Thread Serge Hallyn
Regarding this being a  bug in lxc as well, the failure to write under
/sys is deliberately  enforced by the apparmor policy.  It can be worked
around by using another apparmor profile (or none, as commented in the
configuration file), but is not recommended - containers should not
change kernel settings.

** Also affects: qemu-kvm (Ubuntu Precise)
   Importance: Undecided
   Status: New

** Also affects: qemu-kvm (Ubuntu Quantal)
   Importance: Undecided
   Status: New

** Description changed:

  The KSM_ENABLED setting (on by default) for the qemu-kvm job fails under
  lxc but the kernel files still appear writable. Thats likely an lxc bug
  (either in defaults or device mapping), but there is no need for qemu-
  kvm's job to fail if those settings can't be written to IMNSHO.
+ 
+ 
+ SRU Justification:
+ 1. Impact: qemu-kvm cannot be installed in containers
+ 2. Development fix: ignore errors writing under /sys in upstart job
+ 3. Stable fix: same as development fix
+ 4. Test case:
+   sudo lxc-create -t ubuntu -n c1 -- -r [precise|quantal]
+   sudo lxc-start -n c1
+   # log into c1 as ubuntu/ubuntu, and 'sudo apt-get install qemu-kvm'
+ 5. Regression potential: legitimate errors writing under /sys (kernel bugs)
+will be ignored.
+ 

** Changed in: qemu-kvm (Ubuntu Precise)
   Status: New = Triaged

** Changed in: qemu-kvm (Ubuntu Quantal)
   Status: New = Triaged

** Changed in: qemu-kvm (Ubuntu Precise)
   Importance: Undecided = Medium

** Changed in: qemu-kvm (Ubuntu Quantal)
   Importance: Undecided = Medium

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in Ubuntu.
https://bugs.launchpad.net/bugs/1078530

Title:
  upstart job fails to start under lxc

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1078530/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1078530] Re: upstart job fails to start under lxc

2012-11-15 Thread Serge Hallyn
** Changed in: qemu-kvm (Ubuntu Precise)
   Status: Triaged = In Progress

** Changed in: qemu-kvm (Ubuntu Quantal)
   Status: Triaged = In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in Ubuntu.
https://bugs.launchpad.net/bugs/1078530

Title:
  upstart job fails to start under lxc

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1078530/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1078530] Re: upstart job fails to start under lxc

2012-11-15 Thread Adam Conrad
Hello Robert, or anyone else affected,

Accepted qemu-kvm into precise-proposed. The package will build now and
be available at http://launchpad.net/ubuntu/+source/qemu-kvm/1.0+noroms-
0ubuntu14.4 in a few hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to
enable and use -proposed.  Your feedback will aid us getting this update
out to other Ubuntu users.

If this package fixes the bug for you, please change the bug tag from
verification-needed to verification-done.  If it does not, change the
tag to verification-failed.  In either case, details of your testing
will help us make a better decision.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance!

** Changed in: qemu-kvm (Ubuntu Precise)
   Status: In Progress = Fix Committed

** Tags added: verification-needed

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in Ubuntu.
https://bugs.launchpad.net/bugs/1078530

Title:
  upstart job fails to start under lxc

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1078530/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1078530] Re: upstart job fails to start under lxc

2012-11-14 Thread Serge Hallyn
Thanks for submitting this bug.

** Changed in: qemu-kvm (Ubuntu)
   Importance: Undecided = Medium

** Changed in: qemu-kvm (Ubuntu)
   Status: New = Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in Ubuntu.
https://bugs.launchpad.net/bugs/1078530

Title:
  upstart job fails to start under lxc

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1078530/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1078530] Re: upstart job fails to start under lxc

2012-11-14 Thread Serge Hallyn
** Changed in: qemu-kvm (Ubuntu)
 Assignee: (unassigned) = Serge Hallyn (serge-hallyn)

** Changed in: qemu-kvm (Ubuntu)
   Status: Triaged = In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in Ubuntu.
https://bugs.launchpad.net/bugs/1078530

Title:
  upstart job fails to start under lxc

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1078530/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1078530] Re: upstart job fails to start under lxc

2012-11-14 Thread Launchpad Bug Tracker
This bug was fixed in the package qemu-kvm - 1.2.0+noroms-0ubuntu4

---
qemu-kvm (1.2.0+noroms-0ubuntu4) raring; urgency=low

  [ Serge Hallyn ]
  * debian/qemu-kvm.postinst: use udevadm trigger to change /dev/kvm perms as
recommended by Steve Langasek (LP: #1057024)
  * apply debian/patches/nbd-fixes-to-read-only-handling.patch from upstream to
make read-write mount after read-only mount work.  (LP: #1077838)

  [ Robert Collins ]
  * Fix upstart job to succeed if ksm settings can't be altered in the same way
other settings are handled. (LP: #1078530)
 -- Serge Hallyn serge.hal...@ubuntu.com   Wed, 14 Nov 2012 11:30:14 -0600

** Changed in: qemu-kvm (Ubuntu)
   Status: In Progress = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in Ubuntu.
https://bugs.launchpad.net/bugs/1078530

Title:
  upstart job fails to start under lxc

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1078530/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1078530] Re: upstart job fails to start under lxc

2012-11-13 Thread Robert Collins
http://paste.ubuntu.com/1356944/ has a debdiff of the (trivial) fix,
adjusted to not version conflict with my nbd patch.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in Ubuntu.
https://bugs.launchpad.net/bugs/1078530

Title:
  upstart job fails to start under lxc

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1078530/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs