[
https://issues.apache.org/jira/browse/AMBARI-21609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16473709#comment-16473709
]
Hajime Osako commented on AMBARI-21609:
---------------------------------------
Had similar issue with Spacewalk, and needed to modify not only
[^AMBARI-21609.patch,] but also below:
/var/lib/ambari-server/resources/views/work/ADMIN_VIEW\{2.5.2.0}/scripts/main.js,
around line 8110:
{code:java}
ambari_managed_repositories:
(data.repository_versions[0].operating_systems.length == 0) ? false :
data.repository_versions[0].operating_systems[0].OperatingSystems.ambari_managed_repositories
!== false,
{code}
Also /usr/lib/ambari-server/web/javascripts/app.js
{code:java}
grep 'operating_systems.0.OperatingSystems.ambari_managed_repositories' -n
/usr/lib/ambari-server/web/javascripts/app.js -B 1
60300- //repo.use_redhat_satellite =
item.operating_systems[0].OperatingSystems.ambari_managed_repositories ===
false;
60301: repo.use_redhat_satellite = Em.get(item,
'operating_systems.0.OperatingSystems.ambari_managed_repositories') === false;
--
61595- //stack.use_redhat_satellite =
item.operating_systems[0].OperatingSystems.ambari_managed_repositories ===
false;
61596: stack.use_redhat_satellite = Em.get(item,
'operating_systems.0.OperatingSystems.ambari_managed_repositories') === false;
{code}
> Unable to view HDP or HDF stack version.
> ----------------------------------------
>
> Key: AMBARI-21609
> URL: https://issues.apache.org/jira/browse/AMBARI-21609
> Project: Ambari
> Issue Type: Bug
> Components: ambari-web
> Affects Versions: 2.4.2
> Reporter: Richard Zang
> Assignee: Richard Zang
> Priority: Major
> Fix For: 2.6.1
>
> Attachments: AMBARI-21609.patch
>
>
> The problem is that we get empty "operating_systems" section when the cluster
> is installed through installer AND using RedHat Satellite. Blueprint install
> or installation without using RedHat Satellite does not have this problem.
> The javascript console show an exception after a call to an API endpoint:
> app.js:56537 Uncaught TypeError: Cannot read property 'OperatingSystems' of
> undefined
> at Class.<anonymous>
> (https://mtl‐hdfmgmt11x.cnppd.lab:8443/javascripts/app.js:56537:64)
> at Array.forEach (native)
> at Class.map
> (https://mtl‐hdfmgmt11x.cnppd.lab:8443/javascripts/app.js:56491:18)
> at Class.newFunc as map
> (https://mtl‐hdfmgmt11x.cnppd.lab:8443/javascripts/vendor.js:2627:16)
> at Class.<anonymous>
> (https://mtl‐hdfmgmt11x.cnppd.lab:8443/javascripts/app.js:57996:33)
> at Array.forEach (native)
> at Class.map
> (https://mtl‐hdfmgmt11x.cnppd.lab:8443/javascripts/app.js:57966:18)
> at Class.newFunc as map
> (https://mtl‐hdfmgmt11x.cnppd.lab:8443/javascripts/vendor.js:2627:16)
> at https://mtl‐hdfmgmt11x.cnppd.lab:8443/javascripts/app.js:179795:18
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)