Di Li created AMBARI-21611:
------------------------------

             Summary: PowerPC failed to install packages before EU
                 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


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)

Reply via email to