Project

General

Profile

Bug #53433

Fix starting VM with null disk sectorsize

Added by Bug Clerk almost 2 years ago. Updated almost 2 years ago.

Status:
Done
Priority:
No priority
Assignee:
William Grzybowski
Category:
Middleware
Target version:
Seen in:
Severity:
Medium
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

[2018/10/22 16:36:45] (WARNING) application.call_method():189 - Exception while calling vm.start(*[6])
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 161, in call_method
    result = await self.middleware.call_method(self, message)
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1043, in call_method
    return await self._call(message['method'], serviceobj, methodobj, params, app=app, io_thread=False)
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 983, in _call
    return await methodobj(*args)
  File "/usr/local/lib/python3.6/site-packages/middlewared/schema.py", line 664, in nf
    return await f(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/vm.py", line 1132, in start
    await self._manager.start(vm)
  File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/vm.py", line 61, in start
    list(done)[0].result()
  File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/vm.py", line 137, in run
    disk_sector_size = int(device['attributes'].get('sectorsize', 0))
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

https://sentry.ixsystems.com/ixsystems/freenas-middleware/issues/17369/


Related issues

Copied from FreeNAS - Bug #53215: Fix starting VM with null disk sectorsizeDone

History

#1 Updated by Bug Clerk almost 2 years ago

  • Copied from Bug #53215: Fix starting VM with null disk sectorsize added

#2 Updated by Bug Clerk almost 2 years ago

  • Target version changed from Master - FreeNAS Nightlies to 11.2-RC2

#3 Updated by Bug Clerk almost 2 years ago

  • Status changed from Unscreened to In Progress

#4 Updated by Bug Clerk almost 2 years ago

  • Status changed from In Progress to Ready for Testing

#5 Updated by William Grzybowski almost 2 years ago

  • Status changed from Ready for Testing to Done
  • Needs QA changed from Yes to No

Cant be easily tested.

#6 Updated by Dru Lavigne almost 2 years ago

  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

Also available in: Atom PDF