When the OSpackages.sh script attempts to reinstall the yum RPM, the unpacking of the RPM fails with an error like:
Installing : yum-4.7.0-19.el8.noarch 223/231Error unpacking rpm package yum-4.7.0-19.el8.noarch
Installing : python3-syspurpose-1.28.40-1.el8_9.x86_64 224/231
error: unpacking of archive failed on file /etc/yum/pluginconf.d;65df690f: cpio: File from package already exists as a directory in system
error: yum-4.7.0-19.el8.noarch: install failed
Severity
Completely Broken (No work-around evident)
Expected behavior
OSpackages.sh script executes normally as it did prior to January 2024 and as it does in AWS
Fix Suggestions
Add logic to the OSpackages.sh script to conditionally delete the /etc/yum/pluginconf.d directory on Azure-based systems. Inserting logic similar to:
if [[ $( dmidecode --string chassis-asset-tag ) == "7783-7084-3265-9085-8269-3286-77" ]] &&
[[ -d /etc/yum/pluginconf.d ]]
then
err_exit "Deleting /etc/yum/pluginconf.d on an Azure build-host..." NONE
rm -rf /etc/yum/pluginconf.d || err_exit "Failed deleting /etc/yum/pluginconf.d. Aborting... " 1
err_exit "Successfully deleted /etc/yum/pluginconf.d" NONE
fi
Before the execution of the yum reinstall command appears to work past the issue when the OSpackages.sh script is manually-executed.
Describe the bug
When the
OSpackages.sh
script attempts to reinstall theyum
RPM, the unpacking of the RPM fails with an error like:Severity
Completely Broken (No work-around evident)
Expected behavior
OSpackages.sh
script executes normally as it did prior to January 2024 and as it does in AWSFix Suggestions
Add logic to the
OSpackages.sh
script to conditionally delete the/etc/yum/pluginconf.d
directory on Azure-based systems. Inserting logic similar to:Before the execution of the
yum reinstall
command appears to work past the issue when theOSpackages.sh
script is manually-executed.Notifying @nortiz34 for awareness