-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/59945/
-----------------------------------------------------------

Review request for Ambari, Attila Doroszlai, Balázs Bence Sári, and Sebastian 
Toader.


Bugs: AMBARI-21211
    https://issues.apache.org/jira/browse/AMBARI-21211


Repository: ambari


Description
-------

The osFamily property is not always set in the HostResponse therefore Ambari 
shows the following warning message during the confirm host step of the cluster 
creation.


Host (c6401.ambari.apache.org) is null OS type, but the repositories chosen in 
"Select Stack" step was 
debian7,redhat6,redhat7,suse11,suse12,ubuntu12,ubuntu14,ubuntu16. Selected 
repositories do not support this host OS type.


Diffs
-----

  ambari-server/src/main/java/org/apache/ambari/server/state/host/HostImpl.java 
04aba31 


Diff: https://reviews.apache.org/r/59945/diff/1/


Testing
-------

Checked if os_family is not null in the response of 

http://c6401.ambari.apache.org:8080/api/v1/hosts?fields=Hosts/total_mem,Hosts/cpu_count,Hosts/disk_info,Hosts/last_agent_env,Hosts/host_name,Hosts/os_type,Hosts/os_arch,Hosts/os_family,Hosts/ip&_=1497008289610

unittests: PENDING


Thanks,

Attila Magyar

Reply via email to