Damans227 opened a new pull request, #14876:
URL: https://github.com/apache/cloudstack/pull/14876
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:
**Before:** fresh Ubuntu 24.04, no lsscsi and no warning.
> command -v lsscsi || echo "lsscsi: not installed by default"
lsscsi: not installed by default
The package is available on both distros:
ubuntu 24.04 lsscsi Candidate: 0.32-1build1
rocky 9 lsscsi 0.32 baseos
**After:** connectVolume.sh run on a host without lsscsi now says so:
Looking for 624a937049646854b0ae410b0001171b on lun 2
lsscsi is not installed, devices left behind by an earlier use of lun 2
will not be cleaned up
syslog: CS_SCSI_VOL_FIND 624a937049646854b0ae410b0001171b lsscsi is not
installed, skipping cleanup of devices left on lun 2
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]