[
https://issues.apache.org/jira/browse/AMBARI-25057?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated AMBARI-25057:
------------------------------------
Labels: patch pull-request-available (was: patch)
> Script to delete an old HDP stack version - BUG
> -----------------------------------------------
>
> Key: AMBARI-25057
> URL: https://issues.apache.org/jira/browse/AMBARI-25057
> Project: Ambari
> Issue Type: Bug
> Components: ambari-sever
> Affects Versions: trunk, 2.6.2
> Reporter: Sankar Mukherjee
> Assignee: Akhil S Naik
> Priority: Minor
> Labels: patch, pull-request-available
>
> As per the Jira https://issues.apache.org/jira/browse/AMBARI-18435 an API
> call to remove older versions was developed but its having issue.
>
> ambari-server/src/main/resources/custom_actions/scripts/remove_previous_stacks.py
> [line: 67]
> Execute(('rm', '-f', stack_root + version), sudo=True)
> It will not delete the directory as there is no such directory, it should be:
> Execute(('rm', '-f', stack_root *++'/'++* version), sudo=True)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)