[talen@ceph_admin my-cluster]$ ceph-deploy install ceph_admin ceph_node1 ceph_node2 ceph_monitor
[ceph_deploy.conf][DEBUG ] found configuration file at: /home/talen/.cephdeploy.conf
[ceph_deploy.cli][INFO ] Invoked (1.5.26): /bin/ceph-deploy install ceph_admin ceph_node1 ceph_node2 ceph_monitor
[ceph_deploy.cli][INFO ] ceph-deploy options:
[ceph_deploy.cli][INFO ] verbose : False
[ceph_deploy.cli][INFO ] testing : None
[ceph_deploy.cli][INFO ] cd_conf :
[ceph_deploy.cli][INFO ] cluster : ceph
[ceph_deploy.cli][INFO ] install_mds : False
[ceph_deploy.cli][INFO ] stable : None
[ceph_deploy.cli][INFO ] prog : ceph-deploy
[ceph_deploy.cli][INFO ] default_release : False
[ceph_deploy.cli][INFO ] username : None
[ceph_deploy.cli][INFO ] adjust_repos : True
[ceph_deploy.cli][INFO ] func :
[ceph_deploy.cli][INFO ] install_all : False
[ceph_deploy.cli][INFO ] repo : False
[ceph_deploy.cli][INFO ] host : ['ceph_admin', 'ceph_node1', 'ceph_node2', 'ceph_monitor']
[ceph_deploy.cli][INFO ] install_rgw : False
[ceph_deploy.cli][INFO ] repo_url : None
[ceph_deploy.cli][INFO ] ceph_conf : None
[ceph_deploy.cli][INFO ] install_osd : False
[ceph_deploy.cli][INFO ] version_kind : stable
[ceph_deploy.cli][INFO ] install_common : False
[ceph_deploy.cli][INFO ] overwrite_conf : False
[ceph_deploy.cli][INFO ] quiet : False
[ceph_deploy.cli][INFO ] dev : master
[ceph_deploy.cli][INFO ] local_mirror : None
[ceph_deploy.cli][INFO ] release : None
[ceph_deploy.cli][INFO ] install_mon : False
[ceph_deploy.cli][INFO ] gpg_url : None
[ceph_deploy.install][DEBUG ] Installing stable version hammer on cluster ceph hosts ceph_admin ceph_node1 ceph_node2 ceph_monitor
[ceph_deploy.install][DEBUG ] Detecting platform for host ceph_admin ...
[ceph_admin][DEBUG ] connection detected need for sudo
[ceph_admin][DEBUG ] connected to host: ceph_admin
[ceph_admin][DEBUG ] detect platform information from remote host
[ceph_admin][DEBUG ] detect machine type
[ceph_deploy.install][INFO ] Distro info: CentOS Linux 7.1.1503 Core
[ceph_admin][INFO ] installing ceph on ceph_admin
[ceph_admin][INFO ] Running command: sudo yum clean all
[ceph_admin][DEBUG ] Loaded plugins: fastestmirror, priorities
[ceph_admin][DEBUG ] Cleaning repos: base epel extras updates
[ceph_admin][DEBUG ] Cleaning up everything
[ceph_admin][DEBUG ] Cleaning up list of fastest mirrors
[ceph_admin][INFO ] adding EPEL repository
[ceph_admin][INFO ] Running command: sudo yum -y install epel-release
[ceph_admin][DEBUG ] Loaded plugins: fastestmirror, priorities
[ceph_admin][DEBUG ] Determining fastest mirrors
[ceph_admin][DEBUG ] * base: mirrors.163.com
[ceph_admin][DEBUG ] * epel: ftp.cuhk.edu.hk
[ceph_admin][DEBUG ] * extras: mirrors.skyshe.cn
[ceph_admin][DEBUG ] * updates: mirrors.163.com
[ceph_admin][DEBUG ] Package epel-release-7-5.noarch already installed and latest version
[ceph_admin][DEBUG ] Nothing to do
[ceph_admin][INFO ] Running command: sudo yum -y install yum-priorities
[ceph_admin][DEBUG ] Loaded plugins: fastestmirror, priorities
[ceph_admin][DEBUG ] Loading mirror speeds from cached hostfile
[ceph_admin][DEBUG ] * base: mirrors.163.com
[ceph_admin][DEBUG ] * epel: ftp.cuhk.edu.hk
[ceph_admin][DEBUG ] * extras: mirrors.skyshe.cn
[ceph_admin][DEBUG ] * updates: mirrors.163.com
[ceph_admin][DEBUG ] Package yum-plugin-priorities-1.1.31-29.el7.noarch already installed and latest version
[ceph_admin][DEBUG ] Nothing to do
[ceph_admin][DEBUG ] Configure Yum priorities to include obsoletes
[ceph_admin][WARNIN] check_obsoletes has been enabled for Yum priorities plugin
[ceph_admin][INFO ] Running command: sudo rpm --import
[ceph_admin][INFO ] Running command: sudo rpm -Uvh --replacepkgs
[ceph_admin][DEBUG ] Retrieving
[ceph_admin][DEBUG ] Preparing... ########################################
[ceph_admin][DEBUG ] Updating / installing...
[ceph_admin][DEBUG ] ceph-release-1-1.el7 ########################################
[ceph_admin][WARNIN] ensuring that /etc/yum.repos.d/ceph.repo contains a high priority
[ceph_admin][WARNIN] altered ceph.repo priorities to contain: priority=1
[ceph_admin][INFO ] Running command: sudo yum -y install ceph ceph-radosgw
[ceph_admin][DEBUG ] Loaded plugins: fastestmirror, priorities
[ceph_admin][DEBUG ] Loading mirror speeds from cached hostfile
[ceph_admin][DEBUG ] * base: mirrors.163.com
[ceph_admin][DEBUG ] * epel: ftp.cuhk.edu.hk
[ceph_admin][DEBUG ] * extras: mirrors.skyshe.cn
[ceph_admin][DEBUG ] * updates: mirrors.163.com
[ceph_admin][DEBUG ] 36 packages excluded due to repository priority protections
[ceph_admin][DEBUG ] Resolving Dependencies
[ceph_admin][DEBUG ] --> Running transaction check
[ceph_admin][DEBUG ] ---> Package ceph.x86_64 1:0.94.3-0.el7 will be installed
[ceph_admin][DEBUG ] --> Processing Dependency: python-rbd = 1:0.94.3-0.el7 for package: 1:ceph-0.94.3-0.el7.x86_64
[ceph_admin][DEBUG ] --> Processing Dependency: python-rados = 1:0.94.3-0.el7 for package: 1:ceph-0.94.3-0.el7.x86_64
[ceph_admin][DEBUG ] --> Processing Dependency: librados2 = 1:0.94.3-0.el7 for package: 1:ceph-0.94.3-0.el7.x86_64
[ceph_admin][DEBUG ] --> Processing Dependency: python-cephfs = 1:0.94.3-0.el7 for package: 1:ceph-0.94.3-0.el7.x86_64
[ceph_admin][DEBUG ] --> Processing Dependency: ceph-common = 1:0.94.3-0.el7 for package: 1:ceph-0.94.3-0.el7.x86_64
[ceph_admin][DEBUG ] --> Processing Dependency: librbd1 = 1:0.94.3-0.el7 for package: 1:ceph-0.94.3-0.el7.x86_64
[ceph_admin][DEBUG ] --> Processing Dependency: libcephfs1 = 1:0.94.3-0.el7 for package: 1:ceph-0.94.3-0.el7.x86_64
[ceph_admin][DEBUG ] --> Processing Dependency: python-flask for package: 1:ceph-0.94.3-0.el7.x86_64
[ceph_admin][DEBUG ] --> Processing Dependency: hdparm for package: 1:ceph-0.94.3-0.el7.x86_64
[ceph_admin][DEBUG ] --> Processing Dependency: cryptsetup for package: 1:ceph-0.94.3-0.el7.x86_64
[ceph_admin][DEBUG ] --> Processing Dependency: gdisk for package: 1:ceph-0.94.3-0.el7.x86_64
[ceph_admin][DEBUG ] --> Processing Dependency: libboost_program_options-mt.so.1.53.0()(64bit) for package: 1:ceph-0.94.3-0.el7.x86_64
[ceph_admin][DEBUG ] --> Processing Dependency: libtcmalloc.so.4()(64bit) for package: 1:ceph-0.94.3-0.el7.x86_64
[ceph_admin][DEBUG ] --> Processing Dependency: libleveldb.so.1()(64bit) for package: 1:ceph-0.94.3-0.el7.x86_64
[ceph_admin][DEBUG ] --> Processing Dependency: libcephfs.so.1()(64bit) for package: 1:ceph-0.94.3-0.el7.x86_64
[ceph_admin][DEBUG ] --> Processing Dependency: librados.so.2()(64bit) for package: 1:ceph-0.94.3-0.el7.x86_64
[ceph_admin][DEBUG ] --> Processing Dependency: libboost_system-mt.so.1.53.0()(64bit) for package: 1:ceph-0.94.3-0.el7.x86_64
[ceph_admin][DEBUG ] --> Processing Dependency: libboost_thread-mt.so.1.53.0()(64bit) for package: 1:ceph-0.94.3-0.el7.x86_64
[ceph_admin][DEBUG ] ---> Package ceph-radosgw.x86_64 1:0.94.3-0.el7 will be installed
[ceph_admin][DEBUG ] --> Processing Dependency: libfcgi.so.0()(64bit) for package: 1:ceph-radosgw-0.94.3-0.el7.x86_64
[ceph_admin][DEBUG ] --> Running transaction check
[ceph_admin][DEBUG ] ---> Package boost-program-options.x86_64 0:1.53.0-23.el7 will be installed
[ceph_admin][DEBUG ] ---> Package boost-system.x86_64 0:1.53.0-23.el7 will be installed
[ceph_admin][DEBUG ] ---> Package boost-thread.x86_64 0:1.53.0-23.el7 will be installed
[ceph_admin][DEBUG ] ---> Package ceph-common.x86_64 1:0.94.3-0.el7 will be installed
[ceph_admin][DEBUG ] --> Processing Dependency: redhat-lsb-core for package: 1:ceph-common-0.94.3-0.el7.x86_64
[ceph_admin][DEBUG ] ---> Package cryptsetup.x86_64 0:1.6.6-3.el7 will be installed
[ceph_admin][DEBUG ] ---> Package fcgi.x86_64 0:2.4.0-22.el7 will be installed
[ceph_admin][DEBUG ] ---> Package gdisk.x86_64 0:0.8.6-5.el7 will be installed
[ceph_admin][DEBUG ] --> Processing Dependency: libicuuc.so.50()(64bit) for package: gdisk-0.8.6-5.el7.x86_64
[ceph_admin][DEBUG ] --> Processing Dependency: libicuio.so.50()(64bit) for package: gdisk-0.8.6-5.el7.x86_64
[ceph_admin][DEBUG ] ---> Package gperftools-libs.x86_64 0:2.1-1.el7 will be installed
[ceph_admin][DEBUG ] --> Processing Dependency: libunwind.so.8()(64bit) for package: gperftools-libs-2.1-1.el7.x86_64
[ceph_admin][DEBUG ] ---> Package hdparm.x86_64 0:9.43-5.el7 will be installed
[ceph_admin][DEBUG ] ---> Package leveldb.x86_64 0:1.12.0-5.el7 will be installed
[ceph_admin][DEBUG ] ---> Package libcephfs1.x86_64 1:0.94.3-0.el7 will be installed
[ceph_admin][DEBUG ] ---> Package librados2.x86_64 1:0.94.3-0.el7 will be installed
[ceph_admin][DEBUG ] ---> Package librbd1.x86_64 1:0.94.3-0.el7 will be installed
[ceph_admin][DEBUG ] ---> Package python-cephfs.x86_64 1:0.94.3-0.el7 will be installed
[ceph_admin][DEBUG ] ---> Package python-flask.noarch 1:0.10.1-3.el7 will be installed
[ceph_admin][DEBUG ] --> Processing Dependency: python-itsdangerous for package: 1:python-flask-0.10.1-3.el7.noarch
[ceph_admin][DEBUG ] --> Processing Dependency: python-werkzeug for package: 1:python-flask-0.10.1-3.el7.noarch
[ceph_admin][DEBUG ] ---> Package python-rados.x86_64 1:0.94.3-0.el7 will be installed
[ceph_admin][DEBUG ] ---> Package python-rbd.x86_64 1:0.94.3-0.el7 will be installed
[ceph_admin][DEBUG ] --> Running transaction check
[ceph_admin][DEBUG ] ---> Package libicu.x86_64 0:50.1.2-11.el7 will be installed
[ceph_admin][DEBUG ] ---> Package libunwind.x86_64 0:1.1-10.el7 will be installed
[ceph_admin][DEBUG ] ---> Package python-itsdangerous.noarch 0:0.23-1.el7 will be installed
[ceph_admin][DEBUG ] ---> Package python-werkzeug.noarch 0:0.9.1-1.el7 will be installed
[ceph_admin][DEBUG ] ---> Package redhat-lsb-core.x86_64 0:4.1-27.el7.centos.1 will be installed
[ceph_admin][DEBUG ] --> Processing Dependency: redhat-lsb-submod-security(x86-64) = 4.1-27.el7.centos.1 for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64
[ceph_admin][DEBUG ] --> Processing Dependency: spax for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64
[ceph_admin][DEBUG ] --> Processing Dependency: /usr/sbin/fuser for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64
[ceph_admin][DEBUG ] --> Processing Dependency: /usr/bin/time for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64
[ceph_admin][DEBUG ] --> Processing Dependency: /usr/bin/patch for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64
[ceph_admin][DEBUG ] --> Processing Dependency: /usr/bin/m4 for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64
[ceph_admin][DEBUG ] --> Processing Dependency: /usr/bin/lpr for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64
[ceph_admin][DEBUG ] --> Processing Dependency: /usr/bin/lp for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64
[ceph_admin][DEBUG ] --> Processing Dependency: /usr/bin/killall for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64
[ceph_admin][DEBUG ] --> Processing Dependency: /usr/bin/bc for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64
[ceph_admin][DEBUG ] --> Processing Dependency: /usr/bin/batch for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64
[ceph_admin][DEBUG ] --> Processing Dependency: /usr/bin/at for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64
[ceph_admin][DEBUG ] --> Processing Dependency: /bin/mailx for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64
[ceph_admin][DEBUG ] --> Processing Dependency: /bin/ed for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64
[ceph_admin][DEBUG ] --> Running transaction check
[ceph_admin][DEBUG ] ---> Package at.x86_64 0:3.1.13-17.el7_0.1 will be installed
[ceph_admin][DEBUG ] ---> Package bc.x86_64 0:1.06.95-13.el7 will be installed
[ceph_admin][DEBUG ] ---> Package cups-client.x86_64 1:1.6.3-17.el7_1.1 will be installed
[ceph_admin][DEBUG ] --> Processing Dependency: cups-libs(x86-64) = 1:1.6.3-17.el7_1.1 for package: 1:cups-client-1.6.3-17.el7_1.1.x86_64
[ceph_admin][DEBUG ] --> Processing Dependency: libcups.so.2()(64bit) for package: 1:cups-client-1.6.3-17.el7_1.1.x86_64
[ceph_admin][DEBUG ] ---> Package ed.x86_64 0:1.9-4.el7 will be installed
[ceph_admin][DEBUG ] ---> Package m4.x86_64 0:1.4.16-9.el7 will be installed
[ceph_admin][DEBUG ] ---> Package mailx.x86_64 0:12.5-12.el7_0 will be installed
[ceph_admin][DEBUG ] ---> Package patch.x86_64 0:2.7.1-8.el7 will be installed
[ceph_admin][DEBUG ] ---> Package psmisc.x86_64 0:22.20-8.el7 will be installed
[ceph_admin][DEBUG ] ---> Package redhat-lsb-submod-security.x86_64 0:4.1-27.el7.centos.1 will be installed
[ceph_admin][DEBUG ] ---> Package spax.x86_64 0:1.5.2-11.el7 will be installed
[ceph_admin][DEBUG ] ---> Package time.x86_64 0:1.7-45.el7 will be installed
[ceph_admin][DEBUG ] --> Running transaction check
[ceph_admin][DEBUG ] ---> Package cups-libs.x86_64 1:1.6.3-17.el7_1.1 will be installed
[ceph_admin][DEBUG ] --> Finished Dependency Resolution
[ceph_admin][DEBUG ]
[ceph_admin][DEBUG ] Dependencies Resolved
[ceph_admin][DEBUG ]
[ceph_admin][DEBUG ] ================================================================================
[ceph_admin][DEBUG ] Package Arch Version Repository Size
[ceph_admin][DEBUG ] ================================================================================
[ceph_admin][DEBUG ] Installing:
[ceph_admin][DEBUG ] ceph x86_64 1:0.94.3-0.el7 Ceph 20 M
[ceph_admin][DEBUG ] ceph-radosgw x86_64 1:0.94.3-0.el7 Ceph 2.3 M
[ceph_admin][DEBUG ] Installing for dependencies:
[ceph_admin][DEBUG ] at x86_64 3.1.13-17.el7_0.1 base 50 k
[ceph_admin][DEBUG ] bc x86_64 1.06.95-13.el7 base 115 k
[ceph_admin][DEBUG ] boost-program-options x86_64 1.53.0-23.el7 base 155 k
[ceph_admin][DEBUG ] boost-system x86_64 1.53.0-23.el7 base 39 k
[ceph_admin][DEBUG ] boost-thread x86_64 1.53.0-23.el7 base 56 k
[ceph_admin][DEBUG ] ceph-common x86_64 1:0.94.3-0.el7 Ceph 6.3 M
[ceph_admin][DEBUG ] cryptsetup x86_64 1.6.6-3.el7 base 117 k
[ceph_admin][DEBUG ] cups-client x86_64 1:1.6.3-17.el7_1.1 updates 148 k
[ceph_admin][DEBUG ] cups-libs x86_64 1:1.6.3-17.el7_1.1 updates 354 k
[ceph_admin][DEBUG ] ed x86_64 1.9-4.el7 base 72 k
[ceph_admin][DEBUG ] fcgi x86_64 2.4.0-22.el7 Ceph 45 k
[ceph_admin][DEBUG ] gdisk x86_64 0.8.6-5.el7 base 187 k
[ceph_admin][DEBUG ] gperftools-libs x86_64 2.1-1.el7 Ceph 267 k
[ceph_admin][DEBUG ] hdparm x86_64 9.43-5.el7 base 83 k
[ceph_admin][DEBUG ] leveldb x86_64 1.12.0-5.el7 Ceph 158 k
[ceph_admin][DEBUG ] libcephfs1 x86_64 1:0.94.3-0.el7 Ceph 1.8 M
[ceph_admin][DEBUG ] libicu x86_64 50.1.2-11.el7 base 6.9 M
[ceph_admin][DEBUG ] librados2 x86_64 1:0.94.3-0.el7 Ceph 1.7 M
[ceph_admin][DEBUG ] librbd1 x86_64 1:0.94.3-0.el7 Ceph 1.8 M
[ceph_admin][DEBUG ] libunwind x86_64 1.1-10.el7 epel 63 k
[ceph_admin][DEBUG ] m4 x86_64 1.4.16-9.el7 base 256 k
[ceph_admin][DEBUG ] mailx x86_64 12.5-12.el7_0 base 244 k
[ceph_admin][DEBUG ] patch x86_64 2.7.1-8.el7 base 110 k
[ceph_admin][DEBUG ] psmisc x86_64 22.20-8.el7 base 140 k
[ceph_admin][DEBUG ] python-cephfs x86_64 1:0.94.3-0.el7 Ceph 11 k
[ceph_admin][DEBUG ] python-flask noarch 1:0.10.1-3.el7 Ceph-noarch 204 k
[ceph_admin][DEBUG ] python-itsdangerous noarch 0.23-1.el7 Ceph-noarch 23 k
[ceph_admin][DEBUG ] python-rados x86_64 1:0.94.3-0.el7 Ceph 28 k
[ceph_admin][DEBUG ] python-rbd x86_64 1:0.94.3-0.el7 Ceph 18 k
[ceph_admin][DEBUG ] python-werkzeug noarch 0.9.1-1.el7 Ceph-noarch 562 k
[ceph_admin][DEBUG ] redhat-lsb-core x86_64 4.1-27.el7.centos.1 base 38 k
[ceph_admin][DEBUG ] redhat-lsb-submod-security x86_64 4.1-27.el7.centos.1 base 15 k
[ceph_admin][DEBUG ] spax x86_64 1.5.2-11.el7 base 259 k
[ceph_admin][DEBUG ] time x86_64 1.7-45.el7 base 30 k
[ceph_admin][DEBUG ]
[ceph_admin][DEBUG ] Transaction Summary
[ceph_admin][DEBUG ] ================================================================================
[ceph_admin][DEBUG ] Install 2 Packages (+34 Dependent packages)
[ceph_admin][DEBUG ]
[ceph_admin][DEBUG ] Total download size: 44 M
[ceph_admin][DEBUG ] Installed size: 160 M
[ceph_admin][DEBUG ] Downloading packages:
[ceph_admin][WARNIN] No data was received after 300 seconds, disconnecting...
=======================================================================================
原因是网络比较慢,达到5分钟超时
解决方案:1.可以在每个节点上先行安装sudo yum -y install ceph
2.数量比较多的话多执行几次此命令
3.最佳方案是搭建本地源
=====================================================================================================
[ceph_admin][INFO ] Running command: sudo ceph --version
[ceph_admin][ERROR ] Traceback (most recent call last):
[ceph_admin][ERROR ] File "/usr/lib/python2.7/site-packages/ceph_deploy/lib/vendor/remoto/process.py", line 118, in run
[ceph_admin][ERROR ] reporting(conn, result, timeout)
[ceph_admin][ERROR ] File "/usr/lib/python2.7/site-packages/ceph_deploy/lib/vendor/remoto/log.py", line 13, in reporting
[ceph_admin][ERROR ] received = result.receive(timeout)
[ceph_admin][ERROR ] File "/usr/lib/python2.7/site-packages/ceph_deploy/lib/vendor/remoto/lib/vendor/execnet/gateway_base.py", line 704, in receive
[ceph_admin][ERROR ] raise self._getremoteerror() or EOFError()
[ceph_admin][ERROR ] RemoteError: Traceback (most recent call last):
[ceph_admin][ERROR ] File "/usr/lib/python2.7/site-packages/ceph_deploy/lib/vendor/remoto/lib/vendor/execnet/gateway_base.py", line 1036, in executetask
[ceph_admin][ERROR ] function(channel, **kwargs)
[ceph_admin][ERROR ] File "", line 12, in _remote_run
[ceph_admin][ERROR ] File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
[ceph_admin][ERROR ] errread, errwrite)
[ceph_admin][ERROR ] File "/usr/lib64/python2.7/subprocess.py", line 1308, in _execute_child
[ceph_admin][ERROR ] raise child_exception
[ceph_admin][ERROR ] OSError: [Errno 2] No such file or directory
[ceph_admin][ERROR ]
[ceph_admin][ERROR ]
[ceph_deploy][ERROR ] RuntimeError: Failed to execute command: ceph --version
阅读(15098) | 评论(0) | 转发(0) |