Viraj Jasani created AMBARI-25219:
-------------------------------------

             Summary: Install packages failing because of incomplete 
transaction error
                 Key: AMBARI-25219
                 URL: https://issues.apache.org/jira/browse/AMBARI-25219
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
            Reporter: Viraj Jasani
            Assignee: Viraj Jasani


Based on default yum behaviour, even though incomplete transaction causes any 
delay in installing packages, yum internally performs cleanup and then proceeds 
with installation of on-going packages.

However, our code prevents default yum behavior and fails to perform 
installation of packages.
{code:java}
- - Identify the pending transactions with the command 'yum history list 
<packages failed>'
2018-10-05 13:47:09,975 - - Revert each pending transaction with the command 
'yum history undo'
- - Flush the transaction log with 'yum-complete-transaction --cleanup-only'
- 
Traceback (most recent call last):
  File 
"/var/lib/ambari-agent/cache/custom_actions/scripts/install_packages.py", line 
438, in <module>
    InstallPackages().execute()
  File 
"/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", 
line 381, in execute
    method(env)
  File 
"/var/lib/ambari-agent/cache/custom_actions/scripts/install_packages.py", line 
134, in actionexecute
    raise Fail("Failed to distribute repositories/install packages")
resource_management.core.exceptions.Fail: Failed to distribute 
repositories/install packages
{code}
 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to