Project

General

Profile

Bug #53215

Fix starting VM with null disk sectorsize

Added by William Grzybowski almost 3 years ago. Updated almost 3 years ago.

Status:
Done
Priority:
No priority
Assignee:
William Grzybowski
Category:
Middleware
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 to FreeNAS - Bug #53433: Fix starting VM with null disk sectorsizeDone

Associated revisions

Revision 1aa90882 (diff)
Added by William Grzybowski almost 3 years ago

fix(middlewared/vm): handle null sectorsize Ticket: #53215

Revision 39dabeb4 (diff)
Added by William Grzybowski almost 3 years ago

fix(middlewared/vm): handle null sectorsize Ticket: #53215

Revision 3a94846e (diff)
Added by William Grzybowski almost 3 years ago

fix(middlewared/vm): handle null sectorsize Ticket: #53215 (cherry picked from commit 1aa908824f883ba74fb74176b5a913be37c30111)

History

#1 Updated by Bug Clerk almost 3 years ago

  • Status changed from Screened to In Progress

#2 Updated by Bug Clerk almost 3 years ago

  • Status changed from In Progress to Ready for Testing

#3 Updated by Bug Clerk almost 3 years ago

  • Target version changed from 11.2-RC2 to 11.3

#4 Updated by Bug Clerk almost 3 years ago

  • Copied to Bug #53433: Fix starting VM with null disk sectorsize added

#5 Updated by William Grzybowski almost 3 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 3 years ago

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

#7 Updated by Dru Lavigne almost 3 years ago

  • Target version changed from 11.3 to Master - FreeNAS Nightlies

Also available in: Atom PDF