Repository navigation
feat(system_test): observability SVT RUN steps, telemetry FVT alignment and source stages - #5914
Conversation
…nment Telemetry FVT: - Untagged verify, test and exec run every verification test of precheck, validate and deploy (ALL_EXEC_MARKER "" like the other domains; it was "sanity"). The pipeline's fvt_telemetry verify job runs longer and can fail where it passed before. - Retire TEL_FVT_DEPLOY_V027 (earliest LDMS data in Kafka): V028 and V029 cover the same path more strictly. Its test, helper, constants, messages and test-case entry are removed; the ID is not reused. Observability SVT: - Cleanup and deploy are RUN steps: ./omnia.sh -r telemetry --tags cleanup -e cleanup_credentials=false, and ./omnia.sh -r telemetry with no verify step. - iDRAC and LDMS each run as one suite-and-marker step, without overlaps. Precheck and validate run every check of their tag. Registry: 21 tests. - RUN steps may pass -e variables from a per-domain allow-list (OMNIA_RUN_VARS); telemetry allows only cleanup_credentials=false. Shared config and cluster pipeline: - The cleanup flags moved to the cleanup block of user_inputs.yml, shared by every theme. A theme config with its own cleanup block is refused. - The theme config's stages block turns optional stages on or off, and use_discovery_mapping is type-checked. - The cluster pipeline renders SVT_THEME_ORDER and a theme_result job before summary (always runs). The summary reads each theme's result and writes one report. The theme list falls back to the single theme, so single-theme pipelines are unchanged. The multi-theme layout (clusters.<name>.themes) is not rendered yet. - cluster_lifecycle gains Kubernetes stages (deploy_k8s_cluster, k8s_telemetry, k8s_token_renew).
…nup block Cleanup flags moved to the cleanup block of user_inputs.yml, shared by every theme, and a theme config with its own cleanup block is refused. The CLEANUP_FLAGS comment, PIPELINE.md and the system_test README still said the flags live in <theme>_test_config.yml, which would send users to a file that no longer accepts them. Signed-off-by: Mithilesh Reddy <mithilesh.reddy@dell.com>
Resolve conflicts in the SVT pipeline and README in favour of the nested theme pipelines and cleanup-flag layout from dell/main (dell#5908). Signed-off-by: Mithilesh Reddy <mithilesh.reddy@dell.com>
Compliance GateResult: 2 passed, 0 not passed (2 domain scope(s) checked; unchanged domains are skipped) Not checked (no changes in that domain): pipeline/pipeline, src/build_stream, src/discovery, src/image_build_manager, src/main, src/orchestrator, src/repo_manager, src/telemetry, src/utils, test/build_stream, test/discovery, test/image_build_manager, test/main, test/orchestrator, test/repo_manager, test/utils svt/svt: PASSED
test/telemetry: PASSED
|
Secure Code ReviewAdvisory only: this check never blocks the PR. It scans the lines added by this PR against secure-coding rules derived from recent security fixes in this repository. No reviewable source changes (tests, docs and workflows are excluded). Checklist
Findings are heuristic; reviewers should confirm each one. Suppress a justified finding with a |
…bility SVT Each source stage runs its telemetry FVT checks by marker, and is skipped with the reason while its source is off, so a default cluster reports only the stages that have something to check. - Add stages observability_powerscale, _ome, _ufm and _sfm with SVT IDs SVT_OBSERVABILITY_028-031, after observability_ldms. - Skip a source stage when its source is off: telemetry_sources.<name> in the deployed telemetry_config.yml, or configure_sfm for SFM. The check runs in run_stage, so it applies to 'all', to a stage run by name, and to each pipeline job. - Allow the four stages to be turned off under stages: in observability_test_config.yml. Default on via optional_stages_on. - Add theme settings for ome_ip, configure_sfm, sfm_api_ip/port, sfm_ssh_ip/port and the force_external_* flags. Add host and port setting kinds with validation. - Add telemetry block keys for PowerScale and UFM (csm values file, ufm_configuration) to user_inputs.yml. Sources stay off by default. - Set 1-hour pipeline timeouts for the new jobs and update the README, docstrings and comments. Signed-off-by: Mithilesh Reddy <mithilesh.reddy@dell.com>
Validates SFM metrics with only the VictoriaMetrics sink deployed, which is the reduced telemetry state an SFM deployment can run in. - Add stage observability_sfm_vm_only after observability_sfm, with SVT tests 032-035: telemetry cleanup (credentials kept), deploy_sinks -e victoria_metrics, external_victoria export, then the SFM checks. - The export is regenerated because the cleanup keeps the output folder, so the SFM checks would otherwise reuse the old Victoria connection details and CA. - Stage is soft, on by default, and skipped while configure_sfm is false. Like the other source stages, it can be turned off under stages:. - Allow-list the RUN commands it needs: deploy_sinks and external_victoria tags, and the victoria_metrics sink name as an -e value. - Add timeout (2 h) and README stage and source-stage documentation.
./setup_env.sh --theme observability now prompts for the OME and SFM appliance credentials when the theme turns those appliances on, instead of leaving a manual step that the pipeline and the readiness checks miss. - Add --set-external-creds to test/telemetry/setup_env.sh: prompts only the enabled OME and SFM credentials into test_creds.yml, with no SSH or domain prompts. - Split auto_creds into the domain stores and the appliance credentials. The appliance step runs only when configure_ome or configure_sfm is true in the theme config. Other themes are unchanged. - Unattended runs (pipeline or --yes) cannot prompt: they report the missing credentials and skip the step, so the OME and SFM stages fail with the reason. iDRAC and LDMS still run. - Declare external_credentials for observability in theme_vars.py, and add the messages and constants. - Update the README and the observability config comments to describe the automatic step. Signed-off-by: Mithilesh Reddy <mithilesh.reddy@dell.com>
…elemetry docs SVT observability: - Source stages (powerscale, ome, ufm, sfm) are no longer toggles. They run when their source is on in user_inputs.yml and are skipped otherwise. Only observability_cleanup and observability_sfm_vm_only stay in the config. - Enable PowerScale and OME sources (and the vector_ome bridge) by default, with logs on for PowerScale, OME and vector_ome. - observability_precheck runs only the playbook; its FVT verify is removed (SVT_OBSERVABILITY_019). SVT report: - Stage pass rate counts FVT test cases when the stage has any, otherwise steps. The caption under each rate states the basis. - Remove the observability-only Scenarios card and scenario_stages setting. Telemetry FVT: - Pass the skip reason to the session summary so the "Skip reasons" block lists telemetry skips, as the orchestrator does. Docs: - Update the SVT README, RUNNER.md and pipeline config comments to match. - Correct the telemetry READMEs: setup options, module trees, the NFT and UT registry counts, the missing FVT IDs (V064, FULL_PLAYBOOK_E001, CLEANUP_E002), NFT orders and thresholds, and the generator aliases. Signed-off-by: Mithilesh Reddy <mithilesh.reddy@dell.com>
The normalization tests hardcoded /root/automation_testing/omnia, so the file-based checks failed on any other checkout and the bash-based checks were skipped. The helper also turned every bash failure into a skip, which hid real errors, and the invalid-sink tests expected a rejection that the skip path swallowed. - Resolve the repo root from the test file location (REPO_ROOT) for the file reads and the bash working directory. - Split the helper: run_normalization_script returns (returncode, output); run_normalization_test asserts a zero exit and shows the output on failure. - The invalid-sink tests assert that normalize_extra_args exits non-zero and names the invalid sink, and that nothing is normalized. Signed-off-by: Mithilesh Reddy <mithilesh.reddy@dell.com>
|
Review: NOT APPROVED (comment only) The direction is sound. Source stages skip cleanly when their source is off, the Blocking
Should fix
Checked and fine: the removed Not verified: live SVT runs (including |
A stage skipped because its telemetry source is off was dropped from the report's planned stages, so the overview showed nothing for it and the banner could read PASSED when the source's stage never ran. Record source-off skips in the run manifest with skip="source" and keep them planned. The report lists them in Stage Overview as Skipped with the reason, counts them in the banner, and leaves them out of the pass rate. Default skips and --skip-stages are unchanged. Signed-off-by: Mithilesh Reddy <mithilesh.reddy@dell.com>
|
Thanks for the review. Responses below, point by point. Blocking
Should fix
Not verified
|
…eanup a hard stage observability_sfm_vm_only now runs before observability_cleanup, so the cleanup and deploy that follow bring the full telemetry back for the source stages. observability_cleanup is a hard stage that always runs, with no config toggle. The observability config no longer needs keys the SVT can derive: - sync_telemetry_input is fixed to false by the theme. - force_external_kafka_playbook follows configure_ome, and force_external_victoria_playbook follows configure_sfm. - The report block is not needed; the default report location is used. A theme config that sets a fixed or derived FVT setting is refused as an unknown key, so the value cannot drift from the appliance settings. Test orders for sfm_vm_only move to 2045-2048, ahead of cleanup (2050). Pipeline timeouts follow the new order. README and the _run.py docstring describe the new order and the always-on cleanup. Signed-off-by: Mithilesh Reddy <mithilesh.reddy@dell.com>
Description of the Solution
Reworks the observability SVT theme and aligns the telemetry FVT with it.
omnia.sh -r telemetry --tags cleanup -e cleanup_credentials=false), and it always runs (observability_cleanup, hard). The precheck verify step and the deploy verify step are removed, and iDRAC and LDMS each run as one suite-and-marker verify step.user_inputs.ymland is recorded as skipped, with the reason, while it is off. PowerScale and OME are on by default.observability_sfm_vm_only, runs the SFM checks with only the VictoriaMetrics sink deployed: telemetry cleanup,deploy_sinks -e victoria_metrics, a new external Victoria export, then the SFM checks. The next stages,observability_cleanupandobservability_deploy, bring the full telemetry back for the source stages. It is on by default and skipped whileconfigure_sfmis false../setup_env.sh --theme observabilitysets the OME and SFM appliance credentials when those appliances are on.TEL_FVT_DEPLOY_V027is retired because it checked only retained history, not current data flow. Untaggedverify,testandexecrun every check instead of onlysanity.Related Issue
Changes
Telemetry FVT (
test/telemetry/)ALL_EXEC_MARKERchanged from"sanity"to"": untaggedverify,testandexecrun every verification test of precheck, validate and deploy, as in the other domains. Thetest_telemetryjob intest/pipeline/.gitlab-ci-cluster.yml(timeout3h) runs./run_validation.sh fvt_telemetry verify, so it now runs every check. Its new duration has not been measured.TEL_FVT_DEPLOY_V027(test_ldms_earliest_data). It read theldmsKafka topic from the earliest offset to show when each host first sent data. It is retired on purpose: it reads retained history, so it can pass on data from a host that has since stopped, and it does not show that LDMS data is flowing now. Current flow is checked by V028 (latest Kafka data per host and plugin) and V029 (fresh VictoriaMetrics data). Its test, its helperverify_ldms_earliest_data_in_kafka, its constants, message and registry entry are removed, and the ID is not reused.conftest.py).setup_env.sh --set-external-credsprompts only for the OME and SFM appliance credentials thattest_config.ymlenables (test_creds.yml).ut/test_cleanup_sinks_parameter_normalization.py: paths are resolved from the repo root instead of/root/automation_testing/omnia; the bash helper fails the test on a non-zero exit instead of skipping; the invalid-sink tests assert the non-zero exit and the error message.fvt/README.md,ut/README.md,nft/README.md,README.mdanddatasets/generator/README.mdupdated to the current registries, setup options and generator aliases.SVT stages and steps (
test/system_test/library/)observability_cleanup(014, hard, always runs): the two RUN steps--tags cleanup_ldmsand--tags cleanup_idracand their verify steps (015–017) are replaced by one RUN step,--tags cleanup -e cleanup_credentials=false, with no verify step. It has no config toggle.OMNIA_RUN_TAGSfor telemetry:precheck,validate,cleanup,deploy_sinks,external_victoria(wasprecheck,validate,cleanup_idrac,cleanup_ldms).OMNIA_RUN_VARS: per-domain exact allowlist for-evalues on RUN steps. Telemetry allowscleanup_credentials=falseand the sink namevictoria_metrics.observability_precheck: RUN--tags precheck(018), RUN--tags validate(020),validate verify(021). The precheck verify step (019,precheck verify --marker sanity) is removed.observability_deploy: RUNomnia.sh -r telemetry(022). The deploy verify step (023,deploy verify --marker sanity) is removed.observability_idrac(024,--marker idrac) andobservability_ldms(026,--marker ldms) each replace a sanity and a functional step (025and027removed).observability_powerscale,_ome,_ufm,_sfm(SVT028–031), soft, afterobservability_ldms.observability_sfm_vm_only(SVT032–035, orders2045–2048, ahead of cleanup at2050), soft:032:omnia.sh -r telemetry --tags cleanup -e cleanup_credentials=false033:omnia.sh -r telemetry --tags deploy_sinks -e victoria_metrics034:omnia.sh -r telemetry --tags external_victoria, which regenerates the connection export and CA (the cleanup keeps theoutputfolder)035:deploy verify --suite sources --marker sfmconfigure_sfmis false.observability_sfm_vm_only→observability_cleanup→observability_precheck→observability_deploy→ source stages.source_stagesintheme_vars.pyties each source stage to its source, or toconfigure_sfmfor the two SFM stages.source_skip_reason()instage_func.pyreads the deployedtelemetry_config.yml(fallback: thesrcinput)._run.pycalls it when a stage starts and records the skip withskip: sourceand the reason.stages:inobservability_test_config.ymlhas one toggle,observability_sfm_vm_only(on). The source stages andobservability_cleanupare not toggles; astages:entry for any of them is refused as an unknown flag. A newoptional_stages_onsets which optional stages are on when the key is left out, in the local loader (config_func.py) and in the pipeline (setup_svt_project.py).host(HOST_RE) andport(1–65535) for the OME and SFM appliance addresses (config_func.py).use_discovery_mappingis type-checked.theme_resultgets a stage info entry.config_func.py,theme_vars.py):sync_telemetry_inputis always false;force_external_kafka_playbookfollowsconfigure_ome;force_external_victoria_playbookfollowsconfigure_sfm. A theme config that sets any of these is refused as an unknown key.reportblock is needed in the observability config: the default report location is used.auto_creds()insetup_func.pywrites the domain stores, then, in a terminal, runs the telemetry suite's--set-external-credswhenconfigure_omeorconfigure_sfmis true. An unattended run reports it and skips that step; values already intest_creds.ymlare used by the OME and SFM tests.SVT report (
test/system_test/library/functions/)scenario_stagesare removed; every theme shows the same SVT Steps card.Cluster pipeline (
test/system_test/pipeline/)setup_svt_project.py: each child pipeline rendersSVT_THEME_ORDERfor its theme; the stages turned off followoptional_stages_on.svt_ci.py: the theme list always comes fromSVT_THEME_ORDER(the fallback to the single theme when it was empty is removed).svt_pipeline_config.yml: timeouts of 1 hour for the four source stages,observability_cleanup, precheck, deploy andtheme_result, and 2 hours forobservability_sfm_vm_only.Config, inputs and docs
observability_test_config.yml:observabilityblock withconfigure_ome,ome_ip,configure_sfm,sfm_api_ip/port,sfm_ssh_ip/port;stages:with onlyobservability_sfm_vm_only.user_inputs.ymltelemetry block: PowerScale, OME andvector_omechanged from off to on (metrics and logs); new keyspowerscale_configurations,ufm_configurationand morecollection_targets. UFM and VAST stay off.dataset_generator/profiles/observability.yml: header comment matches the telemetry defaults.README.md,docs/PIPELINE.md,docs/RUNNER.md,_run.pydocstring: stage order, source-stage skips, pass rate, always-on cleanup, cleanup-flag location.Removed coverage
TEL_FVT_DEPLOY_V027ldmsKafka topic read from the earliest offset: when each host first sent data. Retired on purpose: it only reads retained historySVT_OBSERVABILITY_015,017cleanup_ldms verify,cleanup_idrac verifyafter per-source cleanupSVT_OBSERVABILITY_016--tags cleanup_idrac--tags cleanup(014)SVT_OBSERVABILITY_019precheck verify --marker sanity(precheck V001–V004)SVT_OBSERVABILITY_023deploy verify --marker sanity(incl. sinks V001–V007, namespace V008)SVT_OBSERVABILITY_025,027024(--marker idrac) and026(--marker ldms)Files Changed (36)
test/telemetry/README.mdtest/telemetry/conftest.pytest/telemetry/datasets/generator/README.mdtest/telemetry/fvt/README.mdFULL_PLAYBOOK_E001,CLEANUP_E002listedtest/telemetry/fvt/deploy/sources/test_ldms.pytest/telemetry/library/functions/ldms_func.pytest/telemetry/library/messages/telemetry_msgs.pytest/telemetry/library/vars/__init__.pytest/telemetry/library/vars/common_vars.pytest/telemetry/library/vars/domain_vars.pyALL_EXEC_MARKERset to""test/telemetry/library/vars/ldms_vars.pytest/telemetry/library/vars/test_case_vars.pytest/telemetry/nft/README.mdLDMS_001; order table; thresholdstest/telemetry/setup_env.sh--set-external-credstest/telemetry/ut/README.mdtest/telemetry/ut/test_cleanup_sinks_parameter_normalization.pytest/system_test/README.mdtest/system_test/_run.pyskip: source; docstring with the new ordertest/system_test/dataset_generator/profiles/observability.ymltest/system_test/docs/PIPELINE.mduser_inputs.ymlblocktest/system_test/docs/RUNNER.mdtest/system_test/library/functions/config_func.pyhost/portkinds;optional_stages_ondefault; fixed and derived FVT settings;use_discovery_mappingchecktest/system_test/library/functions/omnia_run_func.py-eallowlist for RUN stepstest/system_test/library/functions/setup_func.pytest/system_test/library/functions/stage_func.pysource_skip_reason()and telemetry config readerstest/system_test/library/functions/svt_report_func.pyscenario_stagesremoved;source_skippedin the report metatest/system_test/library/functions/svt_report_html.pytest/system_test/library/messages/svt_msgs.pytest/system_test/library/vars/common_vars.pyHOST_RE,MAX_PORT,-eflag, telemetry config paths, appliance-credential constantstest/system_test/library/vars/test_case_vars.pyobservability_sfm_vm_only032–035 with orders 2045–2048test/system_test/library/vars/theme_vars.pyOMNIA_RUN_VARS; new stage order;source_stages;optional_stagesandoptional_stages_on; fixed and derived FVT settings;theme_resultstage infotest/system_test/observability_test_config.ymlobservabilitysettings;stages:with one toggle (observability_sfm_vm_only)test/system_test/pipeline/setup_svt_project.pySVT_THEME_ORDERper child pipeline;optional_stages_ondefaulttest/system_test/pipeline/svt_ci.pySVT_THEME_ORDERtest/system_test/pipeline/svt_pipeline_config.ymltest/system_test/user_inputs.ymlvector_omeon; new telemetry keysTesting
svt-20261126T150431Zon OIMsujitcp.omnia.test, commit4cd5c15fd(main-observability). These stages passed: Initialization (2 of 2 steps), Observability Cleanup (1 of 1), Observability Precheck (3 of 3), Observability Deploy (1 of 1), iDRAC Telemetry (11 of 11 test cases), LDMS Telemetry (9 of 9), PowerScale Telemetry (26 of 26). The stages that depend on appliances (OME, SFM) are out of scope for this verification. That run used the earlier order (cleanup before precheck, SFM VM-only last), so it does not cover the current order.allrun with the current stage order (observability_sfm_vm_onlyfirst, then cleanup).test_telemetrypipeline job with the""marker.Backward Compatibility
TEL_FVT_DEPLOY_V027is removed on purpose, because it checked only retained history. The ID is not reused.cleanup_idracandcleanup_ldmsare no longer telemetry RUN tags; usecleanupwith-e cleanup_credentials=false.stages:entry forobservability_powerscale,_ome,_ufm,_sfmorobservability_cleanupis refused as an unknown flag. A theme config that setssync_telemetry_inputorforce_external_kafka_playbook/force_external_victoria_playbookis refused too; those values are now set by the theme. Copies of the theme config held outside this repo (for example per-cluster files in GitLab) need the same change.user_inputs.yml, soallruns their checks. PowerScale needsenable_powerscale_csi: trueand acsm_observability_values_file_path; OME needsome_ip. Without them those stages fail. Turn the source off inuser_inputs.ymlto skip the stage.observability_cleanupalways runs (hard). With the default on,allrunsobservability_sfm_vm_onlyfirst (whenconfigure_sfmis true), then cleanup, then precheck and deploy.verify,testandexecrun every verification test, not onlysanity. Thetest_telemetrypipeline job (timeout3h) runs longer; its duration has not been measured.observability_idracandobservability_ldmsare skipped while their source is off. Previously they always ran.observability_sfm_vm_onlyis destructive: it is on by default, so withconfigure_sfm: truetheallrun and the pipeline run it. It runs the telemetry cleanup and redeploys only the VictoriaMetrics sink. Cleanup and deploy, which follow it, restore the full telemetry; only a run that stops after this stage is left with VictoriaMetrics alone. Setstages: observability_sfm_vm_only: falseto skip the stage.setup_svt_project.py --update --update-inputsto render the new jobs and replace the cluster copies of the theme config. Then run./setup_env.sh --configurefor an existing run.Security Review
-evalues accepted only as exact text fromOMNIA_RUN_VARS(cleanup_credentials=false,victoria_metrics). Appliance hosts must matchHOST_RE; ports must be integers 1–65535.test_creds.yml.src), not taken from user input.omnia.shwith an argument list, without a shell, and with an empty stdin.-eallowlist or host/port validation.