[LXD provider] Trusty container is used by default on Xenial host

Bug #1557747 reported by Peter Matulis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Medium
Reed O'Brien

Bug Description

On a Xenial host I need to use --upload-tools :

$ juju bootstrap --upload-tools controller-lxd1 lxd

to create a controller for LXD because it chooses Trusty as 'default-series'.

$ dpkg-query -W juju2
juju2 2.0-beta2-0ubuntu1~16.04.1~juju1

$ lsb_release -c
Codename: xenial

WORK AROUND
juju bootstrap -controller-lxd1 lxd --config default-series=xenial

Revision history for this message
Peter Matulis (petermatulis) wrote :

Also, using

--config default-series=xenial

doesn't work either:

" ERROR failed to bootstrap model: cannot start bootstrap instance: Error adding alias ubuntu-xenial: not found "

Curtis Hovey (sinzui)
description: updated
description: updated
Revision history for this message
Peter Matulis (petermatulis) wrote :

@Curtis

Looks like we may have posted at the same time. I observe that '--config default-series=xenial' does not work.

Revision history for this message
Ian Booth (wallyworld) wrote :

@Peter,

The error in comment one is because there's been no lxd image downloaded. As per the current release notes, this needs to be done manually using the lxd image import tool.

The next juju beta should be enhanced to automatically fetch the required lxd image if it is not currently in the lxd image cache.

Revision history for this message
Peter Matulis (petermatulis) wrote :

@Ian

Thank you. I thought the import step was no longer required.

I got beyond my original error and now I get a hang. I've opened a new bug for this:

https://bugs.launchpad.net/juju-core/+bug/1558239

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

The default series, if one is not specified, is the most recent LTS as reported by `distro-info --lts`

Once Xenial is released, that command should return Xenial, and so the new default will be updated. We should update the fallback (which is used in cases where the distro-info command would fail, like from a osx or windows client) once Xenial is released.

Changed in juju-core:
status: New → Triaged
importance: Undecided → Medium
milestone: none → 2.0-beta4
tags: added: 2.0-count
Changed in juju-core:
milestone: 2.0-beta4 → 2.0-rc1
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 2.0-beta5 → 2.0-rc1
Revision history for this message
Reed O'Brien (reedobrien) wrote :

Done in commit 5f992fe87c9 when it lands.

Changed in juju-core:
assignee: nobody → Reed O'Brien (reedobrien)
status: Triaged → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
affects: juju-core → juju
Changed in juju:
milestone: 2.0-beta6 → none
milestone: none → 2.0-beta6
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.