fix gate
A few fixes to get the tricircle gate working: - Remove the depend on neutron common exception. - Update lower-constraints for unneeded version constraining. - The changes from https://review.openstack.org/#/c/596420/ - Adds neutron and sfc to the functional playbook - Separates the neutron and networking-sfc requirements into sibling-requirements.txt so they are not picked up by devstack and updates tox.ini as needed for them. Change-Id: Icd6b36e613456b4af35eaf70ef95b4ef32ddf806 Signed-off-by: song baisen <songbaisen@szzt.com.cn> Co-Authored-By: tangzhuo <ztang@hnu.edu.cn>, zhiyuan_cai <luckyvega.g@gmail.com>
This commit is contained in:
parent
d6817cc359
commit
2639d8964d
|
@ -7,6 +7,8 @@
|
||||||
required-projects:
|
required-projects:
|
||||||
- openstack-infra/devstack-gate
|
- openstack-infra/devstack-gate
|
||||||
- openstack/tricircle
|
- openstack/tricircle
|
||||||
|
- openstack/neutron
|
||||||
|
- openstack/networking-sfc
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: tricircle-multiregion
|
name: tricircle-multiregion
|
||||||
|
|
|
@ -8,7 +8,6 @@ bandit==1.1.0
|
||||||
bashate==0.5.1
|
bashate==0.5.1
|
||||||
beautifulsoup4==4.6.0
|
beautifulsoup4==4.6.0
|
||||||
cachetools==2.0.0
|
cachetools==2.0.0
|
||||||
cffi==1.7.0
|
|
||||||
cliff==2.8.0
|
cliff==2.8.0
|
||||||
cmd2==0.8.0
|
cmd2==0.8.0
|
||||||
contextlib2==0.4.0
|
contextlib2==0.4.0
|
||||||
|
|
|
@ -42,7 +42,8 @@
|
||||||
set -x
|
set -x
|
||||||
export PYTHONUNBUFFERED=true
|
export PYTHONUNBUFFERED=true
|
||||||
export BRANCH_OVERRIDE=default
|
export BRANCH_OVERRIDE=default
|
||||||
export PROJECTS="openstack/tricircle $PROJECTS"
|
export PROJECTS="openstack/tricircle openstack/neutron openstack/networking-sfc $PROJECTS"
|
||||||
|
export LIBS_FROM_GIT="neutron,networking-sfc"
|
||||||
export DEVSTACK_GATE_NEUTRON=1
|
export DEVSTACK_GATE_NEUTRON=1
|
||||||
export DEVSTACK_GATE_TEMPEST=0
|
export DEVSTACK_GATE_TEMPEST=0
|
||||||
export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=0
|
export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=0
|
||||||
|
|
|
@ -43,10 +43,8 @@ oslo.upgradecheck>=0.1.1 # Apache-2.0
|
||||||
oslo.utils>=3.33.0 # Apache-2.0
|
oslo.utils>=3.33.0 # Apache-2.0
|
||||||
sqlalchemy-migrate>=0.11.0 # Apache-2.0
|
sqlalchemy-migrate>=0.11.0 # Apache-2.0
|
||||||
|
|
||||||
# These repos are installed from git in OpenStack CI if the job
|
# Uncomment or copy/paste the sibling requirements for release of project
|
||||||
# configures them as required-projects:
|
# -r ./sibling-requirements.txt
|
||||||
neutron>=12.0.0 # Apache-2.0
|
|
||||||
networking-sfc>=6.0.0 # Apache-2.0
|
|
||||||
|
|
||||||
# The comment below indicates this project repo is current with neutron-lib
|
# The comment below indicates this project repo is current with neutron-lib
|
||||||
# and should receive neutron-lib consumption patches as they are released
|
# and should receive neutron-lib consumption patches as they are released
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
# These repos are installed from git in OpenStack CI if the job
|
||||||
|
# configures them as required-projects:
|
||||||
|
neutron>=12.0.0 # Apache-2.0
|
||||||
|
networking-sfc>=6.0.0 # Apache-2.0
|
2
tox.ini
2
tox.ini
|
@ -10,6 +10,7 @@ passenv = TRACE_FAILONLY GENERATE_HASHES http_proxy HTTP_PROXY https_proxy HTTPS
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
deps = -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
|
deps = -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
|
||||||
-r{toxinidir}/requirements.txt
|
-r{toxinidir}/requirements.txt
|
||||||
|
-r{toxinidir}/sibling-requirements.txt
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
whitelist_externals =
|
whitelist_externals =
|
||||||
sh
|
sh
|
||||||
|
@ -67,6 +68,7 @@ deps =
|
||||||
-c{toxinidir}/lower-constraints.txt
|
-c{toxinidir}/lower-constraints.txt
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
-r{toxinidir}/requirements.txt
|
-r{toxinidir}/requirements.txt
|
||||||
|
-r{toxinidir}/sibling-requirements.txt
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
show-source = True
|
show-source = True
|
||||||
|
|
|
@ -24,7 +24,6 @@ from oslo_db.sqlalchemy import utils as sa_utils
|
||||||
import oslo_log.helpers as log_helpers
|
import oslo_log.helpers as log_helpers
|
||||||
from oslo_log import log
|
from oslo_log import log
|
||||||
|
|
||||||
import neutron.common.exceptions as ml2_exceptions
|
|
||||||
from neutron.conf.plugins.ml2 import config # noqa
|
from neutron.conf.plugins.ml2 import config # noqa
|
||||||
from neutron.db import agents_db
|
from neutron.db import agents_db
|
||||||
from neutron.db.availability_zone import router as router_az
|
from neutron.db.availability_zone import router as router_az
|
||||||
|
@ -336,7 +335,7 @@ class TricirclePlugin(db_base_plugin_v2.NeutronDbPluginV2,
|
||||||
if not match:
|
if not match:
|
||||||
raise
|
raise
|
||||||
else:
|
else:
|
||||||
raise ml2_exceptions.FlatNetworkInUse(
|
raise exceptions.FlatNetworkInUse(
|
||||||
physical_network=match.groups()[0])
|
physical_network=match.groups()[0])
|
||||||
# process_extensions is set to False in _make_network_dict, so "tags"
|
# process_extensions is set to False in _make_network_dict, so "tags"
|
||||||
# field will not be set, we manually set here so openstack client can
|
# field will not be set, we manually set here so openstack client can
|
||||||
|
@ -978,13 +977,11 @@ class TricirclePlugin(db_base_plugin_v2.NeutronDbPluginV2,
|
||||||
try:
|
try:
|
||||||
# notify interested parties of imminent port deletion;
|
# notify interested parties of imminent port deletion;
|
||||||
# a failure here prevents the operation from happening
|
# a failure here prevents the operation from happening
|
||||||
kwargs = {
|
registry.publish(
|
||||||
'context': context,
|
resources.PORT, events.BEFORE_DELETE, self,
|
||||||
'port_id': port_id,
|
payload=events.DBEventPayload(
|
||||||
'port_check': port_check
|
context, metadata={'port_check': port_check},
|
||||||
}
|
resource_id=port_id))
|
||||||
registry.notify(
|
|
||||||
resources.PORT, events.BEFORE_DELETE, self, **kwargs)
|
|
||||||
except callbacks_exc.CallbackFailure as e:
|
except callbacks_exc.CallbackFailure as e:
|
||||||
# NOTE(xiulin): preserve old check's behavior
|
# NOTE(xiulin): preserve old check's behavior
|
||||||
if len(e.errors) == 1:
|
if len(e.errors) == 1:
|
||||||
|
|
|
@ -967,7 +967,7 @@ def fake_filter_non_model_columns(data, model):
|
||||||
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def fake_load_obj(cls, context, db_obj):
|
def fake_load_obj(cls, context, db_obj, fields=None):
|
||||||
return db_obj
|
return db_obj
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue