Discussion:
[ceph-users] Packaging bug breaks Jewel -> Luminous upgrade
Matthew Vernon
2018-11-08 16:31:30 UTC
Permalink
Hi,

in Jewel, /etc/bash_completion.d/radosgw-admin is in the radosgw package
In Luminous, /etc/bash_completion.d/radosgw-admin is in the ceph-common
package

...so if you try and upgrade, you get:

Unpacking ceph-common (12.2.8-1xenial) over (10.2.9-0ubuntu0.16.04.1) ...
dpkg: error processing archive ceph-common_12.2.8-1xenial_amd64.deb
(--install):
trying to overwrite '/etc/bash_completion.d/radosgw-admin', which is
also in package radosgw 10.2.9-0ubuntu0.16.04.1

This is a packaging bug - ceph-common needs to declare (via Replaces and
Breaks) that it's taking over some of the radosgw package -
https://www.debian.org/doc/debian-policy/ch-relationships.html#overwriting-files-in-other-packages

The exact versioning would depend on when the move was made (I presume
either Jewel -> Kraken or Kraken -> Luminous). Does anyone know?

[would you like this reported formally, or is the fix trivial enough to
just be done? :-) ]

Regards,

Matthew
--
The Wellcome Sanger Institute is operated by Genome Research
Limited, a charity registered in England with number 1021457 and a
company registered in England with number 2742969, whose registered
office is 215 Euston Road, London, NW1 2BE.
Matthew Vernon
2018-11-08 16:45:43 UTC
Permalink
Post by Matthew Vernon
The exact versioning would depend on when the move was made (I presume
either Jewel -> Kraken or Kraken -> Luminous). Does anyone know?
To answer my own question, this went into 12.0.3 via
https://github.com/ceph/ceph/commit/9fd30b93f7281fad70b93512f0a25e3465f5b225

Regards,

Matthew
--
The Wellcome Sanger Institute is operated by Genome Research
Limited, a charity registered in England with number 1021457 and a
company registered in England with number 2742969, whose registered
office is 215 Euston Road, London, NW1 2BE.
Matthew Vernon
2018-11-08 17:36:35 UTC
Permalink
Post by Matthew Vernon
Hi,
in Jewel, /etc/bash_completion.d/radosgw-admin is in the radosgw package
In Luminous, /etc/bash_completion.d/radosgw-admin is in the ceph-common
package
Unpacking ceph-common (12.2.8-1xenial) over (10.2.9-0ubuntu0.16.04.1) ...
dpkg: error processing archive ceph-common_12.2.8-1xenial_amd64.deb
 trying to overwrite '/etc/bash_completion.d/radosgw-admin', which is
also in package radosgw 10.2.9-0ubuntu0.16.04.1
I submitted 2 PRs to fix this - 24996 for master, and 24997 for
luminous; it'd be nice if the latter could make it into 12.2.10? :-)

Regards,

Matthew
--
The Wellcome Sanger Institute is operated by Genome Research
Limited, a charity registered in England with number 1021457 and a
company registered in England with number 2742969, whose registered
office is 215 Euston Road, London, NW1 2BE.
Ken Dreyer
2018-11-08 22:38:34 UTC
Permalink
Hi Matthew,

What's the full apt-get command you're running?
Post by Matthew Vernon
Hi,
in Jewel, /etc/bash_completion.d/radosgw-admin is in the radosgw package
In Luminous, /etc/bash_completion.d/radosgw-admin is in the ceph-common
package
Unpacking ceph-common (12.2.8-1xenial) over (10.2.9-0ubuntu0.16.04.1) ...
dpkg: error processing archive ceph-common_12.2.8-1xenial_amd64.deb
trying to overwrite '/etc/bash_completion.d/radosgw-admin', which is
also in package radosgw 10.2.9-0ubuntu0.16.04.1
This is a packaging bug - ceph-common needs to declare (via Replaces and
Breaks) that it's taking over some of the radosgw package -
https://www.debian.org/doc/debian-policy/ch-relationships.html#overwriting-files-in-other-packages
The exact versioning would depend on when the move was made (I presume
either Jewel -> Kraken or Kraken -> Luminous). Does anyone know?
[would you like this reported formally, or is the fix trivial enough to
just be done? :-) ]
Regards,
Matthew
--
The Wellcome Sanger Institute is operated by Genome Research
Limited, a charity registered in England with number 1021457 and a
company registered in England with number 2742969, whose registered
office is 215 Euston Road, London, NW1 2BE.
_______________________________________________
ceph-users mailing list
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Matthew Vernon
2018-11-08 23:01:42 UTC
Permalink
Hi,
Post by Ken Dreyer
What's the full apt-get command you're running?
I wasn't using apt-get, because the ceph repository has the broken
12.2.9 packages in it (and I didn't want to install them, obviously); so
I downloaded all the .debs I needed, installed the dependencies, then
did dpkg -i [list of .debs]

Regards,

Matthew
--
The Wellcome Sanger Institute is operated by Genome Research
Limited, a charity registered in England with number 1021457 and a
company registered in England with number 2742969, whose registered
office is 215 Euston Road, London, NW1 2BE.
Loading...