lxd doesn't provision instances on first bootstrap in new xenial image

Bug #1566420 reported by Cheryl Jennings
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju-core
Expired
High
Unassigned

Bug Description

I have hit this every time I bootstrap the lxd provider on a new xenial instance. The bootstrap works fine, but when I try to deploy anything into either the default or admin model, a new instance is never provisioned, and the unit just hangs in "Waiting for agent initialization to finish":

ubuntu@ip-172-31-18-222:~$ juju2 switch lxd:default
local.lxd:admin -> local.lxd:default
ubuntu@ip-172-31-18-222:~$ juju2 status
[Services]
NAME STATUS EXPOSED CHARM
ubuntu unknown false cs:trusty/ubuntu-7

[Units]
ID WORKLOAD-STATUS JUJU-STATUS VERSION MACHINE PORTS PUBLIC-ADDRESS MESSAGE
ubuntu/0 unknown allocating Waiting for agent initialization to finish

[Machines]
ID STATE DNS INS-ID SERIES AZ

If I go into the database, the only machine in the machines collection is the state server.

juju:PRIMARY> db.machines.find().count()
1

I cannot destroy / kill the controller because it loops forever waiting for the service to be destroyed:
ubuntu@ip-172-31-18-222:~$ juju2 destroy-controller lxd --destroy-all-models
WARNING! This command will destroy the "local.lxd" controller.
This includes all machines, services, data and other resources.

Continue [y/N]? y
Destroying controller "local.lxd"
Waiting for hosted model resources to be reclaimed.
Waiting on 1 model, 2 services
Waiting on 1 model, 2 services
Waiting on 1 model, 2 services
Waiting on 1 model, 2 services
<repeated until I kill it>

Oddly enough, if I bootstrap a second lxd controller, I can deploy just fine.

Tags: lxd
tags: added: lxd
Revision history for this message
Antonio Rosales (arosales) wrote :

@Cheryl,

Even when trying to work around this issue by creating a second controller we are getting reports of the deploys hanging:

:~/charms/layers/layer-vanilla$ juju list-controllers
CONTROLLER MODEL USER SERVER
local.lxd-test test1 admin@local 10.176.132.15:17070
local.lxd-test1* default admin@local [fd74:26c3:f268:a666:216:3eff:fe0e:658]:17070

:~/charms/layers/layer-vanilla$ juju list-controllers
CONTROLLER MODEL USER SERVER
local.lxd-test test1 admin@local 10.176.132.15:17070
local.lxd-test1* default admin@local [fd74:26c3:f268:a666:216:3eff:fe0e:658]:17070

Specifically, deploying vanilla charm,and mariadb hang. No output to juju debug-log.

-thanks,
Antonio

Revision history for this message
Cheryl Jennings (cherylj) wrote :

Antonio - can you paste the `juju status` for the models?

Revision history for this message
Cheryl Jennings (cherylj) wrote :

I haven't seen this in a while.

Changed in juju-core:
status: Triaged → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for juju-core because there has been no activity for 60 days.]

Changed in juju-core:
status: Incomplete → Expired
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.