Skip to content

Conversation

@oliashish
Copy link
Contributor

@oliashish oliashish commented Jan 16, 2026

The NodeSet reconciler would not triggered on changes to ConfigMaps and Secrets from ansibleVarsFrom as we never check them and it won't update the NodeSet status and message to mark it ready for deployment

Jira: OSPRH-17961

@openshift-ci openshift-ci bot requested review from olliewalsh and rebtoor January 16, 2026 13:15
@oliashish oliashish requested a review from slagle January 16, 2026 13:20
@oliashish oliashish force-pushed the fix/nodeset-reconcile-with-secret-change branch from 363aa04 to 041c79f Compare January 16, 2026 13:38
@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/2f91f3518f594651aa31a353d4524c5a

openstack-k8s-operators-content-provider FAILURE in 5m 19s
⚠️ podified-multinode-edpm-deployment-crc SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ cifmw-crc-podified-edpm-baremetal SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ openstack-operator-tempest-multinode SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider

Copy link
Contributor

@slagle slagle left a comment

Choose a reason for hiding this comment

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

this looks good. I can test it in my environment as well.

@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/50b1d132f5ab43838db660d50fa0e335

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 56m 28s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 32m 06s
cifmw-crc-podified-edpm-baremetal RETRY_LIMIT in 31m 44s
✔️ openstack-operator-tempest-multinode SUCCESS in 1h 51m 37s

@oliashish oliashish changed the title WIP: Trigger nodeSet reconciler with ansibleVarsFrom changes Fix: Trigger nodeSet reconciler with ansibleVarsFrom changes Jan 21, 2026
@oliashish oliashish requested review from rabi and slagle January 21, 2026 13:13
@oliashish
Copy link
Contributor Author

/retest-required

@slagle
Copy link
Contributor

slagle commented Jan 22, 2026

Can you also squash some of the smaller commits into other commits? Or, add more detail to each commits message. It just help with keeping a cleaner git history when this is merged.

@oliashish oliashish force-pushed the fix/nodeset-reconcile-with-secret-change branch from e662eec to e19f49a Compare January 22, 2026 14:27
The NodeSet reconciler was not being triggered when ConfigMaps and Secrets referenced in ansibleVarsFrom were modified. This caused the NodeSet status to not update when configuration data changed, preventing deployments from recognizing that nodes redeployment.

Changes:
- Add ProcessAnsibleVarsFrom function in internal/dataplane/hashes.go to compute hashes for ConfigMaps and Secrets referenced in AnsibleVarsFrom at both NodeTemplate and individual Node
- Add checkAnsibleVarsFromChanged function in the NodeSet controller to compare current hashes with deployed hashes and detect configuration drift.
- Update deployment controller with setNodeSetAnsibleVarsFromHashes to store ConfigMap and Secret hashes in deployment status for comparison
- Add kuttl test cases to verify ansibleVarsFrom change detection triggers proper reconciliation (08-ansiblevars-deploy and 09-ansiblevars-update)

The fix ensures that when a ConfigMap or Secret referenced by ansibleVarsFrom
is modified, the NodeSet controller detects the change and updates its status
to indicate it is no longer ready for deployment, allowing operators to
trigger a new deployment with the updated configuration.

Jira: OSPRH-17961

Co-Authored-By: Claude <noreply@anthropic.com>
@oliashish oliashish force-pushed the fix/nodeset-reconcile-with-secret-change branch from e19f49a to 3292252 Compare January 22, 2026 15:03
@openshift-ci openshift-ci bot removed the lgtm label Jan 22, 2026
@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/e111fad9ecd349bfaee7f9fdf6553019

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 10m 33s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 28m 41s
cifmw-crc-podified-edpm-baremetal RETRY_LIMIT in 30m 15s
✔️ openstack-operator-tempest-multinode SUCCESS in 1h 47m 29s

@slagle
Copy link
Contributor

slagle commented Jan 22, 2026

recheck

@openshift-ci openshift-ci bot added the lgtm label Jan 22, 2026
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 22, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: oliashish, slagle

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

The pull request process is described 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

@openshift-merge-bot openshift-merge-bot bot merged commit e4990bf into main Jan 22, 2026
8 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.

3 participants