这是indexloc提供的服务,不要输入任何密码
Skip to content

yum versionlock not respected, resulting in failure #451

@LorenzoSacchi

Description

@LorenzoSacchi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions