Skip to content

Fix installation packages issue on SUSE#4403

Closed
LiliDeng wants to merge 1 commit intomainfrom
lilideng/fix_4_1_001
Closed

Fix installation packages issue on SUSE#4403
LiliDeng wants to merge 1 commit intomainfrom
lilideng/fix_4_1_001

Conversation

@LiliDeng
Copy link
Copy Markdown
Collaborator

@LiliDeng LiliDeng commented Apr 1, 2026

Description

Fix for below exception seen in SUSE during installing packages
error: can't create transaction lock on /usr/lib/sysimage/rpm/.rpm.lock (Resource temporarily unavailable)

Related Issue

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Refactoring
  • Documentation update

Checklist

  • Description is filled in above
  • No credentials, secrets, or internal details are included
  • Peer review requested (if not, add required peer reviewers after raising PR)
  • Tests executed and results posted below

Test Validation

Key Test Cases:

Run P2 test cases

Impacted LISA Features:

Install packges

Tested Azure Marketplace Images:

SUSE sles-15-sp6 gen2 latest

Test Results

Image VM Size Result
SUSE sles-15-sp6 gen2 latest PASSED

Copilot AI review requested due to automatic review settings April 1, 2026 03:49
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a retry wrapper around zypper operations on SUSE/SLES to mitigate transient RPM database lock contention during package refresh/install/uninstall/update flows.

Changes:

  • Added RPM lock detection via regex and a zypper retry loop with delay.
  • Routed SUSE zypper refresh, install, uninstall, and update paths through the new retry helper.
  • Centralized RPM lock handling into reusable helper methods on Suse.

Comment thread lisa/operating_system.py
Comment thread lisa/operating_system.py
@LiliDeng LiliDeng changed the title Fix installation issue on SUSE Fix installation packages issue on SUSE Apr 1, 2026
@LiliDeng
Copy link
Copy Markdown
Collaborator Author

LiliDeng commented Apr 2, 2026

Fix in #4400, so close it.

@LiliDeng LiliDeng closed this Apr 2, 2026
@LiliDeng LiliDeng deleted the lilideng/fix_4_1_001 branch April 2, 2026 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants