Merge ~philroche/ubuntu/+source/gce-compute-image-packages/+git/gce-compute-image-packages:trusty into ~ubuntu-dev/ubuntu/+source/gce-compute-image-packages/+git/gce-compute-image-packages:trusty

Proposed by Philip Roche
Status: Merged
Merged at revision: 458c09a3f74740f4211842b3dc979dfa091ba531
Proposed branch: ~philroche/ubuntu/+source/gce-compute-image-packages/+git/gce-compute-image-packages:trusty
Merge into: ~ubuntu-dev/ubuntu/+source/gce-compute-image-packages/+git/gce-compute-image-packages:trusty
Diff against target: 137 lines (+39/-32)
6 files modified
debian/changelog (+8/-0)
debian/control (+3/-17)
debian/gce-compute-image-packages.install (+1/-0)
debian/patches/fix-startup-script-ordering-upstart.patch (+17/-0)
debian/patches/series (+1/-0)
debian/rules (+9/-15)
Reviewer Review Type Date Requested Status
Jose L. VG (community) Approve
Dan Watkins (community) Approve
Review via email: mp+311823@code.launchpad.net

Description of the change

Updated changelog with new version number for trusty and Upstart jobs added

To post a comment you must log in.
Revision history for this message
Dan Watkins (oddbloke) wrote :

A couple of minor fixes required.

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

I don't get it. Going 1 commit at a time, you have several upstart scripts added and then removed.
Why?
Should we not collapse that before pushing to the trusty branch to avoid confusions?
(this is git should be easy)

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

Thank you. Now updated as per comments and ready for review.

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

LGTM

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

LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 93960f2..d485196 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,11 @@
6+gce-compute-image-packages (20160930-0ubuntu3~14.04) trusty; urgency=medium
7+
8+ * Backport gce-compute-image-packages to trusty (LP: #1643585)
9+ * GCE mirrors not in place before startup scripts are run (LP: #1436846)
10+ * Run google-startup-scripts after cloud-final
11+
12+ -- Phil Roche <phil.roche@canonical.com> Tue, 31 Jan 2017 11:49:18 +00000
13+
14 gce-compute-image-packages (20160930-0ubuntu3) zesty; urgency=medium
15
16 * GCE mirrors not in place before startup scripts are run (LP: #1436846)
17diff --git a/debian/control b/debian/control
18index af22c00..e508db4 100644
19--- a/debian/control
20+++ b/debian/control
21@@ -7,22 +7,17 @@ Build-Depends: debhelper (>= 9),
22 dh-systemd,
23 python-all,
24 python-setuptools,
25- python3-all,
26- python3-setuptools,
27 python-pytest,
28- python3-pytest,
29 python-mock,
30- python-boto,
31- python3-boto
32+ python-boto
33 Standards-Version: 3.9.8
34 Homepage: https://github.com/GoogleCloudPlatform/compute-image-packages
35
36 Package: gce-compute-image-packages
37 Architecture: all
38-Depends: python3:any,
39- ${python3:Depends},
40+Depends: ${python:Depends},
41 ${misc:Depends},
42- python3-google-compute-engine,
43+ python-google-compute-engine,
44 ntp,
45 cloud-init
46 Recommends: google-cloud-sdk,
47@@ -46,12 +41,3 @@ Depends: ${python:Depends},
48 Description: Python library for Google Compute Engine interaction
49 Python libraries used for interacting with Google Compute Engine's APIs and
50 functionality. This package contains the modules for Python 2.x.
51-
52-Package: python3-google-compute-engine
53-Section: python
54-Architecture: all
55-Depends: ${python3:Depends},
56- ${misc:Depends},
57-Description: Python library for Google Compute Engine interaction (Python 3)
58- Python libraries used for interacting with Google Compute Engine's APIs and
59- functionality. This package contains the modules for Python 3.x.
60diff --git a/debian/gce-compute-image-packages.install b/debian/gce-compute-image-packages.install
61index e3b14c1..df307f6 100644
62--- a/debian/gce-compute-image-packages.install
63+++ b/debian/gce-compute-image-packages.install
64@@ -1,5 +1,6 @@
65 # Upstream-provided configuration
66 google_compute_engine_init/systemd/*.service lib/systemd/system
67+google_compute_engine_init/upstart/*.conf etc/init
68 google_config/udev/* lib/udev/rules.d
69
70 # Ubuntu-specific configuration
71diff --git a/debian/patches/fix-startup-script-ordering-upstart.patch b/debian/patches/fix-startup-script-ordering-upstart.patch
72new file mode 100644
73index 0000000..ebbc63c
74--- /dev/null
75+++ b/debian/patches/fix-startup-script-ordering-upstart.patch
76@@ -0,0 +1,17 @@
77+Description: Fix where GCE startup scripts are run during boot when using Upstart
78+ This fixes:
79+ * GCE mirrors not in place before startup scripts are run (LP: #1436846)
80+ * Run google-startup-scripts after cloud-final
81+
82+Author: Phil Roche <phil.roche@canonical.com>
83+Bug-Ubuntu: https://bugs.launchpad.net/bugs/1436846
84+Last-Update: 2017-01-31
85+
86+--- gce-compute-image-packages.orig/google_compute_engine_init/upstart/google-startup-scripts.conf
87++++ gce-compute-image-packages/google_compute_engine_init/upstart/google-startup-scripts.conf
88+@@ -1,4 +1,4 @@
89+ # Runs a startup script from metadata.
90+-start on stopped google-network-setup
91++start on started cloud-final
92+
93+ exec /usr/bin/google_metadata_script_runner --script-type startup
94diff --git a/debian/patches/series b/debian/patches/series
95index 0787004..09f977f 100644
96--- a/debian/patches/series
97+++ b/debian/patches/series
98@@ -1 +1,2 @@
99+fix-startup-script-ordering-upstart.patch
100 fix-startup-script-ordering.patch
101diff --git a/debian/rules b/debian/rules
102index f2fbaba..6555fdc 100755
103--- a/debian/rules
104+++ b/debian/rules
105@@ -5,23 +5,17 @@ export PYBUILD_TEST_PYTEST=1
106 export PYBUILD_TEST_ARGS={dir}/google_compute_engine/
107
108 %:
109- dh $@ --with python2,python3,systemd --buildsystem=pybuild
110+ dh $@ --with python2,systemd --buildsystem=pybuild
111
112-override_dh_python3:
113- dh_python3
114-
115- # We want to split the Python 3 scripts out to the
116- # gce-compute-image-packages package
117- mkdir -p debian/gce-compute-image-packages/usr/bin/
118- mv debian/python3-google-compute-engine/usr/bin/* debian/gce-compute-image-packages/usr/bin/
119- rmdir debian/python3-google-compute-engine/usr/bin
120+override_dh_clean:
121+ rm -rf google_compute_engine.egg-info
122+ dh_clean
123
124 override_dh_python2:
125 dh_python2
126
127- # We don't want the Python 2 scripts at all
128- rm -rf debian/python-google-compute-engine/usr/bin
129-
130-override_dh_clean:
131- rm -rf google_compute_engine.egg-info
132- dh_clean
133+ # We want to split the Python scripts out to the
134+ # gce-compute-image-packages package
135+ mkdir -p debian/gce-compute-image-packages/usr/bin/
136+ mv debian/python-google-compute-engine/usr/bin/* debian/gce-compute-image-packages/usr/bin/
137+ rmdir debian/python-google-compute-engine/usr/bin

Subscribers

People subscribed via source and target branches