Merge lp:~josvaz/vmbuilder/jenkins_kvm-wala-autoupdates into lp:~ubuntu-on-ec2/vmbuilder/jenkins_kvm

Proposed by Jose L. VG
Status: Rejected
Rejected by: Jose L. VG
Proposed branch: lp:~josvaz/vmbuilder/jenkins_kvm-wala-autoupdates
Merge into: lp:~ubuntu-on-ec2/vmbuilder/jenkins_kvm
Diff against target: 18 lines (+8/-0)
1 file modified
templates/img-azure.tmpl (+8/-0)
To merge this branch: bzr merge lp:~josvaz/vmbuilder/jenkins_kvm-wala-autoupdates
Reviewer Review Type Date Requested Status
Dan Watkins (community) Approve
Chris Glass (community) Approve
Steve Langasek Pending
Review via email: mp+318577@code.launchpad.net

Description of the change

Walinuxagent 2.2.4 includes AutoUpdate.Enable=y in the following way:

* The archive package has autoupdate OFF be default, so security reasons.

* The walinuxagent >=2.2.4 ubuntu package adds include file/fonder config overrides and enforces AutoUpdate.Enable on upgrades.

* The CPC image building process enables autoupdates for the Azure image. THIS MP takes care of it.

UPDATE:
Turns out the include support was dropped after chatting with Microsoft and instead the package will have the auto-updates on by default from the archive, so this is not needed anymore.

To post a comment you must log in.
786. By Jose L. VG

Enable walinuxagent AutoUpdate for Azure.

Revision history for this message
Ɓukasz Zemczak (sil2100) wrote :

Don't know the image building bits, but this looks good.

One question though: this part of code is executed *after* all required packages are installed for the image, right? If that's the case, we also install this config file for all walinuxagent 2.2.4+ packages to /usr/share/walinuxagent/conf, so in theory this could be a file-copy operation instead. Not sure what the ${CLOUD_IMG_STR} is for, since that would have to be appended probably if it's needed still...

Anyway, no approving since we still need to wait for a final consensus from Microsoft, as they still didn't approve the general approach we're trying to use.

Revision history for this message
Jose L. VG (josvaz) wrote :

On your question: yes & no
It will eventually be done after the walinuxagent 2.2.4 or later gets installed, but for now, as the archive has 2.2.2 it will install that, set the file and later upgrade to 2.2.4, which will NOT step on it.

I do prefer this solution to a file copy cause it:
- Allows testing the image BEFORE we hit proposed.
- Having a different file header makes it clear that it was the cloudware image building and NOT the package itself who place the config there.

I understand this is blocked by Microsoft, as you say.

But I would like to have other CPC folks review and approve. Don't merge, I will sync with Lukasz before that.

Revision history for this message
Chris Glass (tribaal) wrote :

Looks good. One thing I couldn't easily check is that the config folder is actually picked up by walinuxagent (/etc/waagent.conf.d), but I trust it's correct.

+1

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

+1 conditional on the support landing in walinuxagent.

review: Approve
Revision history for this message
Jose L. VG (josvaz) wrote :

Turns out the include support was dropped after chatting with Microsoft and instead the package will have the auto-updates on by default from the archive, so this is not needed anymore.

Unmerged revisions

786. By Jose L. VG

Enable walinuxagent AutoUpdate for Azure.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'templates/img-azure.tmpl'
2--- templates/img-azure.tmpl 2017-02-17 11:21:39 +0000
3+++ templates/img-azure.tmpl 2017-03-01 09:23:21 +0000
4@@ -227,6 +227,14 @@
5 xchroot apt-get -y clean
6 debug "Package operations complete"
7
8+# Set AutoUpdate ON in walinuxagent
9+mkdir -p "${mp}/etc/waagent.conf.d"
10+cat << EOF >> "${mp}/etc/waagent.conf.d/enable-autoupdate.conf"
11+${CLOUD_IMG_STR}
12+# This file is only loaded with walinuxagent include support (version>=2.2.4)
13+AutoUpdate.Enabled=y
14+EOF
15+
16 # Modify boot settings
17 debug "Modifying in-image settings for Azure"
18 xchroot sed -i "s,LABEL=cloudimg-rootfs,UUID=${dev_uuid},g" /etc/fstab

Subscribers

People subscribed via source and target branches