Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a dirsrv requires to services that look up their names in LDAP #301

Merged
merged 1 commit into from
Oct 3, 2023

Conversation

rcritten
Copy link
Collaborator

Some services aren't included in ipaplaform.knownservices like smb and winbind. It is possible to discover the service name using the same method used by ipactl, via roles.

If dirsrv isn't started then this will blow up spectacularly so use requires as a guard against it.

Fixes: #300

rcritten added a commit to rcritten/freeipa-healthcheck that referenced this pull request Sep 28, 2023
Some services aren't included in ipaplaform.knownservices
like smb and winbind. It is possible to discover the
service name using the same method used by ipactl, via roles.

If dirsrv isn't started then this will blow up spectacularly
so use requires as a guard against it.

Fixes: freeipa#301

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Some services aren't included in ipaplaform.knownservices
like smb and winbind. It is possible to discover the
service name using the same method used by ipactl, via roles.

If dirsrv isn't started then this will blow up spectacularly
so use requires as a guard against it.

Fixes: freeipa#301

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Copy link
Contributor

@flo-renaud flo-renaud left a comment

Choose a reason for hiding this comment

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

@rcritten
thanks for the PR, works for me:

(venv) [root@server freeipa-healthcheck]# systemctl stop dirsrv@IPA-TEST.service
(venv) [root@server freeipa-healthcheck]# ipa-healthcheck 
[
  {
    "source": "ipahealthcheck.meta.services",
    "check": "dirsrv",
    "result": "ERROR",
    "uuid": "1466294d-c561-4adf-9443-e19308f2427c",
    "when": "20231003085001Z",
    "duration": "0.005170",
    "kw": {
      "status": false,
      "msg": "dirsrv: not running"
    }
  }
]

@rcritten rcritten merged commit cef7d57 into freeipa:master Oct 3, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Traceback when running ipa-healthcheck if LDAP server is down
2 participants