Commit Graph

44 Commits

Author SHA1 Message Date
Nate Johnston 3ce57efc46 Retire the Congress Dashboard project
Recently the TC has worked on determining the criteria for when an
OpenStack project should be retired.  When there was not a PTL nominee
for the Congress project, that triggered the TC to review the project
health per [1], and the TC has determined [2] that development work on
the project has ceased.  This decision was announced in the
openstack-discuss mailing list in April 2020 [3].

This commit retires the repository per the process for governance
removal in the Victoria cycle as specified in the Mandatory Repository
Retirement resolution [4] and detailed in the infra manual [5].

Should interest in developing Congress as part of OpenStack revive,
please revert this commit to have the project rejoin the list of active
projects.

The community wishes to express our thanks and appreciation to all of
those who have contributed to the Congress project over the years.

[1] https://governance.openstack.org/tc/reference/dropping-projects.html
[2] http://eavesdrop.openstack.org/irclogs/%23openstack-tc/latest.log.html#t2020-04-20T15:36:59
[3] http://lists.openstack.org/pipermail/openstack-discuss/2020-April/014292.html
[4] https://governance.openstack.org/tc/resolutions/20190711-mandatory-repository-retirement.html
[5] https://docs.opendev.org/opendev/infra-manual/latest/drivers.html#retiring-a-project

Change-Id: I8026809e82c6aff8b64932a931229a08c6360629
2020-05-28 12:11:01 -04:00
Andreas Jaeger 4fdd3e79e0 Remove six usage
This repo does not support Python 2 anymore, so we don't need
six for compatibility between Python2 and 3, convert six usage to Python
3 code.

Needed-By: https://review.opendev.org/701743
Change-Id: I5f4d701a6cf3ad6d9684608820dc863c7b3fa12c
2020-01-11 15:48:19 +00:00
Zuul e5c562c7b3 Merge "Fix path to policies.css" 2019-03-19 17:59:33 +00:00
Zuul ed45f2763f Merge "Fix "Construct Rules" dialog placeholder row" 2019-03-19 17:57:03 +00:00
Eric K ba56684ccd Fix path to policies.css
Previously the css file could not be loaded in horizon dashboard.
Now fixed.

Change-Id: I5632c7e471f0d594236d6fbff51bc2150abb15de
Closes-bug: 1820351
2019-03-15 13:51:40 -07:00
Eric K 8921e24401 Fix "Construct Rules" dialog placeholder row
On initial render, the placeholder row in the joins variable has only
2 items instead of the needed 3, causing rendering to fail.

Change-Id: I01da6bd2b9d9ee78ee4cab5f706e0f5da5b2f020
Closes-bug: 1820129
2019-03-14 14:46:04 -07:00
Eric K f78c7dd683 Make compatible with Django 1.10 and 1.11
Removes use of future tag (not available in Django 1.10+).
Flatten Context into dict for render (necessary for Django 1.11+).

Both changes compatible with Django >= 1.8.

Change-Id: I5db4af45208423753dd5d60616ee781e6471b9e6
Closes-bug: 1816707
2019-03-14 14:28:12 -07:00
wangqiangbj 6d162e7e5c fix typos
Change-Id: I27f3d395f95897cae4db641e68a54c9ae5c0d552
2019-01-09 21:09:36 +08:00
Eric K 7570aa4d41 Fix repeat ID problem in library policy display
In library policy dashboard, sometimes the same rule is
repeated multiple times, overwriting some subsequent rules.
For example, in Policy Details: TagBasedNetworkSecurityZone,
the first two rules displays as

security_zone_tags('demo_zone'),
security_zone_tags('demo_zone')

rather than the correct

security_zone_tags('demo_zone'),
security_zone_tags('production_zone').

This patch fixes the issue by making sure a distinct ID is
assigned to each rule for django.

Change-Id: I20d758ec4dffeaecf60f6c60c401bb08e359def5
Closes-Bug: 1784770
2018-07-31 21:12:30 -07:00
Zuul c9c8ac0785 Merge "Remove the redundant "required=True"" 2018-07-25 02:38:50 +00:00
Zuul a8c1c24c0f Merge "Removing deprecated functions xrange and cmp" 2018-07-25 02:38:50 +00:00
akhiljain23 5a0a161fd1 Removing deprecated functions xrange and cmp
The functions xrange() and cmp() are not supported in python3.
This commit removes usage of these two.
Reference - https://docs.python.org/3.0/whatsnew/3.0.html

Change-Id: I26fd0d6a06cd2ddb32da17c4d6d7329d773f7828
2018-07-20 10:58:09 +05:30
Qian Min Chen d47837b942 Delete the unused LOG code
Change-Id: Id2169c1f9131e1bbcd0ad18f2189ad5df273dbcb
2018-07-20 10:26:26 +08:00
Qian Min Chen f8e9806766 Remove the redundant "required=True"
The django form field default is "required=True", so this patch
remove the redundant "required=True" in the form.

Change-Id: I570c8ec25f9434c9b8c84d3c5ed6ffd1789cd1a2
2018-07-20 10:14:17 +08:00
Akihiro Motoki c29ddbbeed Fix test failures caused by django test runner
Recently horizon test configuration was changed to use
the Django default test runner because nose is in maintenance mode
for the past several years [1]. Django testcase and oslotest are
incompatible, so congress_dashboard testcase now fails.

test_fake.py actually tests nothing, so there is no reason
to keep it. It sounds reasonable to drop this file.

[1] horizon commit 1f80d94459856a8c477310cc0fe4b0e165d8c0c1

Change-Id: I0b99e709fda9c933ec229bb1dde161cf5bea319b
2018-06-13 20:24:19 +09:00
Zuul 1f9b10ba3c Merge "Delete the duplicated README.md" 2018-06-06 18:29:18 +00:00
Akihiro Motoki b3ab877066 Django 2.0 support
Replace django.core.urlresolves with django.urls

(In Django 2.0) The django.core.urlresolvers module is removed
in favor of its new location, django.urls.
It was deprecated in Django 1.10:
https://docs.djangoproject.com/en/2.0/releases/1.10/#id3

Add py35dj20 job to test Django 2.0 integration.

Change-Id: I89dea8aaeb2a7d42a9ce99e7cb236c491b34c138
2018-05-11 00:26:15 +09:00
caoyuan 0297165cfa Delete the duplicated README.md
Change-Id: I39f7a84ffdb5afc1516a64c64140ee62ecc89b64
2018-04-20 10:23:11 +08:00
ShangXiao c2330d1cb8 Fix the old links in docs
Fix the old http url links in docs according
to the lastest OpenStack websites.

Change-Id: I843b024429050a215e69b6f6e8ae4da4645632df
2018-04-02 04:16:29 +00:00
Zuul f580326ff5 Merge "Use include_rules option for listing library policies" 2017-12-05 07:56:30 +00:00
Anusha Ramineni a3fb879779 Activate library policy
This commit adds support to activate a library policy.

Partially-Implements blueprint add-policy-library-gui
Depends-On: I0c4a70002bd172c0b5842cc7de1c9bb5ad0bcf5a
            I9d038dd4c33ed509261f6b404ab278bd33318d3b

Change-Id: Ibe3223b08ae402037c6efe5ef50d05ba6e4d0379
2017-11-23 15:47:25 +05:30
Anusha Ramineni bdd8f849b5 Use include_rules option for listing library policies
This commit uses the include_rules option supported in client
and server for listing library policies.

Partially-Implements blueprint add-policy-library-gui

Depends-On: Ib27119ba03d5658ff937f514f6ff3abfe5c390fe
            I2271579f655481b156ec66382d887b8784b13ad6

Change-Id: I3a9b95a4fd9b23c91658d464b6ba4e4a7ca105c7
2017-11-23 15:04:41 +05:30
Anusha Ramineni b2d848640b List rules for library policies
This commit adds support list rules for specific library policy.
Reference screenshot of GUI: https://imagebin.ca/v/3fkr2eDbDS9i

Partially-Implements blueprint add-policy-library-gui
Change-Id: Icd51bd408a295241d763e8369049b9aff5db5504
2017-11-01 16:28:50 +05:30
Anusha Ramineni f5e46c0b0a dashboard: View library policies
This commit is to list library policies through congress-dashboard

TODO: show rules
      activate policy

Partially-Implements blueprint add-policy-library-gui

Change-Id: Iff59145001af7df9afb3c654346fada3c451e966
2017-10-31 14:40:24 +05:30
Eric Kao becbd719cd Suppress 0s in monitoring pane rows
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
2017-08-03 17:46:55 +00:00
Jenkins 491c96dfaa Merge "Atomic rules to be displayed in UI" 2017-07-27 04:52:42 +00:00
Anusha Ramineni edc3b79d34 Atomic rules to be displayed in UI
This commit enables atomic rules table rows to be displayed in UI

Change-Id: I8859815339193a190863429c877555d9a2d205d7
Closes-Bug:#1705677
2017-07-27 10:00:58 +05:30
Jenkins 7985c06b92 Merge "Primitive auto reload for monitoring pane" 2017-07-27 01:14:57 +00:00
Jenkins 1564fc67a2 Merge "Add coloring to monitoring panel" 2017-07-26 21:03:46 +00:00
Jenkins 0012259312 Merge "Add link to navigate to violations data" 2017-07-26 21:00:29 +00:00
Jenkins 12e50f3079 Merge "Add Monitoring violations panel" 2017-07-24 05:33:25 +00:00
Eric Kao 08acf71eb2 Primitive auto reload for monitoring pane
reload the monitoring page every 30 secondsa
checkbox to enable/disable auto refresh

screenshot:
https://imagebin.ca/v/3UAtqA25IGK5

longer term, we want a more refined implementation with
refreshing partial page and customizable refresh interval.
But this primitive solution works reasonably well to start.

Implements blueprint enhance-congress-dashboard
Partial-Bug:#1670520

Change-Id: I50b678682480d5f2686fb099a6093ac9eb60aa52
2017-07-21 21:08:12 +00:00
Eric Kao 318dd8dba4 Add coloring to monitoring panel
coloring javascript added to
congress_dashboard/monitoring/templates/monitoring/index.html
None zero error cell colored red
None zero warning cell colored yellow

"monitoring" div id changed to "monitoring_panel" to
avoid clashing with the monitoring table of the same id.

screen shot example: https://imagebin.ca/v/3UAZHzzxqkwX

Implements blueprint enhance-congress-dashboard
Partial-Bug:#1670520

Change-Id: I8702b6dac75612449e0025b13a1db7f481b6c532
2017-07-21 14:04:09 -07:00
Anusha Ramineni b1b8cf09c3 Add link to navigate to violations data
This patch adds the link to show error and warning table data
directly from monitoring panel. And also adds the link to
violated policy information.

Implements blueprint enhance-congress-dashboard
Partial-Bug:#1670520

Change-Id: Ibddb35c5feb040d3a340bc392a69ba68bf93e5d2
2017-07-19 15:32:27 +05:30
Anusha Ramineni 55dd68582c Add Monitoring violations panel
This commit adds new panel to monitor violations in congress UI.
Assumes each policy would have only one defined error or warning table.
This panel lists the errors count and warnings count for each policy
if defined.

TODO:
1. Add link to policy error table to list the rows
2. Coloring for error and warning
3. Periodic refresh of data.

Partial-Bug:#1670520
Change-Id: I24f16df716e58121bc22cf2ae4426de80d06a8ee
2017-07-17 15:36:38 +05:30
Anusha Ramineni 474230d414 Add support to enter rule in policy language
This commit is to adds support in congress-ui to enter the rule
directly in policy language. And also, renames the existing name
'Create Rule' to 'Construct Rule'.

Implements blueprint enhance-congress-dashboard
Change-Id: I99a88d9c98b507d53163dcdb4f0e25d6ab088e69
2017-07-13 14:42:30 +05:30
Anusha Ramineni 955d6d76eb Remove usage of patterns
Usage of patterns in obsolete, so removing the same.

Change-Id: I5199676041b91f419bacad1fd19e33004e442758
2017-07-12 11:03:30 +05:30
Anusha Ramineni 209060167e Add support to create/delete Datasource
This commit adds the support to create and delete
datasources through UI

Partially-Implements blueprint enhance-congress-dashboard
Change-Id: I08512ed2bdfba6d669aad966338678744e149303
2017-06-02 15:03:41 +05:30
Anusha Ramineni 47c68e2377 Change 'Datasources' page layout
This commit changes the datasources page layout, to avoid
loading all the data at once and showing the data in more
relevant page

Change-Id: Iaedc7be9d00060f3701b53c309738e5073450fdf
Partially-Implements: blueprint enhance-congress-dashboard
2017-05-24 03:53:00 +00:00
Jenkins d263d2144e Merge "Fix cancel button beyond of create-rule modal" 2017-04-17 18:32:06 +00:00
xiaoyun feng 713622584f Fix cancel button beyond of create-rule modal
This patch is to fixes the problem that the cancel button of
create-rule dialogue box floats too far to the left outside
of the dialogue box

porting from I1821605d644f1b5b19479127f317d770dc82c138

Change-Id: I8d7764a14a5f916e2f248b99734fe5b1cccf78af
2017-04-05 04:59:21 +00:00
Anusha Ramineni 55508b8cbf Porting: Move Policy Table data to policies Tab
This commit ports the dashboard fix to new project.

Change-Id: Ibfa239b4a487587ff909eac74230fe2449ae4ba6
Partially-Implements: blueprint enahance-congress-dashboard
2017-04-03 06:47:45 +00:00
Anusha Ramineni 88ef2e3d5a Move congress_dashboard folder to this project
Partially-Implements: blueprint enhance-congress-dashboard
Closes-Bug: #1653743
Change-Id: I9b2ae92e125181226130de56b09d5588b4cd1755
2017-03-15 04:41:58 +00:00
Anusha Ramineni 2a43ed659a Initial UI-cookiecutter commit
Partially-Implements: blueprint enhance-congress-dashboard
Partial-Bug: #1653743
Change-Id: Ia6c034011385e3af558bd5052cad134ada6fdbcb
2017-03-14 09:20:55 +00:00