[ https://issues.apache.org/jira/browse/AMBARI-21611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16107965#comment-16107965 ]
Di Li commented on AMBARI-21611: -------------------------------- pushed to branch-2.5 as https://git-wip-us.apache.org/repos/asf?p=ambari.git;a=commit;h=85ba03b9152b51e85d8afc990638db7b1e1dabfc please reopen if this causes regressions. > Failed to install packages before EU on powerpc > ----------------------------------------------- > > Key: AMBARI-21611 > URL: https://issues.apache.org/jira/browse/AMBARI-21611 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Affects Versions: 2.5.2 > Reporter: Di Li > Assignee: Di Li > Priority: Critical > Fix For: 2.5.2 > > Attachments: AMBARI-21611.patch, ppc_install_packages_error_UI.png > > > Error message: Repositories for os type redhat-ppc7 are not defined. > This is because: > AmbariAgent reports os type (to be stored in the Hosts table) as > redhat-ppc7. "-ppc" is a hardcoded post fix attached to the os type in > os_check.py > """ > os_check.py (AMBARI-21054) > if _is_powerpc(): > operatingSystem += '-ppc' > """ > When Ambari server backend generates the {os, repo} map, it uses os > information from repo_versoin as the key . But later on uses os info from the > Hosts table to query the map, thus the mismatch (redhat-ppc7 vs redhat7). > The repo_version table repository column however only uses redhat6/7 and does > not distinguish ppc vs x86 ( nor it should )) -- This message was sent by Atlassian JIRA (v6.4.14#64029)