[xe1gyq@server ~]$ sudo vi /etc/yum.repos.d/ceph.repo[ceph-noarch]name=Cephnoarchpackages#baseurl=https://download.ceph.com/rpm/el7/noarchbaseurl=https://download.ceph.com/rpm-jewel/el7/noarchenabled=1gpgcheck=1type=rpm-mdgpgkey=https://download.ceph.com/keys/release.asc
cephuser@ceph-admin:~$ ssh-copy-id mon1
cephuser@ceph-admin:~$ ssh-copy-id osd1
cephuser@ceph-admin:~$ ssh-copy-id osd2
cephuser@ceph-admin:~$ ssh-copy-id osd3
cephuser@ceph-admin:~$ ssh-copy-id client
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/cephuser/.ssh/id_rsa.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
cephuser@client's password:
Number of key(s) added: 1
Now try logging into the machine, with: "ssh 'client'"
and check to make sure that only the key(s) you wanted were added.
root@client:~# sudo ufw enable
Firewall is active and enabled on system startup
root@client:~#
cephuser@ceph-admin:~/cluster$ vim ceph.conf
# Your network address
public network = 10.189.206.0/24
osd pool default size = 2
cephuser@ceph-admin:~$ sudo pip install ceph-deploy
The directory '/home/cephuser/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/cephuser/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting ceph-deploy
Downloading ceph-deploy-2.0.0.tar.gz (113kB)
100% |████████████████████████████████| 122kB 359kB/s
Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/lib/python2.7/dist-packages (from ceph-deploy)
Installing collected packages: ceph-deploy
Running setup.py install for ceph-deploy ... done
Successfully installed ceph-deploy-2.0.0
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
cephuser@ceph-admin:~$ mkdir cluster
cephuser@ceph-admin:~$ cd cluster/
cephuser@ceph-admin:~/cluster$ ceph-deploy new mon1
[ceph_deploy.conf][DEBUG ] found configuration file at: /home/cephuser/.cephdeploy.conf
[ceph_deploy.cli][INFO ] Invoked (2.0.0): /usr/local/bin/ceph-deploy new mon1
[ceph_deploy.cli][INFO ] ceph-deploy options:
[ceph_deploy.cli][INFO ] username : None
[ceph_deploy.cli][INFO ] verbose : False
[ceph_deploy.cli][INFO ] overwrite_conf : False
[ceph_deploy.cli][INFO ] quiet : False
[ceph_deploy.cli][INFO ] cd_conf : <ceph_deploy.conf.cephdeploy.Conf instance at 0x7fb205a26dd0>
[ceph_deploy.cli][INFO ] cluster : ceph
[ceph_deploy.cli][INFO ] ssh_copykey : True
[ceph_deploy.cli][INFO ] mon : ['mon1']
[ceph_deploy.cli][INFO ] func : <function new at 0x7fb205a0a668>
[ceph_deploy.cli][INFO ] public_network : None
[ceph_deploy.cli][INFO ] ceph_conf : None
[ceph_deploy.cli][INFO ] cluster_network : None
[ceph_deploy.cli][INFO ] default_release : False
[ceph_deploy.cli][INFO ] fsid : None
[ceph_deploy.new][DEBUG ] Creating new cluster named ceph
[ceph_deploy.new][INFO ] making sure passwordless SSH succeeds
[mon1][DEBUG ] connected to host: ceph-admin
[mon1][INFO ] Running command: ssh -CT -o BatchMode=yes mon1
[mon1][DEBUG ] connection detected need for sudo
[mon1][DEBUG ] connected to host: mon1
[mon1][DEBUG ] detect platform information from remote host
[mon1][DEBUG ] detect machine type
[mon1][DEBUG ] find the location of an executable
[mon1][INFO ] Running command: sudo /bin/ip link show
[mon1][INFO ] Running command: sudo /bin/ip addr show
[mon1][DEBUG ] IP addresses found: [u'10.189.206.18']
[ceph_deploy.new][DEBUG ] Resolving host mon1
[ceph_deploy.new][DEBUG ] Monitor mon1 at 10.189.206.18
[ceph_deploy.new][DEBUG ] Monitor initial members are ['mon1']
[ceph_deploy.new][DEBUG ] Monitor addrs are ['10.189.206.18']
[ceph_deploy.new][DEBUG ] Creating a random mon key...
[ceph_deploy.new][DEBUG ] Writing monitor keyring to ceph.mon.keyring...
[ceph_deploy.new][DEBUG ] Writing initial config to ceph.conf...
cephuser@ceph-admin:~/cluster$
--> Finished Dependency Resolution
Error: Package: ceph-deploy-1.5.39-0.noarch (ceph-noarch)
Requires: python-distribute
Available: python-setuptools-0.9.8-7.el7.noarch (base)
python-distribute = 0.9.8-7.el7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest