Skip to content

mgr/cephadm: Fix haproxy not being recognized as a proper daemon#42433

Merged
sebastian-philipp merged 1 commit intoceph:masterfrom
sebastian-philipp:fix-gen-keepalive-config
Jul 22, 2021
Merged

mgr/cephadm: Fix haproxy not being recognized as a proper daemon#42433
sebastian-philipp merged 1 commit intoceph:masterfrom
sebastian-philipp:fix-gen-keepalive-config

Conversation

@sebastian-philipp
Copy link
Contributor

@sebastian-philipp sebastian-philipp commented Jul 21, 2021

Turns out daemon types != service types:

cephadm [WRN] Found unknown service type haproxy on host smithi019
cephadm [WRN] Found unknown service type keepalived on host smithi019

leading to self.mgr.cache.get_daemons_by_service(spec.service_name())
not returning any daemons.

Fixes: https://tracker.ceph.com/issues/51311

Signed-off-by: Sebastian Wagner sewagner@redhat.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 api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox


if not daemons:
raise OrchestratorError(
f'Failed to generate keepalived.conf: Do daemons deployed for {spec.service_name()}')
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo? -Do +No ?

Copy link
Contributor

@adk3798 adk3798 left a comment

Choose a reason for hiding this comment

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

LGTM minus the typo already pointed out

@sebastian-philipp
Copy link
Contributor Author

@tchaikov
Copy link
Contributor

jenkins test make check

Turns out daemon types != service types:

    cephadm [WRN] Found unknown service type haproxy on host smithi019
    cephadm [WRN] Found unknown service type keepalived on host smithi019

leading to `self.mgr.cache.get_daemons_by_service(spec.service_name())`
not returning any daemons.

Fixes: https://tracker.ceph.com/issues/51311

Signed-off-by: Sebastian Wagner <sewagner@redhat.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