RETIRED, Congress
Go to file
Eric K 31e7e04294 Resolve instability in json_ingester test_execute_exec_api_rows
Occassionally the unit test congress.tests.datasources.json_ingester.
test_exec_api.TestExecApiManager.test_execute_exec_api_rows
fails inside eventlet code even though the eventlet call is mocked
out.

This patch adds a new mock path because eventlet.spawn_n
somehow redirects there. Hopefully it resolves the occassional
instability gets.

Sample error:
  File "/home/zuul/src/git.openstack.org/openstack/congress/.tox/py27/local/lib/python2.7/site-packages/eventlet/greenpool.py", line 115, in spawn_n
    function, args, kwargs, True)
  File "/home/zuul/src/git.openstack.org/openstack/congress/.tox/py27/local/lib/python2.7/site-packages/mock/mock.py", line 1062, in __call__
    return _mock_self._mock_call(*args, **kwargs)
  File "/home/zuul/src/git.openstack.org/openstack/congress/.tox/py27/local/lib/python2.7/site-packages/mock/mock.py", line 1128, in _mock_call
    ret_val = effect(*args, **kwargs)
  File "congress/tests/datasources/json_ingester/test_exec_api.py", line 27, in mock_spawn_execute
    return func(*args, **kwargs)
  File "/home/zuul/src/git.openstack.org/openstack/congress/.tox/py27/local/lib/python2.7/site-packages/eventlet/greenpool.py", line 99, in _spawn_n_impl
    self._spawn_done(coro)
  File "/home/zuul/src/git.openstack.org/openstack/congress/.tox/py27/local/lib/python2.7/site-packages/eventlet/greenpool.py", line 131, in _spawn_done
    self.coroutines_running.remove(coro)
KeyError: <greenlet.greenlet object at 0x7fd975681cd0>

Change-Id: I72e11a67cf1cd3ff3fbc574f2d6e91df17d63d9c
2019-04-05 17:51:59 -07:00
antlr3runtime Fix for broken antlr3 in stand-alone install 2016-03-21 21:40:23 -07:00
bin move config init from congress_servers.py to bin/congress-server 2019-02-04 17:35:35 -08:00
congress Resolve instability in json_ingester test_execute_exec_api_rows 2019-04-05 17:51:59 -07:00
contrib/nova Implement horizon plugin model 2016-08-10 03:49:44 +00:00
devstack Devstack plugin set privileges to json ingester DB 2019-03-21 05:18:34 +00:00
doc minor doc typo fixes 2019-03-21 20:24:19 -07:00
etc Merge "Replace fixed endpoint config by dynamic in devstack plugin" 2019-03-19 19:30:20 +00:00
examples use . instead of source. 2018-01-29 14:23:39 +00:00
library library policy create security groups up-front 2018-08-03 05:19:32 +00:00
releasenotes Update master for stable/stein 2019-03-22 01:10:14 +00:00
scripts Devstack plugin set privileges to json ingester DB 2019-03-21 05:18:34 +00:00
thirdparty Remove antlr3 files except Python runtime 2017-01-25 16:05:04 -08:00
tools remove new_arch in tox 2016-09-05 11:35:46 +05:30
.coveragerc Update .coveragerc after the removal of openstack directory 2016-10-17 17:44:34 +05:30
.gitignore ignore files created by sphinx-build 2018-10-06 14:26:31 -04:00
.gitreview Update .gitreview file to reflect repo rename 2015-04-18 00:37:35 +00:00
.mailmap Restructure to follow OpenStack cookiecutter template 2014-01-07 15:31:36 -08:00
.stestr.conf Switch to stestr 2018-10-05 14:12:23 +05:30
.zuul.yaml Remove unnecessary tempest plugins from gate 2019-04-03 21:29:23 -07:00
CONTRIBUTING.rst move docs into new structure and fix links 2017-08-08 06:58:30 +00:00
HACKING.rst Update the doc link 2017-11-08 21:33:20 +08:00
LICENSE Restructure to follow OpenStack cookiecutter template 2014-01-07 15:31:36 -08:00
Makefile Remove antlr3 files except Python runtime 2017-01-25 16:05:04 -08:00
README.rst Add wiki Source Bugs and Blueprints notes link to README.rst 2018-10-19 13:57:30 -07:00
babel.cfg Restructure to follow OpenStack cookiecutter template 2014-01-07 15:31:36 -08:00
bindep.txt local HA tests 2016-11-01 18:20:39 -07:00
future-features.txt Fixed some misspellings 2015-07-01 10:36:17 +08:00
lower-constraints.txt Support making unauthenticated APIs requests by JSON ingester 2019-03-07 05:11:01 +00:00
requirements.txt Support making unauthenticated APIs requests by JSON ingester 2019-03-07 05:11:01 +00:00
run_tests.sh Cleanup unused Oslo Incubator code and references 2016-03-18 14:26:24 -04:00
setup.cfg Add python 3.6 to setup.cfg, in line with Stein target 2019-03-14 16:37:24 -07:00
setup.py Updated from global requirements 2017-03-07 01:55:59 +00:00
test-requirements.txt Switch to stestr 2018-10-05 14:12:23 +05:30
thirdparty-requirements.txt Move monascaclient to requirements.txt 2017-04-05 10:49:40 +05:30
tox.ini Update min tox version to 2.0 2018-11-02 10:30:39 +05:30

README.rst

Welcome to Congress

Congress is an open policy framework for the cloud. With Congress, a cloud operator can declare, monitor, enforce, and audit "policy" in a heterogeneous cloud environment. Congress gets inputs from a cloud's various cloud services; for example in OpenStack, Congress fetches information about VMs from Nova, and network state from Neutron, etc. Congress then feeds input data from those services into its policy engine where Congress verifies that the cloud's actual state abides by the cloud operator's policies. Congress is designed to work with any policy and any cloud service.

image

Installing Congress

Please refer to the installation guide >>>>>>> Add wiki Source Bugs and Blueprints notes link to README.rst