lxd provider fails to setup ssh keys during bootstrap

Bug #1533742 reported by John A Meinel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Invalid
Undecided
Unassigned

Bug Description

Trying to bootstrap lxd provider on ubuntu-trusty
I added ppa:ubuntu-lxc/lxd-stable
and then installed lxd
and used 'lxd init' to set up lxd
I then did
lxd-images import ubuntu --alias ubuntu-trusty
and doing
juju bootstrap -e lxd --upload-tools --debug
ends up trying to SSH in, but gets publickey denied.

If I then run
lxc exec ... bash
and look at /var/log/cloud-init-output.log I can see that it is unable to find authorized keys for the user 'ubuntu' and I can confirm that /home/ubuntu/.ssh is empty.

I'm currently running into some other bugs with lxd itself (lxd-images is breaking trying to re-import the image after I deleted it). But I'll try to post steps, because I tried this a couple times and it failed reliably.

Tags: lxd
Revision history for this message
Katherine Cox-Buday (cox-katherine-e) wrote :

For future reference, John's setup is:
- host is trusty
- using a compiled version of master's tip using Go 1.5.1 (https://github.com/juju/juju/commit/ca584f1ecd3a227ae6731f7412b0c175d666694f)
- using ubuntu-trusty as remote image, fingerprint 0afd3f6ac (suspect it's actually 0afd3f6ac0d7)

I cannot reproduce locally, but I'm on wily.

Can you please provide the LXD section of your environments.yaml?

Changed in juju-core:
status: Triaged → Incomplete
Revision history for this message
John A Meinel (jameinel) wrote :

I haven't been able to reproduce it for a while, so I'm willing to call this fixed-in-due-time.

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