missing breaks/replaces on trusty swift packages

Bug #1306241 reported by Corey Bryant on 2014-04-10
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
swift (Ubuntu)
Critical
James Page
Trusty
Critical
James Page
swift-storage (Juju Charms Collection)
Undecided
Unassigned

Bug Description

Icehouse charm deployment using swift-proxy and 3 swift-storage replicas followed by:

juju set swift-storage-z3 openstack-origin=cloud:precise-icehouse

gets the following tracback:

30990 INFO config-changed Errors were encountered while processing:^M
30991 INFO config-changed /var/cache/apt/archives/swift-container_1.13.1~rc1-0ubuntu2~cloud0_all.deb^M
30992 INFO config-changed /var/cache/apt/archives/swift-account_1.13.1~rc1-0ubuntu2~cloud0_all.deb^M
30993 INFO config-changed E: Sub-process /usr/bin/dpkg returned an error code (1)^M
30994 INFO config-changed Traceback (most recent call last):^M
30995 INFO config-changed File "/var/lib/juju/agents/unit-swift-storage-z1-0/charm/hooks/config-changed", line 91, in <module>^M
30996 INFO config-changed main()^M
30997 INFO config-changed File "/var/lib/juju/agents/unit-swift-storage-z1-0/charm/hooks/config-changed", line 85, in main^M
30998 INFO config-changed hooks.execute(sys.argv)^M
30999 INFO config-changed File "/var/lib/juju/agents/unit-swift-storage-z1-0/charm/hooks/charmhelpers/core/hookenv.py", line 381, in execute^M
31000 INFO config-changed self._hooks[hook_name]()^M
31001 INFO config-changed File "/var/lib/juju/agents/unit-swift-storage-z1-0/charm/hooks/charmhelpers/core/host.py", line 217, in wrapped_f^M
31002 INFO config-changed f(*args)^M
31003 INFO config-changed File "/var/lib/juju/agents/unit-swift-storage-z1-0/charm/hooks/config-changed", line 53, in config_changed^M
31004 INFO config-changed do_openstack_upgrade(configs=CONFIGS)^M
31005 INFO config-changed File "/var/lib/juju/agents/unit-swift-storage-z1-0/charm/hooks/swift_storage_utils.py", line 131, in do_openstack_upgrade^M
31006 INFO config-changed apt_upgrade(options=dpkg_opts, fatal=True, dist=True)^M
31007 INFO config-changed File "/var/lib/juju/agents/unit-swift-storage-z1-0/charm/hooks/charmhelpers/fetch/__init__.py", line 118, in apt_upgrade^M
31008 INFO config-changed subprocess.check_call(cmd, env=env)^M
31009 INFO config-changed File "/usr/lib/python2.7/subprocess.py", line 511, in check_call^M
31010 INFO config-changed raise CalledProcessError(retcode, cmd)^M
31011 INFO config-changed subprocess.CalledProcessError: Command '['apt-get', '--assume-yes', '--option', 'Dpkg::Options::=--force-confnew', '--option', 'Dpkg::Options::=--force-confdef', 'dist-upgrade']' returned non-zero exit status 100^M
31012 ERROR juju.worker.uniter uniter.go:475 hook failed: exit status 1^M

Running dist-upgrade on the instance shows the down-level dependency:

$ sudo apt-get --assume-yes --option Dpkg::Options::=--force-confnew --option Dpkg::Options::=--force-confdef dist-upgrade
sudo: unable to resolve host juju-precise-machine-18
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 swift-account : Depends: python-swift (= 1.10.0-0ubuntu1~cloud0) but 1.13.1~rc1-0ubuntu2~cloud0 is installed
 swift-container : Depends: python-swift (= 1.10.0-0ubuntu1~cloud0) but 1.13.1~rc1-0ubuntu2~cloud0 is installed
E: Unmet dependencies. Try using -f.

James Page (james-page) wrote :

The manpage moves in 1.13.1~rc1-0ubuntu1 did not have appropriate Breaks/Replaces, resulting in overrwrite errors.

no longer affects: swift-storage (Ubuntu)
Changed in swift (Ubuntu Trusty):
status: New → Triaged
importance: Undecided → Critical
assignee: nobody → James Page (james-page)
James Page (james-page) on 2014-04-14
summary: - swift-account and swift-container depend on down-level python-swift
+ missing breaks/replaces on trusty swift packages
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package swift - 1.13.1~rc2-0ubuntu1

---------------
swift (1.13.1~rc2-0ubuntu1) trusty; urgency=medium

  [ Chuck Short ]
  * New upstream release candidate (LP: #1299055).

  [ James Page ]
  * d/control: Add appropriate Breaks/Replaces to support move of man pages
    between binary packages in 1.13.1~rc1-0ubuntu1 (LP: #1306241).
 -- James Page <email address hidden> Mon, 14 Apr 2014 11:03:23 +0100

Changed in swift (Ubuntu Trusty):
status: Triaged → Fix Released
Changed in swift-storage (Juju Charms Collection):
status: New → Incomplete
tags: added: openstack
James Page (james-page) on 2017-01-04
Changed in swift-storage (Juju Charms Collection):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers