Actions
Bug #6102
closedif EPEL has been added skip adding it again
% Done:
0%
Source:
other
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
ceph-deploy as of 1.2.2 adds the EPEL repo to CentOS and Scientific, it should not try to add this again if it already did once.
Otherwise you get a lot of ERROR noise in the log output:
[root@gary-centos-01 ~]# ceph-deploy install gary-centos-01 [ceph_deploy.install][DEBUG ] Installing stable version dumpling on cluster ceph hosts gary-centos-01 [ceph_deploy.install][DEBUG ] Detecting platform for host gary-centos-01 ... [ceph_deploy.install][INFO ] Distro info: CentOS 6.3 Final [gary-centos-01][INFO ] installing ceph on gary-centos-01 [gary-centos-01][INFO ] adding EPEL repository [gary-centos-01][INFO ] Running command: wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm [gary-centos-01][ERROR ] --2013-08-23 12:37:16-- http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm [gary-centos-01][ERROR ] Resolving dl.fedoraproject.org... 209.132.181.23, 209.132.181.24, 209.132.181.25, ... [gary-centos-01][ERROR ] Connecting to dl.fedoraproject.org|209.132.181.23|:80... connected. [gary-centos-01][ERROR ] HTTP request sent, awaiting response... 200 OK [gary-centos-01][ERROR ] Length: 14540 (14K) [application/x-rpm] [gary-centos-01][ERROR ] Saving to: “epel-release-6-8.noarch.rpm” [gary-centos-01][ERROR ] 0K .......... .... 100% 1007K=0.01s [gary-centos-01][ERROR ] 2013-08-23 12:37:16 (1007 KB/s) - “epel-release-6-8.noarch.rpm” saved [14540/14540] [gary-centos-01][INFO ] Running command: rpm -Uvh epel-release-6*.rpm [gary-centos-01][ERROR ] Traceback (most recent call last): [gary-centos-01][ERROR ] File "/usr/lib/python2.6/site-packages/ceph_deploy/util/pkg_managers.py", line 69, in rpm [gary-centos-01][ERROR ] File "/usr/lib/python2.6/site-packages/ceph_deploy/util/decorators.py", line 10, in inner [gary-centos-01][ERROR ] def inner(*args, **kwargs): [gary-centos-01][ERROR ] File "/usr/lib/python2.6/site-packages/ceph_deploy/util/wrappers.py", line 6, in remote_call [gary-centos-01][ERROR ] This allows us to only remote-execute the actual calls, not whole functions. [gary-centos-01][ERROR ] File "/usr/lib64/python2.6/subprocess.py", line 502, in check_call [gary-centos-01][ERROR ] raise CalledProcessError(retcode, cmd) [gary-centos-01][ERROR ] CalledProcessError: Command '['rpm', '-Uvh', 'epel-release-6*.rpm']' returned non-zero exit status 1 [gary-centos-01][INFO ] Preparing... ################################################## [gary-centos-01][ERROR ] package epel-release-6-8.noarch is already installed [gary-centos-01][INFO ] Running command: su -c 'rpm --import "https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc"' [gary-centos-01][INFO ] Running command: rpm -Uvh --replacepkgs --force --quiet http://ceph.com/rpm-dumpling/el6/noarch/ceph-release-1-0.el6.noarch.rpm [gary-centos-01][INFO ] ################################################## [gary-centos-01][INFO ] ################################################## [gary-centos-01][INFO ] Running command: yum -y -q install ceph [gary-centos-01][INFO ] Running command: ceph --version [gary-centos-01][INFO ] ceph version 0.67.2 (eb4380dd036a0b644c6283869911d615ed729ac8)
Updated by Alfredo Deza over 10 years ago
dmick mentioned that it might be better to just use `--replacepackgs` to quiet down this. It is unfortunate that wget decides that it is a grand idea to output its progress to stderr :(
Updated by Alfredo Deza over 10 years ago
- Status changed from 12 to Fix Under Review
Pull request opened: https://github.com/ceph/ceph-deploy/pull/50
Updated by Alfredo Deza over 10 years ago
- Status changed from Fix Under Review to Resolved
Merged into ceph-deploy master.
Fixed by using `--replacepkgs` which tells RPM to not exit with a non-zero status
Hash: 46eb80b0768d71fcce74ec8994fa0d0a899c539c
Actions