Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-19269

Plugins reload is not propagated to the nodes in HA

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: 6.10.1
    • Fix Version/s: 7.8.1
    • Component/s: None
    • Labels:
    • Severity:
      High

      Description

      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.

        Attachments

          Issue Links

            Activity

                People

                Assignee:
                arielk Ariel Kabov
                Reporter:
                mohammadt Mohammad Tibi
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: