Merge lp://staging/~sinzui/juju-release-tools/build-with-cloud-templates into lp://staging/juju-release-tools

Proposed by Curtis Hovey
Status: Merged
Merged at revision: 242
Proposed branch: lp://staging/~sinzui/juju-release-tools/build-with-cloud-templates
Merge into: lp://staging/juju-release-tools
Diff against target: 36 lines (+13/-4)
1 file modified (+13/-4)
To merge this branch: bzr merge lp://staging/~sinzui/juju-release-tools/build-with-cloud-templates
Reviewer Review Type Date Requested Status
Martin Packman (community) Approve
Review via email:

Description of the change

Build arm64 binary packages.

This branch makes a few changes to support building arm64 packages, and as a consequence, allows us to stop pre-populating the lxc download template cache to machines on private networks. We discovered that the images for lxc "download" template are not maintained; the wily arm64 image is from June of the year! Even the ppc64el images are not updated as often as the amd64 images. Only lxc cloud images are genuinely current.

I previously tried and abandoned an effort to use the lxc ubuntu-cloud template because it was unreliable on ppc64el. It is also unreliable on arm64. We know understand that cloud init is changing the /etc/apt/sources.list, and the config is invalid for arm64 ad ppc64el. The lesser archs prefer

A. We now use the ubuntu-cloud template. This also means we don't need special egress rules for building on canonical networks.

B. We poll for cloud init to complete. This is done by tailing the cloud-init-output.log. The egrep call is case-insensitive because precise is "cloud-init", trusty and above is "Cloud-init"

C. For arm64 and ppc64el, we rewrite the archives that point to to

This is tested on arm64 wily, ppc64el trusty, amd64 trusty.

We still cannot build on precise because the kernel does not support lxc-attach. We can switch from lxc-attach to ssh in the future if we wish.

To post a comment you must log in.
Revision history for this message
Martin Packman (gz) wrote :

Looks good, one thing to fix, see inline comment.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.


People subscribed via source and target branches