restore option from the web-ui is not working

Bug #1747391 reported by Dilip Renkila
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Backup/Restore and DR (Freezer)
New
Undecided
Unassigned

Bug Description

When you want to restore the backups in web-ui it is not working. After digging down in horizon error logs, I found error was with regexs. Here below is the log of my horzon:
 [Mon Feb 05 10:11:11.303467 2018] [wsgi:error] [pid 14915:tid 140129324467968] File "/openstack/venvs/horizon-15.1.7/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
[Mon Feb 05 10:11:11.303473 2018] [wsgi:error] [pid 14915:tid 140129324467968] response = wrapped_callback(request, *callback_args, **callback_kwargs)
[Mon Feb 05 10:11:11.303480 2018] [wsgi:error] [pid 14915:tid 140129324467968] File "/openstack/venvs/horizon-15.1.7/lib/python2.7/site-packages/horizon/decorators.py", line 36, in dec
[Mon Feb 05 10:11:11.303486 2018] [wsgi:error] [pid 14915:tid 140129324467968] return view_func(request, *args, **kwargs)
[Mon Feb 05 10:11:11.303492 2018] [wsgi:error] [pid 14915:tid 140129324467968] File "/openstack/venvs/horizon-15.1.7/lib/python2.7/site-packages/horizon/decorators.py", line 52, in dec
[Mon Feb 05 10:11:11.303497 2018] [wsgi:error] [pid 14915:tid 140129324467968] return view_func(request, *args, **kwargs)
[Mon Feb 05 10:11:11.303503 2018] [wsgi:error] [pid 14915:tid 140129324467968] File "/openstack/venvs/horizon-15.1.7/lib/python2.7/site-packages/horizon/decorators.py", line 36, in dec
[Mon Feb 05 10:11:11.303509 2018] [wsgi:error] [pid 14915:tid 140129324467968] return view_func(request, *args, **kwargs)
[Mon Feb 05 10:11:11.303514 2018] [wsgi:error] [pid 14915:tid 140129324467968] File "/openstack/venvs/horizon-15.1.7/lib/python2.7/site-packages/django/views/generic/base.py", line 71, in view
[Mon Feb 05 10:11:11.303521 2018] [wsgi:error] [pid 14915:tid 140129324467968] return self.dispatch(request, *args, **kwargs)
[Mon Feb 05 10:11:11.303527 2018] [wsgi:error] [pid 14915:tid 140129324467968] File "/openstack/venvs/horizon-15.1.7/lib/python2.7/site-packages/django/views/generic/base.py", line 89, in dispatch
[Mon Feb 05 10:11:11.303533 2018] [wsgi:error] [pid 14915:tid 140129324467968] return handler(request, *args, **kwargs)
[Mon Feb 05 10:11:11.303539 2018] [wsgi:error] [pid 14915:tid 140129324467968] File "/openstack/venvs/horizon-15.1.7/lib/python2.7/site-packages/horizon/workflows/views.py", line 199, in post
[Mon Feb 05 10:11:11.303548 2018] [wsgi:error] [pid 14915:tid 140129324467968] exceptions.handle(request)
[Mon Feb 05 10:11:11.303554 2018] [wsgi:error] [pid 14915:tid 140129324467968] File "/openstack/venvs/horizon-15.1.7/lib/python2.7/site-packages/horizon/exceptions.py", line 354, in handle
[Mon Feb 05 10:11:11.303575 2018] [wsgi:error] [pid 14915:tid 140129324467968] six.reraise(exc_type, exc_value, exc_traceback)
[Mon Feb 05 10:11:11.303581 2018] [wsgi:error] [pid 14915:tid 140129324467968] File "/openstack/venvs/horizon-15.1.7/lib/python2.7/site-packages/horizon/workflows/views.py", line 194, in post
[Mon Feb 05 10:11:11.303587 2018] [wsgi:error] [pid 14915:tid 140129324467968] success = workflow.finalize()
[Mon Feb 05 10:11:11.303592 2018] [wsgi:error] [pid 14915:tid 140129324467968] File "/openstack/venvs/horizon-15.1.7/lib/python2.7/site-packages/horizon/workflows/base.py", line 824, in finalize
[Mon Feb 05 10:11:11.303598 2018] [wsgi:error] [pid 14915:tid 140129324467968] if not self.handle(self.request, self.context):
[Mon Feb 05 10:11:11.303604 2018] [wsgi:error] [pid 14915:tid 140129324467968] File "/usr/local/lib/python2.7/dist-packages/disaster_recovery/backups/workflows/restore.py", line 67, in handle
[Mon Feb 05 10:11:11.303610 2018] [wsgi:error] [pid 14915:tid 140129324467968] exceptions.handle(request)
[Mon Feb 05 10:11:11.303616 2018] [wsgi:error] [pid 14915:tid 140129324467968] File "/openstack/venvs/horizon-15.1.7/lib/python2.7/site-packages/horizon/exceptions.py", line 354, in handle
[Mon Feb 05 10:11:11.303622 2018] [wsgi:error] [pid 14915:tid 140129324467968] six.reraise(exc_type, exc_value, exc_traceback)
[Mon Feb 05 10:11:11.303628 2018] [wsgi:error] [pid 14915:tid 140129324467968] File "/usr/local/lib/python2.7/dist-packages/disaster_recovery/backups/workflows/restore.py", line 65, in handle
[Mon Feb 05 10:11:11.303635 2018] [wsgi:error] [pid 14915:tid 140129324467968] return freezer_api.Backup(request).restore(data)
[Mon Feb 05 10:11:11.303641 2018] [wsgi:error] [pid 14915:tid 140129324467968] File "/usr/local/lib/python2.7/dist-packages/disaster_recovery/api/api.py", line 572, in restore
[Mon Feb 05 10:11:11.303647 2018] [wsgi:error] [pid 14915:tid 140129324467968] job_id = self.client.jobs.create(job)
[Mon Feb 05 10:11:11.303652 2018] [wsgi:error] [pid 14915:tid 140129324467968] File "/usr/local/lib/python2.7/dist-packages/freezerclient/v1/managers/jobs.py", line 42, in create
[Mon Feb 05 10:11:11.303658 2018] [wsgi:error] [pid 14915:tid 140129324467968] raise exceptions.ApiClientException(r)
[Mon Feb 05 10:11:11.303664 2018] [wsgi:error] [pid 14915:tid 140129324467968] ApiClientException: [*] Error 400: '' does not match '^[\\\\w-]+$'

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.