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

Fixing PTRENG-2606 , issue#392 for Artifactory 7.x #404

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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 .

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.

None yet

1 participant