Skip to content
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

Apply required ospdo changes to adoption docs #855

Conversation

pinikomarov
Copy link
Contributor

Copy link

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/openstack-k8s-operators/data-plane-adoption for 855,18be40ff97bbea9d21671c391190404abe2fe9d1

Copy link
Contributor

@bogdando bogdando left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see inline

@@ -20,23 +20,23 @@ $ oc project openstack
. Define the common environment variables:
+
----
export PASSWORD_FILE="tripleo-passwords.yaml"
$ export PASSWORD_FILE="tripleo-passwords.yaml"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed on the call please separate formatting refactorings from factual changes into different PRs.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ack

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll go over and remove any "cosmetic" chanegs

Copy link
Contributor

@klgill klgill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A general comment on the docs: The ospdo adoption preview is not rendering properly. I noticed the following variables in many of the modules again:

:leveloffset: 2
:leveloffset: +1

I think these ^ are causing the formatting issues. Please remove these variables.

@@ -29,7 +29,7 @@ The following {compute_service_first_ref} features are Technology Previews:
* AMD SEV
* Direct download from Rados Block Device (RBD)
* File-backed memory
* `Provider.yaml`
** Multiple data plane node sets
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the "Multiple data plane node sets" bullet supposed to be placed under the Compute features?
I also don't think it's supposed to be a sub-bullet of "File-backed memory", so I removed one asterisk.

Suggested change
** Multiple data plane node sets
* Multiple data plane node sets

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this limitation only apply to both ospdo and regular adoption?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure TBH, that filename seems like a typo, since this PR is for crucial changes only , I'm removing this change

@@ -9,6 +9,9 @@ Familiarize yourself with the steps of the adoption process and the optional pos
. xref:migrating-tls-everywhere_configuring-network[Migrate TLS everywhere (TLS-e) to the Red Hat OpenStack Services on OpenShift (RHOSO) deployment].
. xref:migrating-databases-to-the-control-plane_configuring-network[Migrate your existing databases to the new control plane].
. xref:adopting-openstack-control-plane-services_configuring-network[Adopt your Red Hat OpenStack Platform 17.1 control plane services to the new RHOSO 18.0 deployment].
ifeval::["{build_variant}" == "ospdo"]
. xref:ospdo_scale_down_pre_database_adoption_configuring-network[Scaling down director Operator resources].
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
. xref:ospdo_scale_down_pre_database_adoption_configuring-network[Scaling down director Operator resources].
. xref:ospdo-scale-down-pre-database-adoption_configuring-network[Scaling down director Operator resources].

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@@ -3,6 +3,10 @@
= Comparing configuration files between deployments

To help you manage the configuration for your {OpenStackPreviousInstaller} and {rhos_prev_long} ({OpenStackShort}) services, you can compare the configuration files between your {OpenStackPreviousInstaller} deployment and the {rhos_long} cloud by using the os-diff tool.
ifeval::["{build_variant}" == "ospdo"]
[NOTE]
At this time Os-diff does not support director Operator.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
At this time Os-diff does not support director Operator.
Os-diff does not currently support director Operator.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@@ -55,6 +55,11 @@ EOF
If you backed up your {rhos_prev_long} ({OpenStackShort}) services configuration file from the original environment, you can compare it with the confgiuration file that you adopted and ensure that the configuration is correct.
For more information, see xref:pulling-configuration-from-tripleo-deployment_adopt-control-plane[Pulling the configuration from a {OpenStackPreviousInstaller} deployment].
ifeval::["{build_variant}" == "ospdo"]
[NOTE]
At this time Os-diff does not support director Operator.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
At this time Os-diff does not support director Operator.
Os-diff does not currently support director Operator.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

$ oc adm uncordon $OSP18_NODE1
$ oc adm uncordon $OSP18_NODE2
----
+
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
+

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Comment on lines 149 to 155
ifeval::["{build_variant}" != "ospdo"]
for i in {1..3}; do
SSH_CMD=CONTROLLER${i}_SSH
endif::[]
ifeval::["{build_variant}" == "ospdo"]
SSH_CMD=CONTROLLER_SSH
endif::[]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ifeval::["{build_variant}" != "ospdo"]
for i in {1..3}; do
SSH_CMD=CONTROLLER${i}_SSH
endif::[]
ifeval::["{build_variant}" == "ospdo"]
SSH_CMD=CONTROLLER_SSH
endif::[]
ifeval::["{build_variant}" != "ospdo"]
for i in {1..3}; do
SSH_CMD=CONTROLLER${i}_SSH
endif::[]
ifeval::["{build_variant}" == "ospdo"]
SSH_CMD=CONTROLLER_SSH
endif::[]

The ifeval statements are rendering in the preview. Removing the extra spaces should fix it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Comment on lines 162 to 164
ifeval::["{build_variant}" != "ospdo"]
done
endif::[]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ifeval::["{build_variant}" != "ospdo"]
done
endif::[]
ifeval::["{build_variant}" != "ospdo"]
done
endif::[]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment on lines 198 to 200
ifeval::["{build_variant}" != "ospdo"]
done
endif::[]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ifeval::["{build_variant}" != "ospdo"]
done
endif::[]
ifeval::["{build_variant}" != "ospdo"]
done
endif::[]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Comment on lines 226 to 228
ifeval::["{build_variant}" != "ospdo"]
done
endif::[]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ifeval::["{build_variant}" != "ospdo"]
done
endif::[]
ifeval::["{build_variant}" != "ospdo"]
done
endif::[]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@pinikomarov pinikomarov force-pushed the adoption_ospdo_docs_changes branch 2 times, most recently from 67c4201 to ac1dd42 Compare March 17, 2025 23:29
Copy link
Contributor

@jistr jistr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than the indentation issue and Katie's comments, the patch LGTM.

${!SSH_CMD} sudo systemctl stop $service
fi
ifeval::["{build_variant}" != "ospdo"]
for i in {1..3}; do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This still breaks indentation of the code example. See the indentation on what you're removing vs on what you're adding.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@pinikomarov pinikomarov force-pushed the adoption_ospdo_docs_changes branch from ac1dd42 to 3176475 Compare March 18, 2025 09:12
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/c17ec7b4e7d64549865dd564079e3cfe

✔️ noop SUCCESS in 0s
adoption-docs-preview FAILURE in 1m 28s

@pinikomarov pinikomarov force-pushed the adoption_ospdo_docs_changes branch from 3176475 to 0c79371 Compare March 18, 2025 09:26
if [ ! -z "${!SSH_CMD}" ]; then
echo "Stopping the $service in controller $i"
if ${!SSH_CMD} sudo systemctl is-active $service; then
${!SSH_CMD} sudo systemctl stop $service
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This still un-indents things for the default guide. Let's please keep the original indentation, it will also make the diff cleaner like in the other places where we do similar edits.

Copy link
Contributor Author

@pinikomarov pinikomarov Mar 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok updated that to indent correctly

Copy link
Contributor

@jistr jistr Mar 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it's fixed... If it was, the lines of diff would disappear. The outermost if line is indented by 4 spaces but it was previously indented by 8 spaces and i think we should keep that, to make it appear correct in the for cycle.

See how you did it in proc_migrating-ovn-data.adoc, i think there it is correct.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If i look at the docs preview for this PR, this is how it renders:

echo "Stopping systemd OpenStack services"
for service in ${ServicesToStop[*]}; do
    for i in {1..3}; do
        SSH_CMD=CONTROLLER${i}_SSH
    if [ ! -z "${!SSH_CMD}" ]; then
        echo "Stopping the $service in controller $i"
        if ${!SSH_CMD} sudo systemctl is-active $service; then
            ${!SSH_CMD} sudo systemctl stop $service
        fi
    fi
    done
done

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated indentation , I believe its better now , now it's looking like this :
image

@pinikomarov pinikomarov force-pushed the adoption_ospdo_docs_changes branch from 0c79371 to d38e7c2 Compare March 18, 2025 10:08
@@ -26,6 +26,11 @@ $ STORAGE_CLASS=local-storage
$ MARIADB_IMAGE=registry.redhat.io/rhoso/openstack-mariadb-rhel9:18.0
endif::[]

ifeval::["{build_variant}" == "ospdo"]
$ MARIADB_CLIENT_ANNOTATIONS='[{"name": internalapi-static, "ips": ["10.2.120.9/24"]}]'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Copy link
Contributor

@bogdando bogdando left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please align MARIADB_CLIENT_ANNOTATIONS in tests and docs

Copy link
Contributor

@klgill klgill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pinikomarov I just have 2 very minor formatting changes for you to implement. Otherwise, this LGTM.

$ $CONTROLLER_SSH ip a s enp4s0
** Select the non /32 IP address
----
+
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
+

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

$OS_CLIENT cat /home/cloud-admin/.ssh/id_rsa.pub > temp/ssh.pub
echo "SSH private and public keys saved in temp/ssh.private and temp/ssh.pub"
----
. Get the OVN configuration from each Compute node role, `OpenStackBaremetalSet`. This configuration is used later to build the `OpenStackDataPlaneNodeSet`(s). Repeat the following step for each `OpenStackBaremetalSet `:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
. Get the OVN configuration from each Compute node role, `OpenStackBaremetalSet`. This configuration is used later to build the `OpenStackDataPlaneNodeSet`(s). Repeat the following step for each `OpenStackBaremetalSet `:
. Get the OVN configuration from each Compute node role, `OpenStackBaremetalSet`. This configuration is used later to build the `OpenStackDataPlaneNodeSet`(s). Repeat the following step for each `OpenStackBaremetalSet`:

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@pinikomarov pinikomarov force-pushed the adoption_ospdo_docs_changes branch 3 times, most recently from a07863f to 853f6fc Compare March 19, 2025 13:07
@pinikomarov pinikomarov force-pushed the adoption_ospdo_docs_changes branch from 853f6fc to 09f90d5 Compare March 19, 2025 13:12
Copy link
Contributor

@jistr jistr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@pinikomarov
Copy link
Contributor Author

@jistr seems it needs approved label ?

Copy link

openshift-ci bot commented Mar 19, 2025

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@klgill
Copy link
Contributor

klgill commented Mar 19, 2025

@pinikomarov I just added the approved label, since all reviewers have given their blessings.

@openshift-merge-bot openshift-merge-bot bot merged commit 3c6bf64 into openstack-k8s-operators:main Mar 19, 2025
6 checks passed
@pinikomarov pinikomarov deleted the adoption_ospdo_docs_changes branch March 20, 2025 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants