ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jaimin Jetly" <>
Subject Review Request 37145: Add Host wizard: Failed to add host to cluster after browser refresh on hosts page
Date Wed, 05 Aug 2015 21:36:48 GMT

This is an automatically generated e-mail. To reply, visit:

Review request for Ambari, Srimanth Gunturi and Yusaku Sako.

Bugs: AMBARI-12653

Repository: ambari


# Issue browser Refresh on Hosts Page
# Click on Add Host link and launch add host wizard
# On Clicking deploy button on Review page, API to create service component for an existing
service component is triggered which fails with 409 error code. Thus user gets stuck at Review

*Expected Result:* Attempt to create service components should be done only if a service is
missing any service component.

#Cause of the issue:#
This happen because servicecomponents mapping in the service ember model was not getting updated
until serviceMetrics API call was loaded one time more after the initial load (This was a
bug in the sequence of how we do initial load). Also service metrics is not polled on Hosts
page. So refreshing on hosts page and then launching add host wizard does not map service
with service components and add host wizard tries to create all service components again


  ambari-web/app/controllers/global/cluster_controller.js b9d9711 
  ambari-web/app/mappers/components_state_mapper.js 64d00de 
  ambari-web/app/mappers/service_metrics_mapper.js 6f4531f 
  ambari-web/app/routes/add_host_routes.js 7bfe04c 
  ambari-web/app/utils/components.js 74f0a33 
  ambari-web/test/controllers/main/host/details_test.js 76d1835 



Tested tha patch manually on a cluster
Verified that all unit tests for ambari-web passess:

  6701 tests complete (12 seconds)
  94 tests pending


Jaimin Jetly

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message