-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rendering for Director Operator docs variant Fixes #780
Changes from 8 commits
f9fa9bd
c247a16
56e7a41
67c049d
4f90b09
b8e2f1d
7003720
8ebc7f7
7c51e6a
2c0de02
0947dea
deb66d7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,15 +11,16 @@ 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"] | ||
ifeval::["{OpenStackPreviousInstaller}" == "director Operator"] | ||
include::assemblies/assembly_ospdo-scale-down-pre-database-adoption.adoc[leveloffset=+1] | ||
endif::[] | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why was this assembly removed from main.adoc and deleted from the repo? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. probably my mistake , returning it There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't the ifeval be ifeval::["{build_variant}" == "ospdo"] ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ack |
||
|
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -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 | ||||||||||||||||||
Comment on lines
118
to
119
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I added a plus sign so that the second command aligns with the command above it. |
||||||||||||||||||
---- | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In the rendered OSPdO doc, both the If not, we might need another conditional statement on the
This might require a change to the MakeFile as well. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. both : |
||||||||||||||||||
|
@@ -231,16 +231,16 @@ spec: | |||||||||||||||||
service: | ||||||||||||||||||
metadata: | ||||||||||||||||||
annotations: | ||||||||||||||||||
ifeval::["{OpenStackPreviousInstaller}" != "director_operator"] | ||||||||||||||||||
ifeval::["{OpenStackPreviousInstaller}" != "director Operator"] | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This ifeval needs to be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ack |
||||||||||||||||||
metallb.universe.tf/address-pool: ctlplane | ||||||||||||||||||
metallb.universe.tf/allow-shared-ip: ctlplane | ||||||||||||||||||
metallb.universe.tf/loadBalancerIPs: 192.168.122.80 | ||||||||||||||||||
endif::[] | ||||||||||||||||||
ifeval::["{OpenStackPreviousInstaller}" == "director_operator"] | ||||||||||||||||||
metallb.universe.tf/address-pool: <address_pool> | ||||||||||||||||||
metallb.universe.tf/allow-shared-ip: <address_pool> | ||||||||||||||||||
metallb.universe.tf/loadBalancerIPs: <loadBalancer_IP> | ||||||||||||||||||
ifeval::["{build_variant}" == "ospdo"] | ||||||||||||||||||
metallb.universe.tf/address-pool: <address_pool> <2> | ||||||||||||||||||
metallb.universe.tf/allow-shared-ip: <address_pool> <2> | ||||||||||||||||||
metallb.universe.tf/loadBalancerIPs: <loadBalancer_IP> <3> | ||||||||||||||||||
endif::[] | ||||||||||||||||||
spec: | ||||||||||||||||||
type: LoadBalancer | ||||||||||||||||||
|
@@ -312,7 +312,7 @@ endif::[] | |||||||||||||||||
ovn: | ||||||||||||||||||
enabled: false | ||||||||||||||||||
template: | ||||||||||||||||||
ifeval::["{OpenStackPreviousInstaller}" != "director_operator"] | ||||||||||||||||||
ifeval::["{OpenStackPreviousInstaller}" != "director Operator"] | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ack |
||||||||||||||||||
ovnController: | ||||||||||||||||||
networkAttachment: tenant | ||||||||||||||||||
nodeSelector: | ||||||||||||||||||
|
@@ -327,7 +327,7 @@ ifeval::["{OpenStackPreviousInstaller}" != "director_operator"] | |||||||||||||||||
dbType: SB | ||||||||||||||||||
networkAttachment: internalapi | ||||||||||||||||||
endif::[] | ||||||||||||||||||
ifeval::["{OpenStackPreviousInstaller}" == "director_operator"] | ||||||||||||||||||
ifeval::["{build_variant}" == "ospdo"] | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add a <4> after <networkAttachment_name> in the ovndbcluster-nb section, like this:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ack |
||||||||||||||||||
ovnController: | ||||||||||||||||||
networkAttachment: tenant | ||||||||||||||||||
nodeSelector: | ||||||||||||||||||
|
@@ -337,10 +337,10 @@ ifeval::["{OpenStackPreviousInstaller}" == "director_operator"] | |||||||||||||||||
ovnDBCluster: | ||||||||||||||||||
ovndbcluster-nb: | ||||||||||||||||||
dbType: NB | ||||||||||||||||||
networkAttachment: <networkAttachment_name> | ||||||||||||||||||
networkAttachment: <networkAttachment_name> <4> | ||||||||||||||||||
ovndbcluster-sb: | ||||||||||||||||||
dbType: SB | ||||||||||||||||||
networkAttachment: <networkAttachment_name> | ||||||||||||||||||
networkAttachment: <networkAttachment_name> <4> | ||||||||||||||||||
endif::[] | ||||||||||||||||||
placement: | ||||||||||||||||||
enabled: false | ||||||||||||||||||
|
@@ -362,13 +362,13 @@ endif::[] | |||||||||||||||||
service: | ||||||||||||||||||
metadata: | ||||||||||||||||||
annotations: | ||||||||||||||||||
ifeval::["{OpenStackPreviousInstaller}" != "director_operator"] | ||||||||||||||||||
ifeval::["{OpenStackPreviousInstaller}" != "director Operator"] | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ["{build_variant}" == "ospdo"] There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ack |
||||||||||||||||||
metallb.universe.tf/address-pool: internalapi | ||||||||||||||||||
metallb.universe.tf/loadBalancerIPs: 172.17.0.86 | ||||||||||||||||||
endif::[] | ||||||||||||||||||
ifeval::["{OpenStackPreviousInstaller}" == "director_operator"] | ||||||||||||||||||
metallb.universe.tf/address-pool: <networkAttachment_name> | ||||||||||||||||||
metallb.universe.tf/loadBalancerIPs: <loadBalancer_IP> | ||||||||||||||||||
ifeval::["{build_variant}" == "ospdo"] | ||||||||||||||||||
metallb.universe.tf/address-pool: <networkAttachment_name> <4> | ||||||||||||||||||
metallb.universe.tf/loadBalancerIPs: <loadBalancer_IP> <3> | ||||||||||||||||||
endif::[] | ||||||||||||||||||
spec: | ||||||||||||||||||
type: LoadBalancer | ||||||||||||||||||
|
@@ -387,14 +387,14 @@ endif::[] | |||||||||||||||||
replicas: 1 | ||||||||||||||||||
EOF | ||||||||||||||||||
---- | ||||||||||||||||||
ifeval::["{OpenStackPreviousInstaller}" == "director_operator"] | ||||||||||||||||||
* 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. | ||||||||||||||||||
endif::[] | ||||||||||||||||||
|
||||||||||||||||||
ifeval::["{build_variant}" == "ospdo"] | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
The text below the code block should be formatted as above. Please be sure to delete lines 396 and 397. I'm not able to do it myself. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||||||||||||||||||
+ | ||||||||||||||||||
<1> Select an existing storage class in your {OpenShiftShort} cluster. | ||||||||||||||||||
ifeval::["{build_variant}" == "ospdo"] | ||||||||||||||||||
<2> Replace `<address_pool>` with the name of your network definition. | ||||||||||||||||||
<3> Replace `<loadBalancer_IP>` with the LoadBalancer IP address. | ||||||||||||||||||
<4> Replace `<networkAttachment_name>` with the name of your network. | ||||||||||||||||||
endif::[] | ||||||||||||||||||
|
||||||||||||||||||
.Verification | ||||||||||||||||||
|
||||||||||||||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,14 +33,12 @@ $ grep -rI 'ovn_[ns]b_conn' /var/lib/config-data/puppet-generated/ | |
---- | ||
|
||
.Procedure | ||
+ | ||
ifeval::["{OpenStackPreviousInstaller}" == "director_operator"] | ||
. Get the {OpenShiftShort} master node that contains the {OpenStackShort} Controller: | ||
ifeval::["{build_variant}" == "ospdo"] | ||
. Get the {OpenShiftShort} master node that contains the {OpenStackShort} Controller node: | ||
+ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You need this plus sign. The step numbering is off in the rendered docs. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ack |
||
---- | ||
$ oc get vmi -n $<ospdo_namespace> -o jsonpath='{.items[0].metadata.labels.kubevirt\.io/nodeName}' | ||
---- | ||
+ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You need the plus sign. |
||
* Replace `<ospdo_namespace>` with your OSPdO namespace. | ||
endif::[] | ||
. Prepare a temporary `PersistentVolume` claim and the helper pod for the OVN backup. Adjust the storage requests for a large database, if needed: | ||
|
@@ -63,7 +61,7 @@ spec: | |
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
ifeval::["{OpenStackPreviousInstaller}" == "director_operator"] | ||
ifeval::["{build_variant}" == "ospdo"] | ||
namespace: $OSPDO_NAMESPACE | ||
endif::[] | ||
name: ovn-data | ||
|
@@ -81,20 +79,20 @@ metadata: | |
name: ovn-copy-data | ||
annotations: | ||
openshift.io/scc: anyuid | ||
ifeval::["{OpenStackPreviousInstaller}" != "director_operator"] | ||
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"] | ||
nodeName: '{{ <ocp_node_holding_controller> }}' | ||
ifeval::["{build_variant}" == "ospdo"] | ||
nodeName: '{{ <ocp_node_holding_controller> }}' <1> | ||
endif::[] | ||
containers: | ||
- image: $OVSDB_IMAGE | ||
|
@@ -122,18 +120,17 @@ endif::[] | |
secretName: ovn-data-cert | ||
EOF | ||
---- | ||
ifeval::["{OpenStackPreviousInstaller}" == "director_operator"] | ||
+ | ||
* Replace `<ocp_node_holding_controller>` with the {OpenStackShort} node that contains the Controller. | ||
ifeval::["{build_variant}" == "ospdo"] | ||
+ <1> Replace `<ocp_node_holding_controller>` with the {OpenStackShort} node that contains the Controller node. | ||
endif::[] | ||
|
||
. Wait for the pod to be ready: | ||
+ | ||
---- | ||
ifeval::["{OpenStackPreviousInstaller}" != "director_operator"] | ||
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::[] | ||
---- | ||
|
@@ -149,15 +146,16 @@ $ $CONTROLLER1_SSH sudo iptables -I INPUT -s {PODIFIED_INTERNALAPI_NETWORK} -p t | |
* If you did not enable TLS everywhere, run the following command: | ||
+ | ||
---- | ||
ifeval::["{OpenStackPreviousInstaller}" != "director_operator"] | ||
ifeval::["{OpenStackPreviousInstaller}" != "director Operator"] | ||
$ oc exec ovn-copy-data -- bash -c "ovsdb-client backup tcp:$SOURCE_OVSDB_IP:6641 > /backup/ovs-nb.db" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There needs to be a plus sign after the "OVN database backup" step, like this: . Back up your OVN databases:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ack |
||
$ 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::[] | ||
---- | ||
+ | ||
* If you enabled TLS everywhere, run the following command: | ||
+ | ||
---- | ||
|
@@ -205,7 +203,7 @@ PODIFIED_OVSDB_NB_IP=$(oc get svc --selector "statefulset.kubernetes.io/pod-name | |
PODIFIED_OVSDB_SB_IP=$(oc get svc --selector "statefulset.kubernetes.io/pod-name=ovsdbserver-sb-0" -ojsonpath='{.items[0].spec.clusterIP}') | ||
---- | ||
|
||
.+ When using IPv6, adjust the address to the format expected by `ovsdb-*` tools: | ||
. If you are using IPv6, adjust the address to the format expected by `ovsdb-*` tools: | ||
|
||
---- | ||
PODIFIED_OVSDB_NB_IP=[$PODIFIED_OVSDB_NB_IP] | ||
|
@@ -231,11 +229,11 @@ $ oc exec ovn-copy-data -- bash -c "ovsdb-client get-schema --ca-cert=/etc/pki/t | |
.. If you did not enable TLS everywhere, use the following command: | ||
+ | ||
---- | ||
ifeval::["{OpenStackPreviousInstaller}" != "director_operator"] | ||
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::[] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,15 +39,15 @@ endif::[] | |
|
||
. To locate the CA certificate and key, list all the certificates inside your NSSDB: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line 40 and line 51 are also rendering in the OSPdO doc. As mentioned above, we might need another ifeval to ensure that "regular" adoption content does not appear in the OSPdO guide. For example:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If both lines 40 and 51 need to appear in the OSPdO docs, then you don't need to have the following line twice: I would remove that line from between the OSPdO ifeval statements. So it just starts with "If you installed OSPdO..." |
||
+ | ||
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: | ||
+ | ||
---- | ||
$ IPA_SSH="podman exec -ti freeipa-server" | ||
---- | ||
endif::[] | ||
---- | ||
$IPA_SSH certutil -L -d /etc/pki/pki-tomcat/alias | ||
$ IPA_SSH certutil -L -d /etc/pki/pki-tomcat/alias | ||
---- | ||
+ | ||
* The `-L` option lists all certificates. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This assembly is not rendering in the docs because the "assembly_prepare_director_operator_and_rhoso_for_adoption_process.adoc" is not in the assemblies folder, but it should be. Can you please move the "assembly_prepare_director_operator_and_rhoso_for_adoption_process.adoc" to the assemblies folder? After you do that, this include statement should work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on my patch I do see it on that location : ```
k@k:
/my_workspace/data-plane-adoption/docs_user$ pwd/my_workspace/data-plane-adoption/docs_user$ ls assemblies/assembly_prepare_director_operator_and_rhoso_for_adoption_process.adoc/home/k/my_workspace/data-plane-adoption/docs_user
k@k:
assemblies/assembly_prepare_director_operator_and_rhoso_for_adoption_process.adoc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The file still isn't rendering, but I think I know why. The file name should be formatted as follows:
assemblies/assembly_prepare-director-operator-and-rhoso-for-adoption-process.adoc
If you rename the file with the name I provided here, and then update the file name in the include statement in main.adoc, I'm hoping that fixes the problem.