-
Notifications
You must be signed in to change notification settings - Fork 34
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
SAS Viya 3.5 sas-viya-launcher-default service is not stopped by viya-services-stop.yml #92
Comments
At this time that is the expected behavior of the stop playbook, it is a cautious approach because forcefully stopping services that don't want to be stopped could be a potentially destructive behavior depending on the service. Its purpose is to allow the administrator/user of the system to determine whether it's ok to proceed to kill such processes and is why the parameter exists for |
Hmm. There is something I don't understand.
See current status: systemctl status sas-viya-launcher-defaultsas-viya-launcher-default.service - LSB: start and stop sas-launcher service Stop service: systemctl stop sas-viya-launcher-defaultCheck status once again to be sure it's dead: systemctl status sas-viya-launcher-defaultsas-viya-launcher-default.service - LSB: start and stop sas-launcher service
With viya-ark-master playbook script: ansible-playbook viya-ark-master/playbooks/viya-mmsu/viya-services-stop.ymlResult: On compute server: cd /opt/sas/viya/config/var/log/tklauncher/default/tail tklauncher_2022-10-26_10-06-52.log2022-10-26T10:40:30,356 ERROR [00000006] App.tk.launcher (launcher.c:1358) - SAS Launcher: Exception occurred: code=8 (0x8) Question is why viya-ark-master script can not clean softly (without using parameter -e "enable_stray_cleanup=true") if service sas-viya-launcher-default is already dead? |
@LaimonasReklaitis Thank you to report the problem. |
My apologies, it seems the code to fix this somehow got missed in internal merging activities. We'll be correcting this oversight in an upcoming release. |
This issue has been addressed in Release Viya35-ark-1.17 |
2022-10-11 we installed SAS Viya 3.5 on our servers.
2022-10-13 we downloaded and started to use viya-ark-master version (took from https://github.com/sassoftware/viya-ark)
We noticed that with command:
ansible-playbook viya-ark/playbooks/viya-mmsu/viya-services-stop.yml
all services are shutting down except sas-viya-launcher-default service:
fatal: [compute]: FAILED! => {
"msg": [
"Please examine the following stray process(es)",
"If enable_stray_cleanup=true, process will be cleaned up automatically",
"except database processes which require fix manually to avoid data corruption.",
"This playbook can be rerun to clean up the child processes.",
[
"sas 3891757 1 0 Oct14 ? 00:02:33 /opt/sas/spre/home/SASFoundation/utilities/bin/launcher --ssl --ssl-certificate /opt/sas/viya/config/etc/SASSecurityCertificateFramework/tls/certs/tklauncher/default/certificate.pem --ssl-private-key /opt/sas/viya/config/etc/SASSecurityCertificateFramework/tls/certs/tklauncher/default/key.pem --ssl-private-key-password /opt/sas/viya/config/etc/SASSecurityCertificateFramework/private/tklauncher/default/key.password --ssl-ca-list /opt/sas/viya/config/etc/SASSecurityCertificateFramework/cacerts/trustedcerts.pem --hostname ls7a.ls.net --bind-address 0.0.0.0 --registration-port 41523 --sas-services-url https://ls5a.ls.net:443/ --log /opt/sas/viya/config/var/log/tklauncher/default/tklauncher_2022-10-14_08-47-57.log",
"root 3922505 3891759 0 Oct14 ? 00:00:00 /opt/sas/spre/home/SASFoundation/utilities/bin/sasauth",
"root 3922509 3891759 0 Oct14 ? 00:00:00 /opt/sas/spre/home/SASFoundation/utilities/bin/sasauth"
]
]
}
if we use command:
ansible-playbook viya-ark-master/playbooks/viya-mmsu/viya-services-stop.yml -e "enable_stray_cleanup=true"
then sas-viya-launcher-default service and its processes are cleaned:
ok: [compute] => {
"msg": [
"The following stray processes have been cleaned up",
[
"sas 3891757 1 0 Oct14 ? 00:02:33 /opt/sas/spre/home/SASFoundation/utilities/bin/launcher --ssl --ssl-certificate /opt/sas/viya/config/etc/SASSecurityCertificateFramework/tls/certs/tklauncher/default/certificate.pem --ssl-private-key /opt/sas/viya/config/etc/SASSecurityCertificateFramework/tls/certs/tklauncher/default/key.pem --ssl-private-key-password /opt/sas/viya/config/etc/SASSecurityCertificateFramework/private/tklauncher/default/key.password --ssl-ca-list /opt/sas/viya/config/etc/SASSecurityCertificateFramework/cacerts/trustedcerts.pem --hostname ls7a.ls.net --bind-address 0.0.0.0 --registration-port 41523 --sas-services-url https://ls5a.ls.net:443/ --log /opt/sas/viya/config/var/log/tklauncher/default/tklauncher_2022-10-14_08-47-57.log",
"root 3922505 3891759 0 Oct14 ? 00:00:00 /opt/sas/spre/home/SASFoundation/utilities/bin/sasauth",
"root 3922509 3891759 0 Oct14 ? 00:00:00 /opt/sas/spre/home/SASFoundation/utilities/bin/sasauth"
]
]
}
Environment
To Reproduce
Steps to reproduce the behavior:
Expected behavior
We expect all SAS Viya 3.5 services to be stoped with command: ansible-playbook viya-ark/playbooks/viya-mmsu/viya-services-stop.yml
deployment.log
The text was updated successfully, but these errors were encountered: