installation of packages for containers should be retried in face of lock errors

Bug #1354685 reported by Adam Collard
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Adam Collard
1.20
Fix Released
High
Ian Booth

Bug Description

Currently Juju will apt-get install packages (such as lxc) when you create a container on a given machine. When that machine has another unit running on it, Juju can fail to get the apt or dpkg lock, and therefore fail the installation. Well written charms (e.g. the OpenStack ones) already cope with this situation by retrying after sleeping for a few seconds.

Changed in juju-core:
assignee: nobody → Adam Collard (adam-collard)
Curtis Hovey (sinzui)
Changed in juju-core:
status: New → Triaged
importance: Undecided → High
tags: added: lxc
Changed in juju-core:
status: Triaged → In Progress
Revision history for this message
Adam Collard (adam-collard) wrote :
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: none → 1.21-alpha1
Ian Booth (wallyworld)
Changed in juju-core:
status: In Progress → Fix Committed
Revision history for this message
Kapil Thangavelu (hazmat) wrote :

This is bad because its racing with charm hooks, it really needs to use the hook lock imo.

Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
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.