[SRU] race condition between startup script and cloud-init
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gce-utils (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Bug Description
[IMPACT] Roughly 40% of users using google start-up scripts with apt commands will fail.
[CAUSE] Cloud-init and the Google Startup Scripts processes may run at the same time. If the cloud-init apt cloud-config module is running at the start of the Google Startup script then it may fail.
[FIX] Start the Google Startup scripts after cloud-init has finished.
[REGRESSION POTENTIAL] The risk for regressions is low.
[TESTING]
1. Create a new image from the test PPA
2. Launch an instance with a startup script of "apt-get -y update; apt-get -y install --download-only ubuntu-desktop && touch /tmp/it_worked"
3. Wait for instance to come up; confirm that /tmp/it_worked exists.
[ORIGINAL REPORT]
The image ships with archive.ubuntu.com in the bits on disk. Cloud-init changes that to gce.clouds.
description: | updated |
Changed in gce-utils (Ubuntu): | |
status: | Confirmed → Fix Released |
The root cause here is that gce-utils has a job called "google.conf" that triggers the start of the startup scripts. It starts on "runlevel [2345]".
I pushed a build recipe change, that mirrors the fix uploaded here: /launchpad. net/~cpc- gce-team/ +archive/ ubuntu/ lp1389399
https:/
We just need to QA the fix, then release new images.