Skip to content

Commit bf595ae

Browse files
fultonjclaude
andcommitted
Remove custom OVN ConfigMap/DataPlaneService from DCN docs
Remove documentation for the ovncontroller-config-dcn ConfigMap, ovn-dcn DataPlaneService, and instructions to replace the ovn service with ovn-dcn in DCN nodesets. The adoption should work without these extra steps. The standard OVN service uses DNS (ovsdbserver-sb.openstack.svc) which resolves to internalapi IPs via DNSData CRs and should work for DCN nodes when proper inter-site routes are configured. Jira: OSPRH-30146 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: John Fulton <fulton@redhat.com>
1 parent 2f5f862 commit bf595ae

1 file changed

Lines changed: 3 additions & 78 deletions

File tree

docs_user/modules/proc_configuring-dcn-data-plane-nodesets.adoc

Lines changed: 3 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -29,80 +29,6 @@ If you are adopting a Distributed Compute Node (DCN) deployment, you must create
2929
| DCN2 | `leaf2:br-ex`
3030
|===
3131

32-
. Configure OVN for DCN sites. The default OVN controller configuration uses the Kubernetes ClusterIP (`ovsdbserver-sb.openstack.svc`), which is not routable from remote DCN sites. You must create a DCN-specific configuration that uses direct `internalapi` IP addresses.
33-
34-
.. Get the OVN Southbound database `internalapi` IP addresses:
35-
+
36-
----
37-
$ oc get pod -l service=ovsdbserver-sb -o jsonpath='{range .items[*]}{.metadata.annotations.k8s\.v1\.cni\.cncf\.io/network-status}{"\n"}{end}' | jq -r '.[] | select(.name=="openstack/internalapi") | .ips[0]'
38-
----
39-
+
40-
Example output:
41-
+
42-
----
43-
172.17.0.34
44-
172.17.0.35
45-
172.17.0.36
46-
----
47-
48-
.. Create a ConfigMap with the OVN SB direct IPs for DCN sites:
49-
+
50-
[subs="+quotes"]
51-
----
52-
$ oc apply -f - <<EOF
53-
apiVersion: v1
54-
kind: ConfigMap
55-
metadata:
56-
name: ovncontroller-config-dcn
57-
namespace: openstack
58-
data:
59-
ovsdb-config: |
60-
*ovn-remote: tcp:172.17.0.34:6642,tcp:172.17.0.35:6642,tcp:172.17.0.36:6642*
61-
EOF
62-
----
63-
+
64-
* Replace the IP addresses with the actual `internalapi` IPs from the previous step.
65-
66-
.. Create an `OpenStackDataPlaneService` CR for DCN OVN configuration:
67-
+
68-
----
69-
$ oc apply -f - <<EOF
70-
apiVersion: dataplane.openstack.org/v1beta1
71-
kind: OpenStackDataPlaneService
72-
metadata:
73-
name: ovn-dcn
74-
namespace: openstack
75-
spec:
76-
addCertMounts: false
77-
caCerts: combined-ca-bundle
78-
containerImageFields:
79-
- OvnControllerImage
80-
dataSources:
81-
- configMapRef:
82-
name: ovncontroller-config-dcn
83-
edpmServiceType: ovn
84-
playbook: osp.edpm.ovn
85-
tlsCerts:
86-
default:
87-
contents:
88-
- dnsnames
89-
- ips
90-
issuer: osp-rootca-issuer-ovn
91-
keyUsages:
92-
- digital signature
93-
- key encipherment
94-
- server auth
95-
- client auth
96-
networks:
97-
- ctlplane
98-
EOF
99-
----
100-
+
101-
[NOTE]
102-
====
103-
The `ovn-dcn` service uses the `ovncontroller-config-dcn` ConfigMap (through `dataSources`), which contains the direct `internalapi` IPs instead of the `ClusterIP`. DCN node sets must use this service instead of the default `ovn` service.
104-
====
105-
10632
. Create an `OpenStackDataPlaneNodeSet` CR for the central site Compute nodes:
10733
+
10834
[source,yaml,subs="+quotes"]
@@ -186,7 +112,7 @@ endif::[]
186112
* The OVN bridge mapping uses the central site physnet `leaf0`.
187113
* Central site nodes reference `subnet1` for all networks.
188114

189-
. Create an `OpenStackDataPlaneNodeSet` CR for DCN1 edge site compute nodes. You must add inter-site routes to the network configuration template and use the `ovn-dcn` service:
115+
. Create an `OpenStackDataPlaneNodeSet` CR for DCN1 edge site compute nodes. You must add inter-site routes to the network configuration template:
190116
+
191117
[source,yaml,subs="+quotes"]
192118
----
@@ -211,7 +137,7 @@ spec:
211137
- run-os
212138
- reboot-os
213139
- install-certs
214-
- ovn-dcn
140+
- ovn
215141
- neutron-metadata
216142
- libvirt
217143
- nova-cell1
@@ -288,8 +214,7 @@ spec:
288214
- name: tenant
289215
*subnetName: tenantdcn1*
290216
----
291-
* Replace `ovn` with `ovn-dcn` under spec:services. This ensures OVN controller connects to the OVN Southbound database using direct internalapi IPs instead of the unreachable ClusterIP.
292-
* DCN1 uses the `leaf1` physnet, for its OVN bridge mapping under `spec:nodeTemplate:ansible:ansibleVars:edpm_ovn_bridge_mappings`.
217+
* DCN1 uses the `leaf1` physnet for its OVN bridge mapping under `spec:nodeTemplate:ansible:ansibleVars:edpm_ovn_bridge_mappings`.
293218
* Inter-site routes must be added to the network configuration template. These routes enable DCN1 compute nodes to reach the central site (192.168.122.0/24) and other DCN sites (192.168.144.0/24 for DCN2). Similar routes are added for each service network (internalapi, storage, tenant).
294219
* DCN1 nodes reference site-specific subnet names like `ctlplanedcn1` and `internalapidcn1`. These subnet names must match those defined in the `NetConfig` CR.
295220

0 commit comments

Comments
 (0)