lxd provider: machines stuck at "pending"

Bug #1540437 reported by Casey Marshall
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Unassigned

Bug Description

Sometimes when I try deploying on the lxd provider, the machines never provision.

See https://paste.ubuntu.com/14852745/, contains juju status, lxc list and the controller log file.

Rebooting the controller usually recovers from this condition (juju ssh 0 "sudo reboot").

Revision history for this message
Eric Snow (ericsnowcurrently) wrote :

This log entry seems to be a good clue:

cannot rename temporary config file: open /.config/lxc/config.yml.new: no such file or directory

Casey Marshall (cmars)
description: updated
Changed in juju-core:
status: New → Triaged
importance: Undecided → High
milestone: none → 2.0-beta1
tags: added: juju-release-support lxd
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 2.0-beta1 → 2.0-beta2
Revision history for this message
John A Meinel (jameinel) wrote :

If the bug really is: /.config/lxc/config.yml.new: no such file or directory
there was a buggy race condition where we were creating a config file in root /.config/... and further we were doing something buggy internally that was causing us to create lots of them as:
/.config/juju-lxc/juju-lxc/juju-lxc/...
(I saw as deep as 6).
Potentially this would be multiple threads trying to initialize juju-lxc at the same time.

however, the latest version of the provider gets rid of the disk config entirely, and we feed it the information it needs directly from state, instead of caching it.
So I'd guess this is Fixed.

Changed in juju-core:
status: Triaged → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
tags: added: 2.0-count
affects: juju-core → juju
Changed in juju:
milestone: 2.0-beta2 → none
milestone: none → 2.0-beta2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

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