Merge lp:~ubuntu-on-ec2/vmbuilder/jenkins_kvm-add-azure-cc into lp:~ubuntu-on-ec2/vmbuilder/jenkins_kvm

Proposed by Francis Ginther
Status: Merged
Merged at revision: 800
Proposed branch: lp:~ubuntu-on-ec2/vmbuilder/jenkins_kvm-add-azure-cc
Merge into: lp:~ubuntu-on-ec2/vmbuilder/jenkins_kvm
Diff against target: 62 lines (+58/-0)
1 file modified
templates/img-azure-18.10-addin.tmpl (+58/-0)
To merge this branch: bzr merge lp:~ubuntu-on-ec2/vmbuilder/jenkins_kvm-add-azure-cc
Reviewer Review Type Date Requested Status
Philip Roche Approve
Robert C Jennings (community) Approve
Review via email: mp+348835@code.launchpad.net

Commit message

Add a cosmic version of the Azure suite specific template files, img-azure-18.10-addin.tmpl.

Description of the change

Cosmic is missing the azure addin template which defines the package archive URL and should resolve these test failures:

https://cloud-images-jenkins.canonical.com/job/Azure-Tests/1875/TEST=azure-general,VMSIZE=A8,WITH_PASSWORD=yes,label=EC2-Tester/testReport/junit/(root)/BasicAzureTests/test_archive/

To post a comment you must log in.
Revision history for this message
Robert C Jennings (rcj) wrote :

diff to last release to see changes from bionic

Revision history for this message
Robert C Jennings (rcj) wrote :

+1

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file 'templates/img-azure-18.10-addin.tmpl'
--- templates/img-azure-18.10-addin.tmpl 1970-01-01 00:00:00 +0000
+++ templates/img-azure-18.10-addin.tmpl 2018-07-02 12:55:11 +0000
@@ -0,0 +1,58 @@
1# vi: ts=4 noexpandtab syntax=sh
2# Insert the Cosmic (18.10) Config
3CLOUD_IMG_STR="# CLOUD_IMG: This file was created/modified by the Cloud Image build process"
4cat << EOF > ${mp}/etc/default/grub.d/50-cloudimg-settings.cfg
5# Windows Azure specific grub settings
6${CLOUD_IMG_STR}
7
8# Set the default commandline
9GRUB_CMDLINE_LINUX_DEFAULT="console=tty1 console=ttyS0 earlyprintk=ttyS0 rootdelay=300"
10
11# Set the grub console type
12GRUB_TERMINAL=serial
13
14# Set the serial command
15GRUB_SERIAL_COMMAND="serial --speed=9600 --unit=0 --word=8 --parity=no --stop=1"
16
17# Set the recordfail timeout
18GRUB_RECORDFAIL_TIMEOUT=0
19
20# Do not wait on grub prompt
21GRUB_TIMEOUT=0
22EOF
23
24# Add in the client keep alive
25cat << EOF >> "${mp}/etc/ssh/sshd_config"
26
27${CLOUD_IMG_STR}
28ClientAliveInterval 120
29EOF
30
31# Add the configuration for Cloud-init
32cat << EOF > "${mp}/etc/cloud/cloud.cfg.d/90-azure.cfg"
33${CLOUD_IMG_STR}
34system_info:
35 package_mirrors:
36 - arches: [i386, amd64]
37 failsafe:
38 primary: http://archive.ubuntu.com/ubuntu
39 security: http://security.ubuntu.com/ubuntu
40 search:
41 primary:
42 - http://azure.archive.ubuntu.com/ubuntu/
43 security: []
44 - arches: [armhf, armel, default]
45 failsafe:
46 primary: http://ports.ubuntu.com/ubuntu-ports
47 security: http://ports.ubuntu.com/ubuntu-ports
48
49EOF
50
51# Frame buffer fix
52cat << EOF >> "${mp}/etc/initramfs-tools/modules"
53
54# Need for slow boot times due to framebuffer
55hyperv_fb
56EOF
57
58xchroot update-initramfs -u -k all

Subscribers

People subscribed via source and target branches

to all changes: