Skip to content

vstart: infer the mon public_network#36335

Merged
sebastian-philipp merged 1 commit intoceph:masterfrom
mgfritch:cephadm-vstart-mon-cidr
Jul 30, 2020
Merged

vstart: infer the mon public_network#36335
sebastian-philipp merged 1 commit intoceph:masterfrom
mgfritch:cephadm-vstart-mon-cidr

Conversation

@mgfritch
Copy link
Contributor

set the mon public_network when deploying with the cephadm flag

Signed-off-by: Michael Fritch mfritch@suse.com

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard backend
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

set the mon public_network when deploying with the cephadm flag

Signed-off-by: Michael Fritch <mfritch@suse.com>
@mgfritch
Copy link
Contributor Author

avoids the need to manually set the mon public_network after a vstart deployment.

which is basically what bin/cephadm is already doing during bootstrap:

ceph/src/cephadm/cephadm

Lines 2738 to 2740 in 4ba83be

if mon_network:
logger.info('Setting mon public_network...')
cli(['config', 'set', 'mon', 'public_network', mon_network])

@mgfritch mgfritch requested review from a team and sebastian-philipp July 28, 2020 21:13
Copy link
Member

@liewegas liewegas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@mgfritch
Copy link
Contributor Author

jenkins test dashboard backend

@sebastian-philipp sebastian-philipp merged commit 83f068d into ceph:master Jul 30, 2020
@mgfritch mgfritch deleted the cephadm-vstart-mon-cidr branch July 30, 2020 18:16
fi
if [ "$cephadm" -gt 0 ]; then
debug echo Setting mon public_network ...
public_network=$(ip route list | grep -w "$IP" | awk '{print $1}')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wont cover the ipv6 case, so will need to address that. my --ipv6 vstart PR still isn't landed so will go deal with it there :)

I'll go make a comment on it so I don't forget.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants