Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kolla Ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Very Demiurge Very Mindful
Kolla Ansible
Commits
06c001e4
Commit
06c001e4
authored
8 years ago
by
Jenkins
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "fix ci gate"
parents
d862bedc
db5954e0
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ansible/group_vars/all.yml
+1
-1
1 addition, 1 deletion
ansible/group_vars/all.yml
tools/setup_gate.sh
+34
-7
34 additions, 7 deletions
tools/setup_gate.sh
tox.ini
+0
-88
0 additions, 88 deletions
tox.ini
with
35 additions
and
96 deletions
ansible/group_vars/all.yml
+
1
−
1
View file @
06c001e4
...
...
@@ -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"
...
...
This diff is collapsed.
Click to expand it.
tools/setup_gate.sh
+
34
−
7
View file @
06c001e4
...
...
@@ -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
<<
EOF
clonemap:
- name: openstack/kolla
dest:
${
KOLLA_DIR
}
EOF
/usr/zuul-env/bin/zuul-cloner
-m
/tmp/clonemap
--workspace
"
$(
pwd
)
"
\
--cache-dir
/opt/git git://git.openstack.org
\
openstack/kolla
sudo
pip
install
${
KOLLA_DIR
}
# TODO(Jeffrey4l): ignore the known failed images
sudo
kolla-build
-p
gate
||
true
}
function
setup_config
{
# generate the config
tox
-e
genconfig
# Copy configs
sudo cp
-a
etc/kolla /etc/
sudo cp
-r
etc/kolla /etc/
# Generate passwords
sudo
tools/generate_passwords.py
...
...
@@ -36,17 +48,27 @@ trusted-host = $NODEPOOL_MIRROR_HOST
EOF
echo
"RUN echo
$(
base64
-w0
${
PIP_CONF
}
)
| base64 -d > /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
<<
EOF
| sudo tee /etc/kolla/kolla-build.conf
[DEFAULT]
include_header = /etc/kolla/header
namespace = lokolla
base =
${
BASE_DISTRO
}
install_type =
${
INSTALL_TYPE
}
EOF
if
[[
"
${
DISTRO
}
"
==
"Debian"
]]
;
then
# Infra does not sign thier mirrors so we ignore gpg signing in the gate
echo
"RUN echo 'APT::Get::AllowUnauthenticated
\"
true
\"
;' > /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
This diff is collapsed.
Click to expand it.
tox.ini
+
0
−
88
View file @
06c001e4
...
...
@@ -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
=
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment