Handle lxc-start/lxc-wait/lxc-attach race better

Bug #1428848 reported by Christopher Townsend
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Unity8 Desktop Preview in LXC
Fix Committed
Medium
Christopher Townsend
unity8-lxc (Ubuntu)
Fix Released
Medium
Christopher Townsend

Bug Description

In the 1.0.3 release, I worked around the lxc-start/lxc-wait/lxc-attach race using a 'sleep 0.5'. This doesn't guarantee the race will be avoided, so a better solution is needed.

Related branches

Changed in unity8-preview-lxc:
status: New → Triaged
Changed in unity8-lxc (Ubuntu):
status: New → Triaged
Changed in unity8-preview-lxc:
importance: Undecided → Medium
Changed in unity8-lxc (Ubuntu):
importance: Undecided → Medium
Changed in unity8-preview-lxc:
assignee: nobody → Christopher Townsend (townsend)
milestone: none → 1.0.4
Changed in unity8-lxc (Ubuntu):
assignee: nobody → Christopher Townsend (townsend)
Changed in unity8-preview-lxc:
status: Triaged → In Progress
Changed in unity8-lxc (Ubuntu):
status: Triaged → In Progress
Revision history for this message
Christopher Townsend (townsend) wrote :

We've finally figured out what is causing this. See bug #1452451 for more details.

The proper workaround is to use "lxc.auto.mount = proc:mixed" in the LXC config.

I'll be making the proper changes in the dev branch to use the proper workaround instead of the hacky sleep.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unity8-lxc - 1.0.4+15.10.20150609-0ubuntu1

---------------
unity8-lxc (1.0.4+15.10.20150609-0ubuntu1) wily; urgency=medium

  [ Chris Townsend ]
  * Bump version to 1.0.4.
  * Automount /proc to avoid a race when attaching to a container to run
    a command. Also remove the ugly sleep workaround. (LP: #1428848)
  * Cache a copy of upstart-sysv when downloading the Unity 8 Desktop
    Next ISO image. This will keep the ISO and the upstart-sysv package
    in sync. (LP: #1458236)
  * Catch the exception when distro-info-data is outdated during dev
    release transitions. Use the current stable release instead when the
    dev release has not been updated. (LP: #1448521)
  * Terminate the session instead of killing the user when logging out
    of the Unity 8 LXC session. This is much less aggressive and keeps
    ssh sessions alive. (LP: #1456604)
  * Use upstart-sysv in the Unity8 container instead of systemd. This
    fixes a slew of issues when using systemd in the container. (LP:
    #1437900)

 -- CI Train Bot <email address hidden> Tue, 09 Jun 2015 14:17:23 +0000

Changed in unity8-lxc (Ubuntu):
status: In Progress → Fix Released
Changed in unity8-preview-lxc:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.