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

Don't run nfs.yml when architecture is defined #1857

Closed
wants to merge 1 commit into from

Conversation

rlobillo
Copy link
Contributor

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

  • Appropriate testing is done and actually running
  • Appropriate documentation exists and/or is up-to-date:
    • README in the role
    • Content of the docs/source is reflecting the changes

@github-actions github-actions bot marked this pull request as draft June 10, 2024 14:22
Copy link

Thanks for the PR! ❤️
I'm marking it as a draft, once your happy with it merging and the PR is passing CI, click the "Ready for review" button below.

Copy link
Contributor

openshift-ci bot commented Jun 10, 2024

Hi @rlobillo. Thanks for your PR.

I'm waiting for a openstack-k8s-operators member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@rlobillo
Copy link
Contributor Author

@tosky Would you mind to check this one? We are hitting problems deploying va-hci because of this.

@rlobillo rlobillo marked this pull request as ready for review June 10, 2024 14:24
@tosky
Copy link
Contributor

tosky commented Jun 10, 2024

@tosky Would you mind to check this one? We are hitting problems deploying va-hci because of this.

-2.

Why would there be a problem? The code has been in place for a while, and if the NFS server is not requested, it should be a noop.
Moreover, there are cases where the locally deployed NFS server may be used with the architecture repository.
This should not be tied to the usage of architecture.

Copy link
Contributor

@tosky tosky left a comment

Choose a reason for hiding this comment

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

This should not be connected or conditioned based on the usage of architecture, and moreover nfs.yml should be a noop if it's not explicitly requested. This change should not go in.

@tosky
Copy link
Contributor

tosky commented Jun 10, 2024

So, it seems the ci-framework code is more complex than I thought and the same condition needs to be repeated more and more times. I'd let the ci-framework maintainers chime in but this may be correct in the end.

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

✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 03m 05s
podified-multinode-edpm-deployment-crc RETRY_LIMIT in 10m 26s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 12m 01s
✔️ podified-multinode-hci-deployment-crc SUCCESS in 1h 37m 15s
✔️ cifmw-data-plane-adoption-osp-17-to-extracted-crc SUCCESS in 2h 31m 38s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 9m 06s
✔️ cifmw-pod-pre-commit SUCCESS in 7m 41s

@tosky
Copy link
Contributor

tosky commented Jun 11, 2024

recheck

Copy link
Contributor

@cjeanner cjeanner left a comment

Choose a reason for hiding this comment

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

Review:
Not OK: this condition should go in this block here:

pre_tasks:
- name: End play early if no NFS is needed
when:
- not cifmw_edpm_deploy_nfs | default('false') | bool
ansible.builtin.meta: end_play

It will ensure the playbook is really skipped.

Context:
We can't really apply a when to import_playbook - it will "just" append that condition to all of the imported tasks, and it might lead to fun situations where the imported play will fail without even being launched...

More over, the end_play meta action applies only to the current play - so if we're running a series of playbook, only the one with that action will end, and the run will just jump to the next play in list.

Copy link
Contributor

openshift-ci bot commented Jun 19, 2024

[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 ask for approval from cjeanner. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

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/3460ea9b96f5476b915854742f2c17ab

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 29m 30s
podified-multinode-edpm-deployment-crc FAILURE in 1h 12m 01s
cifmw-crc-podified-edpm-baremetal FAILURE in 1h 06m 17s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 29s
✔️ cifmw-pod-pre-commit SUCCESS in 7m 57s

@rlobillo
Copy link
Contributor Author

/retest

Copy link
Contributor

openshift-ci bot commented Jun 20, 2024

@rlobillo: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/retest

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Copy link

This PR is stale because it has been for over 60 days with no activity.
Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Aug 20, 2024
@tosky
Copy link
Contributor

tosky commented Aug 20, 2024

uh, sorry, forgot about this

@tosky
Copy link
Contributor

tosky commented Aug 20, 2024

/ok-to-test

@tosky
Copy link
Contributor

tosky commented Aug 20, 2024

recheck

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/23c40d2e7f794fbb84cbded45bdc9f5d

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 43m 25s
podified-multinode-edpm-deployment-crc FAILURE in 59m 03s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 29m 05s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 9m 06s
✔️ cifmw-pod-pre-commit SUCCESS in 7m 33s

@github-actions github-actions bot removed the Stale label Aug 21, 2024
Copy link
Collaborator

@pablintino pablintino left a comment

Choose a reason for hiding this comment

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

I agree with @tosky here: #1857 (review)

Is this still problematic for you @rlobillo? If not, drop the change, if it's the case, have a look at my comment to fix the error the jobs are showing.

@@ -21,6 +21,7 @@
- name: End play early if no NFS is needed
when:
- not cifmw_edpm_deploy_nfs | default('false') | bool
Copy link
Collaborator

Choose a reason for hiding this comment

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

@rlobillo care to change this by this?

 (not cifmw_edpm_deploy_nfs | default('false') | bool) or (cifmw_architecture_scenario is defined)

I know the solution is far from perfect, but it will do the trick for now till we reorganize the code.

@rlobillo
Copy link
Contributor Author

/close

Not needed right now

@rlobillo rlobillo closed this Sep 23, 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.

4 participants