[ https://issues.apache.org/jira/browse/AMBARI-18507?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shubhangi Nivas Pardeshi updated AMBARI-18507: ---------------------------------------------- Attachment: Original_repo_version.txt Formatted_repositoriesJSON_From_repo_version.txt Screenshot3.png Screenshot2.png Screenshot1.png > Ambari issue: Unexpected repo used while installing services > ------------------------------------------------------------ > > Key: AMBARI-18507 > URL: https://issues.apache.org/jira/browse/AMBARI-18507 > Project: Ambari > Issue Type: Bug > Affects Versions: 2.2.2 > Reporter: Shubhangi Nivas Pardeshi > Priority: Critical > Attachments: Formatted_repositoriesJSON_From_repo_version.txt, > Original_repo_version.txt, Screenshot1.png, Screenshot2.png, Screenshot3.png > > > PROBLEM: > Ambari picks up public repository instead one registed because of incorrect > HDP repo ID. Details are given below. > Scanario : > Lets consider one HDP version is already registered(screenshot1.png). Here we > have repo URL for Redhat6 (screenshot2.png) > Now For given version of HDP already registered to Ambari, we add new > local/custom repository URLs for Redhat7(screenshot3.png) > We try to add new node with Redhat7 OS , this will pick up public repo > inspite of local repo configuration > Cause of picking up public repo : > RepoID of repository added later are not correct in Ambari database table > repo_version. > Excerpt of repositories column value from repo_version table after adding > redhat7 repo URLs. > [ > { > "OperatingSystems/stack_name": "HDP", > "OperatingSystems/stack_version": "2.3", > "repositories": [ > { > "Repositories/repo_id": "HDP-2.3", > "Repositories/os_type": "redhat6", > > }, > { > "Repositories/repo_id": "HDP-UTILS-1.1.0.20", > "Repositories/os_type": "redhat6", > ... > } > ], > ... > }, > { > "repositories": [ > { > "Repositories/repo_id": "HDP-2.3.4.0-3485", > ... > }, > { > "Repositories/repo_id": "HDP-UTILS-2.3.4.0-3485", > ... > } > ], > "OperatingSystems/os_type": "redhat7", > ... > } > ] > In above JSON we see repoID for redhat6 is "HDP-2.3" and redhat7 is > "HDP-2.3.4.0-3485". > Please provide fix to register repo correctly into Ambari DB. > EXPECTED RESULT: > Installation should happen from registered custom/local repo. > ACTUAL RESULT: > Public repo is used instead of registered custom/local repo. > WORKAROUND : > Modify repo_version table and fix repoID for repositoried added later. -- This message was sent by Atlassian JIRA (v6.3.4#6332)