Skip to content

Use role instead of playbooks - 06-deploy-architecture.yml#3066

Merged
danpawlik merged 1 commit intoopenstack-k8s-operators:mainfrom
danpawlik:move-06-play
Jul 7, 2025
Merged

Use role instead of playbooks - 06-deploy-architecture.yml#3066
danpawlik merged 1 commit intoopenstack-k8s-operators:mainfrom
danpawlik:move-06-play

Conversation

@danpawlik
Copy link
Copy Markdown
Contributor

Reason why we move playbook execution to roles was described in pull request [1], but in few words: it would be easier for mainteners to understand playbook/role execution, it is just better to control variables, easier to debug, etc.

[1] #2930

@danpawlik danpawlik requested review from a team, abays, fmount and fultonj as code owners June 12, 2025 07:13
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Jun 12, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:

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

evallesp
evallesp previously approved these changes Jun 12, 2025
Comment thread deploy-edpm.yml Outdated
@softwarefactory-project-zuul
Copy link
Copy Markdown

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/edeed835e56843f9b274b57cc8c90fda

✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 28m 13s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 58m 30s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 27m 40s
podified-multinode-hci-deployment-crc FAILURE in 57m 36s
✔️ adoption-standalone-to-crc-ceph-provider SUCCESS in 3h 12m 54s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 7m 59s
✔️ cifmw-pod-pre-commit SUCCESS in 7m 46s
✔️ build-push-container-cifmw-client SUCCESS in 18m 43s
✔️ cifmw-molecule-ci_lvms_storage SUCCESS in 2m 28s
✔️ cifmw-molecule-cifmw_setup SUCCESS in 2m 28s

@danpawlik
Copy link
Copy Markdown
Contributor Author

recheck

Comment thread roles/cifmw_setup/tasks/deploy_architecture.yml Outdated
Comment thread playbooks/06-deploy-edpm.yml Outdated
amartyasinha
amartyasinha previously approved these changes Jun 16, 2025
evallesp
evallesp previously approved these changes Jun 16, 2025
@danpawlik danpawlik changed the title Use role instead of playbooks - 06-deploy-edpm.yml Use role instead of playbooks - 06-deploy-architecture.yml Jun 16, 2025
@danpawlik danpawlik dismissed stale reviews from evallesp and amartyasinha via a64b53b June 16, 2025 09:26
@danpawlik danpawlik force-pushed the move-06-play branch 2 times, most recently from a64b53b to f867e17 Compare June 16, 2025 09:26
amartyasinha
amartyasinha previously approved these changes Jun 16, 2025
@softwarefactory-project-zuul
Copy link
Copy Markdown

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/5199f31a44644c078a69cad6e45d8348

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 43m 59s
podified-multinode-edpm-deployment-crc FAILURE in 57m 53s
cifmw-crc-podified-edpm-baremetal FAILURE in 1h 19m 35s
adoption-standalone-to-crc-ceph-provider FAILURE in 2h 30m 53s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 20s
✔️ cifmw-pod-pre-commit SUCCESS in 7m 19s
✔️ build-push-container-cifmw-client SUCCESS in 18m 42s
✔️ cifmw-molecule-ci_lvms_storage SUCCESS in 2m 18s
✔️ cifmw-molecule-cifmw_setup SUCCESS in 2m 17s

@danpawlik
Copy link
Copy Markdown
Contributor Author

recheck

@softwarefactory-project-zuul
Copy link
Copy Markdown

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/openstack-k8s-operators/ci-framework for 3066,f867e17bf8698e37bf70e64fb3baa79e77315923

Comment thread playbooks/06-deploy-architecture.yml Outdated
Comment thread roles/cifmw_setup/tasks/deploy_architecture.yml Outdated
@fmount
Copy link
Copy Markdown
Contributor

fmount commented Jun 30, 2025

a minor comment but not blocking in case is not relevant for multi-namespace VA

@fultonj
Copy link
Copy Markdown
Contributor

fultonj commented Jun 30, 2025

On controller-0, a shell script called deploy-architecture.sh is created and we have the option to run that script separately. That script calls the deploy-edpm.yaml playbook. Is there any plan to change that?

[zuul@controller-0 ~]$ cat deploy-architecture.sh 
#!/bin/bash
set -e
pushd /home/zuul/src/github.com/openstack-k8s-operators/ci-framework
export ANSIBLE_LOG_PATH="~/ansible-deploy-architecture.log"

ansible-playbook -i ~/ci-framework-data/artifacts/zuul_inventory.yml \
  -e @~/ci-framework-data/parameters/reproducer-variables.yml \
  -e @~/ci-framework-data/parameters/openshift-environment.yml \
  deploy-edpm.yml --flush-cache $@
popd
[zuul@controller-0 ~]$ 

@danpawlik
Copy link
Copy Markdown
Contributor Author

On controller-0, a shell script called deploy-architecture.sh is created and we have the option to run that script separately. That script calls the deploy-edpm.yaml playbook. Is there any plan to change that?

[zuul@controller-0 ~]$ cat deploy-architecture.sh 
#!/bin/bash
set -e
pushd /home/zuul/src/github.com/openstack-k8s-operators/ci-framework
export ANSIBLE_LOG_PATH="~/ansible-deploy-architecture.log"

ansible-playbook -i ~/ci-framework-data/artifacts/zuul_inventory.yml \
  -e @~/ci-framework-data/parameters/reproducer-variables.yml \
  -e @~/ci-framework-data/parameters/openshift-environment.yml \
  deploy-edpm.yml --flush-cache $@
popd
[zuul@controller-0 ~]$ 

so far, we don't touch deploy*-.yml playbooks.

Reason why we move playbook execution to roles was described in
pull request [1], but in few words: it would be easier for mainteners
to understand playbook/role execution, it is just better to control
variables, easier to debug, etc.

[1] openstack-k8s-operators#2930

Signed-off-by: Daniel Pawlik <dpawlik@redhat.com>
@softwarefactory-project-zuul
Copy link
Copy Markdown

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/a51dabd8e3d44d508138a5570a1f52a8

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 39m 46s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 07m 30s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 25m 48s
adoption-standalone-to-crc-ceph-provider RETRY_LIMIT in 35m 10s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 7m 47s
✔️ cifmw-pod-pre-commit SUCCESS in 7m 43s
build-push-container-cifmw-client FAILURE in 17m 50s
✔️ cifmw-molecule-ci_lvms_storage SUCCESS in 2m 23s
✔️ cifmw-molecule-cifmw_setup SUCCESS in 2m 20s

@danpawlik
Copy link
Copy Markdown
Contributor Author

recheck

@softwarefactory-project-zuul
Copy link
Copy Markdown

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/194319289ac54ea684e6df9657c557df

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 45m 26s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 10m 56s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 31m 10s
adoption-standalone-to-crc-ceph-provider RETRY_LIMIT in 35m 34s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 36s
✔️ cifmw-pod-pre-commit SUCCESS in 7m 37s
✔️ build-push-container-cifmw-client SUCCESS in 15m 07s
✔️ cifmw-molecule-ci_lvms_storage SUCCESS in 1m 49s
✔️ cifmw-molecule-cifmw_setup SUCCESS in 2m 19s

@danpawlik
Copy link
Copy Markdown
Contributor Author

recheck

@danpawlik danpawlik disabled auto-merge July 7, 2025 15:39
@danpawlik danpawlik enabled auto-merge (rebase) July 7, 2025 15:40
Copy link
Copy Markdown
Contributor

@abays abays left a comment

Choose a reason for hiding this comment

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

/lgtm

@danpawlik danpawlik merged commit b18133a into openstack-k8s-operators:main Jul 7, 2025
5 checks passed
@openshift-ci openshift-ci Bot added the lgtm label Jul 7, 2025
@danpawlik danpawlik deleted the move-06-play branch July 7, 2025 18:06
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.

10 participants