Skip to content

Bug:NPU SetPackage activation not reliable #700

Description

@rameshraghupathy

Is it platform specific

generic

Importance or Severity

High

Description of the bug

After System.SetPackage, image may be installed and marked as next, but reboot may not reliably boot the intended target unless sonic-installer set-next-boot is explicitly called.
Fix used:

images = _get_images_from_sonic_installer_list(duthost)
if images.get("next") == cfg.to_version:
duthost.shell(f"sudo sonic-installer set-next-boot '{cfg.to_version}'")

Steps to Reproduce

Run full SmartSwitch DPU+NPU gNOI upgrade.

Actual Behavior and Expected Behavior

Actual:
Device can reboot into old image.

Expected:
After SetPackage, next boot target should be explicitly validated/enforced before reboot.

Relevant log output

Output of show version

Attach files (if any)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions