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
diff --git a/debian/changelog b/debian/changelog
index 93960f2..d485196 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
1gce-compute-image-packages (20160930-0ubuntu3~14.04) trusty; urgency=medium
2
3 * Backport gce-compute-image-packages to trusty (LP: #1643585)
4 * GCE mirrors not in place before startup scripts are run (LP: #1436846)
5 * Run google-startup-scripts after cloud-final
6
7 -- Phil Roche <phil.roche@canonical.com> Tue, 31 Jan 2017 11:49:18 +00000
8
1gce-compute-image-packages (20160930-0ubuntu3) zesty; urgency=medium9gce-compute-image-packages (20160930-0ubuntu3) zesty; urgency=medium
210
3 * GCE mirrors not in place before startup scripts are run (LP: #1436846)11 * GCE mirrors not in place before startup scripts are run (LP: #1436846)
diff --git a/debian/control b/debian/control
index af22c00..e508db4 100644
--- a/debian/control
+++ b/debian/control
@@ -7,22 +7,17 @@ Build-Depends: debhelper (>= 9),
7 dh-systemd,7 dh-systemd,
8 python-all,8 python-all,
9 python-setuptools,9 python-setuptools,
10 python3-all,
11 python3-setuptools,
12 python-pytest,10 python-pytest,
13 python3-pytest,
14 python-mock,11 python-mock,
15 python-boto,12 python-boto
16 python3-boto
17Standards-Version: 3.9.813Standards-Version: 3.9.8
18Homepage: https://github.com/GoogleCloudPlatform/compute-image-packages14Homepage: https://github.com/GoogleCloudPlatform/compute-image-packages
1915
20Package: gce-compute-image-packages16Package: gce-compute-image-packages
21Architecture: all17Architecture: all
22Depends: python3:any,18Depends: ${python:Depends},
23 ${python3:Depends},
24 ${misc:Depends},19 ${misc:Depends},
25 python3-google-compute-engine,20 python-google-compute-engine,
26 ntp,21 ntp,
27 cloud-init22 cloud-init
28Recommends: google-cloud-sdk,23Recommends: google-cloud-sdk,
@@ -46,12 +41,3 @@ Depends: ${python:Depends},
46Description: Python library for Google Compute Engine interaction41Description: Python library for Google Compute Engine interaction
47 Python libraries used for interacting with Google Compute Engine's APIs and42 Python libraries used for interacting with Google Compute Engine's APIs and
48 functionality. This package contains the modules for Python 2.x.43 functionality. This package contains the modules for Python 2.x.
49
50Package: python3-google-compute-engine
51Section: python
52Architecture: all
53Depends: ${python3:Depends},
54 ${misc:Depends},
55Description: Python library for Google Compute Engine interaction (Python 3)
56 Python libraries used for interacting with Google Compute Engine's APIs and
57 functionality. This package contains the modules for Python 3.x.
diff --git a/debian/gce-compute-image-packages.install b/debian/gce-compute-image-packages.install
index e3b14c1..df307f6 100644
--- a/debian/gce-compute-image-packages.install
+++ b/debian/gce-compute-image-packages.install
@@ -1,5 +1,6 @@
1# Upstream-provided configuration1# Upstream-provided configuration
2google_compute_engine_init/systemd/*.service lib/systemd/system2google_compute_engine_init/systemd/*.service lib/systemd/system
3google_compute_engine_init/upstart/*.conf etc/init
3google_config/udev/* lib/udev/rules.d4google_config/udev/* lib/udev/rules.d
45
5# Ubuntu-specific configuration6# Ubuntu-specific configuration
diff --git a/debian/patches/fix-startup-script-ordering-upstart.patch b/debian/patches/fix-startup-script-ordering-upstart.patch
6new file mode 1006447new file mode 100644
index 0000000..ebbc63c
--- /dev/null
+++ b/debian/patches/fix-startup-script-ordering-upstart.patch
@@ -0,0 +1,17 @@
1Description: Fix where GCE startup scripts are run during boot when using Upstart
2 This fixes:
3 * GCE mirrors not in place before startup scripts are run (LP: #1436846)
4 * Run google-startup-scripts after cloud-final
5
6Author: Phil Roche <phil.roche@canonical.com>
7Bug-Ubuntu: https://bugs.launchpad.net/bugs/1436846
8Last-Update: 2017-01-31
9
10--- gce-compute-image-packages.orig/google_compute_engine_init/upstart/google-startup-scripts.conf
11+++ gce-compute-image-packages/google_compute_engine_init/upstart/google-startup-scripts.conf
12@@ -1,4 +1,4 @@
13 # Runs a startup script from metadata.
14-start on stopped google-network-setup
15+start on started cloud-final
16
17 exec /usr/bin/google_metadata_script_runner --script-type startup
diff --git a/debian/patches/series b/debian/patches/series
index 0787004..09f977f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
1fix-startup-script-ordering-upstart.patch
1fix-startup-script-ordering.patch2fix-startup-script-ordering.patch
diff --git a/debian/rules b/debian/rules
index f2fbaba..6555fdc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,23 +5,17 @@ export PYBUILD_TEST_PYTEST=1
5export PYBUILD_TEST_ARGS={dir}/google_compute_engine/5export PYBUILD_TEST_ARGS={dir}/google_compute_engine/
66
7%:7%:
8 dh $@ --with python2,python3,systemd --buildsystem=pybuild8 dh $@ --with python2,systemd --buildsystem=pybuild
99
10override_dh_python3:10override_dh_clean:
11 dh_python311 rm -rf google_compute_engine.egg-info
12 12 dh_clean
13 # We want to split the Python 3 scripts out to the
14 # gce-compute-image-packages package
15 mkdir -p debian/gce-compute-image-packages/usr/bin/
16 mv debian/python3-google-compute-engine/usr/bin/* debian/gce-compute-image-packages/usr/bin/
17 rmdir debian/python3-google-compute-engine/usr/bin
1813
19override_dh_python2:14override_dh_python2:
20 dh_python215 dh_python2
2116
22 # We don't want the Python 2 scripts at all17 # We want to split the Python scripts out to the
23 rm -rf debian/python-google-compute-engine/usr/bin18 # gce-compute-image-packages package
2419 mkdir -p debian/gce-compute-image-packages/usr/bin/
25override_dh_clean:20 mv debian/python-google-compute-engine/usr/bin/* debian/gce-compute-image-packages/usr/bin/
26 rm -rf google_compute_engine.egg-info21 rmdir debian/python-google-compute-engine/usr/bin
27 dh_clean

Subscribers

People subscribed via source and target branches