Merge lp:~sinzui/juju-release-tools/build-with-cloud-templates into lp:juju-release-tools
Status: | Merged |
---|---|
Merged at revision: | 242 |
Proposed branch: | lp:~sinzui/juju-release-tools/build-with-cloud-templates |
Merge into: | lp:juju-release-tools |
Diff against target: |
36 lines (+13/-4) 1 file modified
build_package.py (+13/-4) |
To merge this branch: | bzr merge lp:~sinzui/juju-release-tools/build-with-cloud-templates |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Packman (community) | Approve | ||
Review via email: mp+280217@code.launchpad.net |
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/
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-
C. For arm64 and ppc64el, we rewrite the archives that point to archives.
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.
Looks good, one thing to fix, see inline comment.