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

Fixes #22993: Can't deploy, “Configuration state of the object modified by this change request has changed” looping #583

Conversation

ElaadF
Copy link
Member

@ElaadF ElaadF commented Jul 27, 2023

https://issues.rudder.io/issues/22993

What is the bug

The change-request was blocked in state "deployment" but can be deployed (the changes was deployed even if the change-request is still in the "pending deployment" section. The problem only occurs for pending deployment request, the step valaidation to deployed, is working as expected.

Why it happens

The bug was that it was missing the logic for deployment to deployed part
The bug is only present in 7.3 due to 3103cf4 the logic was removed

How can I validate that the fix is working ?

  1. install the plugin change-validation
  2. create a group and add node in it
  3. activate change request in the plugin page
  4. modify the name
  5. Check that a change request is generated
  6. Validate the change request, the change request should be in "Pending deployment"
  7. Deploy the change request, it should be deployed and no longer in the "Pending deployment" page
  8. Try the same thing but from validation to deployed directly

…ed by this change request has changed” looping
@ElaadF ElaadF requested a review from fanf July 27, 2023 19:51
@ElaadF ElaadF added the WIP label Jul 27, 2023
@@ -435,6 +441,15 @@ class TwoValidationStepsWorkflowServiceImpl(
toFailure(Deployment, changeRequestId, actor, reason)
}

private[this] def stepDeploymentToDeployed(
Copy link
Member Author

Choose a reason for hiding this comment

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

This was removed in 7.3 by 3103cf4#diff-98e8dc3343e38546c42491a39303758ad01214ed8e5ef40c6a2c4d85cfa73f8eL413

This is a missing steps, don't understand why it's have been removed

@@ -224,7 +225,12 @@ class TwoValidationStepsWorkflowServiceImpl(
WorkflowAction("Validate", validatorActions)

case Deployment.id =>
WorkflowAction("Deploy", deployAction)
val deploymentAction = {
Copy link
Member Author

Choose a reason for hiding this comment

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

3103cf4#diff-98e8dc3343e38546c42491a39303758ad01214ed8e5ef40c6a2c4d85cfa73f8eL205 if think this is a oversight

Without this we cannot close the change-request, the change-request will be deployed, be will still remains in the deployment step

@ElaadF ElaadF removed the WIP label Jul 31, 2023
@Normation-Quality-Assistant
Copy link
Contributor

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit 7477188 into Normation:branches/rudder/7.3 Jul 31, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants