becbd719cd
Do not set value to 0 and do not add rows without non-zero value. Also fix javascript in template to avoid coloring 'No items to display.' With the following rules: $ openstack congress policy rule create action 'warning(x) :- blah(x)' $ openstack congress policy rule create classification 'blah(x) :- error(x)' Monitoring pane pre-patch shows rows of zero warning/error screenshot: https://imagebin.ca/v/3VXCVtZxXYUQ rows suppressed post-patch. screenshot: https://imagebin.ca/v/3VXX9g34QOGf Closes-Bug: 1708294 Change-Id: I56adc4da430e3e1e15bd31c42fe3f7bce996dcd0 |
||
---|---|---|
.. | ||
api | ||
datasources | ||
enabled | ||
monitoring | ||
policies | ||
static/admin | ||
templates/admin | ||
test | ||
__init__.py | ||
README.md | ||
version.py |
Congress Dashboard
Congress Dashboard is an extension for OpenStack Dashboard that provides a UI for Congress. With congress-dashboard, a user is able to easily write the policies and rules for governance of cloud.
Setup Instructions
This instruction assumes that Horizon is already installed and its installation folder is . Detailed information on how to install Horizon can be found at http://docs.openstack.org/developer/horizon/quickstart.html#setup.
To integrate congress with horizon, copy the files in <congress_dashboard>/enabled to /openstack_dashboard/local/enabled/
$ cp -b <congress_dashboard>/enabled/_50_policy.py /openstack_dashboard/local/enabled/ $ cp -b <congress_dashboard>/enabled/_60_policies.py /openstack_dashboard/local/enabled/ $ cp -b <congress_dashboard>/enabled/_70_datasources.py /openstack_dashboard/local/enabled/
Restart Apache server sudo service apache2 restart