[SRU] xe-guest-utilities suddenly depends on cloud-init

Bug #1496730 reported by Erik van Luijk
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
xe-guest-utilities (Ubuntu)
Fix Released
High
Unassigned
Precise
Fix Released
High
Unassigned
Trusty
Fix Released
High
Unassigned
Vivid
Fix Released
High
Unassigned
Wily
Fix Released
High
Unassigned

Bug Description

[BACKGROUND] The Ubuntu Cloud Image team introduced xe-guest-utilities to the Ubuntu Archive with Bug #1490624, and was targeted at public clouds that generally use cloud-init. However, the dependency on cloud-init is a false depdency. Users who are using alternative sources of this package will be upgraded to the universe version, and cloud-init will be pulled in.

Users who are not using public clouds or already have cloud-init installed with be met with a delayed reboot and new SSH keys generated.

[FIX] Drop the depends for cloud-init

[TEST]
1. Install xe-guest-utilities on clean install
2. Confirm that cloud-init is not installed

[ORIGINAL Report]

When installing the Ubuntu (12.04 .05 LTS or 14.04.3 LTS) updates I notified that xe-guest-utilities suddenly depends on cloud-init.

cloud-init installs silently and enables most cloud providers by default (no interaction with user).
After a reboot cloud-init tries (timeouts) to contact the providers and even regenerate the ssh host keys.

I have this package installed because it reports the os version etc. to XenCenter. The dependency on xenstore-utils is correct but I do not agree with cloud-init.

Wy is this dependency created?

Changed in xe-guest-utilities (Ubuntu):
status: New → Confirmed
Changed in xe-guest-utilities (Ubuntu Wily):
assignee: nobody → Ben Howard (utlemming)
Changed in xe-guest-utilities (Ubuntu Vivid):
assignee: nobody → Ben Howard (utlemming)
Changed in xe-guest-utilities (Ubuntu Trusty):
assignee: nobody → Ben Howard (utlemming)
Changed in xe-guest-utilities (Ubuntu Precise):
assignee: nobody → Ben Howard (utlemming)
summary: - xe-guest-utilities suddenly depends on cloud-init
+ [SRU] xe-guest-utilities suddenly depends on cloud-init
Changed in xe-guest-utilities (Ubuntu Precise):
status: New → Confirmed
Changed in xe-guest-utilities (Ubuntu Trusty):
status: New → Confirmed
Changed in xe-guest-utilities (Ubuntu Vivid):
status: New → Confirmed
Changed in xe-guest-utilities (Ubuntu Precise):
importance: Undecided → High
Changed in xe-guest-utilities (Ubuntu Trusty):
importance: Undecided → High
Changed in xe-guest-utilities (Ubuntu Vivid):
importance: Undecided → High
Changed in xe-guest-utilities (Ubuntu Wily):
importance: Undecided → High
Revision history for this message
Ben Howard (darkmuggle-deactivatedaccount) wrote :

Uploaded new versions that drop the depends of cloud-init. Pending archive admins to accept the SRU.

description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xe-guest-utilities - 6.2.0-1120+dsf1-0ubuntu2

---------------
xe-guest-utilities (6.2.0-1120+dsf1-0ubuntu2) wily; urgency=medium

  * Drop 'depends' for cloud-init (LP: #1496730).

 -- Ben Howard <email address hidden> Thu, 17 Sep 2015 08:57:54 -0600

Changed in xe-guest-utilities (Ubuntu Wily):
status: Confirmed → Fix Released
Revision history for this message
Steve Langasek (vorlon) wrote :

By dropping the dependency on cloud-init in the trusty and precise versions, the xe-cloud service will no longer be started at boot because the upstart job is 'start on starting cloud-init-nonet' which will never trigger.

This sounds like it would also be a behavior regression for those users who want xe-guest-utilities but not cloud-init.

This behavior change does not affect releases using systemd, because the systemd unit only mentions cloud-init as 'Before=' (ordering constraint), not 'Requires=' (dependency constraint).

Revision history for this message
Steve Langasek (vorlon) wrote :

Sorry, I just realized I completely missed (forgot) that the upstart job which depends on cloud-init is there *only* to ensure ordering with cloud-init. So this isn't actually a problem at all.

Changed in xe-guest-utilities (Ubuntu Precise):
status: Confirmed → Fix Committed
tags: added: verification-needed
Revision history for this message
Steve Langasek (vorlon) wrote : Please test proposed package

Hello Erik, or anyone else affected,

Accepted xe-guest-utilities into precise-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/xe-guest-utilities/6.2.0-1120+dsf1-0ubuntu1~12.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Revision history for this message
Steve Langasek (vorlon) wrote :

Hello Erik, or anyone else affected,

Accepted xe-guest-utilities into trusty-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/xe-guest-utilities/6.2.0-1120+dsf1-0ubuntu1~14.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in xe-guest-utilities (Ubuntu Trusty):
status: Confirmed → Fix Committed
Changed in xe-guest-utilities (Ubuntu Vivid):
status: Confirmed → Fix Committed
Revision history for this message
Steve Langasek (vorlon) wrote :

Hello Erik, or anyone else affected,

Accepted xe-guest-utilities into vivid-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/xe-guest-utilities/6.2.0-1120+dsf1-0ubuntu1~15.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Revision history for this message
Erik van Luijk (itserik) wrote :

The update does not pull in cloud-init. Tested on Ubuntu Trusty.

Thanks for the fast response.

Revision history for this message
Erik van Luijk (itserik) wrote :

Please note #1497248 before pushing this out.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Ben Howard (darkmuggle-deactivatedaccount) wrote :

I've confirmed that the updated package in -proposed does not bring Cloud-init by default and still works with Cloud-init as intended. +1 on releasing this.

Revision history for this message
Robert C Jennings (rcj) wrote :

Validated trusty and precise. Only libxenstore3.0, xenstore-utils, and xe-guest-utilities were installed

Revision history for this message
Stefan Bader (smb) wrote :

I checked Precise, Trusty, and Vivid with non-cloud-image xen guests and the proposed package and none pulls in cloud-init any more. Also did a quick check to see that after installation /local/domain/<id>/data contains the os info.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xe-guest-utilities - 6.2.0-1120+dsf1-0ubuntu1~12.04.1

---------------
xe-guest-utilities (6.2.0-1120+dsf1-0ubuntu1~12.04.1) precise; urgency=medium

  * Drop 'depends' for cloud-init (LP: #1496730).

 -- Ben Howard <email address hidden> Thu, 17 Sep 2015 08:53:32 -0600

Changed in xe-guest-utilities (Ubuntu Precise):
status: Fix Committed → Fix Released
Revision history for this message
Chris J Arges (arges) wrote : Update Released

The verification of the Stable Release Update for xe-guest-utilities has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xe-guest-utilities - 6.2.0-1120+dsf1-0ubuntu1~14.04.1

---------------
xe-guest-utilities (6.2.0-1120+dsf1-0ubuntu1~14.04.1) trusty; urgency=medium

  * Drop 'depends' for cloud-init (LP: #1496730).

 -- Ben Howard <email address hidden> Thu, 17 Sep 2015 08:56:48 -0600

Changed in xe-guest-utilities (Ubuntu Trusty):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xe-guest-utilities - 6.2.0-1120+dsf1-0ubuntu1~15.04.1

---------------
xe-guest-utilities (6.2.0-1120+dsf1-0ubuntu1~15.04.1) vivid; urgency=medium

  * Drop 'depends' for cloud-init (LP: #1496730).

 -- Ben Howard <email address hidden> Thu, 17 Sep 2015 08:59:29 -0600

Changed in xe-guest-utilities (Ubuntu Vivid):
status: Fix Committed → Fix Released
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

However, why do the xe-daemon.service unit orders itself before cloud-init? Is it required at all?
Cause it seems to me that xe-daemon.service should instead be:
Wants=cloud-config.target
After=cloud-config.target

no?

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

In some occasions it can need to go before cloud-init.
That happen recently to fix a bug for RAX:
https://bugs.launchpad.net/cpc-rax/+bug/1657223

xe-deamon.service in that case had to go before nova-agent.service which in turn needed to go before ANYTHING expected the network to be configured, specially cloud-init.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.