Skip to content

Conversation

@sureshvenkatesan
Copy link

The artifactoryMigrationHelper plugin is unusable in 7.x . There are multiple issues with the plugin now which I have explained with log snippets in PTRENG-2606 comment

  1. First of all the repositoryService.localRepoDescriptorByKey(repoKey) API does not exist. Since the plugin uses these internal APIs , @shimib suggested to test with the new localOrFederatedRepoDescriptorByKey API.

2.With above change the plugin proceeds further but does not create the repos in the target JDP because "createRemoteArtifactoryRepo(repoKey, repoConfiguration)" API does not add "rclass":"local" in the json request and so fails with

{
  "errors" : [ {
    "status" : 400,
    "message" : "No repository class found in configuration"
  } ]
}

So none of the local, remote and virtual repos are getting created in the target JPD
3. Then the Plugin continues to add the replication configuration to the local repos on the source JPD to the local repos in target JPD ( though these local repos were not created in target JPD )

The SolEng team do suggest using this plugin regularly to customers for DR setup based on KB JFROG ARTIFACTORY: Set up a Disaster Recovery(DR) Instance For Your JFrog Artifactory .

Hence please review this PR and resolve it after testing, so we can use the artifactoryMigrationHelper plugin in RT 7.x .

@yashprit-jfrog
Copy link
Collaborator

@sureshvenkatesan this is plugin is deprecated plugin & PR is open for long time. Are you still looking for this change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants