Project

General

Profile

Bug #33237

Fix serial_from_device for virtio-block disks

Added by William Grzybowski about 1 year ago. Updated about 1 year ago.

Status:
Done
Priority:
No priority
Assignee:
Vladimir Vinogradenko
Category:
Middleware
Target version:
Severity:
Med High
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 152, in call_method
resu
return self.gen.send(None)
File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 934, in call
return await methodobj(*args)
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in next
return self.gen.send(None)
File "/usr/local/lib/python3.6/site-packages/middlewared/schema.py", line 611, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in next
return self.gen.send(None)
File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/disk.py", line 394, in sync_all
serial = disk['disk_serial'] = await self.serial_from_device(name) or ''
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in next
return self.gen.send(None)
File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/disk.py", line 228, in serial_from_device
args = await self.
_get_smartctl_args(name)
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in next
return self.gen.send(None)
File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/disk.py", line 208, in __get_smartctl_args
raise CallError(f"Camcontrol did not report device {devname}")
middlewared.service_exception.CallError: [EFAULT] Camcontrol did not report device vtbd0

Associated revisions

Revision 4cc59d02 (diff)
Added by Vladimir Vinogradenko about 1 year ago

fix(disk): Fix serial_from_device for virtio-block disks

Ticket: #33237

History

#1 Updated by Vladimir Vinogradenko about 1 year ago

  • Status changed from Unscreened to Ready for Testing

#2 Updated by Dru Lavigne about 1 year ago

  • Subject changed from Sync disk broken with virtio-block disks to Fix serial_from_device for virtio-block disks

#3 Updated by William Grzybowski about 1 year ago

  • Needs QA changed from Yes to No

#4 Updated by Dru Lavigne about 1 year ago

  • Status changed from Ready for Testing to Done

Also available in: Atom PDF