diff --git a/quantum/api/api_common.py b/quantum/api/api_common.py index cc67f79d89..dfabb3c687 100644 --- a/quantum/api/api_common.py +++ b/quantum/api/api_common.py @@ -17,11 +17,11 @@ import urllib +from oslo.config import cfg from webob import exc from quantum.common import constants from quantum.common import exceptions -from quantum.openstack.common import cfg from quantum.openstack.common import log as logging diff --git a/quantum/db/agents_db.py b/quantum/db/agents_db.py index 0f9a236ad2..ad6c0ec28e 100644 --- a/quantum/db/agents_db.py +++ b/quantum/db/agents_db.py @@ -15,6 +15,7 @@ # License for the specific language governing permissions and limitations # under the License. +from oslo.config import cfg import sqlalchemy as sa from sqlalchemy.orm import exc @@ -22,7 +23,6 @@ from quantum.db import model_base from quantum.db import models_v2 from quantum.extensions import agent as ext_agent from quantum import manager -from quantum.openstack.common import cfg from quantum.openstack.common import jsonutils from quantum.openstack.common import log as logging from quantum.openstack.common import timeutils diff --git a/quantum/extensions/loadbalancer.py b/quantum/extensions/loadbalancer.py index 75e68a6a6b..3f13849ead 100644 --- a/quantum/extensions/loadbalancer.py +++ b/quantum/extensions/loadbalancer.py @@ -17,12 +17,13 @@ import abc +from oslo.config import cfg + from quantum.api import extensions from quantum.api.v2 import attributes as attr from quantum.api.v2 import base from quantum.common import exceptions as qexception from quantum import manager -from quantum.openstack.common import cfg from quantum.plugins.common import constants from quantum.plugins.services.service_base import ServicePluginBase diff --git a/quantum/openstack/common/cfg.py b/quantum/openstack/common/cfg.py deleted file mode 100644 index c35dcb845e..0000000000 --- a/quantum/openstack/common/cfg.py +++ /dev/null @@ -1,17 +0,0 @@ -# vim: tabstop=4 shiftwidth=4 softtabstop=4 - -# Copyright 2013 Red Hat, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - -from oslo.config.cfg import * diff --git a/quantum/plugins/nicira/nicira_nvp_plugin/extensions/nvp_networkgw.py b/quantum/plugins/nicira/nicira_nvp_plugin/extensions/nvp_networkgw.py index 36feb17484..ae2295c0ae 100644 --- a/quantum/plugins/nicira/nicira_nvp_plugin/extensions/nvp_networkgw.py +++ b/quantum/plugins/nicira/nicira_nvp_plugin/extensions/nvp_networkgw.py @@ -18,11 +18,12 @@ from abc import abstractmethod +from oslo.config import cfg + from quantum.api import extensions from quantum.api.v2 import attributes from quantum.api.v2 import base from quantum import manager -from quantum.openstack.common import cfg from quantum import quota RESOURCE_NAME = "network-gateway" diff --git a/quantum/plugins/openvswitch/Makefile b/quantum/plugins/openvswitch/Makefile index 7d6c133b6a..b668cfdbba 100644 --- a/quantum/plugins/openvswitch/Makefile +++ b/quantum/plugins/openvswitch/Makefile @@ -39,7 +39,6 @@ agent-dist-xen agent-dist-xen-python26: distclean cp __init__.py $(QUANTUM_LIBS)/quantum/plugins/openvswitch/ cp common/{config.py,__init__.py} $(QUANTUM_LIBS)/quantum/plugins/openvswitch/common/ cp ../../openstack/__init__.py $(QUANTUM_LIBS)/quantum/openstack/ - cp ../../openstack/common/{cfg.py,iniparser.py,__init__.py} $(QUANTUM_LIBS)/quantum/openstack/common/ tar -czvpf ${RPM_BUILD_ROOT}/SOURCES/ovs-quantum-agent-${VERSION}.tgz -C $(AGENT_DIST_DIR)/build ovs-quantum-agent-${VERSION} rpmbuild -ba --define "_topdir $(shell pwd)/$(RPM_BUILD_ROOT)" --clean $(AGENT_DIST_DIR)/ovs-quantum-agent-xs_xcp.spec @echo "Agent package created: ovs_quantum_agent/build/rpm/RPMS/noarch/ovs-quantum-agent-${VERSION}-1.noarch.rpm" diff --git a/quantum/plugins/ryu/ryu_quantum_plugin.py b/quantum/plugins/ryu/ryu_quantum_plugin.py index 58dc0e4e45..09e8749e45 100644 --- a/quantum/plugins/ryu/ryu_quantum_plugin.py +++ b/quantum/plugins/ryu/ryu_quantum_plugin.py @@ -33,7 +33,6 @@ from quantum.db import l3_rpc_base from quantum.db import models_v2 from quantum.db import securitygroups_rpc_base as sg_db_rpc from quantum.extensions import securitygroup as ext_sg -from quantum.openstack.common import cfg from quantum.openstack.common import log as logging from quantum.openstack.common import rpc from quantum.openstack.common.rpc import proxy diff --git a/quantum/tests/unit/nicira/test_networkgw.py b/quantum/tests/unit/nicira/test_networkgw.py index 6389d37fea..0ba10bc305 100644 --- a/quantum/tests/unit/nicira/test_networkgw.py +++ b/quantum/tests/unit/nicira/test_networkgw.py @@ -16,6 +16,7 @@ import contextlib import mock +from oslo.config import cfg import testtools from webob import exc import webtest @@ -28,7 +29,6 @@ from quantum import context from quantum.db import api as db_api from quantum.db import db_base_plugin_v2 from quantum import manager -from quantum.openstack.common import cfg from quantum.plugins.nicira.nicira_nvp_plugin.extensions import (nvp_networkgw as networkgw) from quantum.plugins.nicira.nicira_nvp_plugin import nicira_networkgw_db diff --git a/quantum/tests/unit/ryu/test_ryu_agent.py b/quantum/tests/unit/ryu/test_ryu_agent.py index 6c3c91ced7..0ebd6aeacd 100644 --- a/quantum/tests/unit/ryu/test_ryu_agent.py +++ b/quantum/tests/unit/ryu/test_ryu_agent.py @@ -17,6 +17,7 @@ from contextlib import nested import httplib import mock +from oslo.config import cfg import testtools from quantum.openstack.common import importutils @@ -494,7 +495,7 @@ class TestRyuQuantumAgent(RyuAgentTestCase): netifs_attrs = {'AF_INET': 0, 'ifaddresses.return_value': [[{'addr': '10.0.0.1'}]]} with nested( - mock.patch('quantum.openstack.common.cfg.CONF.OVS', **cfg_attrs), + mock.patch('oslo.config.cfg.CONF.OVS', **cfg_attrs), mock.patch(self._AGENT_NAME + '.netifaces', **netifs_attrs), mock.patch(self._AGENT_NAME + '._get_my_ip', return_value='172.16.0.1') @@ -511,7 +512,7 @@ class TestRyuQuantumAgent(RyuAgentTestCase): netifs_attrs = {'AF_INET': 0, 'ifaddresses.return_value': [[{'addr': '10.0.0.1'}]]} with nested( - mock.patch('quantum.openstack.common.cfg.CONF.OVS', **cfg_attrs), + mock.patch('oslo.config.cfg.CONF.OVS', **cfg_attrs), mock.patch(self._AGENT_NAME + '.netifaces', **netifs_attrs), mock.patch(self._AGENT_NAME + '._get_my_ip', return_value='172.16.0.1') @@ -530,7 +531,7 @@ class TestRyuQuantumAgent(RyuAgentTestCase): netifs_attrs = {'AF_INET': 0, 'ifaddresses.return_value': [[{'addr': '10.0.0.1'}]]} with nested( - mock.patch('quantum.openstack.common.cfg.CONF.OVS', **cfg_attrs), + mock.patch('oslo.config.cfg.CONF.OVS', **cfg_attrs), mock.patch(self._AGENT_NAME + '.netifaces', **netifs_attrs), mock.patch(self._AGENT_NAME + '._get_my_ip', return_value='172.16.0.1') @@ -568,7 +569,7 @@ class TestRyuQuantumAgent(RyuAgentTestCase): 'OVS.ovsdb_port': 16634, 'AGENT.root_helper': 'helper'} with nested( - mock.patch('quantum.openstack.common.cfg.CONF', **cfg_attrs), + mock.patch('oslo.config.cfg.CONF', **cfg_attrs), mock.patch(self._AGENT_NAME + '.logging_config'), mock.patch(self._AGENT_NAME + '._get_tunnel_ip', return_value='10.0.0.1'), diff --git a/quantum/tests/unit/test_agent_ext_plugin.py b/quantum/tests/unit/test_agent_ext_plugin.py index 24acc4ea19..0501cdcce6 100644 --- a/quantum/tests/unit/test_agent_ext_plugin.py +++ b/quantum/tests/unit/test_agent_ext_plugin.py @@ -18,6 +18,7 @@ import copy import time +from oslo.config import cfg from webob import exc from quantum.common import constants @@ -27,7 +28,6 @@ from quantum import context from quantum.db import agents_db from quantum.db import db_base_plugin_v2 from quantum.extensions import agent -from quantum.openstack.common import cfg from quantum.openstack.common import log as logging from quantum.openstack.common import uuidutils from quantum.tests.unit import test_api_v2 diff --git a/quantum/tests/unit/test_routerserviceinsertion.py b/quantum/tests/unit/test_routerserviceinsertion.py index 7b75fb6405..21f016db48 100644 --- a/quantum/tests/unit/test_routerserviceinsertion.py +++ b/quantum/tests/unit/test_routerserviceinsertion.py @@ -14,6 +14,7 @@ # License for the specific language governing permissions and limitations # under the License. +from oslo.config import cfg import testtools import webob.exc as webexc @@ -32,7 +33,6 @@ from quantum.db import routerservicetype_db as rst_db from quantum.db import servicetype_db as st_db from quantum.extensions import routedserviceinsertion as rsi from quantum.extensions import routerservicetype as rst -from quantum.openstack.common import cfg from quantum.plugins.common import constants from quantum.tests.unit import test_api_v2 from quantum.tests.unit import testlib_api diff --git a/tools/pip-requires b/tools/pip-requires index 05eaeb592f..08548da98b 100644 --- a/tools/pip-requires +++ b/tools/pip-requires @@ -16,7 +16,7 @@ sqlalchemy==0.7.9 WebOb>=1.2 python-keystoneclient>=0.2.0 alembic>=0.4.1 -http://tarballs.openstack.org/oslo-config/oslo-config-2013.1b3.tar.gz#egg=oslo-config +http://tarballs.openstack.org/oslo-config/oslo-config-2013.1b4.tar.gz#egg=oslo-config # Cisco plugin dependencies python-novaclient