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

Review request for Ambari, Andrew Onischuk and Dmitro Lisnichenko.


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


Repository: ambari


Description
-------

Package zookeeper_2_2_0_0_1108.noarch creates a link
[root@c6406 ~]# ls -la /usr/hdp/current/
total 8
drwxr-xr-x 2 root root 4096 Oct 27 10:36 .
drwxr-xr-x 4 root root 4096 Oct 27 10:36 ..
lrwxrwxrwx 1 root root 31 Oct 27 10:36 zookeeper-client -> 
/usr/hdp/2.2.0.0-1108/zookeeper
It breaks any Ambari deployments, because Ambari checks if /usr/hdp/current/ 
already exists before running hdp-select
Solution:
run hdp-select after every install command, but use -r option. -r creates a 
symbolic link in /usr/hdp/current/ folder only if it's absent


Diffs
-----

  ambari-agent/src/test/python/resource_management/TestPackageResource.py 
a28eb2d 
  
ambari-common/src/main/python/resource_management/core/providers/package/apt.py 
19786dd 
  
ambari-common/src/main/python/resource_management/core/providers/package/yumrpm.py
 7b729f8 
  
ambari-common/src/main/python/resource_management/core/providers/package/zypper.py
 6577c47 
  
ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py
 081906f 

Diff: https://reviews.apache.org/r/27226/diff/


Testing
-------

manually tested on Ubuntu and CentOS6

+

----------------------------------------------------------------------
Ran 308 tests in 5.747s

OK

Process finished with exit code 0


Thanks,

Dmytro Sen

Reply via email to