-
Notifications
You must be signed in to change notification settings - Fork 86
feat: detect previous run of linux_system_roles #1056
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
base: main
Are you sure you want to change the base?
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: dudy-duce 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 |
|
Hi @dudy-duce. Thanks for your PR. I'm waiting for a github.com member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the 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. |
|
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/a422376e2a5e404b9e6a8c5033c40865 ✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 45m 00s |
| - name: Load system-roles.network tasks [nmstate] | ||
| ansible.builtin.include_role: | ||
| name: "{{ lookup('ansible.builtin.env', 'EDPM_SYSTEMROLES', default='fedora.linux_system_roles') + '.network' }}" | ||
| register: nmstate_result |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you tested this? I don't think nmstate_result would contain the failure details for errors configuring networking connection profiles.. In cases there are errors executing the role, ansible would stop at the task and it won't execute task from L71.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it stop the task in case of linux_system_roles failure.
What do you suggest ? Assuming it's a success if we complete this include_role from the playbook?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it reaches L71 then you've to assume it has configured the network. Though nmstate.returncode file would never have non zero value. But we can live with it I guess. There is probably no need to register and check the result.
Signed-off-by: dudy <[email protected]>
247bf36 to
71ae0d0
Compare
Assume linux system roles would fail before and we never reach this step in case of failure.
|
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/18337c389cd843809f2030d99d5bbca7 ✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 19m 57s |
Fix #820
Updated nmstate_tool.yml to mirror the os-net-config behavior: