Skip to content

Commit

Permalink
BGP controlplane L3 separation
Browse files Browse the repository at this point in the history
  • Loading branch information
eduolivares committed Feb 10, 2025
1 parent 32d7703 commit d2c9982
Show file tree
Hide file tree
Showing 22 changed files with 1,445 additions and 455 deletions.
110 changes: 101 additions & 9 deletions automation/vars/bgp_dt01.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,47 @@ vas:
kind: Node
resource_name: worker-3
state: patched
- name: Disable rp_filters on OCP nodes
type: cr
definition:
spec:
profile:
- data: |
[main]
summary=Optimize systems running OpenShift (provider specific parent profile)
include=-provider-${f:exec:cat:/var/lib/ocp-tuned/provider},openshift
[sysctl]
net.ipv4.conf.enp8s0.rp_filter=0
net.ipv4.conf.enp9s0.rp_filter=0
name: openshift-no-reapply-sysctl
recommend:
- match:
# applied to all nodes except worker-3, because worker-3 has no enp9s0
- label: kubernetes.io/hostname
value: worker-0
- label: kubernetes.io/hostname
value: worker-1
- label: kubernetes.io/hostname
value: worker-2
- label: node-role.kubernetes.io/master
operand:
tunedConfig:
reapply_sysctl: false
priority: 15
profile: openshift-no-reapply-sysctl
api_version: tuned.openshift.io/v1
kind: Tuned
resource_name: openshift-no-reapply-sysctl
namespace: openshift-cluster-node-tuning-operator
state: present
path: examples/dt/bgp/bgp_dt01/control-plane/nncp
wait_conditions:
- >-
oc -n openstack wait nncp
-l osp/nncm-config-type=standard
--for jsonpath='{.status.conditions[0].reason}'=SuccessfullyConfigured
--timeout=60s
--timeout=300s
values:
- name: network-values
src_file: values.yaml
Expand All @@ -42,30 +76,88 @@ vas:
- name: service-values
src_file: service-values.yaml
build_output: control-plane.yaml
post_stage_run:
- name: Create BGPConfiguration after controplane is deployed
type: cr
definition:
spec: {}
api_version: network.openstack.org/v1beta1
kind: BGPConfiguration
resource_name: bgpconfiguration
namespace: openstack
state: present

- path: examples/dt/bgp/bgp_dt01/edpm/computes/r0
wait_conditions:
- >-
oc -n openstack wait openstackdataplanenodeset
r0-compute-nodes
--for condition=SetupReady
--timeout=600s
values:
- name: edpm-r0-compute-nodeset-values
src_file: values.yaml
build_output: edpm-r0-compute-nodeset.yaml

- path: examples/dt/bgp/bgp_dt01/edpm/computes/r1
wait_conditions:
- >-
oc -n openstack wait openstackdataplanenodeset
r1-compute-nodes
--for condition=SetupReady
--timeout=600s
values:
- name: edpm-r1-compute-nodeset-values
src_file: values.yaml
build_output: edpm-r1-compute-nodeset.yaml

- path: examples/dt/bgp/bgp_dt01/edpm/computes/r2
wait_conditions:
- >-
oc -n openstack wait openstackdataplanenodeset
r2-compute-nodes
--for condition=SetupReady
--timeout=600s
values:
- name: edpm-r2-compute-nodeset-values
src_file: values.yaml
build_output: edpm-r2-compute-nodeset.yaml

- path: examples/dt/bgp/bgp_dt01/edpm/networkers/r0
wait_conditions:
- >-
oc -n openstack wait openstackdataplanenodeset
r0-networker-nodes
--for condition=SetupReady
--timeout=600s
values:
- name: edpm-r0-networker-nodeset-values
src_file: values.yaml
build_output: edpm-r0-networker-nodeset.yaml

- path: examples/dt/bgp/bgp_dt01/edpm/networkers
- path: examples/dt/bgp/bgp_dt01/edpm/networkers/r1
wait_conditions:
- >-
oc -n openstack wait openstackdataplanenodeset
networker-nodes
r1-networker-nodes
--for condition=SetupReady
--timeout=600s
values:
- name: edpm-networker-nodeset-values
- name: edpm-r1-networker-nodeset-values
src_file: values.yaml
build_output: edpm-networker-nodeset.yaml
build_output: edpm-r1-networker-nodeset.yaml

- path: examples/dt/bgp/bgp_dt01/edpm/computes
- path: examples/dt/bgp/bgp_dt01/edpm/networkers/r2
wait_conditions:
- >-
oc -n openstack wait openstackdataplanenodeset
compute-nodes
r2-networker-nodes
--for condition=SetupReady
--timeout=600s
values:
- name: edpm-compute-nodeset-values
- name: edpm-r2-networker-nodeset-values
src_file: values.yaml
build_output: edpm-compute-nodeset.yaml
build_output: edpm-r2-networker-nodeset.yaml

- path: examples/dt/bgp/bgp_dt01/edpm/deployment
wait_conditions:
Expand Down
17 changes: 17 additions & 0 deletions dt/bgp/edpm/nodeset/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,20 @@ transformers:
components:
- ../../../../lib/dataplane/nodeset

patches:
- target:
kind: OpenStackDataPlaneNodeSet
name: .*
patch: |-
- op: replace
path: /spec/env
value:
- name: ANSIBLE_FORCE_COLOR
value: "True"
- name: ANSIBLE_TIMEOUT
value: "60"
- name: ANSIBLE_SSH_TIMEOUT
value: "60"
- name: ANSIBLE_SSH_RETRIES
value: "60"
Loading

0 comments on commit d2c9982

Please sign in to comment.