Switch fullstack/functional fips jobs to 9-stream

Master no longer support py3.6, so let's switch
these jobs to CentOS 9-stream which includes py3.9.

Also dbcounter[1] is not installable on CentOS 8-stream
and hence these jobs are currently broken.

Other fips jobs already switched with[2].

[1] https://review.opendev.org/c/openstack/devstack/+/839820
[2] https://review.opendev.org/c/openstack/neutron/+/833173

[Stable Only] The switch is to match defined runtimes per release
https://governance.openstack.org/tc/reference/runtimes/

Closes-Bug: #1976323
Change-Id: Ie4e807b1490d59390316ec20b499b7676acfe410
(cherry picked from commit 42ae944870)
This commit is contained in:
yatinkarel 2022-05-25 13:18:44 +05:30 committed by yatin
parent 7013fc5b79
commit b7a59a5132
4 changed files with 20 additions and 17 deletions

View File

@ -395,8 +395,11 @@ class TestLegacyL3Agent(TestL3Agent):
v6network = self.useFixture(
ip_network.ExclusiveIPNetwork(
"2001:db8:1234::1", "2001:db8:1234::10", "64")).network
# NOTE(ykarel): gateway_ip is explicitly added as iputils package
# requires fix for https://github.com/iputils/iputils/issues/371
# is not available in CentOS 9-Stream
ext_v6sub = self.safe_client.create_subnet(
tenant_id, ext_net['id'], v6network)
tenant_id, ext_net['id'], v6network, gateway_ip='2001:db8:1234::1')
router = self.safe_client.create_router(tenant_id,
external_network=ext_net['id'])

View File

@ -13,6 +13,8 @@
# License for the specific language governing permissions and limitations
# under the License.
import time
from neutron_lib import constants
from oslo_utils import uuidutils
@ -119,5 +121,9 @@ class LocalIPTestCase(base.BaseFullStackTestCase):
# VM on different host shouldn't have access to this Local IP
vms[2].assert_no_ping(local_ip['local_ip_address'])
# NOTE(ykarel): response comes from local_ip assigned to vm0,
# as a workaround sleep for arp cache expiry. It requires
# fix in Local IP feature
time.sleep(31)
# check that VMs can still access each other with fixed IPs
vms.ping_all()

View File

@ -27,11 +27,15 @@
MYSQL_GATHER_PERFORMANCE={{ MYSQL_GATHER_PERFORMANCE | default(true) }}
source $NEUTRON_DIR/tools/configure_for_func_testing.sh
if is_fedora; then
# NOTE(slqweq) Running functional job e.g. on Centos requires to
# have repo with rabbitmq-server and some other packages available
install_package centos-release-openstack-victoria
OPENSTACK_RELEASE=victoria
# For CentOS 9-Stream need to setup yoga repos
if [[ $os_VENDOR == "CentOSStream" && $os_RELEASE -gt 8 ]]; then
OPENSTACK_RELEASE=yoga
fi
install_package centos-release-openstack-${OPENSTACK_RELEASE}
install_package iproute-tc haproxy keepalived
# NOTE(slaweq) On Fedora/CentOS systems make sure that SELinux is

View File

@ -127,17 +127,12 @@
- job:
name: neutron-functional-with-uwsgi-fips
parent: neutron-functional-with-uwsgi
nodeset: devstack-single-node-centos-8-stream
nodeset: devstack-single-node-centos-9-stream
description: |
Functional testing for a FIPS enabled Centos 8 system
Functional testing for a FIPS enabled Centos 9 system
vars:
nslookup_target: 'opendev.org'
enable_fips: True
# NOTE(ykarel) Remove MYSQL_GATHER_PERFORMANCE and
# tox_environment when this job switches to centos-9-stream
MYSQL_GATHER_PERFORMANCE: false
tox_environment:
TOX_PYTHON: python3.8
devstack_localrc:
ISCSI_CHAP_ALGORITHMS: SHA3-256,SHA256
Q_BUILD_OVS_FROM_GIT: true
@ -145,17 +140,12 @@
- job:
name: neutron-fullstack-with-uwsgi-fips
parent: neutron-fullstack-with-uwsgi
nodeset: devstack-single-node-centos-8-stream
nodeset: devstack-single-node-centos-9-stream
description: |
Functional testing for a FIPS enabled Centos 8 system
Functional testing for a FIPS enabled Centos 9 system
vars:
nslookup_target: 'opendev.org'
enable_fips: True
# NOTE(ykarel) Remove MYSQL_GATHER_PERFORMANCE and
# tox_environment when this job switches to centos-9-stream
MYSQL_GATHER_PERFORMANCE: false
tox_environment:
TOX_PYTHON: python3.8
devstack_localrc:
ISCSI_CHAP_ALGORITHMS: SHA3-256,SHA256
Q_BUILD_OVS_FROM_GIT: true