diff --git a/congress/api/datasource_model.py b/congress/api/datasource_model.py index df1dad5e3..59a4aacbc 100644 --- a/congress/api/datasource_model.py +++ b/congress/api/datasource_model.py @@ -17,9 +17,9 @@ from __future__ import print_function from __future__ import division from __future__ import absolute_import -import json from oslo_log import log as logging +from oslo_serialization import jsonutils as json from congress.api import api_utils from congress.api import base diff --git a/congress/api/policy_model.py b/congress/api/policy_model.py index 00f7fd6ce..7bb9c0b76 100644 --- a/congress/api/policy_model.py +++ b/congress/api/policy_model.py @@ -17,9 +17,9 @@ from __future__ import print_function from __future__ import division from __future__ import absolute_import -import json import re +from oslo_serialization import jsonutils as json import six from congress.api import base diff --git a/congress/api/webservice.py b/congress/api/webservice.py index e41d4fe63..ef76b81f9 100644 --- a/congress/api/webservice.py +++ b/congress/api/webservice.py @@ -22,12 +22,12 @@ try: import http.client as httplib except ImportError: import httplib -import json import re from oslo_config import cfg from oslo_db import exception as db_exc from oslo_log import log as logging +from oslo_serialization import jsonutils as json from oslo_utils import uuidutils import six import webob diff --git a/congress/server/congress_server.py b/congress/server/congress_server.py index b0e470698..87d5a1331 100644 --- a/congress/server/congress_server.py +++ b/congress/server/congress_server.py @@ -1,4 +1,4 @@ -#! /usr/bin/python +#! /usr/bin/env python # # Copyright (c) 2014 VMware, Inc. All rights reserved. # diff --git a/congress_tempest_tests/tests/scenario/congress_datasources/test_murano.py b/congress_tempest_tests/tests/scenario/congress_datasources/test_murano.py index ea9cfbd2b..25c1d1f4c 100644 --- a/congress_tempest_tests/tests/scenario/congress_datasources/test_murano.py +++ b/congress_tempest_tests/tests/scenario/congress_datasources/test_murano.py @@ -61,8 +61,9 @@ class TestMuranoDriver(manager_congress.ScenarioPolicyBase): rule['id']) def _create_random_policy(): - policy_name = "murano_%s" % ''.join(random.choice(string.lowercase) - for x in range(10)) + policy_name = "murano_%s" % ''.join( + random.choice(string.ascii_lowercase) + for x in range(10)) body = {"name": policy_name} resp = self.congress_client.create_policy(body) self.addCleanup(_delete_policy_rules, resp['name']) diff --git a/congress_tempest_tests/tests/scenario/congress_ha/test_ha.py b/congress_tempest_tests/tests/scenario/congress_ha/test_ha.py index 25835ac6f..8e06c3f37 100644 --- a/congress_tempest_tests/tests/scenario/congress_ha/test_ha.py +++ b/congress_tempest_tests/tests/scenario/congress_ha/test_ha.py @@ -102,7 +102,7 @@ class TestHA(manager_congress.ScenarioPolicyBase): def start_service(self, name, conf_file): service = '--' + name node = name + '-replica-node' - args = ['/usr/bin/python', 'bin/congress-server', service, + args = ['bin/congress-server', service, '--node-id', node, '--config-file', conf_file] p = subprocess.Popen(args, stdout=subprocess.PIPE, diff --git a/playbooks/legacy/congress-devstack-py35-api-mysql/run.yaml b/playbooks/legacy/congress-devstack-py35-api-mysql/run.yaml index e7b8d9aa0..53b88b5f0 100644 --- a/playbooks/legacy/congress-devstack-py35-api-mysql/run.yaml +++ b/playbooks/legacy/congress-devstack-py35-api-mysql/run.yaml @@ -36,13 +36,11 @@ disable_service s-proxy # without Swift, c-bak cannot run (in the Gate at least) disable_service c-bak - # disable all plug-ins for now except congress # enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer - # enable_plugin heat git://git.openstack.org/openstack/heat - enable_plugin congress git://git.openstack.org/openstack/congress - # enable_plugin murano git://git.openstack.org/openstack/murano # enable_plugin aodh git://git.openstack.org/openstack/aodh - # enable_plugin designate git://git.openstack.org/openstack/designate + enable_plugin heat git://git.openstack.org/openstack/heat + enable_plugin congress git://git.openstack.org/openstack/congress + enable_plugin murano git://git.openstack.org/openstack/murano enable_plugin neutron https://git.openstack.org/openstack/neutron # To deploy congress as multi-process (api, pe, datasources) CONGRESS_MULTIPROCESS_DEPLOYMENT=True @@ -81,9 +79,6 @@ if [ "$BRANCH_OVERRIDE" != "default" ] ; then export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE fi - if [ "mysql" == "postgresql" ] ; then - export DEVSTACK_GATE_POSTGRES=1 - fi cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh