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

t3c: Can't detect SystemD in Rocky Linux 9 #7858

Open
smalenfant opened this issue Nov 8, 2023 · 1 comment · May be fixed by #7861
Open

t3c: Can't detect SystemD in Rocky Linux 9 #7858

smalenfant opened this issue Nov 8, 2023 · 1 comment · May be fixed by #7861
Labels
bug something isn't working as intended cache-config Cache config generation medium impact impacts a significant portion of a CDN, or has the potential to do so

Comments

@smalenfant
Copy link
Contributor

This Bug Report affects these Traffic Control components:

  • Traffic Control Cache Config (t3c, formerly ORT)

What did you do?

Installed Cache Config on Rocky LInux 9 and it won't detect systemd as the service management.

What did you expect to happen?

Cache config to enable traffic server service

What actually happened?

After rebooting the server after the initial install, cache config did not enable Traffic Server.

I could see the following in the log: OS checks are enabled and unable to find any know service management tools.

Notes

The command used by t3c is the following and it works just fine when used manually.

# /bin/sh -c "/bin/systemctl --version"
systemd 252 (252-14.el9_2.3.0.1)
+PAM +AUDIT +SELINUX -APPARMOR +IMA +SMACK +SECCOMP +GCRYPT +GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS -FIDO2 +IDN2 -IDN -IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT -QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -BPF_FRAMEWORK +XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified
@smalenfant smalenfant added the bug something isn't working as intended label Nov 8, 2023
@smalenfant
Copy link
Contributor Author

I believe I found the problem.

RHEL9 doesn't come with /sbin/chkconfig. But the code is not handling this right. Will always be Unknown.

func getOSSvcManagement() SvcManagement {
var _svcManager SvcManagement
if isCommandAvailable(SystemCtl) {
_svcManager = SystemD
} else if isCommandAvailable(Service) {
_svcManager = SystemV
}
if !isCommandAvailable(Chkconfig) {
return Unknown
}
// we have what we need
return _svcManager
}

I'm not sure why this is not a different conditional.

@smalenfant smalenfant linked a pull request Nov 8, 2023 that will close this issue
1 task
@ocket8888 ocket8888 added medium impact impacts a significant portion of a CDN, or has the potential to do so cache-config Cache config generation labels Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working as intended cache-config Cache config generation medium impact impacts a significant portion of a CDN, or has the potential to do so
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants