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

yum versionlock not respected, resulting in failure #451

Open
LorenzoSacchi opened this issue Dec 15, 2022 · 1 comment
Open

yum versionlock not respected, resulting in failure #451

LorenzoSacchi opened this issue Dec 15, 2022 · 1 comment

Comments

@LorenzoSacchi
Copy link

If you configure versionlock in yum, the daemon does not respect it, resulting in errors like the following:

OSConfigAgent[16306]: 2022-12-15T14:07:40.5867Z OSConfigAgent Error inventory.go:55: packages.GetPackageUpdates() error: error getting yum updates: error checking for yum updates, non-zero error code from 'yum update' but no packages parsed, stdout: 
"Loaded plugins: versionlock
Excluding 1 update due to versionlock (use \"yum versionlock status\" to show it)
Resolving Dependencies
--> Running transaction check
---> Package dse.noarch 0:6.0.13-1 will be updated
    --> Processing Dependency: dse = 6.0.13 for package: dse-full-6.0.13-1.noarch
---> Package dse-libcassandra.noarch 0:6.0.13-1 will be updated
    --> Processing Dependency: dse-libcassandra = 6.0.13 for package: dse-full-6.0.13-1.noarch
---> Package dse-libgraph.noarch 0:6.0.13-1 will be updated
    --> Processing Dependency: dse-libgraph = 6.0.13 for package: dse-full-6.0.13-1.noarch
---> Package dse-libhadoop2-client.noarch 0:6.0.13-1 will be updated
    --> Processing Dependency: dse-libhadoop2-client = 6.0.13 for package: dse-full-6.0.13-1.noarch
---> Package dse-liblog4j.noarch 0:6.0.13-1 will be updated
    --> Processing Dependency: dse-liblog4j = 6.0.13 for package: dse-full-6.0.13-1.noarch
---> Package dse-libsolr.noarch 0:6.0.13-1 will be updated
    --> Processing Dependency: dse-libsolr = 6.0.13 for package: dse-full-6.0.13-1.noarch
---> Package dse-libspark.noarch 0:6.0.13-1 will be updated
    --> Processing Dependency: dse-libspark = 6.0.13 for package: dse-full-6.0.13-1.noarch
---> Package dse-libtomcat.noarch 0:6.0.13-1 will be updated
    --> Processing Dependency: dse-libtomcat = 6.0.13 for package: dse-full-6.0.13-1.noarch
---> Package geoipupdate.x86_64 0:2.5.0-1.el7 will be installed"
    --> Finished Dependency Resolution
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

This is the output of the systemd service.
As a result any patching job fails.
The service should automatically skip the packages in versionlock, like:

# yum versionlock status 
Loaded plugins: versionlock
0:dse-full-6.0.11-1.*
versionlock list done

# yum  update --exclude dse
@LorenzoSacchi
Copy link
Author

if you run yum update from the cli, you get the same error
the error disappear if you run yum with the --exclude=dse*

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

1 participant