diff --git a/hack/ci/cloud-init/controller.yaml.tpl b/hack/ci/cloud-init/controller.yaml.tpl index bca56cc475..acea884440 100644 --- a/hack/ci/cloud-init/controller.yaml.tpl +++ b/hack/ci/cloud-init/controller.yaml.tpl @@ -12,9 +12,6 @@ VERBOSE=True LOG_COLOR=True - # Neutron - enable_plugin neutron https://github.com/openstack/neutron stable/${OPENSTACK_RELEASE} - # Octavia enable_plugin octavia https://github.com/openstack/octavia stable/${OPENSTACK_RELEASE} enable_plugin octavia-dashboard https://github.com/openstack/octavia-dashboard stable/${OPENSTACK_RELEASE} @@ -35,9 +32,20 @@ ENABLED_SERVICES+=,g-api # Neutron - ENABLED_SERVICES+=,neutron-api,neutron-agent,neutron-dhcp,neutron-l3,neutron-trunk + enable_plugin neutron https://github.com/openstack/neutron stable/${OPENSTACK_RELEASE} + enable_service q-svc + enable_service q-ovn-metadata-agent + enable_service q-trunk + enable_service q-qos + enable_service ovn-controller + enable_service ovn-northd + enable_service ovs-vswitchd + enable_service ovsdb-server + + ML2_L3_PLUGIN="ovn-router,trunk,qos" + OVN_L3_CREATE_PUBLIC_NETWORK="True" + PUBLIC_BRIDGE_MTU="1430" - ENABLED_SERVICES+=,neutron-metadata-agent,neutron-qos # Octavia ENABLED_SERVICES+=,octavia,o-api,o-cw,o-hm,o-hk,o-da diff --git a/hack/ci/cloud-init/worker.yaml.tpl b/hack/ci/cloud-init/worker.yaml.tpl index 73e642f55f..a613ac4a49 100644 --- a/hack/ci/cloud-init/worker.yaml.tpl +++ b/hack/ci/cloud-init/worker.yaml.tpl @@ -25,12 +25,17 @@ DATABASE_TYPE=mysql DATABASE_HOST=$SERVICE_HOST + # Nova + ENABLED_SERVICES=n-cpu,placement-client,c-vol + VOLUME_BACKING_FILE_SIZE=100G + # Neutron enable_plugin neutron https://github.com/openstack/neutron stable/${OPENSTACK_RELEASE} + enable_service ovn-controller + enable_service q-ovn-metadata-agent + enable_service ovs-vswitchd - # Nova - ENABLED_SERVICES=n-cpu,placement-client,c-vol,neutron-agent - VOLUME_BACKING_FILE_SIZE=100G + OVN_SB_REMOTE=tcp:$SERVICE_HOST:6642 # Additional services ENABLED_SERVICES+=${OPENSTACK_ADDITIONAL_SERVICES} diff --git a/hack/ci/create_devstack.sh b/hack/ci/create_devstack.sh index 6431b26b08..06857879d3 100755 --- a/hack/ci/create_devstack.sh +++ b/hack/ci/create_devstack.sh @@ -31,7 +31,7 @@ source "${scriptdir}/${RESOURCE_TYPE}.sh" CLUSTER_NAME=${CLUSTER_NAME:-"capo-e2e"} -OPENSTACK_RELEASE=${OPENSTACK_RELEASE:-"yoga"} +OPENSTACK_RELEASE=${OPENSTACK_RELEASE:-"2023.2"} OPENSTACK_ENABLE_HORIZON=${OPENSTACK_ENABLE_HORIZON:-"false"} # Devstack will create a provider network using this range @@ -85,11 +85,6 @@ function ensure_openstack_client { # We explicitly pin to the stable branch version of openstackclient. curl -L https://releases.openstack.org/constraints/upper/${OPENSTACK_RELEASE} -o /tmp/openstack-constraints - - # Hack for yoga only: wrapt <1.14 doesn't support python 3.11 - [ "${OPENSTACK_RELEASE}" == "yoga" ] || exit 1 # Delete this hack - sed -i "s/^wrapt===1\.13.*/wrapt===1.14.1/" /tmp/openstack-constraints - pip install -c /tmp/openstack-constraints \ python-openstackclient python-cinderclient \ python-glanceclient python-keystoneclient \ diff --git a/hack/ci/gce-project.sh b/hack/ci/gce-project.sh index 2b7a1a981a..086dc229a6 100755 --- a/hack/ci/gce-project.sh +++ b/hack/ci/gce-project.sh @@ -95,7 +95,7 @@ function create_vm { --zone "$GCP_ZONE" \ --enable-nested-virtualization \ --image-project ubuntu-os-cloud \ - --image-family ubuntu-2004-lts \ + --image-family ubuntu-2204-lts \ --boot-disk-size 200G \ --boot-disk-type pd-ssd \ --can-ip-forward \