Closed sysarch-repo closed 3 weeks ago
This will probably need to be addressed for all of the specialized init systems. We still want to check for multiple process types when those systems are used, but the init-related process (eg. /usr/local/bin/dumb-init--/usr/local/bin/dns-app) should not be treated as an additional process type causing a failure.
@taylor , thanks for your comments. I have probably confused you with providing the additional context (single_process_type check fails if init system is used) that is unrelated to the issue reported. Sorry for that.
The issue concerned in this ticket is that the single_process_type check is skipped if the AUT is deployed in a non-default namespace. Some kubectl commands utilized by the test do not use the -n parameter that needs to be added. Thoughts?
@sysarch-repo nice catch.
Describe the bug The single process type check is skipped if the AUT is deployed in a non-default namespace. Some kubectl commands triggered during the check do not observe the namespace, i.e. the -n part is missing.
Example for a deployment with two pods - drouter (statefulSet) and dserver (deployment):
To Reproduce Steps to reproduce the behavior:
$ cnf-testsuite version CNF TestSuite version: v1.2.0
Expected behavior The check is executed and either succeeds or fails.
Device (please complete the following information): Linux ip-10-0-33-150 6.5.0-1020-aws #20~22.04.1-Ubuntu SMP Wed May 1 16:10:50 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
How will this be tested? aka Acceptance Criteria (optional)
Additional context Note the check conflicts with the specialized init system check. Example with dumb-init: π¬ Testing: [single_process_type] resource: {kind: "StatefulSet", name: "dns-drouter", namespace: "default"}, pod dns-drouter-0 and container: drouter has more than one process type (/usr/local/bin/dumb-init--/usr/local/bin/dns-app, /usr/local/bin/dns-app) βοΈ πFAILED: [single_process_type] More than one process type used βπ
Maybe the single process type should be tolerant to init subsystems (just as a suggestion)