Project

General

Profile

Bug #27342

Fix detaching a degraded or offlined disk from a boot pool

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

Status:
Done
Priority:
Important
Assignee:
William Grzybowski
Category:
Middleware
Target version:
Seen in:
Severity:
New
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 150, in call_method         
    result = await self.middleware.call_method(self, message)                                         
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 904, in call_method
    return await self._call(message['method'], serviceobj, methodobj, params, app=app)
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 872, in _call
    return await methodobj(*args)                  
  File "/usr/local/lib/python3.6/site-packages/middlewared/schema.py", line 490, in nf
    return await f(*args, **kwargs)                
  File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/boot.py", line 145, in detach
    await self.middleware.call('zfs.pool.detach', 'freenas-boot', dev)
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 908, in call
    return await self._call(name, serviceobj, methodobj, params)                                      
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 880, in _call
    return await self.run_in_thread_pool(pool, methodobj, *args)
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 841, in run_in_thread_pool  
    await task                                                                                        
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run                       
    result = self.fn(*self.args, **self.kwargs)                                                       
  File "/usr/local/lib/python3.6/site-packages/middlewared/schema.py", line 494, in nf                
    return f(*args, **kwargs)                                                                         
  File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/zfs.py", line 146, in detach
    raise CallError(f'Failed to find vdev for {label}', errno.EINVAL)
middlewared.service_exception.CallError: [EINVAL] Failed to find vdev for 4855184046478729027

Associated revisions

Revision d9cc9d3c (diff)
Added by William Grzybowski over 1 year ago

fix(middlewared/zfs): finding vdev by guid as str

Ticket: #27342

Revision a6145f60 (diff)
Added by William Grzybowski over 1 year ago

fix(middlewared/zfs): cleaner/simpler condition suggested by Vladimir Vinogradenko

Ticket: #27342

Revision 2155237a (diff)
Added by William Grzybowski over 1 year ago

fix(middlewared/zfs): finding vdev by guid as str

Ticket: #27342

Revision 5761eb72 (diff)
Added by William Grzybowski over 1 year ago

fix(middlewared/zfs): cleaner/simpler condition suggested by Vladimir Vinogradenko

Ticket: #27342

Revision b8862af5 (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared/zfs): finding vdev by guid as str

Ticket: #27342

Revision 5fa730f5 (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared/zfs): cleaner/simpler condition suggested by Vladimir Vinogradenko

Ticket: #27342

History

#1 Updated by William Grzybowski over 1 year ago

  • Status changed from Screened to Ready For Release

#2 Updated by Dru Lavigne over 1 year ago

  • Subject changed from Fix detaching degraded/offline disk of a pool to Fix detaching a degraded or offlined disk from a pool
  • Status changed from Ready For Release to Done
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

#3 Updated by Dru Lavigne about 1 year ago

  • Status changed from Done to Ready for Testing

#4 Updated by Timothy Moore II about 1 year ago

  • Subject changed from Fix detaching a degraded or offlined disk from a pool to Fix detaching a degraded or offlined disk from a (boot) pool
  • Status changed from Ready for Testing to Passed Testing
  • Severity set to New
  • Needs QA changed from Yes to No

Modified title based on William's feedback.
Testing:
Edited the existing boot pool on a FreeNAS Mini and added a drive. Detached the drive - no errors.

#5 Updated by Dru Lavigne about 1 year ago

  • Subject changed from Fix detaching a degraded or offlined disk from a (boot) pool to Fix detaching a degraded or offlined disk from a boot pool

#6 Updated by Dru Lavigne about 1 year ago

  • Status changed from Passed Testing to Done

Also available in: Atom PDF