Merge lp:~thomir-deactivatedaccount/adt-cloud-worker/uci-nova-testbed-fixes into lp:~canonical-ci-engineering/adt-cloud-worker/uci-nova

Proposed by Thomi Richards
Status: Merged
Approved by: Thomi Richards
Approved revision: 9
Merged at revision: 7
Proposed branch: lp:~thomir-deactivatedaccount/adt-cloud-worker/uci-nova-testbed-fixes
Merge into: lp:~canonical-ci-engineering/adt-cloud-worker/uci-nova
Diff against target: 44 lines (+19/-0)
1 file modified
uci-nova (+19/-0)
To merge this branch: bzr merge lp:~thomir-deactivatedaccount/adt-cloud-worker/uci-nova-testbed-fixes
Reviewer Review Type Date Requested Status
Thomi Richards (community) Approve
Joe Talbott (community) Approve
Review via email: mp+256369@code.launchpad.net

This proposal supersedes a proposal from 2015-04-15.

Commit message

Include fixes from pitti's vm-setup script. Should improve pass rate.

Description of the change

Include fixes from pitti's vm-setup script. Should improve pass rate.

To post a comment you must log in.
8. By Thomi Richards

Fix typo.

Revision history for this message
Joe Talbott (joetalbott) wrote :

This looks okay to me.

review: Approve
9. By Thomi Richards

Always reboot.

Revision history for this message
Thomi Richards (thomir-deactivatedaccount) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'uci-nova'
2--- uci-nova 2015-04-05 03:56:32 +0000
3+++ uci-nova 2015-04-15 18:53:11 +0000
4@@ -193,6 +193,11 @@
5
6 # generate cloud-init user data; mostly for manage_etc_hosts, but also get
7 # rid of some unnecessary stuff in the VM
8+ #
9+ # NOTE: The "#cloud-config" at the top of this file tells cloud-init that this is
10+ # a config file, as opposed to a shell script (which must start with "#!"). Don't
11+ # Do what I did and think "commented out code! DELETE!" and then wonder why nothing
12+ # works. - Thomi
13 local userdata=`mktemp`
14 cat <<EOF > $userdata
15 #cloud-config
16@@ -203,8 +208,20 @@
17 ssh_enabled: True
18
19 runcmd:
20+ # Make apt faster:
21 - echo 'Acquire::Languages "none";' > /etc/apt/apt.conf.d/90nolanguages
22 - echo 'force-unsafe-io' > /etc/dpkg/dpkg.cfg.d/autopkgtest
23+ # provides kmods like scsi_debug or mac80211_hwsim
24+ - apt-get install -y linux-generic
25+ # some tests use a lot of /dev/random, avoid hangs
26+ - apt-get install -y haveged
27+ # We need python to run the auxverb helper - install it iff it's missing:
28+ - if ! sh -c 'type python3 >/dev/null 2>&1 || type python >/dev/null 2>&1'; then apt-get install -y --no-install-recommends python3-minimal; fi
29+ # Remove some packages we don't need
30+ - for p in accountsservice apt-xapian-index cryptsetup landscape-client landscape-common open-vm-tools w3m vim-runtime aptitude-common command-not-found-data manpages ntfs-3g sosreport ubuntu-release-upgrader-core; do apt-get --auto-remove -y purge \$p || true; done
31+ - apt-get clean
32+ # Do a dist-upgrade:
33+ - DEBIAN_FRONTEND=noninteractive apt-get -y dist-upgrade
34 EOF
35
36 EXTRA_OPTS=''
37@@ -282,6 +299,8 @@
38 cleanup
39 exit 1
40 fi
41+
42+ reboot
43
44 }
45

Subscribers

People subscribed via source and target branches

to all changes: