Bug #10502
ceph-deploy task double-installing ceph-release
0%
Description
2015-01-09 16:35:31,319.319 INFO:teuthology.orchestra.run.magna009.stderr:[magna075][INFO ] Running command: sudo rpm -Uvh --replacepkgs http://ceph.com/rpm-firefly/rhel7/noarch/ce ph-release-1-0.el7.noarch.rpm 2015-01-09 16:35:31,689.689 INFO:teuthology.orchestra.run.magna009.stderr:[magna075][DEBUG ] Retrieving http://ceph.com/rpm-firefly/rhel7/noarch/ceph-release-1-0.el7.noarch.rpm 2015-01-09 16:35:31,690.690 INFO:teuthology.orchestra.run.magna009.stderr:[magna075][DEBUG ] Preparing... ######################################## 2015-01-09 16:35:31,690.690 INFO:teuthology.orchestra.run.magna009.stderr:[magna075][WARNING] file /etc/yum.repos.d/ceph.repo from install of ceph-release-1-0.el7.noarch conflicts with file from package ceph-release-1-0.el7.noarch 2015-01-09 16:35:31,690.690 INFO:teuthology.orchestra.run.magna009.stderr:[magna075][ERROR ] RuntimeError: command returned non-zero exit status: 1 2015-01-09 16:35:31,691.691 INFO:teuthology.orchestra.run.magna009.stderr:[ceph_deploy][ERROR ] RuntimeError: Failed to execute command: rpm -Uvh --replacepkgs http://ceph.com/rpm-f irefly/rhel7/noarch/ceph-release-1-0.el7.noarch.rpm
History
#1 Updated by Zack Cerza about 9 years ago
- Project changed from teuthology to Ceph-deploy
- Assignee set to Travis Rhoden
Can we make this not fail?
2015-01-12 12:33:45,595.595 INFO:teuthology.orchestra.run.magna009.stderr:[magna075][INFO ] Running command: sudo rpm -Uvh --replacepkgs http://ceph.com/rpm-firefly/rhel7/noarch/ce ph-release-1-0.el7.noarch.rpm 2015-01-12 12:33:45,965.965 INFO:teuthology.orchestra.run.magna009.stderr:[magna075][DEBUG ] Retrieving http://ceph.com/rpm-firefly/rhel7/noarch/ceph-release-1-0.el7.noarch.rpm 2015-01-12 12:33:45,966.966 INFO:teuthology.orchestra.run.magna009.stderr:[magna075][DEBUG ] Preparing... ######################################## 2015-01-12 12:33:45,966.966 INFO:teuthology.orchestra.run.magna009.stderr:[magna075][WARNING] file /etc/yum.repos.d/ceph.repo from install of ceph-release-1-0.el7.noarch conflicts with file from package ceph-release-1-0.el7.noarch 2015-01-12 12:33:45,966.966 INFO:teuthology.orchestra.run.magna009.stderr:[magna075][ERROR ] RuntimeError: command returned non-zero exit status: 1 2015-01-12 12:33:45,966.966 INFO:teuthology.orchestra.run.magna009.stderr:[ceph_deploy][ERROR ] RuntimeError: Failed to execute command: rpm -Uvh --replacepkgs http://ceph.com/rpm-f irefly/rhel7/noarch/ceph-release-1-0.el7.noarch.rpm
#2 Updated by Travis Rhoden about 9 years ago
- Status changed from New to Need More Info
It's surprising this would happen, unless the two packages "conflicting" with each other perhaps had a different source/signature. They are the same version. The --replacepkgs option should force it to be installed right on top of each other. I verified this with CentOS7:
[root@localhost yum.repos.d]# rpm -Uvh --replacepkgs http://ceph.com/rpm-firefly/rhel7/noarch/ceph-release-1-0.el7.noarch.rpmRetrieving http://ceph.com/rpm-firefly/rhel7/noarch/ceph-release-1-0.el7.noarch.rpm
warning: /var/tmp/rpm-tmp.n27lWE: Header V4 RSA/SHA1 Signature, key ID 17ed316d: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:ceph-release-1-0.el7 ################################# [100%]
[root@localhost yum.repos.d]#
[root@localhost yum.repos.d]# rpm -Uvh --replacepkgs http://ceph.com/rpm-firefly/rhel7/noarch/ceph-release-1-0.el7.noarch.rpm
Retrieving http://ceph.com/rpm-firefly/rhel7/noarch/ceph-release-1-0.el7.noarch.rpm
warning: /var/tmp/rpm-tmp.diApu3: Header V4 RSA/SHA1 Signature, key ID 17ed316d: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:ceph-release-1-0.el7 ################################# [100%]
[root@localhost yum.repos.d]#
So, running this multiple times should not be a problem.
Zack, you mentioned on IRC that the .repo file is modified, however, and that you need the changes preserved. As far as I can tell, that is already not happening. If I install ceph-release, then modify ceph.repo, then install ceph-release again (with rpm -i --replacepkgs), the changes are lost. Furthermore, no .rpmsave file is created either.
I suspect that ceph.repo is not called out as a config file in the SPEC file that created it. :/
Adding --replacefiles to the rpm -i command will fix the problem of the file conflicts, but I still don't see why there is a conflict at all... I'd like to figure that out, actually.
Separately, I think the ceph-release SPEC file needs to be changed to correct call the .repo file out as %config noreplace.
#3 Updated by Zack Cerza about 9 years ago
What's happening is that the install task is installing a ceph-release
from e.g. http://gitbuilder.ceph.redhat.com/ceph-rpm-rhel7_0-x86_64-basic/
, and ceph-deploy is installing from http://ceph.com/rpm-firefly/rhel7
. The two packages are the same NVR, but have different contents and checksums, and thus fail to install over each other. I don't fully understand why.
#4 Updated by Alfredo Deza about 6 years ago
- Status changed from Need More Info to Closed