[Ubuntu 22.04 LTS]The host OS becomes read-only after the 'rescan-scsi-bus.sh -r' command is executed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sg3-utils (Ubuntu) |
Fix Released
|
Undecided
|
Lucas Kanashiro | ||
Focal |
Invalid
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Lucas Kanashiro | ||
Lunar |
Fix Released
|
Undecided
|
Lucas Kanashiro | ||
Mantic |
Fix Released
|
Undecided
|
Lucas Kanashiro |
Bug Description
[Impact]
Users are not able to use iscsi devices after executing the 'rescan-
[Test Plan]
In a system with iscsi devices properly configured run the following:
# Make sure all block devices are in place and as expected
$ lsblk
# Execute the script
$ rescan-scsi-bus.sh -r
# Check again if all block devices are still there
$ lsblk
In the current buggy version of this script, you will not see the block devices representing the iscsi device after executing it. With a fixed version, all of them should still be there.
[Where problems could occur]
The fix basically adjust the way the output of sg_inq is parsed (the structure of the output changed and that's the issue), a problem that could be faced here is in the case the user has another version of the sg_inq command that differs from the expected output. Then the proposed fix could or couldn't work.
[Original description]
OS:Ubuntu 22.04 LTS
kernel:
host model:Dell PowerEdge R630
issue description:
After I mapped luns from array to my host, I ran 'rescan-scsi-bus.sh -r' to scan for luns, my host crashed and became read-only.After the KVM forcibly restarts the host, the host is restored to normal.
---
ProblemType: Bug
AlsaDevices:
total 0
crw-rw---- 1 root audio 116, 1 May 30 08:33 seq
crw-rw---- 1 root audio 116, 33 May 30 08:33 timer
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CRDA: N/A
DistroRelease: Ubuntu 22.04
InstallationDate: Installed on 2022-05-26 (4 days ago)
InstallationMedia: Ubuntu-Server 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220421)
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
Package: linux (not installed)
PciMultimedia:
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcFB: 0 mgag200drmfb
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware 20220329.
RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
Tags: jammy uec-images
Uname: Linux 5.15.0-33-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: N/A
_MarkForUpload: True
dmi.bios.date: 05/14/2021
dmi.bios.release: 2.13
dmi.bios.version: 2.13.0
dmi.board.name: 02C2CP
dmi.board.version: A01
dmi.chassis.type: 23
dmi.modalias: dmi:bvn:
dmi.product.sku: SKU=NotProvided
Related branches
- git-ubuntu bot: Approve
- Andreas Hasenack: Approve
- Canonical Server Reporter: Pending requested
-
Diff: 64 lines (+44/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/0002-Fix-crash-with-rescan-scsi-bus.sh-r.patch (+36/-0)
debian/patches/series (+1/-0)
- git-ubuntu bot: Approve
- Andreas Hasenack: Approve
- Canonical Server Reporter: Pending requested
-
Diff: 64 lines (+44/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/0002-Fix-crash-with-rescan-scsi-bus.sh-r.patch (+36/-0)
debian/patches/series (+1/-0)
- git-ubuntu bot: Approve
- Andreas Hasenack: Approve
- Canonical Server Reporter: Pending requested
-
Diff: 64 lines (+44/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/0002-Fix-crash-with-rescan-scsi-bus.sh-r.patch (+36/-0)
debian/patches/series (+1/-0)
- Andreas Hasenack: Disapprove
- Canonical Server Reporter: Pending requested
-
Diff: 59 lines (+38/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/0002-Fix-crash-with-rescan-scsi-bus.sh-r.patch (+30/-0)
debian/patches/series (+1/-0)
tags: | added: server-todo |
Changed in sg3-utils (Ubuntu): | |
assignee: | nobody → Lucas Kanashiro (lucaskanashiro) |
description: | updated |
Changed in sg3-utils (Ubuntu Focal): | |
assignee: | nobody → Lucas Kanashiro (lucaskanashiro) |
Changed in sg3-utils (Ubuntu Jammy): | |
assignee: | nobody → Lucas Kanashiro (lucaskanashiro) |
Changed in sg3-utils (Ubuntu): | |
assignee: | Lucas Kanashiro (lucaskanashiro) → nobody |
status: | Confirmed → Invalid |
Changed in sg3-utils (Ubuntu Focal): | |
status: | New → In Progress |
Changed in sg3-utils (Ubuntu Jammy): | |
status: | New → In Progress |
description: | updated |
Changed in sg3-utils (Ubuntu Focal): | |
status: | In Progress → Invalid |
Changed in sg3-utils (Ubuntu Mantic): | |
status: | Invalid → New |
Changed in sg3-utils (Ubuntu Focal): | |
assignee: | Lucas Kanashiro (lucaskanashiro) → nobody |
Changed in sg3-utils (Ubuntu Lunar): | |
status: | New → In Progress |
Changed in sg3-utils (Ubuntu Mantic): | |
status: | New → In Progress |
Changed in sg3-utils (Ubuntu Lunar): | |
assignee: | nobody → Lucas Kanashiro (lucaskanashiro) |
Changed in sg3-utils (Ubuntu Mantic): | |
assignee: | nobody → Lucas Kanashiro (lucaskanashiro) |
Changed in sg3-utils (Ubuntu Jammy): | |
status: | In Progress → Incomplete |
apport information