You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Madhuvanthi Radhakrishnan (JIRA)" <ji...@apache.org> on 2017/03/20 22:01:42 UTC

[jira] [Updated] (AMBARI-20512) While generating hash for ambari-server to fill agent cache, all the symlinks should be traversed too.

     [ https://issues.apache.org/jira/browse/AMBARI-20512?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Madhuvanthi Radhakrishnan updated AMBARI-20512:
-----------------------------------------------
    Description: 
the archive.zip and .hash is not getting generated on the server side when the package folder is under
stacks/<stack-name>/<stack-version>/services/<service-name>/package
instead of common-services/<service-name>/<service-version>/package
On closer look, the issue was that when the directories are being traversed to look for hooks and package folders that need to be hashed/archived for having it in the agent cache, those directories that were symlinks were being skipped.
Fix is to include them.

  was:
While testing a new management pack, it was found that when the component scripts come from the stack definition instead of the common-services, it was not getting copied over to the agent cache during install.
On closer look, the issue was that when the directories are being traversed to look for hooks and package folders that need to be hashed/archived for having it in the agent cache, those directories that were symlinks were being skipped.
Fix is to include them.


> While generating hash for ambari-server to fill agent cache, all the symlinks should be traversed too.
> ------------------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-20512
>                 URL: https://issues.apache.org/jira/browse/AMBARI-20512
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>            Reporter: Madhuvanthi Radhakrishnan
>            Assignee: Madhuvanthi Radhakrishnan
>             Fix For: 2.5.0
>
>
> the archive.zip and .hash is not getting generated on the server side when the package folder is under
> stacks/<stack-name>/<stack-version>/services/<service-name>/package
> instead of common-services/<service-name>/<service-version>/package
> On closer look, the issue was that when the directories are being traversed to look for hooks and package folders that need to be hashed/archived for having it in the agent cache, those directories that were symlinks were being skipped.
> Fix is to include them.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)