APAR status
Closed as program error.
Error description
During upgrades if previous subsystem repo sources lists exist in /etc/apt/sources.list.d/, then upgrades will be blocked as apt will not be able to find the source files on disk for these older versions. These files would need to be manually cleaned up and the appliance-manager would need to be restarted to work around the issue. Jul 06 20:35:34 apmttv0002 apic[2766159]: Reading package lists... Jul 06 20:35:34 apmttv0002 apic[2766159]: E: Failed to fetch fi le:/var/lib/apiconnect/upgrades/repo-management-10.0.1.11-eus-3 .5.1/dists/focal/apiconnect/binary-amd64/Packages File not found 10.0.1.11-eus-3.5.1/dists/focal/apiconnect/binary-amd64/Packages Jul 06 20:35:34 apmttv0002 apic[2766159]: E: Failed to fetch fi le:/var/lib/apiconnect/upgrades/repo-management-10.0.1.8-eus-3. 3.1/dists/focal/apiconnect/binary-amd64/Packages File not found 10.0.1.8-eus-3.3.1/dists/focal/apiconnect/binary-amd64/Packages( Jul 06 20:35:34 apmttv0002 apic[2766159]: E: Failed to fetch fi le:/var/lib/apiconnect/upgrades/repo-management-10.0.1.9-eus-3. 4.0/dists/focal/apiconnect/binary-amd64/Packages File not found 10.0.1.9-eus-3.4.0/dists/focal/apiconnect/binary-amd64/Packages( Jul 06 20:35:34 apmttv0002 apic[2766159]: E: Some index files failed to download. They have been ignored, or old ones used instead. Jul 06 20:35:34 apmttv0002 apic[2766134]: time="2023-07-06T20:35:34Z" level=debug msg="upgradeManager.addSource running apt-get update error [exit status 100]" Jul 06 20:35:34 apmttv0002 apic[2766134]: time="2023-07-06T20:35:34Z" level=error msg="upgradeManager.removeAptSource Removing /etc/apt/sources.l ist.d/repo-management-10.0.1.12-eus-3.6.0.list" Jul 06 20:35:34 apmttv0002 apic[2766134]: time="2023-07-06T20:35:34Z" level=debug msg="upgrade-manager.go tryApplianceUpgrade err on applying repo-management-10.0.1.12-eus-3.6.0 Error running apt-get update in addSource: exit status 100" Above is just example for that version upgrade. It might happen to other 10.0.5.x version too
Local fix
Can you please try: Navigate to the directory /etc/apt/sources.list.d This directory will hold a number of files that are named like, for example: repo-management-10.0.5.3-4.6.0.list There will be similar older files that will reference versions pre 10.0.5.4. Please record the output from the command: ls /etc/apt/sources.list.d All of the older files (pre 10.0.5.4) should be moved out of that directory into /tmp Once that directory has only V10.0.5.4, run the followign command: systemctl restart kubelet; systemctl restart containerd; systemctl restart appliance-manager If it still doesnt get to the expected state, run the upgrade again with --skip-health-check
Problem summary
During upgrades, if previous subsystem repo sources lists exist in /etc/apt/sources.list.d/, then upgrades will be blocked as apt cannot find the source files on disk for these older versions. These files would need to be manually cleaned up and the appliance-manager would need to be restarted to work around the issue.
Problem conclusion
Fix has been put into apic clean-upgrade-files to clean up all repo sources lists regardless if they have a corresponding folder under /var/lib/apiconnect/upgrades. This fix will be for upgrades with v10.0.5.5, v10.0.1.15, and v10.0.7.0 and HIGHER as SOURCE versions.
Temporary fix
Comments
APAR Information
APAR number
LI83051
Reported component name
API CONNECT ENT
Reported component ID
5725Z2201
Reported release
A0X
Status
CLOSED PER
PE
NoPE
HIPER
YesHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2023-09-06
Closed date
2024-01-09
Last modified date
2024-01-09
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
API CONNECT ENT
Fixed component ID
5725Z2201
Applicable component levels
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSMNED","label":"IBM API Connect"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"A0X","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
10 January 2024