Skip to content

feat(mtv_provider): host provider, VMCA cert, template refactor - #98

Merged
sabre1041 merged 1 commit into
redhat-cop:v2from
tech2734:feature/provider-enhancements
Sep 23, 2026
Merged

sabre1041 merged 1 commit into
redhat-cop:v2from
tech2734:feature/provider-enhancements

Conversation

@tech2734

Copy link
Copy Markdown

Summary

  • Host OpenShift provider: The role now ensures the host OpenShift provider exists in the target namespace before creating source providers. Configurable via mtv_provider_openshift_provider_name (default: host).
  • VMCA root CA certificate: Fetches the VMCA root CA from vCenter's /afd/vecs/ca endpoint, converts DER→PEM, and stores it in the provider secret. This fixes the virt-v2v SSL trust issue when connecting to ESXi hosts during migration.
  • Template refactor: Split templates by provider type (provider_vmware.yml.j2, provider_secret_vmware.yml.j2, provider_openshift.yml.j2). Both types now use the same lookup('template') | from_yaml creation pattern.
  • Renamed task files: create_provider.yml → create_provider_vmware.yml, new create_provider_openshift.yml.
  • Standardized metadata: Added missing variables to argument_specs.yml, consistent to_json quoting across templates, aligned variable ordering between defaults and specs.
  • aap_seed: Added registry credentials job template.
  • Inventory: Added VDDK image to sample inventory.
  • Docs: Regenerated all role READMEs.

@tech2734
tech2734 deployed to external-ci September 22, 2026 21:59 — with GitHub Actions Active

@sabre1041 sabre1041 left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran into a few issues while testing

Comment thread roles/mtv_provider/tasks/validate.yml
Comment thread roles/mtv_provider/tasks/validate.yml
Comment thread roles/mtv_provider/tasks/validate.yml
@tech2734
tech2734 force-pushed the feature/provider-enhancements branch from 805a9b8 to 8725b7b Compare September 23, 2026 12:29
@tech2734
tech2734 deployed to external-ci September 23, 2026 12:29 — with GitHub Actions Active
…emplate refactor

- Add create_provider_openshift.yml to ensure the host OpenShift
  provider exists in the target namespace before creating source providers
- Rename create_provider.yml to create_provider_vmware.yml
- Split templates by type: provider_vmware.yml.j2,
  provider_secret_vmware.yml.j2, provider_openshift.yml.j2
- Add mtv_provider_openshift_provider_name variable (default: host)
- Fetch VMCA root CA certificate from vCenter /afd/vecs/ca endpoint
  and convert from DER to PEM for provider secret (fixes virt-v2v
  SSL trust issue with ESXi hosts)
- Add missing variables to argument_specs: source_type, source_host,
  source_sdk_endpoint, source_vddk
- Standardize to_json quoting across all templates
- Add registry credentials job template to aap_seed
- Add VDDK image to inventory sample
- Regenerate role documentation

Co-authored-by: Cursor <cursoragent@cursor.com>
@tech2734
tech2734 force-pushed the feature/provider-enhancements branch from 8725b7b to ce8af43 Compare September 23, 2026 12:32
@sabre1041

Copy link
Copy Markdown
Contributor

@tech2734 this looks really good and succeeds in my environment. Would you be able to resolve the linting errors as well as to shorten the title of the PR so that it complies with the validation rules

@tech2734 tech2734 changed the title feat(mtv_provider): add host OpenShift provider, VMCA root CA cert, template refactor feat(mtv_provider): host provider, VMCA cert, template refactor Sep 23, 2026
@tech2734

Copy link
Copy Markdown
Author

@tech2734 this looks really good and succeeds in my environment. Would you be able to resolve the linting errors as well as to shorten the title of the PR so that it complies with the validation rules

Done

@sabre1041
sabre1041 marked this pull request as ready for review September 23, 2026 17:46
@tech2734
tech2734 deployed to external-ci September 23, 2026 17:56 — with GitHub Actions Active

@sabre1041 sabre1041 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Great work @tech2734 !

@sabre1041
sabre1041 merged commit 8671f2d into redhat-cop:v2 Sep 23, 2026
24 of 26 checks passed

This branch was successfully deployed

1 active deployment
external-ci — ce8af435 Deployed Sep 23, 2026 by tech2734 via external-approval #664
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.

2 participants