Merge lp:~ubuntu-on-ec2/vmbuilder/jenkins_kvm-oddbloke into lp:~ubuntu-on-ec2/vmbuilder/jenkins_kvm

Proposed by Dan Watkins
Status: Merged
Merged at revision: 812
Proposed branch: lp:~ubuntu-on-ec2/vmbuilder/jenkins_kvm-oddbloke
Merge into: lp:~ubuntu-on-ec2/vmbuilder/jenkins_kvm
Diff against target: 65 lines (+6/-12)
1 file modified
templates/img-azure.tmpl (+6/-12)
To merge this branch: bzr merge lp:~ubuntu-on-ec2/vmbuilder/jenkins_kvm-oddbloke
Reviewer Review Type Date Requested Status
Philip Roche Approve
Dimitri John Ledkov (community) Approve
Review via email: mp+356688@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Dimitri John Ledkov (xnox) :
review: Approve
Revision history for this message
Philip Roche (philroche) wrote :

+1 but with a couple of comments that are non blocking

review: Approve
Revision history for this message
Philip Roche (philroche) wrote :

Merged as we need to start and test a build with this change today

Revision history for this message
Dan Watkins (oddbloke) wrote :

On Mon, Oct 15, 2018 at 08:35:50AM -0000, Philip Roche wrote:
> Diff comments:
>
> > === modified file 'templates/img-azure.tmpl'
> > --- templates/img-azure.tmpl 2018-10-11 19:20:20 +0000
> > +++ templates/img-azure.tmpl 2018-10-14 21:46:08 +0000
> > @@ -220,12 +216,10 @@
> > xenial) pkgs+=(linux-azure
> > unscd)
> > rpkgs+=(linux-image-virtual linux-image-generic linux-.*4.4.*);;
> > - artful) pkgs+=(linux-cloud-tools-virtual unscd);;
> > - bionic) pkgs+=(linux-azure)
> > + *) pkgs+=(linux-azure)
>
> +1 for now but this will fail when we try and build a DD image and linux-azure will most likely not be present yet.

IIRC, packages are copied over from cosmic during opening, so we should
have cosmic's linux-azure in dd when it opens.

> > # N.B. This rpkgs is different to xenial's because linux-azure and
> > - # linux-generic are at the same version for bionic's release
> > + # linux-generic are at the same version for newer releases
> > rpkgs+=(linux-image-virtual linux-.*-generic);;
>
> I have found that '^linux-.*' 'linux-base+' worked in my cosmic tests. That doesn't mean "linux-image-virtual linux-.*-generic" does n't work. I just haven't tested it.

I think I failed to mention that I did a test build and boot, so I think
we're fine:

$ dpkg -l | grep linux- | grep -v azure
ii linux-base 4.5ubuntu1 all Linux image base package
ii linux-cloud-tools-common 4.18.0-10.11 all Linux kernel version specific cloud tools for version 4.18.0
ii linux-tools-common 4.18.0-10.11 all Linux kernel version specific tools for version 4.18.0

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'templates/img-azure.tmpl'
--- templates/img-azure.tmpl 2018-10-11 19:20:20 +0000
+++ templates/img-azure.tmpl 2018-10-14 21:46:08 +0000
@@ -146,7 +146,7 @@
146 # dirmngr & gpg-agent hold on to files under ${mp}/dev146 # dirmngr & gpg-agent hold on to files under ${mp}/dev
147 # We are not aware of a lp bug # for this for now147 # We are not aware of a lp bug # for this for now
148 case $suite in148 case $suite in
149 precise|trusty|xenial)149 trusty|xenial)
150 # These are not affected by the gpg run-away process issue150 # These are not affected by the gpg run-away process issue
151 ;;151 ;;
152 *)152 *)
@@ -208,10 +208,6 @@
208rpkgs=(grub-legacy-ec2)208rpkgs=(grub-legacy-ec2)
209# Install per-suite requirements209# Install per-suite requirements
210case "${suite}" in210case "${suite}" in
211 precise) pkgs+=(linux-image-hwe-generic
212 linux-cloud-tools-generic-lts-trusty
213 hv-kvp-daemon-init
214 ntp);;
215 trusty) pkgs+=(linux-image-virtual-lts-xenial211 trusty) pkgs+=(linux-image-virtual-lts-xenial
216 linux-cloud-tools-virtual-lts-xenial212 linux-cloud-tools-virtual-lts-xenial
217 ntp213 ntp
@@ -220,12 +216,10 @@
220 xenial) pkgs+=(linux-azure216 xenial) pkgs+=(linux-azure
221 unscd)217 unscd)
222 rpkgs+=(linux-image-virtual linux-image-generic linux-.*4.4.*);;218 rpkgs+=(linux-image-virtual linux-image-generic linux-.*4.4.*);;
223 artful) pkgs+=(linux-cloud-tools-virtual unscd);;219 *) pkgs+=(linux-azure)
224 bionic) pkgs+=(linux-azure)
225 # N.B. This rpkgs is different to xenial's because linux-azure and220 # N.B. This rpkgs is different to xenial's because linux-azure and
226 # linux-generic are at the same version for bionic's release221 # linux-generic are at the same version for newer releases
227 rpkgs+=(linux-image-virtual linux-.*-generic);;222 rpkgs+=(linux-image-virtual linux-.*-generic);;
228 *) pkgs+=(linux-cloud-tools-virtual);;
229esac223esac
230224
231# Test enablement for -proposed225# Test enablement for -proposed
@@ -268,7 +262,7 @@
268262
269# Configure unscd263# Configure unscd
270case "${suite}" in264case "${suite}" in
271 trusty|xenial|artful)265 trusty|xenial)
272 [ -e "${mp}/etc/nscd.conf" ] &&266 [ -e "${mp}/etc/nscd.conf" ] &&
273 xchroot sed -e "s|enable-cache.*hosts.*no|enable-cache\t\thosts\tyes|g" \267 xchroot sed -e "s|enable-cache.*hosts.*no|enable-cache\t\thosts\tyes|g" \
274 -e "s|positive-time-to-live.*hosts.*3600|positive-time-to-live\thosts\t60|g" \268 -e "s|positive-time-to-live.*hosts.*3600|positive-time-to-live\thosts\t60|g" \
@@ -298,7 +292,7 @@
298# Or, on yakkety and later, reinstall grub-pc which is no longer in the base292# Or, on yakkety and later, reinstall grub-pc which is no longer in the base
299# image293# image
300case $suite in294case $suite in
301 precise|trusty|wily|xenial)295 trusty|xenial)
302 xchroot dpkg-reconfigure grub-pc296 xchroot dpkg-reconfigure grub-pc
303 ;;297 ;;
304 *)298 *)
@@ -361,7 +355,7 @@
361# This call sources functions from livecd-rootfs, so call it as late as355# This call sources functions from livecd-rootfs, so call it as late as
362# possible to reduce potential for conflicts356# possible to reduce potential for conflicts
363case $suite in357case $suite in
364 precise|trusty|xenial|artful)358 trusty|xenial)
365 # We only have the livecd-rootfs support for model assertions in bionic359 # We only have the livecd-rootfs support for model assertions in bionic
366 # (and later)360 # (and later)
367 ;;361 ;;

Subscribers

People subscribed via source and target branches

to all changes: