Failed to create admin action.

Bug #1703590 reported by Debo Zhang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
freezer-web-ui
In Progress
Undecided
Debo Zhang

Bug Description

In "Action" field of action create form, choose
"Admin", click "Save", then failed. I saw error
messages in apache2 log:

2017-07-11 10:37:58.728800 ERROR django.request Internal Server Error: /dashboard/disaster_recovery/actions/create/
2017-07-11 10:37:58.728913 Traceback (most recent call last):
2017-07-11 10:37:58.728924 File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 149, in get_response
2017-07-11 10:37:58.728934 response = self.process_exception_by_middleware(e, request)
2017-07-11 10:37:58.728942 File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 147, in get_response
2017-07-11 10:37:58.728952 response = wrapped_callback(request, *callback_args, **callback_kwargs)
2017-07-11 10:37:58.728960 File "/opt/stack/horizon/horizon/decorators.py", line 36, in dec
2017-07-11 10:37:58.728969 return view_func(request, *args, **kwargs)
2017-07-11 10:37:58.728977 File "/opt/stack/horizon/horizon/decorators.py", line 52, in dec
2017-07-11 10:37:58.728986 return view_func(request, *args, **kwargs)
2017-07-11 10:37:58.728994 File "/opt/stack/horizon/horizon/decorators.py", line 36, in dec
2017-07-11 10:37:58.729003 return view_func(request, *args, **kwargs)
2017-07-11 10:37:58.729011 File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py", line 68, in view
2017-07-11 10:37:58.729019 return self.dispatch(request, *args, **kwargs)
2017-07-11 10:37:58.729028 File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py", line 88, in dispatch
2017-07-11 10:37:58.729036 return handler(request, *args, **kwargs)
2017-07-11 10:37:58.729082 File "/opt/stack/horizon/horizon/workflows/views.py", line 202, in post
2017-07-11 10:37:58.729095 exceptions.handle(request)
2017-07-11 10:37:58.729103 File "/opt/stack/horizon/horizon/exceptions.py", line 362, in handle
2017-07-11 10:37:58.729112 six.reraise(exc_type, exc_value, exc_traceback)
2017-07-11 10:37:58.729120 File "/opt/stack/horizon/horizon/workflows/views.py", line 197, in post
2017-07-11 10:37:58.729128 success = workflow.finalize()
2017-07-11 10:37:58.729137 File "/opt/stack/horizon/horizon/workflows/base.py", line 842, in finalize
2017-07-11 10:37:58.729145 if not self.handle(self.request, self.context):
2017-07-11 10:37:58.729153 File "/opt/stack/freezer-web-ui/disaster_recovery/actions/workflows/action.py", line 571, in handle
2017-07-11 10:37:58.729162 exceptions.handle(request)
2017-07-11 10:37:58.729170 File "/opt/stack/horizon/horizon/exceptions.py", line 362, in handle
2017-07-11 10:37:58.729184 six.reraise(exc_type, exc_value, exc_traceback)
2017-07-11 10:37:58.729193 File "/opt/stack/freezer-web-ui/disaster_recovery/actions/workflows/action.py", line 563, in handle
2017-07-11 10:37:58.729202 freezer_api.Action(request).create(context)
2017-07-11 10:37:58.729210 File "/opt/stack/freezer-web-ui/disaster_recovery/api/api.py", line 378, in create
2017-07-11 10:37:58.729218 return self._build(action)
2017-07-11 10:37:58.729226 File "/opt/stack/freezer-web-ui/disaster_recovery/api/api.py", line 419, in _build
2017-07-11 10:37:58.729234 action['backup_name'] = backup_name.replace(' ', '_')
2017-07-11 10:37:58.729242 AttributeError: 'NoneType' object has no attribute 'replace'

Changed in freezer-web-ui:
assignee: nobody → Debo Zhang (laun-zhangdebo)
status: New → In Progress
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.