Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tcib]Use inner ansible vars to expose dlrn md5 hash #1885

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

raukadah
Copy link
Contributor

@raukadah raukadah commented Jun 17, 2024

Currently we use to slurp the content of dlrn.md5 file via run playbook running from zuul executor. Most of the time, It does not exposes the correct dlrn md5 file hash. In order to fix that,

We are moving log collection from zuul post run to tcib playbook to create the ansible var file and use the same to read the dlrn md5 hash file.

As a pull request owner and reviewers, I checked that:

  • Appropriate testing is done and actually running

Copy link
Contributor

openshift-ci bot commented Jun 17, 2024

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

raukadah added a commit to raukadah/tcib that referenced this pull request Jun 17, 2024
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://review.rdoproject.org/zuul/buildset/a9db92e3d37848c3bd80b1d7ec2493f5

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 39m 56s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 21m 38s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 12m 06s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 7m 54s
✔️ cifmw-pod-pre-commit SUCCESS in 7m 42s
✔️ cifmw-pod-zuul-files SUCCESS in 4m 31s
cifmw-tcib FAILURE in 36m 26s

raukadah added a commit to raukadah/tcib that referenced this pull request Jun 17, 2024
raukadah added a commit to raukadah/tcib that referenced this pull request Jun 17, 2024
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://review.rdoproject.org/zuul/buildset/43083d3f817a42508483e72331954518

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 30m 58s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 16m 21s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 13m 38s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 9m 46s
✔️ cifmw-pod-pre-commit SUCCESS in 7m 34s
✔️ cifmw-pod-zuul-files SUCCESS in 5m 07s
cifmw-tcib FAILURE in 35m 42s

raukadah added a commit to raukadah/tcib that referenced this pull request Jun 17, 2024
raukadah added a commit to raukadah/tcib that referenced this pull request Jun 17, 2024
@raukadah raukadah marked this pull request as ready for review June 17, 2024 14:11
raukadah added a commit to raukadah/tcib that referenced this pull request Jun 17, 2024
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://review.rdoproject.org/zuul/buildset/d3b42cf59d634afaba79bae7c15f9e91

openstack-k8s-operators-content-provider FAILURE in 11m 33s
⚠️ podified-multinode-edpm-deployment-crc SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ cifmw-crc-podified-edpm-baremetal SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 11s
✔️ cifmw-pod-pre-commit SUCCESS in 7m 35s
✔️ cifmw-pod-zuul-files SUCCESS in 4m 58s
cifmw-tcib FAILURE in 12m 07s

raukadah added a commit to raukadah/tcib that referenced this pull request Jun 18, 2024
raukadah added a commit to raukadah/tcib that referenced this pull request Jun 18, 2024
raukadah added a commit to raukadah/tcib that referenced this pull request Jun 18, 2024
raukadah added a commit to raukadah/tcib that referenced this pull request Jun 18, 2024
raukadah added a commit to raukadah/tcib that referenced this pull request Jun 18, 2024
@raukadah
Copy link
Contributor Author

In the existing jobs running against tcib, from this buildset https://review.rdoproject.org/zuul/buildset/c9dc8ac1fbae4184802748ea2f60d4b3,
Taking https://review.rdoproject.org/zuul/build/3c51780008014895bbc16892baba0541 - tcib-crc-podified-edpm-baremetal job zuul inventory
https://logserver.rdoproject.org/77/177/baf3d9a9715a7fac1930c0682ade396dfed71ce3/github-check/tcib-crc-podified-edpm-baremetal/3c51780/zuul-info/inventory.yaml returns

content_provider_dlrn_md5_hash: ''
content_provider_registry_ip: 38.129.56.29

Since we are not able to read the dlrn md5 value on the zuul controller, In order to fix that. Let's use the ansible-var file generated by artifacts role.
#1885
We tested the above pr here: openstack-k8s-operators/tcib#178 and buildset :
https://review.rdoproject.org/zuul/buildset/99c124a493804ba99a14a3b1ba316706
tcib-crc-podified-edpm-baremetal - https://review.rdoproject.org/zuul/build/f92fd33efc99464e8ebec46d2faaf201 zuul inventory
https://logserver.rdoproject.org/78/178/55382c9287c6d47eff9ee047fcea75f8b234b687/github-check/tcib-crc-podified-edpm-baremetal/f92fd33/zuul-info/inventory.yaml

content_provider_dlrn_md5_hash: e72f31c85d92e63dff1ddc22b6d29110
content_provider_registry_ip: 38.129.56.173

raukadah added a commit to raukadah/tcib that referenced this pull request Jun 19, 2024
Copy link
Contributor

@marios marios left a comment

Choose a reason for hiding this comment

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

lgtm, seems less fragile than the previous version

when: _check_dlrn_md5.stat.exists
- name: Get inner ansible vars
ansible.builtin.set_fact:
inner_ansible_vars: "{{ inner_ansible.content | b64decode | from_yaml }}"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we use a block to avoid decoding the same var 3 times and to avoid the fact?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Currently we use to slurp the content of dlrn.md5 file via run
playbook running from zuul executor. Most of the time, It does not
exposes the correct dlrn md5 file hash. In order to fix that,

We are moving log collection from zuul post run to tcib playbook to
create the ansible var file and use the same to read the dlrn md5 hash
file.

Signed-off-by: Chandan Kumar <raukadah@gmail.com>
@openshift-ci openshift-ci bot removed the lgtm label Jun 19, 2024
raukadah added a commit to raukadah/tcib that referenced this pull request Jun 19, 2024
@rebtoor
Copy link
Contributor

rebtoor commented Jun 19, 2024

/approve

Copy link
Contributor

openshift-ci bot commented Jun 19, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rebtoor

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

The pull request process is described here

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

@frenzyfriday
Copy link
Contributor

/lgtm

@openshift-merge-bot openshift-merge-bot bot merged commit 37cd7d9 into main Jun 19, 2024
5 checks passed
@openshift-merge-bot openshift-merge-bot bot deleted the tcib_logging branch June 19, 2024 12:03
raukadah added a commit to raukadah/tcib that referenced this pull request Jun 20, 2024
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.

5 participants