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 #17570: Trigger promises generation when promoting a node to relay #307

Conversation

ElaadF
Copy link
Member

@ElaadF ElaadF commented May 29, 2020

@ElaadF ElaadF requested review from VinceMacBuche and fanf May 29, 2020 08:48
@ElaadF ElaadF added the WIP label May 29, 2020
@ElaadF
Copy link
Member Author

ElaadF commented May 29, 2020

Commit modified

@ElaadF ElaadF force-pushed the bug_17570/trigger_promises_generation_when_promoting_a_node_to_relay branch from 02344f4 to 9ca42cb Compare May 29, 2020 08:49
@VinceMacBuche
Copy link
Member

Are you sure it needs a reload ? i don't think because rule creation already reloads

@ElaadF
Copy link
Member Author

ElaadF commented May 29, 2020

I don't see where the reload is performed, no eventlog indicates this and it seems that in https://github.com/Normation/rudder/blob/master/webapp/sources/rudder/rudder-core/src/main/scala/com/normation/rudder/repository/ldap/LDAPRuleRepository.scala#L186 there is no reload at this point

@@ -59,6 +61,7 @@ class ScaleOutRelayService(
} else {
nodeInfos.succeed
}
_ <- clearCacheService.clearNodeConfigurationCache(storeEvent = true, actor)
Copy link
Member

Choose a reason for hiding this comment

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

In fact you should trigger a deployment not delete the whole configurationCache.

We used to call deploy api that only starts a deployment:

      asyncDeploymentAgent ! AutomaticStartDeployment(modId, actor)

with

  , asyncDeploymentAgent : AsyncDeploymentActor

you can put it in the yield section

@ElaadF ElaadF force-pushed the bug_17570/trigger_promises_generation_when_promoting_a_node_to_relay branch from 9ca42cb to 8aa4f46 Compare May 29, 2020 14:54
@ElaadF
Copy link
Member Author

ElaadF commented May 29, 2020

Commit modified

@ElaadF ElaadF removed the WIP label May 29, 2020
@ElaadF ElaadF requested a review from VinceMacBuche May 29, 2020 14:55
@Normation-Quality-Assistant
Copy link
Contributor

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit 8aa4f46 into Normation:branches/rudder/6.1 May 29, 2020
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