Created on 08-14-2018 12:21 PM - edited on 02-14-2020 02:04 AM by VidyaSargur
Issue Description :
Unable to Register new Version in Ambari-2.6.2.x versions using Redhat Satellite/spacewalk, The Save button is disabled or grayed out
the Javascript logic of validating the URL fails if the Redhat satellite/spacewalk is ticked and save button remains disabled
Root cause : https://issues.apache.org/jira/browse/AMBARI-22952
Solution :
1) Use javascript Workaround
Go to Ambari-Server node,
cd /var/lib/ambari-server/resources/views/work/ADMIN_VIEW{2.6.2.0}/scripts
cp main.js /tmp/main.js
$scope.isSaveButtonDisabled = function() {
Change this functions return type from
return !(enabled && $scope.validBaseUrlsExist());
to
return !($scope.useRedhatSatellite || (enabled && $scope.validBaseUrlsExist()));
Save it and Try again after Hard Reloading the Browser.
There is an another option of adding the same via CURL command , which is the tougher method. i will Explain that method in my next article.
Created on 09-07-2018 04:08 PM
Thanks, just what I needed ... Ambari has been constantly having problems with this for last few releases, every time it's something different.
Created on 09-07-2018 04:58 PM
@Fraser Campbell,
Glad that it helped you :). Please vote for this article if you liked it.