[
https://issues.apache.org/jira/browse/AMBARI-25064?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Akhil S Naik reassigned AMBARI-25064:
-------------------------------------
Assignee: Akhil S Naik
> Python Script Error while Trying to remove old HDP stack versions via curl
> --------------------------------------------------------------------------
>
> Key: AMBARI-25064
> URL: https://issues.apache.org/jira/browse/AMBARI-25064
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.7.3
> Reporter: Akhil S Naik
> Assignee: Akhil S Naik
> Priority: Major
>
> When i am trying to use the curl mentioned in JIRA :
> https://issues.apache.org/jira/browse/AMBARI-18435
> I am facing below exception . I am using ambari-2.7.3 version
> {code:java}
> Traceback (most recent call last):
> File
> "/var/lib/ambari-agent/cache/custom_actions/scripts/remove_previous_stacks.py",
> line 119, in <module>
> RemovePreviousStacks().execute()
> File
> "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py",
> line 352, in execute
> method(env)
> File
> "/var/lib/ambari-agent/cache/custom_actions/scripts/remove_previous_stacks.py",
> line 49, in actionexecute
> self.remove_stack_version(structured_output, low_version)
> File
> "/var/lib/ambari-agent/cache/custom_actions/scripts/remove_previous_stacks.py",
> line 54, in remove_stack_version
> packages_to_remove = self.get_packages_to_remove(version)
> File
> "/var/lib/ambari-agent/cache/custom_actions/scripts/remove_previous_stacks.py",
> line 77, in get_packages_to_remove
> all_installed_packages = self.pkg_provider.all_installed_packages()
> AttributeError: 'YumManager' object has no attribute 'all_installed_packages'
> {code}
> Solution/workaround :
> https://community.hortonworks.com/articles/230893/remove-old-stack-versions-script-doesnt-work-in-am.html
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)