Skip to content

Restore catalog generator code - #5085

Merged
snarthan merged 4 commits into
dell:issue-4849-omnia-modernizationfrom
Venu-p1:fix/restore-catalog-util
Aug 28, 2026
Merged

Restore catalog generator code#5085
snarthan merged 4 commits into
dell:issue-4849-omnia-modernizationfrom
Venu-p1:fix/restore-catalog-util

Conversation

@Venu-p1

@Venu-p1 Venu-p1 commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

Catalog generation code, restoring
previous PR #5083

Implement catalog operations (generate, add, delete, validate) with:
- Python backend: parser, I/O, mutator, validator, CLI dispatcher
- Ansible role with operation-specific tasks
- JSON schema for validation
- INI-like input format with [defaults] section
- Upsert semantics and automatic orphan cleanup
- Multi-layer validation and logging
- Comprehensive documentation

Signed-off-by: venu <236371043+Venu-p1@users.noreply.github.com>
…H integration

- Add functional layer parsing to catalog parser
- Support type=functional_layer sections in input files
- Implement functional layer validation rules:
  * Catalog must have at least one functional layer
  * Each functional layer must have components
  * Each functional layer must have exactly one base_os group
  * All group references must exist
- Update catalog_io to store functional layers in catalog JSON
- Enhance mutator to merge functional layers on add/delete operations
- Integrate CATALOG_FILE_PATH environment variable:
  * Prioritize CATALOG_FILE_PATH as default for all catalog operations
  * Support command-line overrides (-i, -o, -c flags)
  * Update role defaults and tasks to use CATALOG_FILE_PATH
- All validation tests pass successfully

Generated with Devin

Signed-off-by: venu <236371043+Venu-p1@users.noreply.github.com>
Signed-off-by: venu <236371043+Venu-p1@users.noreply.github.com>
- Change 'repo_manager' tag to 'repomanager' (no underscores allowed)
- Complies with ansible-lint meta-no-tags rule
- Tags must contain lowercase letters and digits only

Signed-off-by: venu <236371043+Venu-p1@users.noreply.github.com>
@Venu-p1 Venu-p1 changed the title Restore catalog util Restore catalog generator code Aug 28, 2026
@snarthan
snarthan merged commit 547e2cb into dell:issue-4849-omnia-modernization Aug 28, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants