Bug #9506
closed
Pass monitor SSH addresses via CLI flag
Added by Kyle Bader over 9 years ago.
Updated about 6 years ago.
Description
In some network configurations it is desirable to have ceph-deploy access monitors from one network, and use another network for mon_host and initial_mon_members. Something along the lines of ceph-deploy --mon-ssh-addrs=1.1.1.1,1.1.1.2,1.1.1.3
- Status changed from New to Need More Info
Could you give me a use case? In what context something like this would happen, and at what point in the deployment process?
ceph-deploy connects to the monitors when creating them (with the `create` sub command) and/or when calling `create-initial` and uses either a list of
hostnames or mappings (as in mapping:1.1.1.1, other:2.2.2.2).
It would seem terribly complex to attempt to understand that one IP in `--mon-ssh-addrs` actually maps to another one in the list of initial members. At least,
it does look complex without understanding where exactly in the process this would be useful.
- Status changed from Need More Info to Rejected
There probably is something to be done to clarify the confusion between mon id and hostnames but it is another topic ;-)
The use case is ceph-deploy is being executed on a management node, homed on a management network. The monitors are multi-homed to the management network, and a storage front end network. Ideally, traffic from the OSDs to monitors should be utilize the storage front end network, not the management network. In this case, the management network IP addresses would be passed as an argument while the storage front end would be used for monitor traffic.
- Status changed from Rejected to 12
This will be very tricky to do with CLI flags, so after discussing this with Kyle, it was decided that using the cephdeploy.conf file to do the right mappings for the monitors would be better.
This is an example configuration file with a specific section for monitor addresses that would map correctly:
#
# ceph-deploy configuration file
#
[ceph-deploy-global]
# Overrides for some of ceph-deploy's global flags, like verbosity or cluster
# name
verbose = True
quiet = False
[ceph-deploy-install]
# Overrides for some of ceph-deploy's install flags, like version of ceph to
# install
#
[mon-addresses]
mon1-public = '10.0.0.1'
mon1-ssh = '192.168.1.2'
mon2-public = '10.0.0.2'
mon2-ssh = '192.168.1.3'
- Status changed from 12 to Rejected
Also available in: Atom
PDF