Skip to content

cephadm: specify addr on bootstrap's host add - #40463

Merged
liewegas merged 1 commit into
ceph:masterfrom
jecluis:wip-cephadm-host-add
Apr 1, 2021
Merged

liewegas merged 1 commit into
ceph:masterfrom
jecluis:wip-cephadm-host-add

Conversation

@jecluis

@jecluis jecluis commented Mar 29, 2021

Copy link
Copy Markdown
Member

Otherwise we may end up with an address that may or may not resolve, depending on how resolvable the hostname, by itself, really is. Or, worse, in a Vagrant deployment this might even resolve to 127.0.0.1 🤷

Signed-off-by: Joao Eduardo Luis <[email protected]>

@mgfritch mgfritch left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm!

Comment thread src/cephadm/cephadm
cli(['orch', 'host', 'add', host])
args = ['orch', 'host', 'add', host]
if ctx.mon_ip:
args.append(ctx.mon_ip)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
args.append(ctx.mon_ip)
args.extend(['--addr', ctx.mon_ip])

(nit) avoid confusion with the label arg

@sebastian-philipp sebastian-philipp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

to some degree, this is incomplete, as cephadm bootstrap also has a --mon-addrv argument. I'm not sure we should try to parse the addrv here.

@liewegas
liewegas merged commit af91565 into ceph:master Apr 1, 2021
@jecluis
jecluis deleted the wip-cephadm-host-add branch April 1, 2021 19:02
mgfritch added a commit to mgfritch/aquarium that referenced this pull request May 25, 2021
- Ceph Pacific v16.2.4 + latest backports

- includes upstream backport of:
  - ceph/ceph#40411
  - ceph/ceph#40555
  - ceph/ceph#40463

Signed-off-by: Michael Fritch <[email protected]>
mgfritch added a commit to mgfritch/aquarium that referenced this pull request May 25, 2021
- Ceph Pacific v16.2.4 + latest backports

- includes upstream backport of:
  - ceph/ceph#40411
  - ceph/ceph#40555
  - ceph/ceph#40463

Resolves: aquarist-labs#389
Signed-off-by: Michael Fritch <[email protected]>
mgfritch added a commit to mgfritch/aquarium that referenced this pull request May 25, 2021
- Ceph Pacific v16.2.4 + latest backports
- includes upstream backport of:
  - ceph/ceph#40411
  - ceph/ceph#40555
  - ceph/ceph#40463

Resolves: aquarist-labs#389
Signed-off-by: Michael Fritch <[email protected]>
mgfritch added a commit to mgfritch/aquarium that referenced this pull request May 25, 2021
- Ceph Pacific v16.2.4 + latest backports
- includes upstream backport of:
  - ceph/ceph#40555
  - ceph/ceph#40463

Resolves: aquarist-labs#389
Signed-off-by: Michael Fritch <[email protected]>
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.

4 participants