Unable to restore backups from horizon (freezer-web-ui)

Bug #1678021 reported by Sravan Kumar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
freezer-web-ui
New
Undecided
Unassigned

Bug Description

Hi,

I tried to restore a backup from Horizon UI by clicking the button "Restore" in "Backups" tab.
I got an error from horizon UI "Error: list index out of range".

from horizon log, I got bellow error.
Error:
2017-04-04 12:16:36.967495 ERROR:disaster_recovery.utils:list index out of range
2017-04-04 12:16:36.969266 Recoverable error: list index out of range
2017-04-04 12:16:36.969864 ERROR:disaster_recovery.utils:None
2017-04-04 12:16:37.281406 Internal Server Error: /dashboard/disaster_recovery/backups/restore/None
2017-04-04 12:16:37.281432 Traceback (most recent call last):
2017-04-04 12:16:37.281435 File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 132, in get_response
2017-04-04 12:16:37.281438 response = wrapped_callback(request, *callback_args, **callback_kwargs)
2017-04-04 12:16:37.281440 File "/opt/stack/horizon/horizon/decorators.py", line 36, in dec
2017-04-04 12:16:37.281443 return view_func(request, *args, **kwargs)
2017-04-04 12:16:37.281445 File "/opt/stack/horizon/horizon/decorators.py", line 52, in dec
2017-04-04 12:16:37.281447 return view_func(request, *args, **kwargs)
2017-04-04 12:16:37.281449 File "/opt/stack/horizon/horizon/decorators.py", line 36, in dec
2017-04-04 12:16:37.281452 return view_func(request, *args, **kwargs)
2017-04-04 12:16:37.281454 File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py", line 71, in view
2017-04-04 12:16:37.281456 return self.dispatch(request, *args, **kwargs)
2017-04-04 12:16:37.281458 File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py", line 89, in dispatch
2017-04-04 12:16:37.281461 return handler(request, *args, **kwargs)
2017-04-04 12:16:37.281463 File "/opt/stack/horizon/horizon/workflows/views.py", line 144, in get
2017-04-04 12:16:37.281465 context = self.get_context_data(**kwargs)
2017-04-04 12:16:37.281485 File "/opt/stack/horizon/horizon/workflows/views.py", line 91, in get_context_data
2017-04-04 12:16:37.281491 workflow = self.get_workflow()
2017-04-04 12:16:37.281493 File "/opt/stack/freezer-web-ui/disaster_recovery/utils.py", line 211, in wrapped_function
2017-04-04 12:16:37.281496 redirect=r)
2017-04-04 12:16:37.281506 File "/opt/stack/horizon/horizon/exceptions.py", line 347, in handle
2017-04-04 12:16:37.281509 if message:
2017-04-04 12:16:37.281511 File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 135, in __wrapper__
2017-04-04 12:16:37.281513 res = func(*self.__args, **self.__kw)
2017-04-04 12:16:37.281516 File "/usr/local/lib/python2.7/dist-packages/django/utils/translation/__init__.py", line 84, in ugettext
2017-04-04 12:16:37.281518 return _trans.ugettext(message)
2017-04-04 12:16:37.281520 File "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py", line 330, in ugettext
2017-04-04 12:16:37.281523 return do_translate(message, 'ugettext')
2017-04-04 12:16:37.281525 File "/usr/local/lib/python2.7/dist-packages/django/utils/translation/trans_real.py", line 300, in do_translate
2017-04-04 12:16:37.281527 eol_message = message.replace(str('\\r\\n'), str('\\n')).replace(str('\\r'), str('\\n'))
2017-04-04 12:16:37.281530 AttributeError: 'NoneType' object has no attribute 'replace'

But, I am able to restore from Job restore action. Please help.

Revision history for this message
Sravan Kumar (dommarajusravan) wrote :
description: updated
description: updated
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.