[root@object ~]# yum install python-ceph -y
Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors
epel/metalink | 4.4 kB 00:00
* base: mirrors.neusoft.edu.cn
* epel: mirrors.neusoft.edu.cn
* extras: mirrors.neusoft.edu.cn
* updates: mirrors.neusoft.edu.cn
Ceph | 951 B 00:00
Ceph/primary | 17 kB 00:00
Ceph 55/55
Ceph-noarch | 951 B 00:00
Ceph-noarch/primary | 6.1 kB 00:00
Ceph-noarch 22/22
base | 3.7 kB 00:00
base/primary_db | 4.4 MB 00:02
ceph-source | 2.9 kB 00:00
ceph-source/primary_db | 1.9 kB 00:00
epel | 4.4 kB 00:00
epel/primary_db | 6.2 MB 00:03
extras | 3.4 kB 00:00
extras/primary_db | 19 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 3.2 MB 00:02
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package python-ceph.x86_64 0:0.80.1-0.el6 will be installed
--> Processing Dependency: librbd1 = 0.80.1-0.el6 for package: python-ceph-0.80.1-0.el6.x86_64
--> Processing Dependency: librados2 = 0.80.1-0.el6 for package: python-ceph-0.80.1-0.el6.x86_64
--> Processing Dependency: libcephfs1 = 0.80.1-0.el6 for package: python-ceph-0.80.1-0.el6.x86_64
--> Processing Dependency: python-flask for package: python-ceph-0.80.1-0.el6.x86_64
--> Running transaction check
---> Package libcephfs1.x86_64 0:0.80.1-0.el6 will be installed
--> Processing Dependency: libsnappy.so.1()(64bit) for package: libcephfs1-0.80.1-0.el6.x86_64
--> Processing Dependency: libboost_thread-mt.so.5()(64bit) for package: libcephfs1-0.80.1-0.el6.x86_64
--> Processing Dependency: libleveldb.so.1()(64bit) for package: libcephfs1-0.80.1-0.el6.x86_64
---> Package librados2.x86_64 0:0.80.1-0.el6 will be installed
---> Package librbd1.x86_64 0:0.80.1-0.el6 will be installed
---> Package python-flask.noarch 1:0.9-7.el6 will be installed
--> Processing Dependency: python-werkzeug for package: 1:python-flask-0.9-7.el6.noarch
--> Processing Dependency: python-jinja2-26 for package: 1:python-flask-0.9-7.el6.noarch
--> Running transaction check
---> Package boost-thread.x86_64 0:1.41.0-18.el6 will be installed
---> Package leveldb.x86_64 0:1.7.0-2.el6 will be installed
---> Package python-jinja2-26.noarch 0:2.6-2.el6 will be installed
--> Processing Dependency: python-babel >= 0.8 for package: python-jinja2-26-2.6-2.el6.noarch
---> Package python-werkzeug.noarch 0:0.8.3-2.el6 will be installed
---> Package snappy.x86_64 0:1.1.0-1.el6 will be installed
--> Running transaction check
---> Package python-babel.noarch 0:0.9.4-5.1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=======================================================================================================
Package Arch Version Repository Size
=======================================================================================================
Installing:
python-ceph x86_64 0.80.1-0.el6 Ceph 70 k
Installing for dependencies:
boost-thread x86_64 1.41.0-18.el6 base 41 k
leveldb x86_64 1.7.0-2.el6 Ceph 158 k
libcephfs1 x86_64 0.80.1-0.el6 Ceph 1.6 M
librados2 x86_64 0.80.1-0.el6 Ceph 1.5 M
librbd1 x86_64 0.80.1-0.el6 Ceph 347 k
python-babel noarch 0.9.4-5.1.el6 base 1.4 M
python-flask noarch 1:0.9-7.el6 epel 190 k
python-jinja2-26 noarch 2.6-2.el6 Ceph-noarch 526 k
python-werkzeug noarch 0.8.3-2.el6 Ceph-noarch 552 k
snappy x86_64 1.1.0-1.el6 base 39 k
Transaction Summary
=======================================================================================================
Install 11 Package(s)
Total download size: 6.4 M
Installed size: 26 M
Downloading Packages:
(1/11): boost-thread-1.41.0-18.el6.x86_64.rpm | 41 kB 00:00
(2/11): leveldb-1.7.0-2.el6.x86_64.rpm | 158 kB 00:01
(3/11): libcephfs1-0.80.1-0.el6.x86_64.rpm | 1.6 MB 00:03
(4/11): librados2-0.80.1-0.el6.x86_64.rpm | 1.5 MB 00:26
(5/11): librbd1-0.80.1-0.el6.x86_64.rpm | 347 kB 00:03
(6/11): python-babel-0.9.4-5.1.el6.noarch.rpm | 1.4 MB 00:00
(7/11): python-ceph-0.80.1-0.el6.x86_64.rpm | 70 kB 00:00
(8/11): python-flask-0.9-7.el6.noarch.rpm | 190 kB 00:00
(9/11): python-jinja2-26-2.6-2.el6.noarch.rpm | 526 kB 00:01
(10/11): python-werkzeug-0.8.3-2.el6.noarch.rpm | 552 kB 00:00
(11/11): snappy-1.1.0-1.el6.x86_64.rpm | 39 kB 00:00
-------------------------------------------------------------------------------------------------------
Total 163 kB/s | 6.4 MB 00:40
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Importing GPG key 0xC105B9DE:
Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>
Package: centos-release-6-4.el6.centos.10.x86_64 (@anaconda-CentOS-201303020151.x86_64/6.4)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
warning: rpmts_HdrFromFdno: Header V4 RSA/SHA1 Signature, key ID 17ed316d: NOKEY
Retrieving key from https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc
Importing GPG key 0x17ED316D:
Userid: "Ceph Release Key <sage@newdream.net>"
From : https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Importing GPG key 0x0608B895:
Userid : EPEL (6) <epel@fedoraproject.org>
Package: epel-release-6-8.noarch (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : snappy-1.1.0-1.el6.x86_64 1/11
Installing : leveldb-1.7.0-2.el6.x86_64 2/11
Installing : boost-thread-1.41.0-18.el6.x86_64 3/11
Installing : librados2-0.80.1-0.el6.x86_64 4/11
Installing : librbd1-0.80.1-0.el6.x86_64 5/11
Installing : libcephfs1-0.80.1-0.el6.x86_64 6/11
Installing : python-werkzeug-0.8.3-2.el6.noarch 7/11
Installing : python-babel-0.9.4-5.1.el6.noarch 8/11
Installing : python-jinja2-26-2.6-2.el6.noarch 9/11
Installing : 1:python-flask-0.9-7.el6.noarch 10/11
Installing : python-ceph-0.80.1-0.el6.x86_64 11/11
Verifying : python-babel-0.9.4-5.1.el6.noarch 1/11
Verifying : libcephfs1-0.80.1-0.el6.x86_64 2/11
Verifying : snappy-1.1.0-1.el6.x86_64 3/11
Verifying : leveldb-1.7.0-2.el6.x86_64 4/11
Verifying : boost-thread-1.41.0-18.el6.x86_64 5/11
Verifying : librbd1-0.80.1-0.el6.x86_64 6/11
Verifying : python-werkzeug-0.8.3-2.el6.noarch 7/11
Verifying : python-ceph-0.80.1-0.el6.x86_64 8/11
Verifying : python-jinja2-26-2.6-2.el6.noarch 9/11
Verifying : librados2-0.80.1-0.el6.x86_64 10/11
Verifying : 1:python-flask-0.9-7.el6.noarch 11/11
Installed:
python-ceph.x86_64 0:0.80.1-0.el6
Dependency Installed:
boost-thread.x86_64 0:1.41.0-18.el6 leveldb.x86_64 0:1.7.0-2.el6
libcephfs1.x86_64 0:0.80.1-0.el6 librados2.x86_64 0:0.80.1-0.el6
librbd1.x86_64 0:0.80.1-0.el6 python-babel.noarch 0:0.9.4-5.1.el6
python-flask.noarch 1:0.9-7.el6 python-jinja2-26.noarch 0:2.6-2.el6
python-werkzeug.noarch 0:0.8.3-2.el6 snappy.x86_64 0:1.1.0-1.el6
Complete!
[root@object ~]# yum install ceph -y
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.neusoft.edu.cn
* epel: mirrors.neusoft.edu.cn
* extras: mirrors.neusoft.edu.cn
* updates: mirrors.neusoft.edu.cn
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ceph.x86_64 0:0.80.1-2.el6 will be installed
--> Processing Dependency: libtcmalloc.so.4()(64bit) for package: ceph-0.80.1-2.el6.x86_64
--> Processing Dependency: libcryptopp.so.6()(64bit) for package: ceph-0.80.1-2.el6.x86_64
--> Processing Dependency: libboost_program_options.so.5()(64bit) for package: ceph-0.80.1-2.el6.x86_64
--> Processing Dependency: libboost_program_options-mt.so.5()(64bit) for package: ceph-0.80.1-2.el6.x86_64
--> Running transaction check
---> Package boost-program-options.x86_64 0:1.41.0-18.el6 will be installed
---> Package cryptopp.x86_64 0:5.6.2-2.el6 will be installed
---> Package gperftools-libs.x86_64 0:2.0-11.el6.3 will be installed
--> Processing Dependency: libunwind.so.8()(64bit) for package: gperftools-libs-2.0-11.el6.3.x86_64
--> Running transaction check
---> Package libunwind.x86_64 0:1.1-2.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=======================================================================================================
Package Arch Version Repository Size
=======================================================================================================
Installing:
ceph x86_64 0.80.1-2.el6 epel 18 M
Installing for dependencies:
boost-program-options x86_64 1.41.0-18.el6 base 106 k
cryptopp x86_64 5.6.2-2.el6 epel 1.0 M
gperftools-libs x86_64 2.0-11.el6.3 Ceph 246 k
libunwind x86_64 1.1-2.el6 Ceph 54 k
Transaction Summary
=======================================================================================================
Install 5 Package(s)
Total download size: 20 M
Installed size: 73 M
Downloading Packages:
(1/5): boost-program-options-1.41.0-18.el6.x86_64.rpm | 106 kB 00:00
(2/5): ceph-0.80.1-2.el6.x86_64.rpm | 18 MB 00:10
(3/5): cryptopp-5.6.2-2.el6.x86_64.rpm | 1.0 MB 00:00
(4/5): gperftools-libs-2.0-11.el6.3.x86_64.rpm | 246 kB 00:01
(5/5): libunwind-1.1-2.el6.x86_64.rpm | 54 kB 00:00
-------------------------------------------------------------------------------------------------------
Total 923 kB/s | 20 MB 00:21
Running rpm_check_debug
Running Transaction Test
Transaction Check Error:
file /usr/lib/python2.6/site-packages/ceph_argparse.pyc from install of ceph-0.80.1-2.el6.x86_64 conflicts with file from package python-ceph-0.80.1-0.el6.x86_64
file /usr/lib/python2.6/site-packages/ceph_argparse.pyo from install of ceph-0.80.1-2.el6.x86_64 conflicts with file from package python-ceph-0.80.1-0.el6.x86_64
file /usr/lib/python2.6/site-packages/ceph_rest_api.pyc from install of ceph-0.80.1-2.el6.x86_64 conflicts with file from package python-ceph-0.80.1-0.el6.x86_64
file /usr/lib/python2.6/site-packages/ceph_rest_api.pyo from install of ceph-0.80.1-2.el6.x86_64 conflicts with file from package python-ceph-0.80.1-0.el6.x86_64
file /usr/lib/python2.6/site-packages/cephfs.pyc from install of ceph-0.80.1-2.el6.x86_64 conflicts with file from package python-ceph-0.80.1-0.el6.x86_64
file /usr/lib/python2.6/site-packages/cephfs.pyo from install of ceph-0.80.1-2.el6.x86_64 conflicts with file from package python-ceph-0.80.1-0.el6.x86_64
file /usr/lib/python2.6/site-packages/rados.pyc from install of ceph-0.80.1-2.el6.x86_64 conflicts with file from package python-ceph-0.80.1-0.el6.x86_64
file /usr/lib/python2.6/site-packages/rados.pyo from install of ceph-0.80.1-2.el6.x86_64 conflicts with file from package python-ceph-0.80.1-0.el6.x86_64
file /usr/lib/python2.6/site-packages/rbd.pyc from install of ceph-0.80.1-2.el6.x86_64 conflicts with file from package python-ceph-0.80.1-0.el6.x86_64
file /usr/lib/python2.6/site-packages/rbd.pyo from install of ceph-0.80.1-2.el6.x86_64 conflicts with file from package python-ceph-0.80.1-0.el6.x86_64
Error Summary
-------------
解决安装python-ceph 、ceph时会有上面的报错,上面的报错是由于软件包的下载版本不一致导致,需要修改epel yum 源
vi /etc/yum.repos.d/epel.repo
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-$releasever&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$releasever
exclude=*ceph*
修改完以后,初始化系统,更新yum源再重新安装上面的问题可以解决
yum clean all
yum install python-ceph -y
yum install ceph -y