fix(autopatch): Updated the nvidia PEM replace action find string to match the new spec content (which now includes SOURCE107/nvidiajets #7

Merged
alukoshko merged 1 commits from agent-fix/a10-beta-20260414-210256 into a10-beta 2026-04-14 21:05:08 +00:00
Owner

Automated fix by autopatch agent.

Summary: Updated the nvidia PEM replace action find string to match the new spec content (which now includes SOURCE107/nvidiajetsonsoc and SOURCE108/nvidiabfdpu lines), and updated the source number for almalinuxnvidia1.x509 from 107 to 109 to avoid collision.

Root cause

The c10-beta spec was updated upstream to add two more NVIDIA certificate sources (SOURCE107: nvidiajetsonsoc.x509, SOURCE108: nvidiabfdpu.x509) between the existing SOURCE102 line and the cat command. The a10-beta config's find string only matched the old 2-line form (SOURCE102 + cat), so it failed with ActionNotAppliedError. The fix was adapted from the a10s reference branch: update the find string to include the new SOURCE107 and SOURCE108 lines, update the replace string to also add SOURCE109 (almalinuxnvidia.pem, our AlmaLinux addition), and renumber almalinuxnvidia1.x509 from source 107 to 109 to avoid conflicting with the now-occupied SOURCE107 slot.

Original error

Type: ActionNotAppliedError

Traceback (most recent call last):
  File "/root/autopatch-tool/src/webserv.py", line 77, in debrand_packages
    result = apply_modifications(
  File "/root/autopatch-tool/src/debranding.py", line 111, in apply_modifications
    config.apply_actions(rpms_working_dir + f"/{package}")
  File "/root/autopatch-tool/src/actions_handler.py", line 925, in apply_actions
    action.execute(Path(package_path))
  File "/root/autopatch-tool/src/actions_handler.py", line 472, in execute
    process_lines(
  File "/root/autopatch-tool/src/actions_handler.py", line 233, in process_lines
    raise ActionNotAppliedError(
actions_handler.ActionNotAppliedError: Action 'ReplaceAction' was not applied successfully: No changes made for '['openssl x509 -inform der -in %{SOURCE102} -out nvidiagpuoot001.pem', 'cat rheldup3.pem rhelkpatch1.pem nvidiagpuoot001.pem >> ../certs/rhel.pem']' in /root/autopatch-tool/src/rpms-namespace/kernel/kernel.spec

Package: kernel | Webhook branch: c10-beta

Automated fix by autopatch agent. **Summary:** Updated the nvidia PEM replace action find string to match the new spec content (which now includes SOURCE107/nvidiajetsonsoc and SOURCE108/nvidiabfdpu lines), and updated the source number for almalinuxnvidia1.x509 from 107 to 109 to avoid collision. ### Root cause The c10-beta spec was updated upstream to add two more NVIDIA certificate sources (SOURCE107: nvidiajetsonsoc.x509, SOURCE108: nvidiabfdpu.x509) between the existing SOURCE102 line and the cat command. The a10-beta config's find string only matched the old 2-line form (SOURCE102 + cat), so it failed with ActionNotAppliedError. The fix was adapted from the a10s reference branch: update the find string to include the new SOURCE107 and SOURCE108 lines, update the replace string to also add SOURCE109 (almalinuxnvidia.pem, our AlmaLinux addition), and renumber almalinuxnvidia1.x509 from source 107 to 109 to avoid conflicting with the now-occupied SOURCE107 slot. ### Original error **Type:** `ActionNotAppliedError` ``` Traceback (most recent call last): File "/root/autopatch-tool/src/webserv.py", line 77, in debrand_packages result = apply_modifications( File "/root/autopatch-tool/src/debranding.py", line 111, in apply_modifications config.apply_actions(rpms_working_dir + f"/{package}") File "/root/autopatch-tool/src/actions_handler.py", line 925, in apply_actions action.execute(Path(package_path)) File "/root/autopatch-tool/src/actions_handler.py", line 472, in execute process_lines( File "/root/autopatch-tool/src/actions_handler.py", line 233, in process_lines raise ActionNotAppliedError( actions_handler.ActionNotAppliedError: Action 'ReplaceAction' was not applied successfully: No changes made for '['openssl x509 -inform der -in %{SOURCE102} -out nvidiagpuoot001.pem', 'cat rheldup3.pem rhelkpatch1.pem nvidiagpuoot001.pem >> ../certs/rhel.pem']' in /root/autopatch-tool/src/rpms-namespace/kernel/kernel.spec ``` --- Package: `kernel` | Webhook branch: `c10-beta`
eabdullin added 1 commit 2026-04-14 21:02:57 +00:00
Updated the nvidia PEM replace action find string to match the new spec content (which now includes SOURCE107/nvidiajetsonsoc and SOURCE108/nvidiabfdpu lines), and updated the source number for almali
alukoshko merged commit f041433e63 into a10-beta 2026-04-14 21:05:08 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: autopatch/kernel#7
No description provided.