Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Community Articles

Find and share helpful community-sourced technical articles.
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!
Labels (1)
avatar

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

85612-screen-shot-2018-08-14-at-50319-pm.png

Root cause : https://issues.apache.org/jira/browse/AMBARI-22952

Solution :

1) Use javascript Workaround

Go to Ambari-Server node,

  • go to folder(for ambari-2.6.2.2 folder name will be ADMIN_VIEW\{2.6.2.2\} :
  cd /var/lib/ambari-server/resources/views/work/ADMIN_VIEW{2.6.2.0}/scripts 
  • Back up the current main.js
  cp main.js /tmp/main.js 
  • vi main.js
    find the line :
$scope.isSaveButtonDisabled = function() { 

Change this functions return type from

85613-screen-shot-2018-08-14-at-54432-pm.png

return !(enabled && $scope.validBaseUrlsExist());

to

248701_new.png

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.

3,798 Views
Comments

Thanks, just what I needed ... Ambari has been constantly having problems with this for last few releases, every time it's something different.

@Fraser Campbell,

Glad that it helped you :). Please vote for this article if you liked it.