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

[WIP] Fail edpm_network_config when there are schema errors #720

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

vcandapp
Copy link
Contributor

@vcandapp vcandapp commented Aug 5, 2024

Currently when there are schema errors in os-net-config, the logs are updated and no failure happens.
Updating this behaviour so that user can fix errors and re-run role

@openshift-ci openshift-ci bot requested review from fao89 and fultonj August 5, 2024 12:46
@vcandapp vcandapp requested review from Jaganathancse and removed request for fultonj and fao89 August 5, 2024 12:46
Copy link
Contributor

openshift-ci bot commented Aug 5, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: vcandapp
Once this PR has been reviewed and has the lgtm label, please assign karelyatin for approval. 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

file: network_config.yml
when: edpm_network_config_tool == 'os-net-config'

- name: Disable auto-configuration of all interfaces by NetworkManager
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we change block name similar like nmstate section
'Configure network with network role from system roles [os-net-config]'

roles/edpm_network_config/tasks/main.yml Show resolved Hide resolved
@@ -207,7 +209,7 @@ def main():
detailed_exit_codes = args['detailed_exit_codes']
safe_defaults = args['safe_defaults']
use_nmsate = args['use_nmstate']
return_codes = [0]
return_codes = [0,1]
Copy link
Contributor

@Jaganathancse Jaganathancse Aug 5, 2024

Choose a reason for hiding this comment

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

i think no need to add 1 here. only 0 is for success to check failed or not.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Have removed this file now

Copy link

@karthiksundaravel karthiksundaravel left a comment

Choose a reason for hiding this comment

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

lgtm

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

✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 46m 26s
podified-multinode-edpm-deployment-crc FAILURE in 2h 10m 00s
cifmw-crc-podified-edpm-baremetal FAILURE in 2h 03m 32s
✔️ edpm-ansible-molecule-edpm_bootstrap SUCCESS in 6m 07s
✔️ edpm-ansible-molecule-edpm_podman SUCCESS in 6m 54s
✔️ edpm-ansible-molecule-edpm_module_load SUCCESS in 6m 15s
✔️ edpm-ansible-molecule-edpm_kernel SUCCESS in 12m 05s
✔️ edpm-ansible-molecule-edpm_libvirt SUCCESS in 10m 08s
✔️ edpm-ansible-molecule-edpm_nova SUCCESS in 10m 36s
✔️ edpm-ansible-molecule-edpm_frr SUCCESS in 7m 47s
✔️ edpm-ansible-molecule-edpm_iscsid SUCCESS in 6m 00s
✔️ edpm-ansible-molecule-edpm_ovn_bgp_agent SUCCESS in 8m 25s
✔️ edpm-ansible-molecule-edpm_ovs SUCCESS in 11m 54s
✔️ edpm-ansible-molecule-edpm_tripleo_cleanup SUCCESS in 4m 48s
adoption-standalone-to-crc-ceph-provider FAILURE in 2h 49m 22s

@vcandapp vcandapp force-pushed the osnet_updt branch 2 times, most recently from 5f07e56 to a8c794e Compare August 5, 2024 19:03
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/99d7332914a34eab8a3f960458b62e4b

✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 06m 17s
podified-multinode-edpm-deployment-crc FAILURE in 2h 09m 40s
cifmw-crc-podified-edpm-baremetal FAILURE in 2h 03m 18s
✔️ edpm-ansible-molecule-edpm_bootstrap SUCCESS in 6m 33s
✔️ edpm-ansible-molecule-edpm_podman SUCCESS in 6m 11s
✔️ edpm-ansible-molecule-edpm_module_load SUCCESS in 5m 11s
✔️ edpm-ansible-molecule-edpm_kernel SUCCESS in 11m 47s
✔️ edpm-ansible-molecule-edpm_libvirt SUCCESS in 11m 53s
✔️ edpm-ansible-molecule-edpm_nova SUCCESS in 10m 46s
✔️ edpm-ansible-molecule-edpm_frr SUCCESS in 9m 11s
✔️ edpm-ansible-molecule-edpm_iscsid SUCCESS in 6m 53s
✔️ edpm-ansible-molecule-edpm_ovn_bgp_agent SUCCESS in 9m 40s
✔️ edpm-ansible-molecule-edpm_ovs SUCCESS in 14m 52s
✔️ edpm-ansible-molecule-edpm_tripleo_cleanup SUCCESS in 6m 15s
adoption-standalone-to-crc-ceph-provider FAILURE in 2h 48m 24s

Set no-auto-defult flag for os-net-config
@vcandapp
Copy link
Contributor Author

vcandapp commented Aug 6, 2024

@karthiksundaravel / @Jaganathancse , updated this PR for better tracking. This PR will have fix only for the no-auto-default. Will created a new PR for "--exit-on-validation-error"

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/29eab19ff4b04edab2033286198dc0a0

✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 16m 47s
podified-multinode-edpm-deployment-crc FAILURE in 2h 09m 08s
cifmw-crc-podified-edpm-baremetal FAILURE in 2h 17m 59s
✔️ edpm-ansible-molecule-edpm_bootstrap SUCCESS in 7m 01s
✔️ edpm-ansible-molecule-edpm_podman SUCCESS in 6m 04s
✔️ edpm-ansible-molecule-edpm_module_load SUCCESS in 5m 10s
✔️ edpm-ansible-molecule-edpm_kernel SUCCESS in 10m 22s
✔️ edpm-ansible-molecule-edpm_libvirt SUCCESS in 9m 47s
✔️ edpm-ansible-molecule-edpm_nova SUCCESS in 10m 22s
✔️ edpm-ansible-molecule-edpm_frr SUCCESS in 7m 18s
✔️ edpm-ansible-molecule-edpm_iscsid SUCCESS in 4m 17s
✔️ edpm-ansible-molecule-edpm_ovn_bgp_agent SUCCESS in 7m 36s
✔️ edpm-ansible-molecule-edpm_ovs SUCCESS in 12m 42s
✔️ edpm-ansible-molecule-edpm_tripleo_cleanup SUCCESS in 3m 37s
adoption-standalone-to-crc-ceph-provider FAILURE in 2h 51m 39s

Copy link
Contributor

openshift-ci bot commented Sep 20, 2024

@vcandapp: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/pre-commit-test 0689cf7 link true /test pre-commit-test

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

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

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 25m 21s
podified-multinode-edpm-deployment-crc FAILURE in 1h 41m 39s
cifmw-crc-podified-edpm-baremetal FAILURE in 1h 40m 11s
✔️ edpm-ansible-molecule-edpm_bootstrap SUCCESS in 6m 59s
✔️ edpm-ansible-molecule-edpm_podman SUCCESS in 6m 01s
✔️ edpm-ansible-molecule-edpm_module_load SUCCESS in 5m 00s
✔️ edpm-ansible-molecule-edpm_kernel SUCCESS in 11m 04s
✔️ edpm-ansible-molecule-edpm_libvirt SUCCESS in 10m 22s
✔️ edpm-ansible-molecule-edpm_nova SUCCESS in 10m 19s
✔️ edpm-ansible-molecule-edpm_frr SUCCESS in 7m 30s
✔️ edpm-ansible-molecule-edpm_iscsid SUCCESS in 4m 51s
✔️ edpm-ansible-molecule-edpm_ovn_bgp_agent SUCCESS in 7m 36s
✔️ edpm-ansible-molecule-edpm_ovs SUCCESS in 12m 16s
✔️ edpm-ansible-molecule-edpm_tripleo_cleanup SUCCESS in 3m 58s
✔️ edpm-ansible-molecule-edpm_tuned SUCCESS in 5m 51s
adoption-standalone-to-crc-ceph-provider FAILURE in 2h 12m 45s

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