lxc template creation, give option to use mirror

Bug #1376334 reported by David Britton
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Triaged
Medium
Unassigned

Bug Description

As there has now been a mirror set up of cloud-images[0], it makes sense to allow users to use that. Please provide an option to get lxc images from a different location.

After talking to Scott Moser, it appears the lxc system has an environment variable for this, if juju would just allow it to be set and used.

dpb@helo:~$ grep BASEURL /usr/bin/ubuntu-cloudimg-query
burl="${UBUNTU_CLOUDIMG_QUERY_BASEURL:-https://cloud-images.ubuntu.com/query}"

Thanks!

[0] http://us.cloud-images.ubuntu.com/

Curtis Hovey (sinzui)
tags: added: feature lxc
Changed in juju-core:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Nate Finch (natefinch) wrote :

You can set that using juju run right now. Making it something settable by juju set-environment seems logical, and not super hard.

Revision history for this message
John A Meinel (jameinel) wrote :

It feels like this could be a global environment setting "lxc-ubuntu-cloudimage-query-url:"
Its also something we'll want to be aware of as we support LXD, where you can (again) name places where images can be found.
I believe the LXD case is actually much cleaner, but Juju will still want to have a way to expose the LXD configuration.

Revision history for this message
Nobuto Murata (nobuto) wrote :

I didn't try it by myself, but 1.25 seems to have "cloudimg-base-url" config option.
https://github.com/juju/juju/commit/07006e52b06acd6701e766b57f4c3bcfe59ef069

Revision history for this message
Nobuto Murata (nobuto) wrote :
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.