[Bug 994752] Re: lxc-start-ephemeral's use of dhcp lease table is fragile

Bryce Harrington 994752 at bugs.launchpad.net
Thu May 17 04:26:39 UTC 2012


** Description changed:

- When lxc-start-ephemeral is given a command to run (-- do_something) it
- wants to use lxc-attach to run the command, but lxc-attach is not ready
- yet.  Instead, it parses the dhcp leases to figure out the IP for the
- container, and then tries to use ssh to run the command.
+ [Impact]
+ <fill me in with explanation of severity and frequency of bug on users and justification for backporting the fix to the stable release>
+ 
+ [Development Fix]
+ <fill me in with an explanation of how the bug has been addressed in the development branch, including the relevant version numbers of packages modified in order to implement the fix. >
+ 
+ [Stable Fix]
+ <fill me in by pointing out a minimal patch applicable to the stable version of the package.>
+ 
+ [Text Case]
+ <fill me in with detailed *instructions* on how to reproduce the bug.  This will be used by people later on to verify the updated package fixes the problem.>
+ 1.
+ 2.
+ 3.
+ Broken Behavior: 
+ Fixed Behavior: 
+ 
+ [Regression Potential]
+ <fill me in with a discussion of likelihood and potential severity of regressions and how users could get inadvertently affected.>
+ 
+ [Original Report]When lxc-start-ephemeral is given a command to run (--
+ do_something) it wants to use lxc-attach to run the command, but lxc-
+ attach is not ready yet.  Instead, it parses the dhcp leases to figure
+ out the IP for the container, and then tries to use ssh to run the
+ command.
  
  Twice today in tests involving lxc-start-ephemeral, the dhcp leases were
  unavailable and lxc-start-ephemeral failed.  The machine was under
  fairly heavy load and was virtualized (EC2).
  
  I'd like to try and make this less fragile.  As discussed on IRC, using
  lxcip
  (http://bazaar.launchpad.net/~launchpad/lpsetup/trunk/files/head:/lplxcip/)
  should make this more reliable.  Perhaps increasing the timeout in that
  code might be useful as well.

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/994752

Title:
  lxc-start-ephemeral's use of dhcp lease table is fragile

Status in “lxc” package in Ubuntu:
  Fix Released
Status in “lxc” source package in Precise:
  Confirmed
Status in “lxc” source package in Quantal:
  Fix Released

Bug description:
  [Impact]
  <fill me in with explanation of severity and frequency of bug on users and justification for backporting the fix to the stable release>

  [Development Fix]
  <fill me in with an explanation of how the bug has been addressed in the development branch, including the relevant version numbers of packages modified in order to implement the fix. >

  [Stable Fix]
  <fill me in by pointing out a minimal patch applicable to the stable version of the package.>

  [Text Case]
  <fill me in with detailed *instructions* on how to reproduce the bug.  This will be used by people later on to verify the updated package fixes the problem.>
  1.
  2.
  3.
  Broken Behavior: 
  Fixed Behavior: 

  [Regression Potential]
  <fill me in with a discussion of likelihood and potential severity of regressions and how users could get inadvertently affected.>

  [Original Report]When lxc-start-ephemeral is given a command to run
  (-- do_something) it wants to use lxc-attach to run the command, but
  lxc-attach is not ready yet.  Instead, it parses the dhcp leases to
  figure out the IP for the container, and then tries to use ssh to run
  the command.

  Twice today in tests involving lxc-start-ephemeral, the dhcp leases
  were unavailable and lxc-start-ephemeral failed.  The machine was
  under fairly heavy load and was virtualized (EC2).

  I'd like to try and make this less fragile.  As discussed on IRC,
  using lxcip
  (http://bazaar.launchpad.net/~launchpad/lpsetup/trunk/files/head:/lplxcip/)
  should make this more reliable.  Perhaps increasing the timeout in
  that code might be useful as well.

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



More information about the Ubuntu-sponsors mailing list