ceph / ceph/ceph-salt

Force user to populate "/cephadm_bootstrap/mon_ip" with a real IP address

Open
#406 0 comments 0 reactions 0 assignees View on GitHub
low-hanging-fruit usability
Dominant language
Python
Stars
36
Forks
20
PR merge metrics
No merged PRs in 30d

Description

(Please correct me if I'm wrong about any of this!)

When the user leaves `/cephadm_bootstrap/mon_ip` unset, ceph-salt's current behavior is to randomly choose one of the IP addresses of the bootstrap node, and provide that to `cephadm bootstrap` (which does require an explicit `--mon-ip` option).

This is wrong, because it enables the user to easily overlook that the setting of `/cephadm_bootstrap/mon_ip` determines not just the IP address that the MON listens on, but also the public network of the whole cluster.

Therefore, ceph-salt should force the user to set `cephadm_boostrap/mon_ip` explicitly.

It should also verify that the IP address exists on the bootstrap node.

Contributor guide

No contributing guide indexed for this repository

Research direction

Trace how /cephadm_bootstrap/mon_ip is read and passed to cephadm bootstrap, including the current fallback that selects an address from the bootstrap node. Done means an unset value is rejected and a configured value is verified to exist on the bootstrap node.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devops, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.