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
0317de44
Commit
0317de44
authored
5 years ago
by
Zuul
Committed by
Gerrit Code Review
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge "CI: Add addressing on external network"
parents
0182ea0b
195813dd
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
tests/init-core-openstack.sh
+13
-0
13 additions, 0 deletions
tests/init-core-openstack.sh
tests/pre.yml
+2
-0
2 additions, 0 deletions
tests/pre.yml
tests/run.yml
+7
-0
7 additions, 0 deletions
tests/run.yml
zuul.d/base.yaml
+2
-0
2 additions, 0 deletions
zuul.d/base.yaml
with
24 additions
and
0 deletions
tests/init-core-openstack.sh
+
13
−
0
View file @
0317de44
...
...
@@ -12,6 +12,19 @@ function init_runonce {
echo
"Initialising OpenStack resources via init-runonce"
tools/init-runonce &> /tmp/logs/ansible/init-runonce
echo
"Setting address on the external network bridge"
if
[[
$SCENARIO
==
"linuxbridge"
]]
;
then
# NOTE(yoctozepto): linuxbridge agent manages its bridges by itself
# hence, we need to find the current name of the external network bridge
devname
=
$(
basename
$(
readlink
/sys/class/net/
${
EXT_NET_SLAVE_DEVICE
}
/master
))
else
devname
=
br-ex
# NOTE(yoctozepto): ovs virtual interfaces are down (not used) by default
# hence, we need to bring the external network bridge up
sudo
ip
link set
${
devname
}
up
fi
sudo
ip addr add
${
EXT_NET_LOCAL_ADDR
}
dev
${
devname
}
}
...
...
This diff is collapsed.
Click to expand it.
tests/pre.yml
+
2
−
0
View file @
0317de44
...
...
@@ -16,6 +16,8 @@
managed_network_prefix
:
"
{{
api_network_prefix
}}"
managed_network_prefix_length
:
"
{{
api_network_prefix_length
}}"
managed_network_address_family
:
"
{{
address_family
}}"
# NOTE(yoctozepto): no addressing for neutron_external_interface in here
# because it is enslaved by a bridge
-
role
:
multi-node-vxlan-overlay
vars
:
vxlan_interface_name
:
"
{{
neutron_external_interface_name
}}"
...
...
This diff is collapsed.
Click to expand it.
tests/run.yml
+
7
−
0
View file @
0317de44
...
...
@@ -357,6 +357,13 @@
cmd
:
init-core-openstack.sh
executable
:
/bin/bash
chdir
:
"
{{
kolla_ansible_src_dir
}}"
environment
:
EXT_NET_CIDR
:
"
{{
neutron_external_network_prefix
}}0/{{
neutron_external_network_prefix_length
}}"
EXT_NET_RANGE
:
"
start={{
neutron_external_network_prefix
}}150,end={{
neutron_external_network_prefix
}}199"
EXT_NET_GATEWAY
:
"
{{
neutron_external_network_prefix
}}1"
EXT_NET_LOCAL_ADDR
:
"
{{
neutron_external_network_prefix
}}1/{{
neutron_external_network_prefix_length
}}"
EXT_NET_SLAVE_DEVICE
:
"
{{
neutron_external_interface_name
}}"
SCENARIO
:
"
{{
scenario
}}"
when
:
openstack_core_tested or scenario in ['ironic', 'scenario_nfv', 'zun']
-
name
:
Run test-core-openstack.sh script
...
...
This diff is collapsed.
Click to expand it.
zuul.d/base.yaml
+
2
−
0
View file @
0317de44
...
...
@@ -33,6 +33,8 @@
api_interface_name
:
vxlan0
kolla_internal_vip_address
:
"
192.0.2.10"
address_family
:
'
ipv4'
neutron_external_network_prefix
:
"
198.51.100."
neutron_external_network_prefix_length
:
"
24"
neutron_external_interface_name
:
vxlan1
tls_enabled
:
false
roles
:
...
...
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