Public bug reported:

[Impact]

Anything that cloud-init does to configure the instance may not have
happened before the startup scripts run, or may happen _while_ the
startup scripts are running.  The specific example that can happen every
time is mirror configuration.  Region-specific mirrors are configured by
cloud-init, and if startup scripts try to use apt-get, this can cause
failures.

[Test Case]

1) Launch a GCE instance with a startup script containing `cp 
/etc/apt/sources.list /tmp/startup-sources.list`
2) SSH in to the launched instance
3) Confirm that /etc/apt/sources.list and /tmp/startup-sources.list have the 
same contents

[Regression Potential]

This only affects the startup ordering of the startup scripts; users who
don't use startup scripts cannot be affected, and users who do are more
likely to see success with this change.

** Affects: gce-compute-image-packages (Ubuntu)
     Importance: Undecided
     Assignee: Philip Roche (philroche)
         Status: Fix Released

** Affects: gce-compute-image-packages (Ubuntu Yakkety)
     Importance: Undecided
     Assignee: Philip Roche (philroche)
         Status: In Progress

** Also affects: gce-compute-image-packages (Ubuntu Yakkety)
   Importance: Undecided
       Status: New

** Changed in: gce-compute-image-packages (Ubuntu)
       Status: New => Fix Released

** Changed in: gce-compute-image-packages (Ubuntu)
     Assignee: (unassigned) => Philip Roche (philroche)

** Changed in: gce-compute-image-packages (Ubuntu Yakkety)
     Assignee: (unassigned) => Philip Roche (philroche)

** Changed in: gce-compute-image-packages (Ubuntu Yakkety)
       Status: New => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1645276

Title:
  google-startup-scripts runs before cloud-init has completed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gce-compute-image-packages/+bug/1645276/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to