Re: problem on ceph installation on centos 7

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yup, Thanks for the email. I got through the software installation part 
But I went into this problem when I try to create.

[root@hdmaster ~]# su - ceph
Last login: Thu Dec 17 14:32:22 PST 2015 on pts/2
[ceph@hdmaster ~]$ ceph-deploy -v mon create-initial 
[ceph_deploy.conf][DEBUG ] found configuration file at: /home/ceph/.cephdeploy.conf
[ceph_deploy.cli][INFO  ] Invoked (1.5.28): /bin/ceph-deploy -v mon create-initial
[ceph_deploy.cli][INFO  ] ceph-deploy options:
[ceph_deploy.cli][INFO  ]  username                      : None
[ceph_deploy.cli][INFO  ]  verbose                       : True
[ceph_deploy.cli][INFO  ]  overwrite_conf                : False
[ceph_deploy.cli][INFO  ]  subcommand                    : create-initial
[ceph_deploy.cli][INFO  ]  quiet                         : False
[ceph_deploy.cli][INFO  ]  cd_conf                       : <ceph_deploy.conf.cephdeploy.Conf instance at 0x14845a8>
[ceph_deploy.cli][INFO  ]  cluster                       : ceph
[ceph_deploy.cli][INFO  ]  func                          : <function mon at 0x147d6e0>
[ceph_deploy.cli][INFO  ]  ceph_conf                     : None
[ceph_deploy.cli][INFO  ]  default_release               : False
[ceph_deploy.cli][INFO  ]  keyrings                      : None
[ceph_deploy.mon][DEBUG ] Deploying mon, cluster ceph hosts mon0
[ceph_deploy.mon][DEBUG ] detecting platform for host mon0 ...
[mon0][DEBUG ] connection detected need for sudo
[mon0][DEBUG ] connected to host: mon0 
[mon0][DEBUG ] detect platform information from remote host
[mon0][DEBUG ] detect machine type
[mon0][DEBUG ] find the location of an executable
[ceph_deploy.mon][INFO  ] distro info: CentOS Linux 7.2.1511 Core
[mon0][DEBUG ] determining if provided host has same hostname in remote
[mon0][DEBUG ] get remote short hostname
[mon0][WARNIN] ********************************************************************************
[mon0][WARNIN] provided hostname must match remote hostname
[mon0][WARNIN] provided hostname: mon0
[mon0][WARNIN] remote hostname: hdmaster
[mon0][WARNIN] monitors may not reach quorum and create-keys will not complete
[mon0][WARNIN] ********************************************************************************
[mon0][DEBUG ] deploying mon to mon0
[mon0][DEBUG ] get remote short hostname
[mon0][DEBUG ] remote hostname: hdmaster
[mon0][DEBUG ] write cluster configuration to /etc/ceph/{cluster}.conf
[mon0][DEBUG ] create the mon path if it does not exist
[mon0][DEBUG ] checking for done path: /var/lib/ceph/mon/ceph-hdmaster/done
[mon0][DEBUG ] create a done file to avoid re-doing the mon deployment
[mon0][DEBUG ] create the init path if it does not exist
[mon0][DEBUG ] locating the `service` executable...
[mon0][INFO  ] Running command: sudo /usr/sbin/service ceph -c /etc/ceph/ceph.conf start mon.hdmaster
[mon0][DEBUG ] === mon.hdmaster === 
[mon0][DEBUG ] Starting Ceph mon.hdmaster on hdmaster...already running
[mon0][INFO  ] Running command: sudo systemctl enable ceph
[mon0][WARNIN] ceph.service is not a native service, redirecting to /sbin/chkconfig.
[mon0][WARNIN] Executing /sbin/chkconfig ceph on
[mon0][INFO  ] Running command: sudo ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.mon0.asok mon_status
[mon0][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
[mon0][WARNIN] monitor: mon.mon0, might not be running yet
[mon0][INFO  ] Running command: sudo ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.mon0.asok mon_status
[mon0][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
[mon0][WARNIN] monitor mon0 does not exist in monmap
[ceph_deploy.mon][INFO  ] processing monitor mon.mon0
[mon0][DEBUG ] connection detected need for sudo
[mon0][DEBUG ] connected to host: mon0 
[mon0][DEBUG ] detect platform information from remote host
[mon0][DEBUG ] detect machine type
[mon0][DEBUG ] find the location of an executable
[mon0][INFO  ] Running command: sudo ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.mon0.asok mon_status
[mon0][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
[ceph_deploy.mon][WARNIN] mon.mon0 monitor is not yet in quorum, tries left: 5
[ceph_deploy.mon][WARNIN] waiting 5 seconds before retrying
[mon0][INFO  ] Running command: sudo ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.mon0.asok mon_status
[mon0][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
[ceph_deploy.mon][WARNIN] mon.mon0 monitor is not yet in quorum, tries left: 4
[ceph_deploy.mon][WARNIN] waiting 10 seconds before retrying
[mon0][INFO  ] Running command: sudo ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.mon0.asok mon_status
[mon0][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
[ceph_deploy.mon][WARNIN] mon.mon0 monitor is not yet in quorum, tries left: 3
[ceph_deploy.mon][WARNIN] waiting 10 seconds before retrying
[mon0][INFO  ] Running command: sudo ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.mon0.asok mon_status
[mon0][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
[ceph_deploy.mon][WARNIN] mon.mon0 monitor is not yet in quorum, tries left: 2
[ceph_deploy.mon][WARNIN] waiting 15 seconds before retrying
[mon0][INFO  ] Running command: sudo ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.mon0.asok mon_status
[mon0][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
[ceph_deploy.mon][WARNIN] mon.mon0 monitor is not yet in quorum, tries left: 1
[ceph_deploy.mon][WARNIN] waiting 20 seconds before retrying
[ceph_deploy.mon][ERROR ] Some monitors have still not reached quorum:
[ceph_deploy.mon][ERROR ] mon0

[ceph@hdmaster ~]$ 

And try to run it from the storage node, it give me this error too.

[root@hdslave4 yum.repos.d]# su - ceph
Last login: Thu Dec 17 11:11:03 PST 2015 from hdmaster on pts/7
[ceph@hdslave4 ~]$ ceph-create-keys --id client.admin
admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
INFO:ceph-create-keys:ceph-mon admin socket not ready yet.
admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
INFO:ceph-create-keys:ceph-mon admin socket not ready yet.
admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
INFO:ceph-create-keys:ceph-mon admin socket not ready yet.
admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
INFO:ceph-create-keys:ceph-mon admin socket not ready yet.
admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
INFO:ceph-create-keys:ceph-mon admin socket not ready yet.
admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
INFO:ceph-create-keys:ceph-mon admin socket not ready yet.
^CTraceback (most recent call last):
  File "/usr/sbin/ceph-create-keys", line 231, in <module>
    main()
  File "/usr/sbin/ceph-create-keys", line 213, in main
    wait_for_quorum(cluster=args.cluster, mon_id=args.id)
  File "/usr/sbin/ceph-create-keys", line 30, in wait_for_quorum
    out = p.stdout.read()
KeyboardInterrupt
[ceph@hdslave4 ~]$


Thanks in advance.

Alex Leung

From: Bob R <bobr@xxxxxxxxxxxxxx>
Date: Thursday, December 17, 2015 10:52 AM
To: Microsoft Office User <alex.leung@xxxxxxxxxxxx>
Cc: "ceph-users@xxxxxxxxxxxxxx" <ceph-users@xxxxxxxxxxxxxx>
Subject: Re: problem on ceph installation on centos 7

Alex,

It looks like you might have an old repo in there with priority=1 so it's not trying to install hammer. Try mv /etc/yum.repos.d/ceph.repo /etc/yum.repos.d/ceph.repo.old && mv /etc/yum.repos.d/ceph.repo.rpmnew /etc/yum.repos.d/ceph.repo then re-run ceph-deploy.

Bob

On Thu, Dec 10, 2015 at 1:42 PM, Leung, Alex (398C) <alex.leung@xxxxxxxxxxxx> wrote:
Hi, 



I am trying to install ceph on a Centos 7 system and I get the following error, Thanks in advance for the help.

[ceph@hdmaster ~]$ ceph-deploy install mon0 osd0 osd1 osd2
[ceph_deploy.conf][DEBUG ] found configuration file at: /home/ceph/.cephdeploy.conf
[ceph_deploy.cli][INFO  ] Invoked (1.5.28): /bin/ceph-deploy install mon0 osd0 osd1 osd2
[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.conf.cephdeploy.Conf instance at 0x119a5a8>
[ceph_deploy.cli][INFO  ]  cluster                       : ceph
[ceph_deploy.cli][INFO  ]  dev_commit                    : None
[ceph_deploy.cli][INFO  ]  install_mds                   : False
[ceph_deploy.cli][INFO  ]  stable                        : None
[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                          : <function install at 0x10edd70>
[ceph_deploy.cli][INFO  ]  install_all                   : False
[ceph_deploy.cli][INFO  ]  repo                          : False
[ceph_deploy.cli][INFO  ]  host                          : ['mon0', 'osd0', 'osd1', 'osd2']
[ceph_deploy.cli][INFO  ]  install_rgw                   : False
[ceph_deploy.cli][INFO  ]  install_tests                 : 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 mon0 osd0 osd1 osd2
[ceph_deploy.install][DEBUG ] Detecting platform for host mon0 ...
[mon0][DEBUG ] connection detected need for sudo
[mon0][DEBUG ] connected to host: mon0 
[mon0][DEBUG ] detect platform information from remote host
[mon0][DEBUG ] detect machine type
[ceph_deploy.install][INFO  ] Distro info: CentOS Linux 7.0.1406 Core
[mon0][INFO  ] installing Ceph on mon0
[mon0][INFO  ] Running command: sudo yum clean all
[mon0][DEBUG ] Loaded plugins: fastestmirror, langpacks
[mon0][DEBUG ] Cleaning repos: base ceph ceph-noarch epel extras updates
[mon0][DEBUG ] Cleaning up everything
[mon0][DEBUG ] Cleaning up list of fastest mirrors
[mon0][INFO  ] Running command: sudo yum -y install epel-release
[mon0][DEBUG ] Loaded plugins: fastestmirror, langpacks
[mon0][DEBUG ] Determining fastest mirrors
[mon0][DEBUG ]  * base: mirrors.kernel.org
[mon0][DEBUG ]  * epel: mirror.sfo12.us.leaseweb.net
[mon0][DEBUG ]  * extras: mirrors.xmission.com
[mon0][DEBUG ]  * updates: mirror.hmc.edu
[mon0][DEBUG ] Package epel-release-7-5.noarch already installed and latest version
[mon0][DEBUG ] Nothing to do
[mon0][INFO  ] Running command: sudo yum -y install yum-plugin-priorities
[mon0][DEBUG ] Loaded plugins: fastestmirror, langpacks
[mon0][DEBUG ] Loading mirror speeds from cached hostfile
[mon0][DEBUG ]  * base: mirrors.kernel.org
[mon0][DEBUG ]  * epel: mirror.sfo12.us.leaseweb.net
[mon0][DEBUG ]  * extras: mirrors.xmission.com
[mon0][DEBUG ]  * updates: mirror.hmc.edu
[mon0][DEBUG ] Resolving Dependencies
[mon0][DEBUG ] --> Running transaction check
[mon0][DEBUG ] ---> Package yum-plugin-priorities.noarch 0:1.1.31-29.el7 will be installed
[mon0][DEBUG ] --> Finished Dependency Resolution
[mon0][DEBUG ] 
[mon0][DEBUG ] Dependencies Resolved
[mon0][DEBUG ] 
[mon0][DEBUG ] ================================================================================
[mon0][DEBUG ]  Package                     Arch         Version              Repository  Size
[mon0][DEBUG ] ================================================================================
[mon0][DEBUG ] Installing:
[mon0][DEBUG ]  yum-plugin-priorities       noarch       1.1.31-29.el7        base        24 k
[mon0][DEBUG ] 
[mon0][DEBUG ] Transaction Summary
[mon0][DEBUG ] ================================================================================
[mon0][DEBUG ] Install  1 Package
[mon0][DEBUG ] 
[mon0][DEBUG ] Total download size: 24 k
[mon0][DEBUG ] Installed size: 28 k
[mon0][DEBUG ] Downloading packages:
[mon0][DEBUG ] Running transaction check
[mon0][DEBUG ] Running transaction test
[mon0][DEBUG ] Transaction test succeeded
[mon0][DEBUG ] Running transaction
[mon0][DEBUG ]   Installing : yum-plugin-priorities-1.1.31-29.el7.noarch                   1/1 
[mon0][DEBUG ]   Verifying  : yum-plugin-priorities-1.1.31-29.el7.noarch                   1/1 
[mon0][DEBUG ] 
[mon0][DEBUG ] Installed:
[mon0][DEBUG ]   yum-plugin-priorities.noarch 0:1.1.31-29.el7                                  
[mon0][DEBUG ] 
[mon0][DEBUG ] Complete!
[mon0][DEBUG ] Configure Yum priorities to include obsoletes
[mon0][WARNIN] check_obsoletes has been enabled for Yum priorities plugin
[mon0][INFO  ] Running command: sudo rpm --import https://download.ceph.com/keys/release.asc
[mon0][INFO  ] Running command: sudo rpm -Uvh --replacepkgs https://download.ceph.com/rpm-hammer/el7/noarch/ceph-release-1-0.el7.noarch.rpm
[mon0][DEBUG ] Preparing...                          ########################################
[mon0][DEBUG ] Updating / installing...
[mon0][DEBUG ] ceph-release-1-1.el7                  ########################################
[mon0][WARNIN] warning: /etc/yum.repos.d/ceph.repo created as /etc/yum.repos.d/ceph.repo.rpmnew
[mon0][WARNIN] ensuring that /etc/yum.repos.d/ceph.repo contains a high priority
[mon0][WARNIN] altered ceph.repo priorities to contain: priority=1
[mon0][INFO  ] Running command: sudo yum -y install ceph ceph-radosgw
[mon0][DEBUG ] Loaded plugins: fastestmirror, langpacks, priorities
[mon0][DEBUG ] Loading mirror speeds from cached hostfile
[mon0][DEBUG ]  * base: mirrors.kernel.org
[mon0][DEBUG ]  * epel: mirror.sfo12.us.leaseweb.net
[mon0][DEBUG ]  * extras: mirrors.xmission.com
[mon0][DEBUG ]  * updates: mirror.hmc.edu
[mon0][DEBUG ] 26 packages excluded due to repository priority protections
[mon0][DEBUG ] Package matching ceph-0.80.11-0.el7.x86_64 already installed. Checking for update.
[mon0][DEBUG ] Resolving Dependencies
[mon0][DEBUG ] --> Running transaction check
[mon0][DEBUG ] ---> Package ceph-radosgw.x86_64 0:0.80.11-0.el7 will be installed
[mon0][DEBUG ] --> Processing Dependency: librados2 = 0.80.11-0.el7 for package: ceph-radosgw-0.80.11-0.el7.x86_64
[mon0][DEBUG ] --> Processing Dependency: ceph-common = 0.80.11-0.el7 for package: ceph-radosgw-0.80.11-0.el7.x86_64
[mon0][DEBUG ] --> Processing Dependency: libfcgi.so.0()(64bit) for package: ceph-radosgw-0.80.11-0.el7.x86_64
[mon0][DEBUG ] --> Running transaction check
[mon0][DEBUG ] ---> Package ceph-radosgw.x86_64 0:0.80.11-0.el7 will be installed
[mon0][DEBUG ] --> Processing Dependency: librados2 = 0.80.11-0.el7 for package: ceph-radosgw-0.80.11-0.el7.x86_64
[mon0][DEBUG ] --> Processing Dependency: ceph-common = 0.80.11-0.el7 for package: ceph-radosgw-0.80.11-0.el7.x86_64
[mon0][DEBUG ] ---> Package fcgi.x86_64 0:2.4.0-25.el7 will be installed
[mon0][DEBUG ] --> Finished Dependency Resolution
[mon0][WARNIN] Error: Package: ceph-radosgw-0.80.11-0.el7.x86_64 (ceph)
[mon0][WARNIN]            Requires: librados2 = 0.80.11-0.el7
[mon0][DEBUG ]  You could try using --skip-broken to work around the problem
[mon0][WARNIN]            Installed: 1:librados2-0.80.7-2.el7.x86_64 (@base)
[mon0][WARNIN]                librados2 = 1:0.80.7-2.el7
[mon0][WARNIN]            Available: librados2-0.80.6-0.el7.centos.x86_64 (ceph)
[mon0][WARNIN]                librados2 = 0.80.6-0.el7.centos
[mon0][WARNIN]            Available: librados2-0.80.7-0.el7.centos.x86_64 (ceph)
[mon0][WARNIN]                librados2 = 0.80.7-0.el7.centos
[mon0][WARNIN]            Available: librados2-0.80.8-0.el7.centos.x86_64 (ceph)
[mon0][WARNIN]                librados2 = 0.80.8-0.el7.centos
[mon0][WARNIN]            Available: librados2-0.80.9-0.el7.centos.x86_64 (ceph)
[mon0][WARNIN]                librados2 = 0.80.9-0.el7.centos
[mon0][WARNIN]            Available: librados2-0.80.10-0.el7.centos.x86_64 (ceph)
[mon0][WARNIN]                librados2 = 0.80.10-0.el7.centos
[mon0][WARNIN]            Available: librados2-0.80.11-0.el7.x86_64 (ceph)
[mon0][WARNIN]                librados2 = 0.80.11-0.el7
[mon0][WARNIN] Error: Package: ceph-radosgw-0.80.11-0.el7.x86_64 (ceph)
[mon0][WARNIN]            Requires: ceph-common = 0.80.11-0.el7
[mon0][WARNIN]            Installed: 1:ceph-common-0.80.7-2.el7.x86_64 (@base)
[mon0][WARNIN]                ceph-common = 1:0.80.7-2.el7
[mon0][WARNIN]            Available: ceph-common-0.80.6-0.el7.centos.x86_64 (ceph)
[mon0][WARNIN]                ceph-common = 0.80.6-0.el7.centos
[mon0][WARNIN]            Available: ceph-common-0.80.7-0.el7.centos.x86_64 (ceph)
[mon0][WARNIN]                ceph-common = 0.80.7-0.el7.centos
[mon0][WARNIN]            Available: ceph-common-0.80.8-0.el7.centos.x86_64 (ceph)
[mon0][WARNIN]                ceph-common = 0.80.8-0.el7.centos
[mon0][WARNIN]            Available: ceph-common-0.80.9-0.el7.centos.x86_64 (ceph)
[mon0][WARNIN]                ceph-common = 0.80.9-0.el7.centos
[mon0][WARNIN]            Available: ceph-common-0.80.10-0.el7.centos.x86_64 (ceph)
[mon0][WARNIN]                ceph-common = 0.80.10-0.el7.centos
[mon0][WARNIN]            Available: ceph-common-0.80.11-0.el7.x86_64 (ceph)
[mon0][WARNIN]                ceph-common = 0.80.11-0.el7
[mon0][DEBUG ]  You could try running: rpm -Va --nofiles --nodigest
[mon0][ERROR ] RuntimeError: command returned non-zero exit status: 1
[ceph_deploy][ERROR ] RuntimeError: Failed to execute command: yum -y install ceph ceph-radosgw

[ceph@hdmaster ~]$

_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux