Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSAgent checking for updates in Centos creates yum_save_tx files #431

Open
aaburto opened this issue Jun 21, 2022 · 1 comment
Open

OSAgent checking for updates in Centos creates yum_save_tx files #431

aaburto opened this issue Jun 21, 2022 · 1 comment

Comments

@aaburto
Copy link

aaburto commented Jun 21, 2022

When the OSAgent checks for patches, it runs the following commands:

/usr/bin/python /usr/bin/yum check-update --assumeyes
/usr/bin/python /usr/bin/yum update --assumeno --cacheonly --color=never

The --assumeno flag makes the yum command exit with 1 and creates yum_save_tx files because of that:

Exiting on user command
Your transaction was saved, rerun it with:
 yum load-transaction /tmp/yum_save_tx

Since the OSAgent runs these commands every 10 minutes, the number of yum_save_tx files increases fast.

How to reproduce
Enable OSAgent on Centos. Check for these files in /tmp folder.

Environment
Currently tested in Centos.

Possible solution
The issue here is --assumeno flag. The following command would still have it check but not install anything. Or perhaps there is a way to prevent OSAgent to run this? Seems to be static from the code.

/usr/bin/python /usr/bin/yum update -y --cacheonly --color=never --setopt tsflags=test
@aaburto aaburto changed the title OSAgent checking for updates in CentosOS creates yum_save_tx files OSAgent checking for updates in Centos creates yum_save_tx files Jun 21, 2022
@mcornella
Copy link

Should be fixed by 92e9149.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants