Project

General

Profile

Bug #27834

Fix the attachment of boot mirror devices

Added by Michael Dexter over 1 year ago. Updated about 1 year ago.

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

Description

Tested on: FreeNAS-11.1-RELEASE (dc7d195f4), plus 11-stable as of 1-16-2018 and will test on stable again.

Scenario: Upgrade 4GB USB "freenas-boot" device to 60GB or 128GB for greater reliability.

On one the 11-stable as of 1-16-2018 system, the operation reports success but only results in "boot" style partitions on the attached device. The actual partition is never attached/mirrored.

On the FreeNAS-11.1-RELEASE (dc7d195f4) system, this traceback is generated:

Request Method: POST
Request URL: http://10.0.0.185/system/bootenv/pool/attach/?label=da4p2
Software Version: FreeNAS-11.1-RELEASE (dc7d195f4)
Exception Type: MiddlewareError
Exception Value:
[MiddlewareError: Call timeout]
Exception Location: ./freenasUI/system/forms.py in done, line 293
Server time: Tue, 16 Jan 2018 12:42:48 -0800

Environment:

Software Version: FreeNAS-11.1-RELEASE (dc7d195f4)
Request Method: POST
Request URL: http://10.0.0.185/system/bootenv/pool/attach/?label=da4p2

Traceback:
File "./freenasUI/system/forms.py" in done
291. c.call('boot.attach', devname, {'expand': self.cleaned_data['expand']})
File "/usr/local/lib/python3.6/site-packages/middlewared/client/client.py" in call
389. raise CallTimeout("Call timeout")
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
42. response = get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _legacy_get_response
249. response = self._get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
178. response = middleware_method(request, callback, callback_args, callback_kwargs)
File "./freenasUI/freeadmin/middleware.py" in process_view
162. return login_required(view_func)(request, *view_args, **view_kwargs)
File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
23. return view_func(request, *args, **kwargs)
File "./freenasUI/system/views.py" in bootenv_pool_attach
496. form.done()
File "./freenasUI/system/forms.py" in done
293. raise MiddlewareError(str(e))
File "./freenasUI/system/forms.py" in done
293. raise MiddlewareError(str(e))

Exception Type: MiddlewareError at /system/bootenv/pool/attach/
Exception Value: [MiddlewareError: Call timeout]

Variable Value
label 'da4p2'
POST

Variable Value
all ''
attach_disk 'ada0'
expand 'on'
__form_id 'form_BootEnvPoolAttachForm'
FILES

No FILES data
COOKIES

Variable Value
csrftoken 't3nIjeK1BdQHcLBqVGkgJFhhkJOAyKa7Z867Ihgu65UJuEIzy51tI6rnZWK6MtPj'
fntreeSaveStateCookie 'root'
sessionid 'samxa0j0mcr3y9n5fm4xvmzjt9n2fu6x'

Next step: Will try updating the system throwing the traceback and try with a USB module.

FreeNAS-boot-mirror-failure.png (11.9 KB) FreeNAS-boot-mirror-failure.png Michael Dexter, 01/16/2018 06:34 PM
13932

Related issues

Related to FreeNAS - Bug #28210: Run boot.attach as a jobDone2018-02-052018-02-12
Related to FreeNAS - Bug #29072: Unable to attach boot drive of same type / sizeClosed2018-03-04
Related to FreeNAS - Bug #29277: Wait for zfs.pool.extend to complete so we can propagate errors when adding a mirrored USB driveDone
Has duplicate FreeNAS - Bug #28422: Attaching a second boot device does not work in 11.1 U1Closed2018-02-10

History

#1 Updated by Michael Dexter over 1 year ago

Oddly, the system throwing the traceback resulted in the desired effect:

NAME        STATE     READ WRITE CKSUM                                  
freenas-boot ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
da4p2 ONLINE 0 0 0
ada0p2 ONLINE 0 0 0

Will try updating and will get a version of the system with no mirror.

#2 Updated by Sean Fagan over 1 year ago

  • Category changed from 1 to Middleware

Changed the category.

#3 Updated by Michael Dexter over 1 year ago

Waiting to hear if the other system resulted in the desired state. Speculation: The "Attach" command does not provide adequate wait and feedback, giving a traceback in one of two situations and no "attaching device" status information in the other.

#4 Updated by Michael Dexter over 1 year ago

And, no update available on the system that threw the traceback.

#5 Updated by Michael Dexter over 1 year ago

13932

From the other system: The GUI reported success without a traceback but did not result in a mirrored boot device despite two tries. Should also be FreeNAS-11.1-RELEASE (dc7d195f4).

#6 Updated by Dru Lavigne over 1 year ago

  • Assignee changed from Release Council to Vladimir Vinogradenko
  • Target version set to 11.1-U2

#7 Updated by Dru Lavigne about 1 year ago

  • Status changed from Unscreened to Not Started

#8 Avatar?id=13649&size=24x24 Updated by Ben Gadd about 1 year ago

  • Due date set to 02/12/2018

Due date updated to reflect the code freeze for 11.1U2.

#9 Avatar?id=13649&size=24x24 Updated by Ben Gadd about 1 year ago

  • Severity set to New

#10 Updated by Vladimir Vinogradenko about 1 year ago

  • Status changed from Not Started to In Progress

#11 Updated by Vladimir Vinogradenko about 1 year ago

  • Status changed from In Progress to Done

#12 Updated by Vladimir Vinogradenko about 1 year ago

  • Related to Bug #28210: Run boot.attach as a job added

#13 Updated by Dru Lavigne about 1 year ago

  • Subject changed from freenas-boot "Attach" (mirror) fails to Fix the attachment of boot mirror devices
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

#14 Updated by Dru Lavigne about 1 year ago

  • Has duplicate Bug #28422: Attaching a second boot device does not work in 11.1 U1 added

#15 Updated by Nick Gale about 1 year ago

  • Priority changed from No priority to Important
  • Seen in changed from 11.1 to 11.1-U2

This is still not resolved in 11.1-U2

#16 Updated by Dru Lavigne about 1 year ago

Nick: are you still getting that traceback on U2?

#17 Updated by Dru Lavigne about 1 year ago

  • Related to Bug #29072: Unable to attach boot drive of same type / size added

#18 Updated by Nick Gale about 1 year ago

I don't see anything happen in the console. All it does is come up with a message disk attached successfully in the green banner at the top but the console and interface show nothing different at all.

#19 Updated by Dru Lavigne about 1 year ago

Nick: is zpool status does not show that the boot pool is mirrored, please create a separate ticket with a debug attached to it.

#20 Updated by Jeff Mueller about 1 year ago

Nick Gale wrote:

I don't see anything happen in the console. All it does is come up with a message disk attached successfully in the green banner at the top but the console and interface show nothing different at all.

I can confirm, I am having this same issue, with the same symptoms. FreeNAS-11.1-U2. Let me know if I can supply any more information.

#21 Updated by Dru Lavigne about 1 year ago

  • Related to Bug #29277: Wait for zfs.pool.extend to complete so we can propagate errors when adding a mirrored USB drive added

Also available in: Atom PDF