-
Notifications
You must be signed in to change notification settings - Fork 144
fix _user_data_change fails assertion after a soft clean #3514
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
fix _user_data_change fails assertion after a soft clean #3514
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
danpawlik
left a comment
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.
update commit message and add prefix:
[config_drive]
3f73dd0 to
ee6ff74
Compare
| - _meta_data_change is not changed | ||
| - _user_data_change is not changed | ||
| - _user_data_change is skipped or _user_data_change is not changed | ||
| - _net_data_change is not changed |
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.
I think we should do the same for _net_data_change - tasks "Generate user-data" and "Generate network-data" both use conditions like below, so both of should have the is skipped assert?
when:
- cifmw_config_drive_userdata is defined
- cifmw_config_drive_userdata | length > 0
when:
- cifmw_config_drive_networkconfig is defined
- cifmw_config_drive_networkconfig
Update, looks like | length > 0 on the cifmw_config_drive_networkconfig might make sense as well? But could do that in a separate PR?
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.
@hjensas while those suggestions may work , for the issues in this BZ they're not needed.
Currently I'm not at capacity to test them further and their implications thoroughly.
I suggest we merge the changes here as they are , since they'ew tested and analyzed,
and leave any subsequent changes in seperate PRs.
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.
Sure, but please do a follow up.
hjensas
left a comment
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.
We should to a follow up to address the same issue in the next assert.
06f336f
into
openstack-k8s-operators:main
|
I created a follow up in: #3559 |
|
It breaks CI jobs. Let me try to fix, first. If not, let's revert. |
Create infra can fail after a soft clean , on the '_user_data' assertion.
Resolves: https://issues.redhat.com/browse/OSPRH-22377
changing the assert to the expected result resolves the issue :
- _user_data_change is skipped or _user_data_change is not changed
Before:
https://gitlab.cee.redhat.com/pkomarov/examples/-/jobs/43687373
TASK [config_drive : Assert we don't try to change an existing ISO that=['_meta_data_change is not changed', '_user_data_change is not changed', '_net_data_change is not changed'], msg=You're trying to edit an existing ISO. This isn't possible, since the ISO is usually attached to a virtual machine, and you cannot dynamically edit it.] ***Monday 24 November 2025 11:07:57 -0500 (0:00:00.196) 0:02:15.395 ******* task path: /home/zuul/src/github.com/openstack-k8s-operators/ci-framework/roles/config_drive/tasks/main.yml:81fatal: [localhost]: FAILED! => assertion: _user_data_change is not changed changed: false evaluated_to: false msg: You're trying to edit an existing ISO. This isn't possible, since the ISO is usually attached to a virtual machine, and you cannot dynamically edit it.
After:
https://gitlab.cee.redhat.com/pkomarov/examples/-/jobs/43727490/raw
TASK [config_drive : Assert we don't try to change an existing ISO that=['_meta_data_change is not changed', '_user_data_change is skipped or _user_data_change is not changed', '_net_data_change is not changed'], msg=You're trying to edit an existing ISO. This isn't possible, since the ISO is usually attached to a virtual machine, and you cannot dynamically edit it.] ***
task path: /home/zuul/src/github.com/openstack-k8s-operators/ci-framework/roles/config_drive/tasks/main.yml:112
Tuesday 25 November 2025 04:43:43 -0500 (0:00:00.046) 0:02:14.465 ******
Tuesday 25 November 2025 04:43:43 -0500 (0:00:00.046) 0:02:14.465 ******
ok: [localhost] =>
changed: false
msg: All assertions passed