Project

General

Profile

Bug #52083

Display update process in new UI

Added by Disk Didler almost 2 years ago. Updated almost 2 years ago.

Status:
Done
Priority:
No priority
Assignee:
Lola Yang
Category:
GUI (new)
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

As per my firm discussion.

When updating FreeNAS in the New UI (.......) The dialogue box showing the progress disappeared.
I figure it failed somehow, so I tried again a few more times and it repeated hiding the box.

So at this point I might have multiple consecutive downloads running in the background?

I switch back to the tried and true legacy UI about 5 minutes later and I see that according to that, the new build is already downloaded. It tells me it's already installed I need to activate it in the boot menu.

I go there and try to activate the new rc1 in the list I get "failed to activate boot environment"

So now I'm concerned the build which is downloaded, isn't in good condition.

I highlight and click delete for the rc1 boot, below my beta 3.
"Failed to delete boot environment"

Ok, I reboot, try again, same error on deleting and activating

So I try a few more reboots, removal of environment and attempt updates (denied, again it's in the system, just needs activating)
Same errors.

So to summarise!:

I have a broken boot environment I can't switch to, or delete or download again.
I blame the New UI letting me instigate an upgrade multiple times by hiring the update progress box

I can't even rename the boot environment.


Environment:

Software Version: FreeNAS-11.2-BETA3 (85d5c7542)
Request Method: POST
Request URL: http://192.168.0.9/legacy/system/bootenv/rename/11.2-RC1/

Traceback:
File "./freenasUI/system/forms.py" in save
  171.                 c.call('bootenv.update', self._name, {'name': new_name})
File "/usr/local/lib/python3.6/site-packages/middlewared/client/client.py" in call
  432.             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
  163.         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_rename
  442.                 form.save()
File "./freenasUI/system/forms.py" in save
  175.                 raise MiddlewareError(_('Boot Environment rename failed!'))
File "./freenasUI/system/forms.py" in save
  175.                 raise MiddlewareError(_('Boot Environment rename failed!'))

Exception Type: MiddlewareError at /legacy/system/bootenv/rename/11.2-RC1/
Exception Value: [MiddlewareError: Boot Environment rename failed!]

History

#1 Updated by Dru Lavigne almost 2 years ago

  • Category changed from OS to GUI (new)
  • Assignee changed from Release Council to Lola Yang
  • Target version changed from Backlog to 11.2-RC2

Lola: can you check that the UI is properly providing a spinner or progress bar as well as an alert when a user tries to interrupt what appears to be a stalled upgrade?

Disk to recover, these steps should work:

beadm destroy -F name_of_failed_boot_env
freenas-update check
freenas-update --reboot update

#2 Updated by Disk Didler almost 2 years ago

I can't destroy it, "filesystem has dependent clones"

It says I can use the -R flag but if I'm reading it right, I'll end up with no environments at all.

#3 Updated by Dru Lavigne almost 2 years ago

Paste the output of beadm list

#4 Updated by Lola Yang almost 2 years ago

  • Category changed from GUI (new) to Middleware
  • Assignee changed from Lola Yang to William Grzybowski

#6 Updated by William Grzybowski almost 2 years ago

  • Assignee changed from William Grzybowski to Lola Yang

#8 Updated by William Grzybowski almost 2 years ago

Disk Didler wrote:

I can't destroy it, "filesystem has dependent clones"

It says I can use the -R flag but if I'm reading it right, I'll end up with no environments at all.

Save Debug would be a start.

#13 Updated by Lola Yang almost 2 years ago

  • Category changed from Middleware to GUI (new)

#16 Updated by Disk Didler almost 2 years ago

Dru,

Thanks for help.

Couldn't delete it, but did run the second command to receive instigate the download.

Via the cli, this worked. Incredibly incredibly slow. (Over an hour and a half)

But she's back, with RC1 and interestingly didn't leave a phantom not environment (I thought it may, if it worked)

Something went wrong, but finally ok.

Maybe worth investigating a vm that upgrades from b3 to RC1 with the New UI, see if anyone can break it.

I'm on leave in San Fran of all places, so I can only test so much.

#17 Updated by Dru Lavigne almost 2 years ago

Glad to hear it's sorted for you. Lola is investigating a pop-up to inform the user the upgrade is still in progress.

#18 Updated by Disk Didler almost 2 years ago

Dru Lavigne wrote:

Glad to hear it's sorted for you. Lola is investigating a pop-up to inform the user the upgrade is still in progress.

Don't know if it actually did download two at once, an assumption of course.

It should come up with "in progress" if the page is accidentally refreshed, or the upgrade button greyed out, etc.

Thanks for help.

#19 Updated by Lola Yang almost 2 years ago

  • Status changed from Unscreened to In Progress

#20 Updated by Dru Lavigne almost 2 years ago

  • Subject changed from Upgrade to 11.2 RC1 failed, can't activate to Display update process in new UI
  • Needs Merging changed from Yes to No

#22 Updated by Disk Didler almost 2 years ago

FYI: my system did in fact come back with some errors after all unfortunately, may not be releated.

#52637

#23 Updated by Erin Clark almost 2 years ago

  • Status changed from In Progress to Ready for Testing

#24 Updated by Jeff Ervin almost 2 years ago

37296

Test Passed FreeNAS-11.2-INTERNAL30

#25 Updated by Aaron St. John almost 2 years ago

  • Needs Doc changed from Yes to No

#26 Updated by Dru Lavigne almost 2 years ago

  • Status changed from Passed Testing to Done

Also available in: Atom PDF