Add OpenCHAMI export functionality and update test configurations #200
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.
Summary and Scope
This pull request adds support for exporting hardware inventory data from both CSM and HPCM providers to the OpenCHAMI
nodes.yamlformat, enabling migration to OpenCHAMI deployments. It introduces a new export format option, updates the CLI and documentation, and improves test handling for external services. The most important changes are grouped below.OpenCHAMI Export Support
openchami) for both CSM and HPCM providers, allowing inventory data to be exported in a format compatible with OpenCHAMI'snodes.yaml. This includes node and BMC metadata, such as xname, IP, MAC, NID, and hostname. (internal/provider/csm/export.go,internal/provider/hpcm/export.go,internal/provider/csm/init.go,internal/provider/hpcm/init.go) [1] [2] [3] [4] [5] [6]CLI and Documentation Updates
--format openchamioption for export commands in both providers. (internal/provider/csm/init.go,internal/provider/hpcm/init.go) [1] [2]README.mdwith clear instructions and details about exporting to OpenCHAMI, including example usage and format description.Test Improvements
SKIP_EXTERNAL_TESTSenvironment variable. This makes CI and local testing more flexible. (Makefile,spec/functional/cani_session_spec.sh,spec/spec_helper.sh) [1] [2] [3] [4]These changes enable seamless migration of hardware inventory to OpenCHAMI and improve the usability and reliability of the export and test processes.
Risks and Mitigations
The risk is low. No existing functionality is changed.