Skip to content

mgr/orch: Fix DaemonDescription().daemon_id() for RGWs - #34415

Merged
sebastian-philipp merged 1 commit into
ceph:masterfrom
sebastian-philipp:orch-fix-rgw-daemon-description-id
Apr 15, 2020
Merged

sebastian-philipp merged 1 commit into
ceph:masterfrom
sebastian-philipp:orch-fix-rgw-daemon-description-id

Conversation

@sebastian-philipp

Copy link
Copy Markdown
Contributor

Turns out, users put dots into their RGW service names.

Fixes: https://tracker.ceph.com/issues/44934
Signed-off-by: Sebastian Wagner [email protected]

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 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

@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!

mgfritch
mgfritch approved these changes Apr 6, 2020 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

what happens if the host has a . in it? might be better to do a .-delimited prefix match in the caller.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

wdyt?

@tchaikov tchaikov Apr 11, 2020 •

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.

@sebastian-philipp i think Sage proposed a solution. who is "y" you are pending on?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think this is good to go now.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

i think this will still lead to a similar failure if the host is something like myhost.mydomain.com. should be fixable with something like fun is_service(self, svc: str): bool. that can be fixed later since this is still an improvement, or we could require that host names have no .'s.

@sebastian-philipp sebastian-philipp Apr 14, 2020 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

i think this will still lead to a similar failure if the host is something like myhost.mydomain.com. should be fixable with something like fun is_service(self, svc: str): bool. that can be fixed later since this is still an improvement, or we could require that host names have no .'s.

DDs from cephadm already have the hostname property set, which makes this function actually work pretty well. Except if hostname is embedded into the RGW Zone or something.

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.

#34778 deals with having the hostname embedded in the zone

@tchaikov

tchaikov commented Apr 7, 2020

Copy link
Copy Markdown
Contributor

jenkins, retest this please.

@sebastian-philipp
sebastian-philipp force-pushed the orch-fix-rgw-daemon-description-id branch from 6d21b44 to 39fdb5c Compare April 8, 2020 12:50
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