Skip to content

Conversation

@hjensas
Copy link
Contributor

@hjensas hjensas commented Dec 16, 2025

Apply the same fix as _user_data_change: handle skipped tasks when cifmw_config_drive_networkconfig is undefined on subsequent runs.

  • Update assert to check: _userdata/_netdata is not none, since these are set in defaults/main.yml they will never be undefined.
  • Update assertion to check: _net_data_change is skipped or is not changed
  • Make network-config when condition consistent with user-data (add | length > 0)
  • Add soft-clean test coverage to default molecule scenario

This prevents assertion failures when create-infra is run after a soft clean where the ISO already exists but network-config vars are not set.

Jira: OSPRH-22377

Assisted-By: Claude Code/claude-4.5-sonnet

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 16, 2025

[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 assign bshewale for approval. For more information see the Code Review Process.

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

Details 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

@hjensas hjensas force-pushed the fix-existing-iso-net-data branch 5 times, most recently from 5818b87 to 4e82886 Compare December 16, 2025 16:26
@hjensas
Copy link
Contributor Author

hjensas commented Dec 16, 2025

recheck

1 similar comment
@hjensas
Copy link
Contributor Author

hjensas commented Dec 16, 2025

recheck

@hjensas hjensas enabled auto-merge (rebase) December 16, 2025 16:43
@hjensas
Copy link
Contributor Author

hjensas commented Dec 16, 2025

recheck

1 similar comment
@hjensas
Copy link
Contributor Author

hjensas commented Dec 16, 2025

recheck

@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/419b047e9c0f41c08ad5e13284ecec44

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 12m 25s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 25m 45s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 35m 31s
✔️ cifmw-crc-podified-edpm-baremetal-minor-update SUCCESS in 1h 58m 09s
✔️ cifmw-pod-zuul-files SUCCESS in 4m 34s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 07s
✔️ cifmw-pod-pre-commit SUCCESS in 7m 58s
✔️ build-push-container-cifmw-client SUCCESS in 24m 15s
cifmw-molecule-config_drive FAILURE in 4m 07s
✔️ cifmw-molecule-libvirt_manager SUCCESS in 41m 45s

@hjensas
Copy link
Contributor Author

hjensas commented Dec 17, 2025

recheck

@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/cdb421daf39145ea93fc40df7f783f2d

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 26m 27s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 23m 01s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 42m 39s
✔️ cifmw-crc-podified-edpm-baremetal-minor-update SUCCESS in 2h 13m 23s
✔️ cifmw-pod-zuul-files SUCCESS in 4m 26s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 35s
✔️ cifmw-pod-pre-commit SUCCESS in 7m 42s
build-push-container-cifmw-client FAILURE in 24m 07s
cifmw-molecule-config_drive FAILURE in 3m 57s
cifmw-molecule-libvirt_manager FAILURE in 4m 00s

@hjensas
Copy link
Contributor Author

hjensas commented Dec 17, 2025

recheck

@softwarefactory-project-zuul
Copy link

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/openstack-k8s-operators/ci-framework for 3559,4e82886eaa4e8672fffb98c1246ee15010d3be4e

@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/b517bed810924f1ab8156b0a14be52ae

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 43m 59s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 25m 25s
cifmw-crc-podified-edpm-baremetal FAILURE in 21m 37s
cifmw-crc-podified-edpm-baremetal-minor-update FAILURE in 21m 22s
✔️ cifmw-pod-zuul-files SUCCESS in 5m 15s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 50s
✔️ cifmw-pod-pre-commit SUCCESS in 9m 13s
build-push-container-cifmw-client FAILURE in 23m 53s
✔️ cifmw-molecule-config_drive SUCCESS in 4m 38s
cifmw-molecule-libvirt_manager FAILURE in 4m 12s

@hjensas
Copy link
Contributor Author

hjensas commented Dec 17, 2025

recheck

@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/779266e04a9d4b38b1a17a09c8c059ae

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 49m 47s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 24m 11s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 31m 58s
cifmw-crc-podified-edpm-baremetal-minor-update FAILURE in 1h 24m 17s
✔️ cifmw-pod-zuul-files SUCCESS in 4m 52s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 28m 28s
✔️ cifmw-pod-pre-commit SUCCESS in 7m 49s
✔️ build-push-container-cifmw-client SUCCESS in 24m 56s
✔️ cifmw-molecule-config_drive SUCCESS in 4m 58s
cifmw-molecule-libvirt_manager FAILURE in 3m 58s

@hjensas hjensas force-pushed the fix-existing-iso-net-data branch from 3ce83b7 to 93829c6 Compare December 18, 2025 08:32
Apply the same fix as _user_data_change: handle skipped tasks when
cifmw_config_drive_networkconfig is undefined on subsequent runs.

- Update assert to check: _userdata/_netdata is not none, since these
  are set in defaults/main.yml they will never be undefined.
- Update assertion to check: _net_data_change is skipped or is not changed
- Make network-config when condition consistent with user-data (add | length > 0)
- Add soft-clean test coverage to default molecule scenario

This prevents assertion failures when create-infra is run after a soft
clean where the ISO already exists but network-config vars are undefined.

Jira: OSPRH-22377

Assisted-By: Claude Code/claude-4.5-sonnet
Signed-off-by: Harald Jensås <hjensas@redhat.com>
@hjensas hjensas force-pushed the fix-existing-iso-net-data branch from 93829c6 to d9b7ca1 Compare December 18, 2025 08:38
@hjensas hjensas merged commit 8eca676 into openstack-k8s-operators:main Dec 19, 2025
6 checks passed
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