clonetemplate lock can be left stale

Bug #1311668 reported by John A Meinel
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Ian Booth
1.20
Fix Released
Critical
Ian Booth

Bug Description

I was testing out some of the issues with Local and using both precise and trusty. While doing so I bootstrapped and destroy-environment a few times.

Eventually I ended up with:
2014-04-23 13:36:11 INFO juju.container.lxc clonetemplate.go:78 wait for fslock on juju-trusty-template
2014-04-23 13:36:11 INFO juju.utils.fslock fslock.go:146 attempted lock failed "juju-trusty-template", ensure clone exists, currently held: ensure clone exists

And the dir /var/lib/juju/locks/juju-trusty-template was indeed still 'held' by no process.

My guess is that destroy-environment shuts things down, but they don't clean up the lock that was taken.

Changed in juju-core:
milestone: 1.20.0 → next-stable
Curtis Hovey (sinzui)
tags: added: deploy
Revision history for this message
Curtis Hovey (sinzui) wrote :

Stale locks are the cause of "service stuck in pending" seen in landscape and maas testing. See the duplicate bugs for more details.

Changed in juju-core:
milestone: next-stable → 1.21-alpha1
tags: added: landscape maas
Ian Booth (wallyworld)
Changed in juju-core:
status: Triaged → Fix Committed
assignee: nobody → Ian Booth (wallyworld)
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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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