Skip to content
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 running reconcileDelete on new instance #501

Conversation

stuggi
Copy link
Contributor

@stuggi stuggi commented Oct 9, 2024

dda3b1e refactored code and introduce the situation that on the just created new instance the reconcileDelete method runs which we can see from the operator log:

2024-10-08T21:45:28Z    INFO    ceilometer-resource     default {"name": "ceilometer"}
2024-10-08T21:45:28Z    INFO    ceilometer-resource     validate create {"name": "ceilometer"}
2024-10-08T21:45:28Z    INFO    Controllers.Ceilometer  Reconciling Service delete      {"controller": "ceilometer", "controllerGroup": "telemetry.openstack.org", "controllerKind": "Ceilometer", "Ceilometer": {"name":"ceilometer","namespace":"openstack-kuttl-tests"}, "namespace": "openstack-kuttl-tests", "name": "ceilometer", "reconcileID": "c205bb0b-1c34-4350-969a-06c0925e0cdf"}

This change moves reconcileDelete in its own condition.

openstack-k8s-operators@dda3b1e
refactored code and introduce the situation that on the just created
new instance the reconcileDelete method runs which we can see from
the operator log:

~~~
2024-10-08T21:45:28Z    INFO    ceilometer-resource     default {"name": "ceilometer"}
2024-10-08T21:45:28Z    INFO    ceilometer-resource     validate create {"name": "ceilometer"}
2024-10-08T21:45:28Z    INFO    Controllers.Ceilometer  Reconciling Service delete      {"controller": "ceilometer", "controllerGroup": "telemetry.openstack.org", "controllerKind": "Ceilometer", "Ceilometer": {"name":"ceilometer","namespace":"openstack-kuttl-tests"}, "namespace": "openstack-kuttl-tests", "name": "ceilometer", "reconcileID": "c205bb0b-1c34-4350-969a-06c0925e0cdf"}
~~~

This change moves reconcileDelete in its own condition.

Signed-off-by: Martin Schuppert <[email protected]>
@openshift-ci openshift-ci bot requested review from csibbitt and viroel October 9, 2024 12:36
@stuggi stuggi requested review from jlarriba and paramite and removed request for viroel October 9, 2024 12:37
Copy link
Collaborator

@jlarriba jlarriba left a comment

Choose a reason for hiding this comment

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

/lgtm

Copy link
Contributor

openshift-ci bot commented Oct 9, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jlarriba, stuggi

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

The pull request process is described 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 openshift-ci bot added the approved label Oct 9, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit ae8ae90 into openstack-k8s-operators:main Oct 9, 2024
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.

2 participants