Skip to content

Conversation

@dudy-duce
Copy link

Fix #820

Updated nmstate_tool.yml to mirror the os-net-config behavior:

  • Check for a return-code marker at /var/lib/edpm-config/nmstate.returncode.
  • Read it when present and use it (plus edpm_network_config_update) to decide whether to run nmstate.
  • After running nmstate, write its return code into /var/lib/edpm-config/nmstate.returncode.

@openshift-ci openshift-ci bot requested review from olliewalsh and viroel November 1, 2025 15:16
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 1, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: dudy-duce
Once this PR has been reviewed and has the lgtm label, please assign stuggi for approval. For more information see the 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

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 1, 2025

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

@softwarefactory-project-zuul
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/a422376e2a5e404b9e6a8c5033c40865

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 45m 00s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 19m 25s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 28m 42s
✔️ cifmw-pod-zuul-files SUCCESS in 4m 43s
✔️ cifmw-crc-podified-edpm-baremetal-bootc SUCCESS in 1h 29m 37s
✔️ noop SUCCESS in 0s
✔️ edpm-ansible-tempest-multinode SUCCESS in 1h 31m 08s
adoption-standalone-to-crc-ceph-provider FAILURE in 58m 58s

- 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
Copy link
Contributor

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.

Copy link
Author

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?

Copy link
Contributor

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.

@dudy-duce dudy-duce force-pushed the nmstate branch 2 times, most recently from 247bf36 to 71ae0d0 Compare November 5, 2025 17:30
Assume linux system roles would fail before and we never reach this step in case of failure.
@softwarefactory-project-zuul
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/18337c389cd843809f2030d99d5bbca7

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 19m 57s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 16m 25s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 24m 24s
✔️ cifmw-pod-zuul-files SUCCESS in 5m 09s
✔️ cifmw-crc-podified-edpm-baremetal-bootc SUCCESS in 1h 32m 09s
✔️ noop SUCCESS in 0s
✔️ edpm-ansible-tempest-multinode SUCCESS in 1h 30m 21s
adoption-standalone-to-crc-ceph-provider FAILURE in 2h 04m 25s

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.

nmstate and edpm_network_config_update

2 participants