diff --git a/ansible/group_vars/all.yml b/ansible/group_vars/all.yml index 55f468e172..ca2c0c5bed 100644 --- a/ansible/group_vars/all.yml +++ b/ansible/group_vars/all.yml @@ -211,7 +211,7 @@ admin_protocol: "http" #################### # OpenStack options #################### -openstack_release: "3.0.0" +openstack_release: "4.0.0" openstack_logging_debug: "False" openstack_region_name: "RegionOne" diff --git a/tools/setup_gate.sh b/tools/setup_gate.sh index 5d99c74f9a..f4378603d7 100755 --- a/tools/setup_gate.sh +++ b/tools/setup_gate.sh @@ -17,11 +17,23 @@ if [[ ! -f /etc/sudoers.d/jenkins ]]; then echo "jenkins ALL=(:docker) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/jenkins fi +function build_image { + KOLLA_DIR=$(mktemp -d) + cat > /tmp/clonemap < /etc/pip.conf" | sudo tee /etc/kolla/header rm ${PIP_CONF} - sed -i 's|^#include_header.*|include_header = /etc/kolla/header|' /etc/kolla/kolla-build.conf + + # Get base distro and install type from workspace. The full path looks like + # /home/jenkins/workspace/gate-kolla-ansible-dsvm-deploy-centos-source-centos-7-nv # NOTE(Jeffrey4l): use different a docker namespace name in case it pull image from hub.docker.io when deplying - sed -i 's|^#namespace.*|namespace = lokolla|' /etc/kolla/kolla-build.conf + cat < /etc/apt/apt.conf" | sudo tee -a /etc/kolla/header # Optimize the repos to take advantage of the Infra provided mirrors for Ubuntu - sed -i 's|^#apt_sources_list.*|apt_sources_list = /etc/kolla/sources.list|' /etc/kolla/kolla-build.conf + cat << EOF | sudo tee -a /etc/kolla/kolla-build.conf +apt_sources_list = /etc/kolla/sources.list +EOF sudo cp /etc/apt/sources.list /etc/kolla/sources.list sudo cat /etc/apt/sources.list.available.d/ubuntu-cloud-archive.list | sudo tee -a /etc/kolla/sources.list # Append non-infra provided repos to list @@ -152,3 +174,8 @@ setup_ssh setup_ansible setup_node setup_config +build_image + +sudo tools/deploy_aio.sh "${BASE_DISTRO}" "${INSTALL_TYPE}" + +tools/dump_info.sh diff --git a/tox.ini b/tox.ini index 06613530e0..18230d74bf 100644 --- a/tox.ini +++ b/tox.ini @@ -45,94 +45,6 @@ commands = {toxinidir}/tools/setup_gate.sh {toxinidir}/tools/dump_info.sh -[testenv:deploy-centos-binary] -whitelist_externals = find - bash - sudo -setenv = - DOCKER_BUILD_TEST=1 -commands = - find . -type f -name "*.pyc" -delete - bash -c "if [ ! -d .testrepository ]; then testr init; fi" - testr run test_build.DeployTestCentosBinary - sudo {toxinidir}/tools/deploy_aio.sh centos binary - {toxinidir}/tools/dump_info.sh - -[testenv:deploy-centos-source] -whitelist_externals = find - bash - sudo -setenv = - DOCKER_BUILD_TEST=1 -commands = - find . -type f -name "*.pyc" -delete - bash -c "if [ ! -d .testrepository ]; then testr init; fi" - testr run test_build.DeployTestCentosSource - sudo {toxinidir}/tools/deploy_aio.sh centos source - {toxinidir}/tools/dump_info.sh - -[testenv:deploy-oraclelinux-binary] -whitelist_externals = find - bash - sudo -setenv = - DOCKER_BUILD_TEST=1 -commands = - find . -type f -name "*.pyc" -delete - bash -c "if [ ! -d .testrepository ]; then testr init; fi" - testr run test_build.DeployTestOracleLinuxBinary - sudo {toxinidir}/tools/deploy_aio.sh oraclelinux binary - {toxinidir}/tools/dump_info.sh - -[testenv:deploy-oraclelinux-source] -whitelist_externals = find - bash - sudo -setenv = - DOCKER_BUILD_TEST=1 -commands = - find . -type f -name "*.pyc" -delete - bash -c "if [ ! -d .testrepository ]; then testr init; fi" - testr run test_build.DeployTestOracleLinuxSource - sudo {toxinidir}/tools/deploy_aio.sh oraclelinux source - {toxinidir}/tools/dump_info.sh - -[testenv:deploy-ubuntu-binary] -whitelist_externals = find - bash -setenv = - DOCKER_BUILD_TEST=1 -commands = - find . -type f -name "*.pyc" -delete - bash -c "if [ ! -d .testrepository ]; then testr init; fi" - testr run test_build.DeployTestUbuntuBinary - sudo {toxinidir}/tools/deploy_aio.sh ubuntu binary - {toxinidir}/tools/dump_info.sh - -[testenv:deploy-ubuntu-source] -whitelist_externals = find - bash - sudo -setenv = - DOCKER_BUILD_TEST=1 -commands = - find . -type f -name "*.pyc" -delete - bash -c "if [ ! -d .testrepository ]; then testr init; fi" - testr run test_build.DeployTestUbuntuSource - sudo {toxinidir}/tools/deploy_aio.sh ubuntu source - {toxinidir}/tools/dump_info.sh - -[testenv:deploy-multinode-ubuntu-source] -whitelist_externals = find - bash -setenv = - DOCKER_BUILD_TEST=1 -commands = - find . -type f -name "*.pyc" -delete - bash -c "if [ ! -d .testrepository ]; then testr init; fi" - testr run test_build.BuildTestUbuntuSource - {toxinidir}/tools/dump_info.sh - [testenv:genconfig] whitelist_externals = which commands=