cloud-image-utils should Break, not Conflict with cloud-utils
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | cloud-utils (Ubuntu) |
Medium
|
Scott Moser | ||
| | Trusty |
Medium
|
Scott Moser | ||
Bug Description
[Begin SRU Template]
[Impact]
Due to the broken use of 'Conflicts' rather than 'Breaks', if user runs:
apt-get install cloud-image-utils
then any package that depended on cloud-utils (specifically cloud-init) will be removed by apt.
This affects juju's use specifically as described in comment 1.
[Test Case]
Test case is not completely trivial, as you need a package installed that depends on cloud-utils without an '| cloud-image-utils'.
An older version of cloud-init would suffice, or using the cloud-tools archive with precise level packages as described in comment 1.
# with cloud-tools archive
# launch fresh cloud image of trusty
$ sudo apt-add-repository -y cloud-archive:tools
$ sudo apt-get update -qy
$ apt-get install --dry-run -q cloud-image-utils
# from precise trying to get newer cloud-tools
# launch fresh cloud image of precise
$ echo "deb http://
sudo tee -a /etc/apt/
$ sudo apt-get update -qy
$ sudo apt-get install --dry-run -q cloud-image-utils
[Regression Potential]
This was a bug and this fix should only be positive. Possible regressions are in other bugs like this, where installation of one package conflicts or causes another to be uninstallable/
Other packages that depend on cloud-utils per 'apt-cache-
cloud-
uvtool-libvirt
[End SRU Template]
=== Original Bug ==
As per https:/
As per the above comment:
<smoser> we can fix that with a packaging change to cloud-init in precise.
<smoser> to depend on cloud-image-utils | cloud-utils
Could we please get that packaging change done and the new cloud-init apckage propagated to the archives?
| summary: |
- cannot install cloud-images-utils on precise + depends on cloud-utils without knowledge of cloud-image-utils |
| Changed in cloud-init: | |
| status: | New → Fix Released |
| Changed in cloud-init (Ubuntu): | |
| status: | New → Fix Released |
| Changed in cloud-init: | |
| importance: | Undecided → Medium |
| Changed in cloud-init (Ubuntu): | |
| importance: | Undecided → Medium |
| Changed in cloud-init (Ubuntu Precise): | |
| status: | New → Confirmed |
| importance: | Undecided → Medium |
| Changed in cloud-initramfs-tools (Ubuntu): | |
| status: | New → Fix Released |
| Changed in cloud-initramfs-tools (Ubuntu Precise): | |
| status: | New → Confirmed |
| importance: | Undecided → Medium |
| Changed in cloud-initramfs-tools (Ubuntu): | |
| importance: | Undecided → Medium |
| no longer affects: | cloud-init (Ubuntu) |
| no longer affects: | cloud-init |
| no longer affects: | cloud-init (Ubuntu Precise) |
| no longer affects: | cloud-initramfs-tools (Ubuntu) |
| no longer affects: | cloud-initramfs-tools (Ubuntu Precise) |
| no longer affects: | cloud-utils (Ubuntu Precise) |
| Changed in cloud-utils (Ubuntu): | |
| status: | New → In Progress |
| importance: | Undecided → Medium |
| assignee: | nobody → Scott Moser (smoser) |
| Changed in cloud-utils (Ubuntu Trusty): | |
| assignee: | nobody → Scott Moser (smoser) |
| importance: | Undecided → Medium |
| status: | New → In Progress |
| summary: |
- depends on cloud-utils without knowledge of cloud-image-utils + cloud-image-utils should Break, not Conflict with cloud-utils |
| Launchpad Janitor (janitor) wrote : | #2 |
This bug was fixed in the package cloud-utils - 0.27-0ubuntu11
---------------
cloud-utils (0.27-0ubuntu11) vivid; urgency=medium
* packages should Breaks/Replaces the pre-splitup version of cloud-utils
rather than Conflicts/Replaces (LP: #1418568)
-- Scott Moser <email address hidden> Thu, 05 Feb 2015 11:36:00 -0500
| Changed in cloud-utils (Ubuntu): | |
| status: | In Progress → Fix Released |
| Timo Aaltonen (tjaalton) wrote : | #3 |
Please add the SRU header as mentioned on https:/
| description: | updated |
Hello Ian, or anyone else affected,
Accepted cloud-utils into trusty-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
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-
Further information regarding the verification process can be found at https:/
| Changed in cloud-utils (Ubuntu Trusty): | |
| status: | In Progress → Fix Committed |
| tags: | added: verification-needed |
| Ian Booth (wallyworld) wrote : | #5 |
Hi Brian and Scott,
The issue itself only appears on precise. On trusty, apt-get install cloud-image-utils works fine. So would we not need to test with a fix to the debs in precise-proposed in order to validate that things will now work on precise?
| Scott Moser (smoser) wrote : | #6 |
I've tested with trusty's package that it doesn't regress any behavior on trusty:
$ echo "deb http://
$ sudo apt-get update -q
$ sudo apt-get install cloud-image-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
distro-info distro-info-data euca2ools genisoimage libaio1
libboost-
librados2 librbd1 libxslt1.1 python-distro-info python-lxml
python-
Suggested packages:
shunit2 wodim cdrkit-doc python-lxml-dbg debootstrap bsd-mailx mailx
The following NEW packages will be installed:
cloud-image-utils distro-info distro-info-data euca2ools genisoimage libaio1
libboost-
librados2 librbd1 libxslt1.1 python-distro-info python-lxml
python-
0 upgraded, 20 newly installed, 0 to remove and 18 not upgraded.
Need to get 5,473 kB of archives.
and on precise cloud instance using trusty-proposed (which is admittedly questionable but shows that trusty-proposed package doesn't force removal of cloud-init and such).
$ sudo apt-get install qemu-utils # which is needed to avoid other dependencies from trusty
$ echo "deb http://
$ sudo apt-get update -q
$ sudo apt-get install cloud-utils
$ sudo apt-get -qy install cloud-image-utils
sudo: unable to resolve host precise-
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
cloud-guest-utils cloud-utils distro-info distro-info-data gdisk genisoimage
libicu48 python-distro-info
Suggested packages:
shunit2 wodim cdrkit-doc
The following NEW packages will be installed:
cloud-guest-utils cloud-image-utils distro-info distro-info-data gdisk
genisoimage libicu48 python-distro-info
The following packages will be upgraded:
cloud-utils
| tags: |
added: verification-done removed: verification-needed |
| Scott Moser (smoser) wrote : | #7 |
Ian, you're getting the package on precise from cloud-tools (https:/
cloud-tools tracks trusty level of certain packages on precise. So we have to SRU to trusty (which is safe) to update the cloud-tools repo.
I've just now added that package to cloud-tools-
Once it shows up there, we can test and move it from -proposed to -updates.
You can test it in -proposed by adding the cloud-tools-
-tools-updates with:
apt-add-
| Ian Booth (wallyworld) wrote : | #8 |
I have run up a precise instance in EC2 and added the cloud-tools-
| Launchpad Janitor (janitor) wrote : | #9 |
This bug was fixed in the package cloud-utils - 0.27-0ubuntu9.1
---------------
cloud-utils (0.27-0ubuntu9.1) trusty-proposed; urgency=medium
* packages should Breaks/Replaces the pre-splitup version of cloud-utils
rather than Conflicts/Replaces (LP: #1418568)
-- Scott Moser <email address hidden> Thu, 05 Feb 2015 11:44:29 -0500
| Changed in cloud-utils (Ubuntu Trusty): | |
| status: | Fix Committed → Fix Released |
| Adam Conrad (adconrad) wrote : Update Released | #10 |
The verification of the Stable Release Update for cloud-utils 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.
| Scott Moser (smoser) wrote : | #11 |
I just moved this from -proposed to -updates, so it should all "just work" for juju using cloud-tools archive.


This was found in bug 1407699.
* on precise juju uses the cloud tools archive (https:/ /wiki.ubuntu. com/ServerTeam/ CloudToolsArchi ve)
* precise's version of cloud-init depends on cloud-utils
* Juju began installing cloud-image-utils.
* cloud-image-utils conflicts with cloud-utils. cloud-image-utils was just a re-packaging for dependency shrink and so it conflicts with older versions of cloud-utils which would include the same set of files.
To reproduce, launch precise instance: -growroot cloud-utils -growroot [0.4ubuntu1] 12.04/precise [amd64]) 0ubuntu0. 12.04.1 Ubuntu: 12.04/precise- updates [amd64]) 0ubuntu0. 12.04.2 Ubuntu: 12.04/precise- updates [amd64]) 12.04/precise- updates [all]) 12.04/precise [amd64]) 12.04/precise [amd64]) 12.04/precise- updates [amd64]) 12.04/precise- updates [amd64]) 12.04/precise [all]) 0ubuntu14. 21 Ubuntu: 12.04/precise- updates [amd64]) ctools0 precise-updates [all]) 12.04/precise [amd64]) 0ubuntu0. 12.04.1 Ubuntu: 12.04/precise- updates [amd64]) 0ubuntu0. 12.04.2 Ubuntu: 12.04/precise- updates [amd64]) 12.04/precise- updates [all]) 12.04/precise [amd64]) 12.04/precise [amd64]) 12.04/precise- updates [amd64]) 12.04/precise- updates [amd64]) 12.04/precise [all]) 0ubuntu14. 21 Ubuntu: 12.04/precise- updates [amd64]) ctools0 precise-updates [all])
$ sudo apt-add-repository -y cloud-archive:tools
$ sudo apt-get update -qy
$ apt-get install --dry-run -q cloud-image-utils
NOTE: This is only a simulation!
apt-get needs root privileges for real execution.
Keep also in mind that locking is deactivated,
so don't depend on the relevance to the real current situation!
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
distro-info distro-info-data genisoimage libaio1 libnspr4 libnss3 librados2
librbd1 python-distro-info qemu-utils
Suggested packages:
shunit2 wodim cdrkit-doc
The following packages will be REMOVED:
cloud-init cloud-initramfs
The following NEW packages will be installed:
cloud-image-utils distro-info distro-info-data genisoimage libaio1 libnspr4
libnss3 librados2 librbd1 python-distro-info qemu-utils
0 upgraded, 11 newly installed, 3 to remove and 9 not upgraded.
Remv cloud-init [0.6.3-0ubuntu1.15]
Remv cloud-initramfs
Remv cloud-utils [0.25-0ubuntu5.1]
Inst libaio1 (0.3.109-2ubuntu1 Ubuntu:
Inst libnspr4 (4.10.7-
Inst libnss3 (3.17.1-
Inst distro-info-data (0.8ubuntu0.7 Ubuntu:
Inst distro-info (0.8.2 Ubuntu:
Inst genisoimage (9:1.1.11-2ubuntu2 Ubuntu:
Inst librados2 (0.41-1ubuntu2.1 Ubuntu:
Inst librbd1 (0.41-1ubuntu2.1 Ubuntu:
Inst python-distro-info (0.8.2 Ubuntu:
Inst qemu-utils (1.0+noroms-
Inst cloud-image-utils (0.27-0ubuntu9~
Conf libaio1 (0.3.109-2ubuntu1 Ubuntu:
Conf libnspr4 (4.10.7-
Conf libnss3 (3.17.1-
Conf distro-info-data (0.8ubuntu0.7 Ubuntu:
Conf distro-info (0.8.2 Ubuntu:
Conf genisoimage (9:1.1.11-2ubuntu2 Ubuntu:
Conf librados2 (0.41-1ubuntu2.1 Ubuntu:
Conf librbd1 (0.41-1ubuntu2.1 Ubuntu:
Conf python-distro-info (0.8.2 Ubuntu:
Conf qemu-utils (1.0+noroms-
Conf cloud-image-utils (0.27-0ubuntu9~