cloud-image-utils should Break, not Conflict with cloud-utils
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-utils (Ubuntu) |
Fix Released
|
Medium
|
Scott Moser | ||
Trusty |
Fix Released
|
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 |
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 |
description: | updated |
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~