When adding / editing a user plugin and running the reload API to reload it:
https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-ReloadPlugins
If it is a HA setup, the reload is not propagated to the nodes in the cluster.
Steps to reproduce:
1. Add the below user plugin to the primary node:
https://raw.githubusercontent.com/jfrog/artifactory-user-plugins/master/dummyPlugin/dummyPlugin.groovy
2. After it is propagated to the node, run the reload API
https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-ReloadPlugins
3. Run the below curl from the node that did not get the reload request:
curl -X POST http://localhost:8081/artifactory/api/plugins/execute/dummyPlugin
You will get the below error:
{ "errors" : [ { "status" : 404, "message" : "No execution plugins are loaded." } ] }
While you would get Okay from the node that got the reload request:
{"status":"okay"}
Workaround:
Run the reload API manually to the specific IP of EACH node in the cluster or gracefully restart all Artifactory nodes.
- is cloned by
-
RTFACT-23119 CLONE - Plugins reload is not propagated to the nodes in HA - 6.x
- Done