Skip to content

[DNM] [openshift_setup] Refactor registries patch to use Ansible modules instead of ansible.builtin.shell with oc patch.#3767

Draft
nemarjan wants to merge 1 commit intoopenstack-k8s-operators:mainfrom
nemarjan:refactor/allowed-registries-json-patch
Draft

[DNM] [openshift_setup] Refactor registries patch to use Ansible modules instead of ansible.builtin.shell with oc patch.#3767
nemarjan wants to merge 1 commit intoopenstack-k8s-operators:mainfrom
nemarjan:refactor/allowed-registries-json-patch

Conversation

@nemarjan
Copy link

  • Refactoring task "Add additional allowed registries" as specified here ( https://github.com/openstack-k8s-operators/ci-framework/pull/3712/changes#r2858651309*) and using Ansible module to patch.

  • Merging tasks "Patch the image.config.openshift.io resource to include insecure registry" and "Patch the image.config.openshift.io resource to allow registries" in to a single task, replacing use of ansible.builtin.shell with use of Ansible module.

@nemarjan nemarjan requested review from a team, Valkyrie00 and evallesp March 16, 2026 11:02
@nemarjan nemarjan self-assigned this Mar 16, 2026
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 16, 2026

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 16, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign valkyrie00 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@softwarefactory-project-zuul
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/ca2ae5211d0d421085a5d6fc89d4eb1e

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 05m 08s
podified-multinode-edpm-deployment-crc RETRY_LIMIT in 15m 03s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 23m 11s
✔️ cifmw-crc-podified-edpm-baremetal-minor-update SUCCESS in 1h 52m 19s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 9m 15s
✔️ cifmw-pod-pre-commit SUCCESS in 8m 34s

@nemarjan
Copy link
Author

recheck

@softwarefactory-project-zuul
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/a4d8585d87934ab1ade71317359c59c0

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 30m 39s
podified-multinode-edpm-deployment-crc RETRY_LIMIT in 12m 43s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 29m 51s
✔️ cifmw-crc-podified-edpm-baremetal-minor-update SUCCESS in 2h 17m 13s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 50s
✔️ cifmw-pod-pre-commit SUCCESS in 8m 01s

@nemarjan nemarjan force-pushed the refactor/allowed-registries-json-patch branch from 959c902 to 8e4c68c Compare March 19, 2026 14:31
@nemarjan
Copy link
Author

recheck

@softwarefactory-project-zuul
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/c5b89609ac79444782200029820a08d4

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 18m 30s
podified-multinode-edpm-deployment-crc RETRY_LIMIT in 15m 45s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 24m 14s
✔️ cifmw-crc-podified-edpm-baremetal-minor-update SUCCESS in 2h 04m 02s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 9m 43s
✔️ cifmw-pod-pre-commit SUCCESS in 8m 15s

@evallesp
Copy link
Contributor

recheck

@nemarjan nemarjan force-pushed the refactor/allowed-registries-json-patch branch from 8e4c68c to b49bedc Compare March 20, 2026 10:01
@nemarjan
Copy link
Author

recheck

@nemarjan nemarjan force-pushed the refactor/allowed-registries-json-patch branch from b49bedc to 2606921 Compare March 20, 2026 10:53
@nemarjan
Copy link
Author

recheck

@nemarjan nemarjan force-pushed the refactor/allowed-registries-json-patch branch from 2606921 to 1aede1f Compare March 20, 2026 12:05
@softwarefactory-project-zuul
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/379379b453214f76a60e06699402b6fd

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 15m 39s
podified-multinode-edpm-deployment-crc RETRY_LIMIT in 13m 19s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 25m 08s
✔️ cifmw-crc-podified-edpm-baremetal-minor-update SUCCESS in 1h 58m 21s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 26s
✔️ cifmw-pod-pre-commit SUCCESS in 8m 45s

}
}
}' image.config.openshift.io/cluster
delegate_to: localhost
Copy link
Contributor

Choose a reason for hiding this comment

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

I think if you do delegate_to: controller and kubeconfig: "{{ cifmw_openshift_kubeconfig }}" should work

@nemarjan nemarjan force-pushed the refactor/allowed-registries-json-patch branch 6 times, most recently from 2e68c4b to ec35005 Compare March 20, 2026 18:36
…stead of ansible.builtin.shell with oc patch.

- Refactoring task "Add additional allowed registries" as specified here ( https://github.com/openstack-k8s-operators/ci-framework/pull/3712/changes#r2858651309*) and using Ansible module to patch.

- Merging tasks "Patch the image.config.openshift.io resource to include insecure registry" and "Patch the image.config.openshift.io resource to allow registries" in to a single task,
  replacing use of ansible.builtin.shell with use of Ansible module.

Signed-off-by: nemarjan <nemarjan@redhat.com>
@nemarjan nemarjan force-pushed the refactor/allowed-registries-json-patch branch from ec35005 to bd5104c Compare March 20, 2026 19:14
@softwarefactory-project-zuul
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/0ce8702a03534ea78fc6bb990deff206

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 10m 14s
podified-multinode-edpm-deployment-crc RETRY_LIMIT in 15m 35s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 19m 11s
✔️ cifmw-crc-podified-edpm-baremetal-minor-update SUCCESS in 1h 57m 18s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 38s
✔️ cifmw-pod-pre-commit SUCCESS in 8m 02s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants