Jump to: navigation, search

Horizon/Logs

Overview

Currently open stack UI does not have feature of capturing logging on the UI. This blueprint is to incorporate logging in the UI itself. Users will be able to get the details if action performed through logs and hence will help them in quickly go through the details. A Log panel group will be added in the horizon dashboard that will be having the sub panel for different openstack components, that includes: • Keystone • Cinder • Nova • Neutron • Glance • Horizon • Ceilometer • Heat and so on…

User Stories

1. Facility to view logs from dashboard for different openstack components. 2. Support in debugging the issue.

Design

Dashboard

To add log panel group in the horizon dashboard, existing django framework will be utilized. New panel group called “Logs” will be added in the dashboard panel. “Logs” panel group in turn will have a sub panels for different openstack components like keystone, glance, cinder, nova, neutron, heat, horizon etc.

Approach to collect logs

Logs will be collected either through rsyslog centralized approach or through ssh to remote node and collect the specified service logs. Once logs will be collected, next step will be configure django to work with rsyslog in order to bring data into dashboard.

Implementation

UI Changes

Change in the dashboard panel to add the log panel group and component wise panels.

Code Changes

Add/modify code in the dashboard django framework to incorporate logging. Following modification will be done in the framework: Existing Framework changes:

1. horizon/openstack_dashboard/dashboards/project/dashboard.py

Create directories: 1. horizon/openstack_dashboard/dashboards/project/keystone 2. horizon/openstack_dashboard/dashboards/project/keystone/templates/keystone 3. horizon/openstack_dashboard/dashboards/project/keystone/templates

Create following new files: 1. horizon/openstack_dashboard/dashboards/project/keystone/panel.py 2. horizon/openstack_dashboard/dashboards/project/keystone/tables.py 3. horizon/openstack_dashboard/dashboards/project/keystone/urls.py horizon/openstack_dashboard/dashboards/project/keystone/views.py 4. horizon/openstack_dashboard/dashboards/project/keystone/templates/index.html

Configuration Changes:

Changes in the rsyslog and django configuration files to configure logging.