Skip to content

Commit e508a8e

Browse files
committed
additional edits
1 parent 2df6d47 commit e508a8e

4 files changed

+81
-71
lines changed

docs_user/modules/proc_adopting-compute-services-to-the-data-plane.adoc

Lines changed: 65 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -83,33 +83,34 @@ EOF
8383

8484
* You have defined the shell variables to run the script that runs the upgrade:
8585
+
86+
[subs="+quotes"]
8687
----
8788
$ CEPH_FSID=$(oc get secret ceph-conf-files -o json | jq -r '.data."ceph.conf"' | base64 -d | grep fsid | sed -e 's/fsid = //')
8889
8990
$ alias openstack="oc exec -t openstackclient -- openstack"
9091
91-
$ DEFAULT_CELL_NAME="cell3" <1>
92+
$ *DEFAULT_CELL_NAME="cell3"*
9293
$ RENAMED_CELLS="cell1 cell2 $DEFAULT_CELL_NAME"
9394
9495
$ declare -A COMPUTES_CELL1
95-
$ export COMPUTES_CELL1=( <2>
96-
> ["standalone.localdomain"]="192.168.122.100" <3>
97-
> # <compute1> <4>
98-
> # <compute2>
99-
> # <compute3>
96+
$ *export COMPUTES_CELL1=(*
97+
> *["standalone.localdomain"]="192.168.122.100"*
98+
> # *<compute1>*
99+
> # *<compute2>*
100+
> # *<compute3>*
100101
>)
101102
$ declare -A COMPUTES_CELL2
102103
$ export COMPUTES_CELL2=(
103104
> # ...
104105
>)
105106
$ declare -A COMPUTES_CELL3
106-
$ export COMPUTES_CELL3=(
107-
> # ... <5>
107+
$*export COMPUTES_CELL3=(*
108+
> # <compute1>
108109
>)
109-
># ...
110+
># <compute2>
110111
111112
$ declare -A COMPUTES_API_CELL1
112-
$ export COMPUTES_API_CELL1=( <6>
113+
$*export COMPUTES_API_CELL1=(*
113114
> ["standalone.localdomain"]="172.17.0.100"
114115
> # ...
115116
>)
@@ -120,19 +121,19 @@ $ for CELL in $(echo $RENAMED_CELLS); do
120121
> ref="COMPUTES_$(echo ${CELL}|tr '[:lower:]' '[:upper:]')"
121122
> eval names=\${!${ref}[@]}
122123
> [ -z "$names" ] && continue
123-
> NODESETS="'openstack-${CELL}', $NODESETS" <7>
124+
> NODESETS="'openstack-${CELL}', $NODESETS"
124125
>done
125126
$ NODESETS="[${NODESETS%,*}]"
126127
----
127128
+
128-
<1> The source cloud `default` cell acquires a new `DEFAULT_CELL_NAME` on the destination cloud after adoption.
129+
* `DEFAULT_CELL_NAME="cell3"` defines the source cloud `default` cell that acquires a new `DEFAULT_CELL_NAME` on the destination cloud after adoption.
129130
In a multi-cell adoption scenario, you can retain the original name, `default`, or create a new cell default name by providing the incremented index of the last cell in the source cloud. For example, if the incremented index of the last cell is `cell5`, the new cell default name is `cell6`.
130-
<2> For each cell, update the `<["standalone.localdomain"]="x.x.x.x">` value and the `COMPUTES_CELL<X>` value with the names and IP addresses of the {compute_service} nodes that are connected to the `ctlplane` and `internalapi` networks. Do not specify a real FQDN defined for each network. Always use the same hostname for each connected network of a Compute node. Provide the IP addresses and the names of the hosts on the remaining networks of the source cloud as needed. Or you can manually adjust the files that you generate in step 9 of this procedure.
131-
<3> If your deployment has a custom DNS domain, specify it in the FQDN value of the nodes. This value is used in the data plane node set `spec.nodes.<NODE NAME>.hostName`.
132-
<4> Assign all {compute_service} nodes from the source cloud `cell1` cell into `COMPUTES_CELL1`, and so on. Replace `<compute1>`, `<compute2>`, and `<compute3>` with the names of your {compute_service} nodes.
133-
<5> Assign all {compute_service} nodes from the source cloud `default` cell into `COMPUTES_CELL<X>` and `COMPUTES_API_CELL<X>``, where `<X>` is the `DEFAULT_CELL_NAME` environment variable value. In this example, the `DEFAULT_CELL_NAME` environment variable value equals `cell3`.
134-
<6> For each cell, update the `<["standalone.localdomain"]="192.168.122.100">` value and the `COMPUTES_API_CELL` value with the names and IP addresses of the {compute_service} nodes that are connected to the `ctlplane` and `internalapi` networks. Do not specify a real FQDN defined for each network. Use the same host name for each of its connected networks. Provide the IP addresses and the names of the hosts on the remaining networks of the source cloud as needed. Or you can manually adjust the files that you generate in step 9 of this procedure.
135-
<7> Cells that do not contain Compute nodes are omitted from this template because no node sets are created for the cells.
131+
* `export COMPUTES_CELL1=` defines the `<["standalone.localdomain"]="x.x.x.x">` value and the `COMPUTES_CELL<X>` value for each cell with the names and IP addresses of the {compute_service} nodes that are connected to the `ctlplane` and `internalapi` networks. Do not specify a real FQDN defined for each network. Always use the same hostname for each connected network of a Compute node. Provide the IP addresses and the names of the hosts on the remaining networks of the source cloud as needed. Or you can manually adjust the files that you generate in step 9 of this procedure.
132+
* `["standalone.localdomain"]="192.168.122.100"` defines the custom DNS domain in the FQDN value of the nodes. This value is used in the data plane node set `spec.nodes.<NODE NAME>.hostName`.
133+
* `<compute1>`, `<compute2>`, and `<compute3>` specifies the names of your {compute_service} nodes. Assign all {compute_service} nodes from the source cloud `cell1` cell into `COMPUTES_CELL1`, and so on.
134+
* `export COMPUTES_CELL3=(` specifies all {compute_service} nodes that you assign from the source cloud `default` cell into `COMPUTES_CELL<X>` and `COMPUTES_API_CELL<X>``, where `<X>` is the `DEFAULT_CELL_NAME` environment variable value. In this example, the `DEFAULT_CELL_NAME` environment variable value equals `cell3`.
135+
* `export COMPUTES_API_CELL1=(` defines the `<["standalone.localdomain"]="192.168.122.100">` value and the `COMPUTES_API_CELL` value for each cell. Update these values with the names and IP addresses of the {compute_service} nodes that are connected to the `ctlplane` and `internalapi` networks. Do not specify a real FQDN defined for each network. Use the same host name for each of its connected networks. Provide the IP addresses and the names of the hosts on the remaining networks of the source cloud as needed. Or you can manually adjust the files that you generate in step 9 of this procedure.
136+
* `NODESETS="'openstack-${CELL}', $NODESETS"` specifies the cells that contain Compute nodes. Cells that do not contain Compute nodes are omitted from this template because no node sets are created for the cells.
136137
+
137138
[NOTE]
138139
====
@@ -224,15 +225,15 @@ apiVersion: v1
224225
kind: ConfigMap
225226
metadata:
226227
name: nova-cells-global-config
227-
data: <1>
228-
99-nova-compute-cells-workarounds.conf: | <2>
228+
data:
229+
99-nova-compute-cells-workarounds.conf: |
229230
[workarounds]
230231
disable_compute_service_check_for_ffu=true
231232
EOF
232233
----
233234
+
234-
<1> The `data` resources in the `ConfigMap` provide the configuration files for all the cells.
235-
<2> There is a requirement to index the `<*.conf>` files from '03' to '99', based on precedence. A `<99-*.conf>` file takes the highest precedence, while indexes below '03' are reserved for internal use.
235+
* `data` provides the configuration files for all the cells.
236+
* `99-nova-compute-cells-workarounds.conf: |` specifies the index of the `<*.conf>` files. There is a requirement to index the `<*.conf>` files from '03' to '99', based on precedence. A `<99-*.conf>` file takes the highest precedence, while indexes below '03' are reserved for internal use.
236237
+
237238
[NOTE]
238239
If you adopt a live cloud, you might be required to carry over additional configurations for the default `nova` data plane services that are stored in the cell1 default `nova-extra-config` configuration map. Do not delete or overwrite the existing configuration in the `cell1` default `nova-extra-config` configuration map that is assigned to `nova`. Overwriting the configuration can break the data place services that rely on specific contents of the `nova-extra-config` configuration map.
@@ -267,6 +268,7 @@ For {Ceph} environments with multi-cell configurations, you must name configurat
267268

268269
. Create the data plane services for {compute_service} cells to enable pre-upgrade workarounds, and to configure the Compute services for your chosen storage back end:
269270
+
271+
[subs="+quotes"]
270272
----
271273
$ for CELL in $(echo $RENAMED_CELLS); do
272274
> oc apply -f - <<EOF
@@ -276,11 +278,11 @@ $ for CELL in $(echo $RENAMED_CELLS); do
276278
> metadata:
277279
> name: nova-$CELL
278280
> spec:
279-
> dataSources: <1>
281+
> dataSources:
280282
> - secretRef:
281-
> name: nova-$CELL-compute-config <2>
283+
> name: nova-$CELL-compute-config
282284
> - secretRef:
283-
> name: nova-migration-ssh-key <3>
285+
> name: nova-migration-ssh-key
284286
> - configMapRef:
285287
> name: nova-cells-global-config
286288
> playbook: osp.edpm.nova
@@ -293,25 +295,10 @@ $ for CELL in $(echo $RENAMED_CELLS); do
293295
> done
294296
----
295297
+
296-
* If TLS Everywhere is enabled, append the following content to the `OpenStackDataPlaneService` CR:
297-
+
298-
----
299-
tlsCerts:
300-
contents:
301-
- dnsnames
302-
- ips
303-
networks:
304-
- ctlplane
305-
issuer: osp-rootca-issuer-internal
306-
edpmRoleServiceName: nova
307-
caCerts: combined-ca-bundle
308-
edpmServiceType: nova
309-
----
310-
+
311-
<1> To enable a local metadata service for cell<X>, append a `spec.dataSources.secretRef` to reference an additional auto-generated `nova-cell<X>-metadata-neutron-config` secret. You should also set
298+
* `spec.dataSources.secretRef` specifies an additional auto-generated `nova-cell<X>-metadata-neutron-config` secret to enable a local metadata service for cell<X>. You should also set
312299
`spec.nova.template.cellTemplates.cell<X>.metadataServiceTemplate.enable` in the `OpenStackControlPlane/openstack` CR, as described in xref:adopting-the-compute-service_{context}[Adopting the Compute service]. You can configure a single top-level metadata, or define the metadata per cell.
313-
<2> The secret `nova-cell<X>-compute-config` auto-generates for each `cell<X>`.
314-
<3> You must append the `nova-cell<X>-compute-config` and `nova-migration-ssh-key` references for each custom `OpenStackDataPlaneService` CR that is related to the {compute_service}.
300+
* `nova-$CELL-compute-config` specifies thr secret that auto-generates for each `cell<X>`. You must append the `nova-cell<X>-compute-config` for each custom `OpenStackDataPlaneService` CR that is related to the {compute_service}.
301+
* `nova-migration-ssh-key` spcecifies the secret that you must reference for each custom `OpenStackDataPlaneService` CR that is related to the {compute_service}.
315302
+
316303
[NOTE]
317304
====
@@ -325,6 +312,21 @@ the safest option is to create a custom service and a dedicated configuration ma
325312
* Different configurations for nodes in multiple node sets of the same cell are also supported, but are not covered in this guide.
326313
====
327314

315+
. If TLS Everywhere is enabled, append the following content to the `OpenStackDataPlaneService` CR:
316+
+
317+
----
318+
tlsCerts:
319+
contents:
320+
- dnsnames
321+
- ips
322+
networks:
323+
- ctlplane
324+
issuer: osp-rootca-issuer-internal
325+
edpmRoleServiceName: nova
326+
caCerts: combined-ca-bundle
327+
edpmServiceType: nova
328+
----
329+
328330
ifeval::["{build}" == "downstream"]
329331
. Create a secret for the subscription manager:
330332
+
@@ -355,6 +357,7 @@ The secret is already passed in with a node-specific `OpenStackDataPlaneNodeSet`
355357

356358
. Create the data plane node set definitions for each cell:
357359
+
360+
[subs="+quotes"]
358361
----
359362
$ declare -A names
360363
$ for CELL in $(echo $RENAMED_CELLS); do
@@ -369,10 +372,10 @@ $ for CELL in $(echo $RENAMED_CELLS); do
369372
ip_api="${ref_api}['$compute']"
370373
cat >> computes-$CELL << EOF
371374
${compute}:
372-
hostName: $compute <1>
375+
*hostName: $compute*
373376
ansible:
374377
ansibleHost: $compute
375-
networks: <2>
378+
*networks:*
376379
- defaultRoute: true
377380
fixedIP: ${!ip}
378381
name: ctlplane
@@ -393,13 +396,13 @@ EOF
393396
apiVersion: dataplane.openstack.org/v1beta1
394397
kind: OpenStackDataPlaneNodeSet
395398
metadata:
396-
name: openstack-$CELL <3>
399+
*name: openstack-$CELL*
397400
spec:
398-
tlsEnabled: false <4>
401+
*tlsEnabled: false*
399402
networkAttachments:
400403
- ctlplane
401404
preProvisioned: true
402-
services:
405+
*services*:
403406
ifeval::["{build}" == "downstream"]
404407
- redhat
405408
endif::[]
@@ -417,7 +420,7 @@ endif::[]
417420
- neutron-metadata
418421
- libvirt
419422
- nova-$CELL
420-
- telemetry <5>
423+
- telemetry
421424
env:
422425
- name: ANSIBLE_CALLBACKS_ENABLED
423426
value: "profile_tasks"
@@ -494,15 +497,15 @@ endif::[]
494497
#
495498
# These vars are for the network config templates themselves and are
496499
# considered EDPM network defaults.
497-
neutron_physical_bridge_name: br-ctlplane <6>
500+
*neutron_physical_bridge_name: br-ctlplane*
498501
neutron_public_interface_name: eth0
499502
500503
# edpm_nodes_validation
501504
edpm_nodes_validation_validate_controllers_icmp: false
502505
edpm_nodes_validation_validate_gateway_icmp: false
503506
504507
# edpm ovn-controller configuration
505-
edpm_ovn_bridge_mappings: <bridge_mappings> <7>
508+
*edpm_ovn_bridge_mappings: <bridge_mappings>*
506509
edpm_ovn_bridge: br-int
507510
edpm_ovn_encap_type: geneve
508511
ovn_monitor_all: true
@@ -553,9 +556,9 @@ endif::[]
553556
# Do not attempt OVS major upgrades here
554557
edpm_ovs_packages:
555558
- openvswitch3.3
556-
edpm_default_mounts: <8>
557-
- path: /dev/hugepages<size>
558-
opts: pagesize=<size>
559+
edpm_default_mounts:
560+
- *path: /dev/hugepages<size>*
561+
*opts: pagesize=<size>*
559562
fstype: hugetlbfs
560563
group: hugetlbfs
561564
nodes:
@@ -564,14 +567,14 @@ EOF
564567
done
565568
----
566569
+
567-
<1> If your deployment has a custom DNS Domain, specify the FQDN for the node.
568-
<2> The network composition must match the source cloud configuration to avoid data plane connectivity downtime. The `ctlplane` network must come first. The commands only retain IP addresses for the hosts on the `ctlplane` and `internalapi` networks. Repeat this step for other isolated networks, or update the resulting files manually.
569-
<3> Use node sets names, such as `openstack-cell1`, `openstack-cell2`. Only create node sets for cells that contain Compute nodes.
570-
<4> If TLS Everywhere is enabled, change `tlsEnabled` to `true`.
571-
<5> If you are not adopting telemetry services, omit it from the services list.
572-
<6> The bridge name and other OVN and {networking_service}-specific values must match the source cloud configuration to avoid data plane connectivity downtime.
573-
<7> Replace `<bridge_mappings>` with the value of the bridge mappings in your configuration, for example, `"datacentre:br-ctlplane"`.
574-
<8> To configure huge pages, replace `<size>` with the size of the page. To configure multi-sized huge pages, create more items in the list. Note that the mount points must match the source cloud configuration.
570+
* `${compute}.hostName` specifies the FQDN for the node if your deployment has a custom DNS Domain.
571+
* `${compute}.networks` specifies the network composition. The network composition must match the source cloud configuration to avoid data plane connectivity downtime. The `ctlplane` network must come first. The commands only retain IP addresses for the hosts on the `ctlplane` and `internalapi` networks. Repeat this step for other isolated networks, or update the resulting files manually.
572+
* `metadata.name:` specifies the node set names for each cell, for example, `openstack-cell1`, `openstack-cell2`. Only create node sets for cells that contain Compute nodes.
573+
* `spec.tlsEnabled` specifies whether TLS Everywhere is enabled. If it is enabled, change `tlsEnabled` to `true`.
574+
* `spec.services` specifies the services to be adopted. If you are not adopting telemetry services, omit it from the services list.
575+
* `neutron_physical_bridge_name: br-ctlplane` specifies the bridge name. The bridge name and other OVN and {networking_service}-specific values must match the source cloud configuration to avoid data plane connectivity downtime.
576+
*`edpm_ovn_bridge_mappings: <bridge_mappings>` specifies the value of the bridge mappings in your configuration, for example, `"datacentre:br-ctlplane"`.
577+
* `path: /dev/hugepages<size>` and `opts: pagesize=<size>` configures huge pages. Replace `<size>` with the size of the page. To configure multi-sized huge pages, create more items in the list. Note that the mount points must match the source cloud configuration.
575578
+
576579
[NOTE]
577580
====

docs_user/modules/proc_adopting-image-service-with-block-storage-backend.adoc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ spec
3636

3737
. Create a new file, for example `glance_cinder.patch`, and include the following content:
3838
+
39+
[subs="+quotes"]
3940
----
4041
spec:
4142
glance:
@@ -72,14 +73,17 @@ spec:
7273
annotations:
7374
metallb.universe.tf/address-pool: internalapi
7475
metallb.universe.tf/allow-shared-ip: internalapi
75-
metallb.universe.tf/loadBalancerIPs: 172.17.0.80 <1>
76+
*metallb.universe.tf/loadBalancerIPs: <172.17.0.80>*
7677
spec:
7778
type: LoadBalancer
7879
networkAttachments:
7980
- storage
8081
----
8182
+
82-
<1> If you use IPv6, change the load balancer IP to the load balancer IP in your environment, for example, `metallb.universe.tf/loadBalancerIPs: fd00:bbbb::80`.
83+
where:
84+
85+
<172.17.0.80>::
86+
Specifies the load balancer IP. If you use IPv6, change the load balancer IP to the load balancer IP in your environment, for example, `metallb.universe.tf/loadBalancerIPs: fd00:bbbb::80`.
8387
+
8488
[NOTE]
8589
The {block_storage} as a back end establishes a dependency with the {image_service}. Any deployed `GlanceAPI` instances do not work if the {image_service} is configured with the {block_storage} that is not available in the `OpenStackControlPlane` custom resource.

docs_user/modules/proc_adopting-image-service-with-ceph-backend.adoc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Adopt the {image_service_first_ref} that you deployed with a {Ceph} back end. Us
1313
the `openstack` namespace and that the `extraMounts` property of the
1414
`OpenStackControlPlane` custom resource (CR) is configured properly. For more information, see xref:configuring-a-ceph-backend_migrating-databases[Configuring a Ceph back end].
1515
+
16+
[subs="+quotes"]
1617
----
1718
$ cat << EOF > glance_patch.yaml
1819
spec:
@@ -42,15 +43,18 @@ spec:
4243
annotations:
4344
metallb.universe.tf/address-pool: internalapi
4445
metallb.universe.tf/allow-shared-ip: internalapi
45-
metallb.universe.tf/loadBalancerIPs: 172.17.0.80 <1>
46+
*metallb.universe.tf/loadBalancerIPs: <172.17.0.80>*
4647
spec:
4748
type: LoadBalancer
4849
networkAttachments:
4950
- storage
5051
EOF
5152
----
5253
+
53-
<1> If you use IPv6, change the load balancer IP to the load balancer IP in your environment, for example, `metallb.universe.tf/loadBalancerIPs: fd00:bbbb::80`.
54+
where:
55+
56+
<172.17.0.80>::
57+
Specifies the load balancer IP. If you use IPv6, change the load balancer IP to the load balancer IP in your environment, for example, `metallb.universe.tf/loadBalancerIPs: fd00:bbbb::80`.
5458

5559
[NOTE]
5660
====

docs_user/modules/proc_comparing-configuration-files-between-deployments.adoc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ dnf install -y golang-github-openstack-k8s-operators-os-diff
2222

2323
. Configure the `/etc/os-diff/os-diff.cfg` file and the `/etc/os-diff/ssh.config` file according to your environment. To allow os-diff to connect to your clouds and pull files from the services that you describe in the `config.yaml` file, you must set the following options in the `os-diff.cfg` file:
2424
+
25-
[source,yaml]
2625
[subs=+quotes]
2726
----
2827
[Default]
@@ -32,8 +31,8 @@ service_config_file=config.yaml
3231
3332
[Tripleo]
3433
35-
ssh_cmd=ssh -F ssh.config <1>
36-
director_host=standalone <2>
34+
*ssh_cmd=ssh -F ssh.config*
35+
*director_host=standalone*
3736
container_engine=podman
3837
connection=ssh
3938
remote_config_path=/tmp/tripleo
@@ -46,8 +45,8 @@ connection=local
4645
ssh_cmd=""
4746
----
4847
+
49-
<1> Instructs os-diff to access your {OpenStackPreviousInstaller} host through SSH. The default value is `ssh -F ssh.config`. However, you can set the value without an ssh.config file, for example, `ssh -i /home/user/.ssh/id_rsa [email protected]`.
50-
<2> The host to use to access your cloud, and the podman/docker binary is installed and allowed to interact with the running containers. You can leave this key blank.
48+
* `ssh_cmd=ssh -F ssh.config` instructs os-diff to access your {OpenStackPreviousInstaller} host through SSH. The default value is `ssh -F ssh.config`. However, you can set the value without an ssh.config file, for example, `ssh -i /home/user/.ssh/id_rsa [email protected]`.
49+
* `director_host=standalone` specifies the host to use to access your cloud, and the podman/docker binary is installed and allowed to interact with the running containers. You can leave this key blank.
5150

5251
. If you use a host file to connect to your cloud, configure the `ssh.config` file to allow os-diff to access your {OpenStackShort} environment, for example:
5352
+

0 commit comments

Comments
 (0)