ambari
ambari copied to clipboard
[AMBARI-25585] Fix problems in the remote cluster management
What changes were proposed in this pull request?
The functions related to remote cluster have the following problems:
- When adding a remote cluster, the Ambari URL input prompt is misleading:'c1' has no meaning
- If we failed to add a new cluster, JS exception caused the page to fail to pop up an error message
- After successfully adding a new cluster, the service column in the table shows empty, but the ambari.remoteambariclusterservice table actual has servcie data.
- If you update the existing remote cluster (even if you just delete 1 character and then add it again and then click the save button), we checked the database table and found that the services corresponding to the cluster in the ambari.remoteambariclusterservice table had added completely duplicate data,
I try to fix these 4 problems that have found.
How was this patch tested?
manual tests
-
changed the Ambari URL input prompt.

-
If we failed to add a new cluster, ensure the page can display the failed reason.

3-4. After successfully adding a new remote cluster or updating an existing remote cluster, the page shows ok,
