Skip to content

Commit

Permalink
Fix docs rendering for OSPdO adoption
Browse files Browse the repository at this point in the history
  • Loading branch information
pinikomarov committed Jan 10, 2025
1 parent 11d4890 commit ca072be
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 29 deletions.
9 changes: 5 additions & 4 deletions docs_user/main.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,17 @@ include::adoption-attributes.adoc[]

include::assemblies/assembly_rhoso-180-adoption-overview.adoc[leveloffset=+1]

ifeval::["{OpenStackPreviousInstaller}" == "director_operator"]
include::assemblies/assembly_prepare_director_operator_for_adoption_process.adoc[leveloffset=+1]
ifeval::["{build_variant}" == "ospdo"]
include::assemblies/assembly_prepare_director_operator_and_rhoso_for_adoption_process.adoc
[leveloffset=+1]
endif::[]

include::modules/proc_migrating-tls-everywhere.adoc[leveloffset=+1]

include::assemblies/assembly_migrating-databases-to-the-control-plane.adoc[leveloffset=+1]

ifeval::["{OpenStackPreviousInstaller}" == "director_operator"]
include::assemblies/assembly_ospdo-scale-down-pre-database-adoption.adoc[leveloffset=+1]
ifeval::["{build_variant}" == "ospdo"]
include::modules/assembly_ospdo-scale-down-pre-database-adoption.adoc[leveloffset=+1]
endif::[]

include::assemblies/assembly_adopting-openstack-control-plane-services.adoc[leveloffset=+1]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ endif::[]
ifeval::["{build}" == "downstream"]
$(cat <path_to_SSH_key> | base64 | sed \'s/^/ /')
endif::[]
ifeval::["{OpenStackPreviousInstaller}" == "director_operator"]
ifeval::["{build_variant}" == "ospdo"]
$(oc exec -n $<ospdo_namespace> -t openstackclient openstackclient -- cat /home/cloud-admin/.ssh/id_rsa | base64 | sed 's/^/ /')
endif::[]
EOF
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ $ oc patch openstackcontrolplane openstack --type=merge --patch-file glance_nfs_
$ oc get pods -l service=glance
NAME READY STATUS RESTARTS
glance-default-single-0 3/3 Running 0
```
----

* Ensure that the description of the pod reports the following output:
Expand Down
10 changes: 5 additions & 5 deletions docs_user/modules/proc_deploying-backend-services.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ make input
----
endif::[]

ifeval::["{OpenStackPreviousInstaller}" == "director_operator"]
ifeval::["{build_variant}" == "ospdo"]
----
$ oc get secret tripleo-passwords -o jsonpath='{.data.*}' | base64 -d>~/tripleo-standalone-passwords.yaml
----
Expand Down Expand Up @@ -237,7 +237,7 @@ ifeval::["{OpenStackPreviousInstaller}" != "director_operator"]
metallb.universe.tf/allow-shared-ip: ctlplane
metallb.universe.tf/loadBalancerIPs: 192.168.122.80
endif::[]
ifeval::["{OpenStackPreviousInstaller}" == "director_operator"]
ifeval::["{build_variant}" == "ospdo"]
metallb.universe.tf/address-pool: <address_pool>
metallb.universe.tf/allow-shared-ip: <address_pool>
metallb.universe.tf/loadBalancerIPs: <loadBalancer_IP>
Expand Down Expand Up @@ -327,7 +327,7 @@ ifeval::["{OpenStackPreviousInstaller}" != "director_operator"]
dbType: SB
networkAttachment: internalapi
endif::[]
ifeval::["{OpenStackPreviousInstaller}" == "director_operator"]
ifeval::["{build_variant}" == "ospdo"]
ovnController:
networkAttachment: tenant
nodeSelector:
Expand Down Expand Up @@ -366,7 +366,7 @@ ifeval::["{OpenStackPreviousInstaller}" != "director_operator"]
metallb.universe.tf/address-pool: internalapi
metallb.universe.tf/loadBalancerIPs: 172.17.0.86
endif::[]
ifeval::["{OpenStackPreviousInstaller}" == "director_operator"]
ifeval::["{build_variant}" == "ospdo"]
metallb.universe.tf/address-pool: <networkAttachment_name>
metallb.universe.tf/loadBalancerIPs: <loadBalancer_IP>
endif::[]
Expand All @@ -387,7 +387,7 @@ endif::[]
replicas: 1
EOF
----
ifeval::["{OpenStackPreviousInstaller}" == "director_operator"]
ifeval::["{build_variant}" == "ospdo"]
* Replace <address_pool> with the name of your network definition.
* Replace <loadBalancer_IP> with the LoadBalancer IP address.
* Replace <networkAttachment_name> with the name of your network.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ EOF
ifeval::["{OpenStackPreviousInstaller}" != "director_operator"]
$ oc rsh mariadb-copy-data << EOF
endif::[]
ifeval::["{OpenStackPreviousInstaller}" == "director_operator"]
ifeval::["{build_variant}" == "ospdo"]
$ oc rsh -n $OSPDO_NAMESPACE mariadb-copy-data << EOF
endif::[]
# db schemas to rename on import
Expand Down
18 changes: 9 additions & 9 deletions docs_user/modules/proc_migrating-ovn-data.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ $ grep -rI 'ovn_[ns]b_conn' /var/lib/config-data/puppet-generated/

.Procedure
+
ifeval::["{OpenStackPreviousInstaller}" == "director_operator"]
ifeval::["{build_variant}" == "ospdo"]
. Get the {OpenShiftShort} master node that contains the {OpenStackShort} Controller:
+
----
Expand Down Expand Up @@ -63,7 +63,7 @@ spec:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
ifeval::["{OpenStackPreviousInstaller}" == "director_operator"]
ifeval::["{build_variant}" == "ospdo"]
namespace: $OSPDO_NAMESPACE
endif::[]
name: ovn-data
Expand All @@ -84,16 +84,16 @@ metadata:
ifeval::["{OpenStackPreviousInstaller}" != "director_operator"]
k8s.v1.cni.cncf.io/networks: internalapi
endif::[]
ifeval::["{OpenStackPreviousInstaller}" == "director_operator"]
ifeval::["{build_variant}" == "ospdo"]
'[{"name": "internalapi-static", "namespace": $<ospdo_namespace>, "ips": ["<internalapi-static-ips>"]}]'
endif::[]
labels:
app: adoption
ifeval::["{OpenStackPreviousInstaller}" == "director_operator"]
ifeval::["{build_variant}" == "ospdo"]
namespace: $OSPDO_NAMESPACE
endif::[]
spec:
ifeval::["{OpenStackPreviousInstaller}" == "director_operator"]
ifeval::["{build_variant}" == "ospdo"]
nodeName: '{{ <ocp_node_holding_controller> }}'
endif::[]
containers:
Expand Down Expand Up @@ -122,7 +122,7 @@ endif::[]
secretName: ovn-data-cert
EOF
----
ifeval::["{OpenStackPreviousInstaller}" == "director_operator"]
ifeval::["{build_variant}" == "ospdo"]
+
* Replace `<ocp_node_holding_controller>` with the {OpenStackShort} node that contains the Controller.
endif::[]
Expand All @@ -133,7 +133,7 @@ endif::[]
ifeval::["{OpenStackPreviousInstaller}" != "director_operator"]
$ oc wait --for=condition=Ready pod/ovn-copy-data --timeout=30s
endif::[]
ifeval::["{OpenStackPreviousInstaller}" == "director_operator"]
ifeval::["{build_variant}" == "ospdo"]
$ oc wait --for=condition=Ready -n $OSPDO_NAMESPACE pod/ovn-copy-data --timeout=30s
endif::[]
----
Expand All @@ -153,7 +153,7 @@ ifeval::["{OpenStackPreviousInstaller}" != "director_operator"]
$ oc exec ovn-copy-data -- bash -c "ovsdb-client backup tcp:$SOURCE_OVSDB_IP:6641 > /backup/ovs-nb.db"
$ oc exec ovn-copy-data -- bash -c "ovsdb-client backup tcp:$SOURCE_OVSDB_IP:6642 > /backup/ovs-sb.db"
endif::[]
ifeval::["{OpenStackPreviousInstaller}" == "director_operator"]
ifeval::["{build_variant}" == "ospdo"]
$ oc exec -n $OSPDO_NAMESPACE ovn-copy-data -- bash -c "ovsdb-client backup tcp:$SOURCE_OVSDB_IP:6641 > /backup/ovs-nb.db"
$ oc exec -n $OSPDO_NAMESPACE ovn-copy-data -- bash -c "ovsdb-client backup tcp:$SOURCE_OVSDB_IP:6642 > /backup/ovs-sb.db"
endif::[]
Expand Down Expand Up @@ -235,7 +235,7 @@ ifeval::["{OpenStackPreviousInstaller}" != "director_operator"]
$ oc exec ovn-copy-data -- bash -c "ovsdb-client restore tcp:$PODIFIED_OVSDB_NB_IP:6641 < /backup/ovs-nb.db"
$ oc exec ovn-copy-data -- bash -c "ovsdb-client restore tcp:$PODIFIED_OVSDB_SB_IP:6642 < /backup/ovs-sb.db"
endif::[]
ifeval::["{OpenStackPreviousInstaller}" == "director_operator"]
ifeval::["{build_variant}" == "ospdo"]
$ oc exec -n $RHOSO_NAMESPACE ovn-copy-data -- bash -c "ovsdb-client restore tcp:$PODIFIED_OVSDB_NB_IP:6641 < /backup/ovs-nb.db"
$ oc exec -n $RHOSO_NAMESPACE ovn-copy-data -- bash -c "ovsdb-client restore tcp:$PODIFIED_OVSDB_SB_IP:6642 < /backup/ovs-sb.db"
endif::[]
Expand Down
2 changes: 1 addition & 1 deletion docs_user/modules/proc_migrating-tls-everywhere.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ endif::[]

. To locate the CA certificate and key, list all the certificates inside your NSSDB:
+
ifeval::["{OpenStackPreviousInstaller}" == "director_operator"]
ifeval::["{build_variant}" == "ospdo"]
To locate the CA certificate and key, list all the certificates inside your NSSDB. If you installed OSPdO by using director-dev-tools, the server host runs the freeipa server as a container:
+
----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ Before you migrate your databases to the {rhos_long} control plane, retrieve the

* Define the following shell variables. Replace the example values with values that are correct for your environment:
+
----
ifeval::["{OpenStackPreviousInstaller}" != "director_operator"]
ifeval::["{build_variant}" == "ospdo"]
ifeval::["{build}" != "downstream"]
CONTROLLER1_SSH="ssh -i ~/install_yamls/out/edpm/ansibleee-ssh-key-id_rsa [email protected]"
MARIADB_IMAGE=quay.io/podified-antelope-centos9/openstack-mariadb:current-podified
Expand Down Expand Up @@ -46,13 +45,13 @@ $ sudo grep -rI 'listen mysql' -A10 /var/lib/config-data/puppet-generated/ | gre
ifeval::["{OpenStackPreviousInstaller}" != "director_operator"]
export PULL_OPENSTACK_CONFIGURATION_DATABASES=$(oc run mariadb-client ${MARIADB_CLIENT_ANNOTATIONS} -q --image ${MARIADB_IMAGE} -i --rm --restart=Never -- \
endif::[]
ifeval::["{OpenStackPreviousInstaller}" == "director_operator"]
ifeval::["{build_variant}" == "ospdo"]
export PULL_OPENSTACK_CONFIGURATION_DATABASES=$(oc run mariadb-client --overrides="$RUN_OVERRIDES" -n $OSPDO_NAMESPACE -q --image ${MARIADB_IMAGE} -i --rm --restart=Never -- \
endif::[]
mysql -rsh "$SOURCE_MARIADB_IP" -uroot -p"$SOURCE_DB_ROOT_PASSWORD" -e 'SHOW databases;')
echo "$PULL_OPENSTACK_CONFIGURATION_DATABASES"
----
ifeval::["{OpenStackPreviousInstaller}" == "director_operator"]
ifeval::["{build_variant}" == "ospdo"]
----
export CONTROLLER1_SSH="oc -n $OSPDO_NAMESPACE rsh -c openstackclient openstackclient ssh controller-0.ctlplane"
----
Expand Down Expand Up @@ -128,7 +127,7 @@ The `nova`, `nova_api`, and `nova_cell0` databases are included in the same data
ifeval::["{OpenStackPreviousInstaller}" != "director_operator"]
export PULL_OPENSTACK_CONFIGURATION_MYSQLCHECK_NOK=$(oc run mariadb-client ${MARIADB_CLIENT_ANNOTATIONS} -q --image ${MARIADB_IMAGE} -i --rm --restart=Never -- \
endif::[]
ifeval::["{OpenStackPreviousInstaller}" == "director_operator"]
ifeval::["{build_variant}" == "ospdo"]
export PULL_OPENSTACK_CONFIGURATION_MYSQLCHECK_NOK=$(oc run mariadb-client --overrides="$RUN_OVERRIDES" -n $OSPDO_NAMESPACE -q --image ${MARIADB_IMAGE} -i --rm --restart=Never -- \
endif::[]
mysqlcheck --all-databases -h $SOURCE_MARIADB_IP -u root -p"$SOURCE_DB_ROOT_PASSWORD" | grep -v OK)
Expand All @@ -141,7 +140,7 @@ echo "$PULL_OPENSTACK_CONFIGURATION_MYSQLCHECK_NOK"
ifeval::["{OpenStackPreviousInstaller}" != "director_operator"]
export PULL_OPENSTACK_CONFIGURATION_NOVADB_MAPPED_CELLS=$(oc run mariadb-client ${MARIADB_CLIENT_ANNOTATIONS} -q --image ${MARIADB_IMAGE} -i --rm --restart=Never -- \
endif::[]
ifeval::["{OpenStackPreviousInstaller}" == "director_operator"]
ifeval::["{build_variant}" == "ospdo"]
export PULL_OPENSTACK_CONFIGURATION_NOVADB_MAPPED_CELLS=$(oc run mariadb-client --overrides="$RUN_OVERRIDES" -n $OSPDO_NAMESPACE -q --image ${MARIADB_IMAGE} -i --rm --restart=Never -- \
endif::[]
mysql -rsh "${SOURCE_MARIADB_IP}" -uroot -p"${SOURCE_DB_ROOT_PASSWORD}" nova_api -e \
Expand All @@ -155,7 +154,7 @@ echo "$PULL_OPENSTACK_CONFIGURATION_NOVADB_MAPPED_CELLS"
ifeval::["{OpenStackPreviousInstaller}" != "director_operator"]
export PULL_OPENSTACK_CONFIGURATION_NOVA_COMPUTE_HOSTNAMES=$(oc run mariadb-client ${MARIADB_CLIENT_ANNOTATIONS} -q --image ${MARIADB_IMAGE} -i --rm --restart=Never -- \
endif::[]
ifeval::["{OpenStackPreviousInstaller}" == "director_operator"]
ifeval::["{build_variant}" == "ospdo"]
export PULL_OPENSTACK_CONFIGURATION_NOVA_COMPUTE_HOSTNAMES=$(oc run mariadb-client --overrides="$RUN_OVERRIDES" -n $OSPDO_NAMESPACE -q --image ${MARIADB_IMAGE} -i --rm --restart=Never -- \
endif::[]
mysql -rsh "$SOURCE_MARIADB_IP" -uroot -p"$SOURCE_DB_ROOT_PASSWORD" nova_api -e \
Expand Down

0 comments on commit ca072be

Please sign in to comment.