Skip to content

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

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

cephadm: specify addr on bootstrap's host add#40463
liewegas merged 1 commit intoceph:masterfrom
jecluis:wip-cephadm-host-add

Conversation

@jecluis
Copy link
Member

@jecluis jecluis commented Mar 29, 2021

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 <joao@suse.com>

Signed-off-by: Joao Eduardo Luis <joao@suse.com>
Copy link
Contributor

@mgfritch mgfritch left a comment

Choose a reason for hiding this comment

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

lgtm!

cli(['orch', 'host', 'add', host])
args = ['orch', 'host', 'add', host]
if ctx.mon_ip:
args.append(ctx.mon_ip)
Copy link
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

Copy link
Contributor

@sebastian-philipp sebastian-philipp left a comment

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 <mfritch@suse.com>
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 <mfritch@suse.com>
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 <mfritch@suse.com>
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 <mfritch@suse.com>
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