Skip to content

Commit bb33b8a

Browse files
committed
Add support for bgp-l3-xl-adoption
1 parent 57437af commit bb33b8a

File tree

16 files changed

+1903
-5
lines changed

16 files changed

+1903
-5
lines changed

scenarios/bgp-l3-xl.yaml

Lines changed: 192 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,192 @@
1+
---
2+
undercloud:
3+
config:
4+
- section: DEFAULT
5+
option: undercloud_hostname
6+
value: undercloud.example.com
7+
- section: DEFAULT
8+
option: undercloud_timezone
9+
value: UTC
10+
- section: DEFAULT
11+
option: undercloud_debug
12+
value: true
13+
- section: DEFAULT
14+
option: container_cli
15+
value: podman
16+
- section: DEFAULT
17+
option: undercloud_enable_selinux
18+
value: false
19+
- section: DEFAULT
20+
option: generate_service_certificate
21+
value: false
22+
- section: DEFAULT
23+
option: enable_frr
24+
value: true
25+
- section: DEFAULT
26+
option: enable_routed_networks
27+
value: true
28+
- section: DEFAULT
29+
option: local_ip
30+
value: 192.168.122.95/24
31+
- section: DEFAULT
32+
option: undercloud_public_host
33+
value: "192.168.122.97"
34+
- section: DEFAULT
35+
option: undercloud_admin_host
36+
value: "192.168.122.98"
37+
- section: DEFAULT
38+
option: subnets
39+
value: r0,r1,r2,r3
40+
- section: DEFAULT
41+
option: local_subnet
42+
value: r0
43+
- section: r0
44+
option: cidr
45+
value: 192.168.122.0/24
46+
- section: r0
47+
option: dhcp_start
48+
value: 192.168.122.150
49+
- section: r0
50+
option: dhcp_end
51+
value: 192.168.122.170
52+
- section: r0
53+
option: inspection_iprange
54+
value: 192.168.122.171,192.168.122.185
55+
- section: r0
56+
option: gateway
57+
value: 192.168.122.1
58+
- section: r0
59+
option: masquerade
60+
value: False
61+
- section: r1
62+
option: cidr
63+
value: 192.168.123.0/24
64+
- section: r1
65+
option: dhcp_start
66+
value: 192.168.123.150
67+
- section: r1
68+
option: dhcp_end
69+
value: 192.168.123.170
70+
- section: r1
71+
option: inspection_iprange
72+
value: 192.168.123.171,192.168.123.185
73+
- section: r1
74+
option: gateway
75+
value: 192.168.123.1
76+
- section: r1
77+
option: masquerade
78+
value: False
79+
- section: r2
80+
option: cidr
81+
value: 192.168.124.0/24
82+
- section: r2
83+
option: dhcp_start
84+
value: 192.168.124.150
85+
- section: r2
86+
option: dhcp_end
87+
value: 192.168.124.170
88+
- section: r2
89+
option: inspection_iprange
90+
value: 192.168.124.171,192.168.124.185
91+
- section: r2
92+
option: gateway
93+
value: 192.168.124.1
94+
- section: r2
95+
option: masquerade
96+
value: False
97+
- section: r3
98+
option: cidr
99+
value: 192.168.188.0/24
100+
- section: r3
101+
option: dhcp_start
102+
value: 192.168.188.150
103+
- section: r3
104+
option: dhcp_end
105+
value: 192.168.188.170
106+
- section: r3
107+
option: inspection_iprange
108+
value: 192.168.188.171,192.168.188.185
109+
- section: r3
110+
option: gateway
111+
value: 192.168.188.1
112+
- section: r3
113+
option: masquerade
114+
value: False
115+
undercloud_parameters_override: "bgp-l3-xl/hieradata_overrides_undercloud.yaml"
116+
undercloud_parameters_defaults: "bgp-l3-xl/undercloud_parameter_defaults.yaml"
117+
#ctlplane_vip: 192.168.125.98
118+
ctlplane_vip: 192.168.122.98
119+
cloud_domain: "example.com"
120+
hostname_groups_map:
121+
# map ansible groups in the inventory to role hostname format for
122+
# 17.1 deployment
123+
osp-r0-computes: "osp-r0-compute"
124+
osp-r1-computes: "osp-r1-compute"
125+
osp-r2-computes: "osp-r2-compute"
126+
osp-r0-controllers: "osp-r0-controller-0"
127+
osp-r1-controllers: "osp-r1-controller-0"
128+
osp-r2-controllers: "osp-r2-controller-0"
129+
roles_groups_map:
130+
# map ansible groups to tripleo Role names
131+
osp-r0-computes: "ComputeRack0"
132+
osp-r1-computes: "ComputeRack1"
133+
osp-r2-computes: "ComputeRack2"
134+
osp-r0-controllers: "ControllerRack0"
135+
osp-r1-controllers: "ControllerRack1"
136+
osp-r2-controllers: "ControllerRack2"
137+
stacks:
138+
- stackname: "overcloud"
139+
args:
140+
- "--override-ansible-cfg /home/zuul/ansible_config.cfg"
141+
- "--templates /usr/share/openstack-tripleo-heat-templates"
142+
- "--libvirt-type qemu"
143+
- "--timeout 90"
144+
- "--overcloud-ssh-user zuul"
145+
- "--deployed-server"
146+
- "--validation-warnings-fatal"
147+
- "--disable-validations"
148+
- "--heat-type pod"
149+
- "--disable-protected-resource-types"
150+
vars:
151+
- "/usr/share/openstack-tripleo-heat-templates/environments/docker-ha.yaml"
152+
- "/usr/share/openstack-tripleo-heat-templates/environments/podman.yaml"
153+
- "/usr/share/openstack-tripleo-heat-templates/environments/low-memory-usage.yaml"
154+
- "/usr/share/openstack-tripleo-heat-templates/environments/debug.yaml"
155+
- "/usr/share/openstack-tripleo-heat-templates/environments/services/barbican.yaml"
156+
- "/usr/share/openstack-tripleo-heat-templates/environments/barbican-backend-simple-crypto.yaml"
157+
- "/usr/share/openstack-tripleo-heat-templates/environments/services/frr.yaml"
158+
- "/usr/share/openstack-tripleo-heat-templates/environments/services/ovn-bgp-agent.yaml"
159+
network_data_file: "bgp-l3-xl/network_data.yaml.j2"
160+
vips_data_file: "bgp-l3-xl/vips_data.yaml"
161+
roles_file: "bgp-l3-xl/roles.yaml"
162+
config_download_file: "bgp-l3-xl/config_download.yaml"
163+
stack_nodes:
164+
- osp-r0-computes
165+
- osp-r1-computes
166+
- osp-r2-computes
167+
- osp-r0-controllers
168+
- osp-r1-controllers
169+
- osp-r2-controllers
170+
#pre_uc_run:
171+
# - name: Inject defroute
172+
# type: playbook
173+
# source: "bgp/gw.yaml"
174+
#post_uc_run:
175+
# - name: Remove defroute
176+
# type: playbook
177+
# source: "bgp/gw.yaml"
178+
# extra_vars:
179+
# gw_remove: true
180+
#pre_oc_run:
181+
pre_uc_run:
182+
- name: Deploy BGP fabric
183+
type: playbook
184+
source: "bgp/prepare-bgp-spines-leaves.yml"
185+
extra_vars:
186+
stack_index: 0
187+
num_racks: 3
188+
edpm_nodes_per_rack: 5
189+
ocp_nodes_per_rack: 4
190+
router_bool: true
191+
router_uplink_ip: 100.64.10.1
192+

0 commit comments

Comments
 (0)