Skip to content

kvm: cloudstack-agent does not depend on lsscsi, which the multipath scripts need #14875

Todo

Description

@Damans227

problem

The KVM multipath scripts used for FibreChannel storage need lsscsi, but cloudstack-agent does not depend on it and it is not installed by default on Ubuntu.

connectVolume.sh uses lsscsi to find and clean up devices left behind by an earlier volume that used the same LUN number. Without it the command fails silently and the cleanup is skipped, so hosts behave differently depending on whether someone installed lsscsi by hand. In the lab where this was found, one host had it (installed while debugging) and the other did not.

versions

ACS 4.22.1.1, KVM on Ubuntu 24.04. Same on 4.22 and main.

The steps to reproduce the bug

On a fresh Ubuntu 24.04:

> command -v lsscsi || echo "lsscsi: not installed by default"
lsscsi: not installed by default
> apt-cache policy lsscsi
lsscsi:
  Installed: (none)
  Candidate: 0.32-1build1

It is in the base repos on EL9 too (lsscsi 0.32, baseos).

What to do about it?

Add lsscsi to the cloudstack-agent dependencies for deb and rpm, and have connectVolume.sh warn when it is missing.

Activity

  1. self-assigned this
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions