Skip to content

add lsscsi to the kvm agent dependencies - #14876

Open
Damans227 wants to merge 1 commit into
apache:4.22from
Damans227:kvm-agent-lsscsi-dependency
Open

Damans227 wants to merge 1 commit into
apache:4.22from
Damans227:kvm-agent-lsscsi-dependency

Conversation

@Damans227

@Damans227 Damans227 commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #14875

connectVolume.sh needs lsscsi to clean up devices left behind by an earlier volume on the same LUN number, but the agent package does not pull it in and Ubuntu does not install it by default. Without it the cleanup is skipped silently. This adds lsscsi to the cloudstack-agent dependencies and makes connectVolume.sh log a warning when it is missing.

  • debian/control: cloudstack-agent depends on lsscsi
  • el8 (also used by el9 and el10) and suse15 specs: agent requires lsscsi
  • connectVolume.sh warns in the output and in syslog when lsscsi is missing

Test:

Tested on a FlashArray lab with CloudStack 4.22.1.1 on KVM (Ubuntu 24.04), host b08-36.

The 4.22.1.1 agent package does not depend on lsscsi. On this host it had to be installed by hand.

package depends

For the test lsscsi was moved out of the way, a FlashArray volume was attached to a running VM on the host, then lsscsi was put back.

Before: stock connectVolume.sh. The attach works but the cleanup is skipped and syslog says nothing about it.

before

After: connectVolume.sh from this PR. Syslog now says lsscsi is missing and the cleanup was skipped. The host was put back to the stock script and lsscsi after.

after

@codecov

codecov Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 18.33%. Comparing base (6489766) to head (5eead1e).

Additional details and impacted files
@@             Coverage Diff              @@
##               4.22   #14876      +/-   ##
============================================
- Coverage     18.34%   18.33%   -0.01%     
+ Complexity    16669    16664       -5     
============================================
  Files          5939     5939              
  Lines        537819   537819              
  Branches      65941    65941              
============================================
- Hits          98638    98628      -10     
- Misses       427960   427972      +12     
+ Partials      11221    11219       -2     
Flag Coverage Δ
uitests 4.08% <ø> (ø)
unittests 19.43% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant