freezer-web-ui error but cmd works, anyone can help?

Asked by Bao Li

Hi all, I tried freezer based on the code from master and found that backup and restore could work using cmds. However, when I installed freezer-web-ui and tried it in Horizon, error occurred with logs from apache below:
[Mon Dec 07 00:08:06.043825 2015] [:error] [pid 1543:tid 139847217198848] Login successful for user "freezer".
[Mon Dec 07 00:42:02.902613 2015] [:error] [pid 1542:tid 139847200413440] Login successful for user "freezer".
[Mon Dec 07 00:42:03.298935 2015] [:error] [pid 1544:tid 139847250769664] Recoverable error: ('Connection aborted.', error(111, 'Connection refused'))
[Mon Dec 07 00:42:03.299894 2015] [:error] [pid 1544:tid 139847250769664] Internal Server Error: /horizon/disaster_recovery/backups/
[Mon Dec 07 00:42:03.299924 2015] [:error] [pid 1544:tid 139847250769664] Traceback (most recent call last):
[Mon Dec 07 00:42:03.299928 2015] [:error] [pid 1544:tid 139847250769664] File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response
[Mon Dec 07 00:42:03.299932 2015] [:error] [pid 1544:tid 139847250769664] response = wrapped_callback(request, *callback_args, **callback_kwargs)
[Mon Dec 07 00:42:03.299936 2015] [:error] [pid 1544:tid 139847250769664] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../horizon/decorators.py", line 36, in dec
[Mon Dec 07 00:42:03.299940 2015] [:error] [pid 1544:tid 139847250769664] return view_func(request, *args, **kwargs)
[Mon Dec 07 00:42:03.299944 2015] [:error] [pid 1544:tid 139847250769664] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../horizon/decorators.py", line 52, in dec
[Mon Dec 07 00:42:03.299948 2015] [:error] [pid 1544:tid 139847250769664] return view_func(request, *args, **kwargs)
[Mon Dec 07 00:42:03.299952 2015] [:error] [pid 1544:tid 139847250769664] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../horizon/decorators.py", line 36, in dec
[Mon Dec 07 00:42:03.299955 2015] [:error] [pid 1544:tid 139847250769664] return view_func(request, *args, **kwargs)
[Mon Dec 07 00:42:03.299959 2015] [:error] [pid 1544:tid 139847250769664] File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view
[Mon Dec 07 00:42:03.299963 2015] [:error] [pid 1544:tid 139847250769664] return self.dispatch(request, *args, **kwargs)
[Mon Dec 07 00:42:03.299966 2015] [:error] [pid 1544:tid 139847250769664] File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch
[Mon Dec 07 00:42:03.299970 2015] [:error] [pid 1544:tid 139847250769664] return handler(request, *args, **kwargs)
[Mon Dec 07 00:42:03.299974 2015] [:error] [pid 1544:tid 139847250769664] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../horizon/tables/views.py", line 159, in get
[Mon Dec 07 00:42:03.299977 2015] [:error] [pid 1544:tid 139847250769664] handled = self.construct_tables()
[Mon Dec 07 00:42:03.299981 2015] [:error] [pid 1544:tid 139847250769664] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../horizon/tables/views.py", line 150, in construct_tables
[Mon Dec 07 00:42:03.299985 2015] [:error] [pid 1544:tid 139847250769664] handled = self.handle_table(table)
[Mon Dec 07 00:42:03.299988 2015] [:error] [pid 1544:tid 139847250769664] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../horizon/tables/views.py", line 121, in handle_table
[Mon Dec 07 00:42:03.299992 2015] [:error] [pid 1544:tid 139847250769664] data = self._get_data_dict()
[Mon Dec 07 00:42:03.299996 2015] [:error] [pid 1544:tid 139847250769664] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../horizon/tables/views.py", line 187, in _get_data_dict
[Mon Dec 07 00:42:03.300000 2015] [:error] [pid 1544:tid 139847250769664] self._data = {self.table_class._meta.name: self.get_data()}
[Mon Dec 07 00:42:03.300004 2015] [:error] [pid 1544:tid 139847250769664] File "/usr/local/lib/python2.7/dist-packages/disaster_recovery/utils.py", line 182, in wrapped_function
[Mon Dec 07 00:42:03.300047 2015] [:error] [pid 1544:tid 139847250769664] exceptions.handle(request, _(message), redirect=r)
[Mon Dec 07 00:42:03.300051 2015] [:error] [pid 1544:tid 139847250769664] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../horizon/exceptions.py", line 355, in handle
[Mon Dec 07 00:42:03.300055 2015] [:error] [pid 1544:tid 139847250769664] log_method, log_entry, log_level)
[Mon Dec 07 00:42:03.300058 2015] [:error] [pid 1544:tid 139847250769664] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../horizon/exceptions.py", line 275, in handle_recoverable
[Mon Dec 07 00:42:03.300061 2015] [:error] [pid 1544:tid 139847250769664] messages.error(request, message or log_entry)
[Mon Dec 07 00:42:03.300064 2015] [:error] [pid 1544:tid 139847250769664] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../horizon/messages.py", line 83, in error
[Mon Dec 07 00:42:03.300068 2015] [:error] [pid 1544:tid 139847250769664] fail_silently=fail_silently)
[Mon Dec 07 00:42:03.300071 2015] [:error] [pid 1544:tid 139847250769664] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../horizon/messages.py", line 41, in add_message
[Mon Dec 07 00:42:03.300074 2015] [:error] [pid 1544:tid 139847250769664] if not horizon_message_already_queued(request, message):
[Mon Dec 07 00:42:03.300077 2015] [:error] [pid 1544:tid 139847250769664] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../horizon/messages.py", line 28, in horizon_message_already_queued
[Mon Dec 07 00:42:03.300081 2015] [:error] [pid 1544:tid 139847250769664] if request.is_ajax():
[Mon Dec 07 00:42:03.300084 2015] [:error] [pid 1544:tid 139847250769664] AttributeError: 'IndexView' object has no attribute 'is_ajax'

Is something wrong with my conf? Anyone can help? Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Backup/Restore and DR (Freezer) Edit question
Assignee:
No assignee Edit question
Solved by:
Bao Li
Solved:
Last query:
Last reply:
Revision history for this message
Bao Li (sibaoli) said :
#1

I found the solution after checking each step: starting freezer-api with args to assign the ip and port which is identical to the endpoint in keystone. The default value is 127.0.0.1:9090.
Hopefully this info can be specified in the README file for freezer-wei-ui.