Safer handling of env vars for the K8s PM#860
Open
PawelPlesniak wants to merge 10 commits intoprep-release/fddaq-v5.6.0from
Open
Safer handling of env vars for the K8s PM#860PawelPlesniak wants to merge 10 commits intoprep-release/fddaq-v5.6.0from
PawelPlesniak wants to merge 10 commits intoprep-release/fddaq-v5.6.0from
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes issue #856
Handles the environment variables more agressively for code sanity and safety.
Updates the HugePages config that were used in HW testing on Wednesday
Type of change
List of required branches from other repositories
N/A
Change log
The environment variable
HOMEwas not being assigned to the pod. I am unsure of the source of the change given that there have not been many changes since the last HW tests, but I decided to make the requirements for the environment variables a lot more stringent, exiting if necessary and joining the logic of separated conditional statements.HugePage configs were changed to match those that were seen using
dpdk-hugepages.py -s.Hostnames were being used incorrectly - in some configurations, the hostname has a suffix, e.g.

np02-srv-005-1. To allow the configuration to have this flexibility, the hostname was formatted to always check for the-1suffix and to remove it if it is present. Note, during testing, the suffix was still present with e.g.However, to have a more complete k8s PM in time for this release, this shortcut was chosen. The definition of the host name does not have a standard or a check, but this is not within the scope of the run control, and as such will be deferred to a time when we can have this field standardized. Once that is complete, the hostname formatting command can be removed from this repository.
Suggested manual testing checklist
In production, I ran a BDE session successfully using the K8s PM. If this is being reviewed at a suitable time, the same test can be ran, otherwise we will have to rely on integration tests to continue the validation. This branch was used, and the
tmuxsession that was used for it is still active - seenp02-bde-k8s.Developer checklist
Prior to marking this as "Ready for Review"
~~Tests ran on: WHAT HOSTNAME from release RELEASE_NAME ~~ Testing skipped as the only changes being made are to the K8s process manager. This is not the primary workflow for the current integraiton tests, and as integration testing has been skipped for the purposes of this PR.
Unit tests - some tests can't be ran on the CI. This is documented. If this PR checks a feature that can't be tested with CI, this has been marked appropriately.
Integration tests - the
daqsystemtest_integtest_bundlerequires a lot of resources, and connections to the EHN1 infrastructure. Check the cross referenced list if you can't run these. The developer needs to run at least the .pytest --marker) passeddaqsystemtest_integtest_bundle.sh -k minimal_system_quick_test.pydaqsystemtest_integtest_bundle.shFinal checklist prior to marking this as "Ready for Review"
Reviewer checklist
druncare in the log filesdruncfailure appears:Once the features are validated and both the unit and integration tests pass, the PRs is ready to be merged.
Choose one of the following an complete all substepsPrior to merging
Once completed, the reviewer can merge the PR.
Notification message for #daq-sw-librarians Slack channel
For an single merge that changes the user workflow
For co-ordinated merge