[Bug 1242074] Re: lxc-ls shows wrong status

Serge Hallyn 1242074 at bugs.launchpad.net
Mon Oct 21 20:30:34 UTC 2013


** Also affects: lxc (Ubuntu Precise)
   Importance: Undecided
       Status: New

** Also affects: lxc (Ubuntu Quantal)
   Importance: Undecided
       Status: New

** Also affects: lxc (Ubuntu Trusty)
   Importance: Medium
       Status: Triaged

** Also affects: lxc (Ubuntu Saucy)
   Importance: Undecided
       Status: New

** Also affects: lxc (Ubuntu Raring)
   Importance: Undecided
       Status: New

** Description changed:

- I just upgraded to ubuntu saucy and found a strange behaviour. The
- command lxc-ls doesn't show the correct status of running machines.
+ =========================
+ SRU Justification:
+ 1. Impact: standard lxc-tools do not work (transparently) with autostarted containers.  Importantely, a duplicate container can be started.
+ 2. Development fix: make sure to start containers (in lxc-instance) such that their command sockets are not in an "anonymous" lxcpath.
+ 3. Stable fix: same as development fix.
+ 4. Test case:  Create an autostart container;  start it with lxc-instance;  look for it with lxc-ls.
+ 5. Regression potential:  Incorrectly setup autostart containers may no longer start with a fix.  (the /etc/autostart/$name link must be a symbolic link to /var/lib/lxc/$name/config)
+ ==========================
+ 
+ 
+ I just upgraded to ubuntu saucy and found a strange behaviour. The command lxc-ls doesn't show the correct status of running machines.
  
  as you can see my output for jenkins is "stopped", but I am logged into
  the system (jenkins) at the very same moment, so it is running. I can
  also do thinks within the virtual machine, but the status doesn't
  change.
  
  
  # lxc-ls --fancy
  NAME       STATE    IPV4  IPV6  AUTOSTART
  -----------------------------------------
  jenkins    STOPPED  -     -     NO
  php-54-32  STOPPED  -     -     NO
  test       STOPPED  -     -     NO

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

Title:
  lxc-ls shows wrong status

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1242074/+subscriptions



More information about the Ubuntu-server-bugs mailing list