amarnath reddy pappu created AMBARI-23058:

             Summary: yum installation fails if there is any transaction files
                 Key: AMBARI-23058
             Project: Ambari
          Issue Type: Improvement
          Components: ambari-server
    Affects Versions: 2.6.1
            Reporter: amarnath reddy pappu

Starting from 2.6.1 Ambari started checking transaction files during the 
repo/service installation and it fails with below error.

2018-02-16 16:12:21,639 - File['/etc/yum.repos.d/ambari-hdp-104.repo'] 
2.  2018-02-16 16:12:21,639 - Writing 
File['/etc/yum.repos.d/ambari-hdp-104.repo'] because contents don't match 
3.  2018-02-16 16:12:21,639 - Yum non-completed transactions check failed, 
found 1 non-completed transaction(s): 
4.  2018-02-16 16:12:21,640 - [2015-03-12.17:13.28.disabled] Packages broken: 
hue-common-; Packages not-installed 
hue-hcatalog-, hue-, 
hue-pig-, hue-oozie-, 
5.  2018-02-16 16:12:21,640 - *** Incomplete Yum Transactions *** 
6.  2018-02-16 16:12:21,640 - 
7.  2018-02-16 16:12:21,640 - Ambari has detected that there are incomplete Yum 
transactions on this host. This will interfere with the installation process 
and must be resolved before continuing. 
8.  2018-02-16 16:12:21,640 - 
9.  2018-02-16 16:12:21,640 - - Identify the pending transactions with the 
command 'yum history list <packages failed>' 
10. 2018-02-16 16:12:21,640 - - Revert each pending transaction with the 
command 'yum history undo' 
11. 2018-02-16 16:12:21,640 - - Flush the transaction log with 
'yum-complete-transaction --cleanup-only' 
After cleaning up with 'yum-complete-transaction --cleanup-only' still Ambari 
could not able to proceed further with same error.

When user tried to do yum install it was going through successfully.

Finally had to delete /var/lib/yum/transaction* manually for ambari to proceed 
further with installation. these transactions files were very old and nothing 
to do with any latest installation but still ambari does not proceed further.

What is expected: If this validation was done intentionally then it should 
throw proper message guiding the user to remove those files.


This message was sent by Atlassian JIRA

Reply via email to