Skip to content

Conversation

@jistr
Copy link
Contributor

@jistr jistr commented Mar 21, 2025

  • check/amend tests

Resolves: https://issues.redhat.com/browse/OSPRH-14744

@openshift-ci
Copy link

openshift-ci bot commented Mar 21, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@jistr jistr requested a review from klgill March 21, 2025 16:45
klgill
klgill previously requested changes Mar 21, 2025
Comment on lines 411 to 412
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 dollar sign omitted on lines 411 and 412 because these lines are indented?

Copy link
Contributor Author

@jistr jistr Mar 24, 2025

Choose a reason for hiding this comment

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

Yes lines 410-413 are to be copy pasted as a single command essentially. I saw in some other places we use the > character at the beginning of the line to signify this is a continuation line, but it prevents copy-pasting the multi-line command.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In general i think achieving consistency on this would be nice :)

Copy link
Contributor

Choose a reason for hiding this comment

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

We usually use forward slashes in the docs to signify a continuation line, like this example in the 17.1 FFU guide:
export STACK=
$ sudo awk '/tripleo_role_name/ {print "--role " $2}'
sudo awk '/tripleo_role_name/ {print "--role " $2}'
/var/lib/mistral/${STACK}/tripleo-ansible-inventory.yaml
| grep -vi compute

We should be using them upstream as well, instead of the > character.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The example you pasted didn't render well in the comment, but i guess you meant backward slashes? I can see those in FFU guide.

Here it's different though, i misspoke when i mentioned it's a continuation line, it's actually an open for command but not really a continuation line. There are multiple lines and it's in a single control loop, but it's not a single command. If we put there the backslashes, it wouldn't work correctly, unless we also use semicolons after the commands. So it's unclear to me what the best convention for these multi-line control structures should be...

Copy link
Contributor

Choose a reason for hiding this comment

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

I'll ask the docs team for advice.

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 tried the copy button and i saw the copied text does not include the $ and > characters that are used to signal start of the command and multi-line commands. I don't know what's the mechanism behind that but i was pleasantly surprised :). So if we'd like to use that solution globally in the adoption docs, i'd be +1.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For now i updated the PR to use the > prefix for the multi-line command.

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's wait to add the solution globally. In the past week, I've noticed that the copy icon only copies the first line in many of the code blocks in the adoption guide. I solved some of them by adding the [source,yaml] tag. I need to test whether adding the [source,yaml] tag works on code blocks without the > . If it does work, then we don't need the > and the docs would look cleaner.

Copy link
Contributor

Choose a reason for hiding this comment

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

FYI: We're inconsistent about the use of openstackclientpod vs. OpenStackClientPod in the adoption guide and other 18.0 guides. Another writer on my team is investigating which term is correct. We'll leave this as is until we get an answer.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's a Pod resource called openstackclient so if we want to be correct we should use all lowercase. I suspect it got camel-cased in docs to become more readable, but it's not what the user will actually see. I'd be happy to use either variant.

Copy link
Contributor

Choose a reason for hiding this comment

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

could you preserve the docs link?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The content doesn't belong here at all. It already got deleted from here once (moved to adopting identity service where we can actually connect to the pod, here we can't). It got reintroduced as a mistake in a rebase of one of the larger patches, so now i'm just re-deleting 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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Relevant PR that originally moved the content: #722

@jistr jistr force-pushed the b/control-plane-verification-14744 branch from 30fdad0 to cc732ad Compare March 24, 2025 10:50
@jistr jistr marked this pull request as ready for review March 24, 2025 16:02
@jistr jistr force-pushed the b/control-plane-verification-14744 branch from 17f4436 to f8e3c8b Compare March 25, 2025 10:30
@ciecierski
Copy link
Contributor

Can you link jira bug in description on this pull request? There is automation which adds linking in jira to pull request. Thank you

@jistr
Copy link
Contributor Author

jistr commented Mar 25, 2025

Linked the bug, i think perhaps we should also put this on hold until #517 lands.

/hold

@softwarefactory-project-zuul
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/1d0d032d6c7541d4ab771221e662f78b

✔️ noop SUCCESS in 0s
adoption-standalone-to-crc-ceph FAILURE in 1h 34m 53s
adoption-standalone-to-crc-no-ceph FAILURE in 2h 01m 28s
✔️ adoption-docs-preview SUCCESS in 1m 27s

@jistr
Copy link
Contributor Author

jistr commented Mar 27, 2025

/unhold

@jistr
Copy link
Contributor Author

jistr commented Apr 2, 2025

/hold
Holding this until it's clear whether we will revert #517 or not.

@jistr jistr force-pushed the b/control-plane-verification-14744 branch from f8e3c8b to 9f28ad9 Compare April 9, 2025 15:49
@jistr
Copy link
Contributor Author

jistr commented Apr 9, 2025

/unhold

@jistr jistr force-pushed the b/control-plane-verification-14744 branch from 9f28ad9 to 355b3a2 Compare April 10, 2025 15:02
@softwarefactory-project-zuul
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/32e39da6056848c58a9f82f42668b615

✔️ noop SUCCESS in 0s
adoption-standalone-to-crc-ceph RETRY_LIMIT in 12m 08s
adoption-standalone-to-crc-no-ceph FAILURE in 1h 13m 16s
✔️ adoption-docs-preview SUCCESS in 1m 15s

@jistr
Copy link
Contributor Author

jistr commented Apr 11, 2025

recheck image pull error

jistr added 2 commits April 14, 2025 17:46
The previous version with '| grep Running' may be useful in tests to
force a non-zero return code and abort a block of code, but in docs
the grepping will hide anything that is not "Running", so we actually
do not see if there are any issues.

Therefore in the docs the 'grep' is now removed and the admin is told
to check if all status commands print "Running".
@jistr jistr force-pushed the b/control-plane-verification-14744 branch from 355b3a2 to 7d96934 Compare April 14, 2025 15:46
@jistr
Copy link
Contributor Author

jistr commented Apr 14, 2025

Updated according to the comment and rebased.

+
[source,yaml]
----
$ RENAMED_CELLS="cell1 cell2 cell3"

Choose a reason for hiding this comment

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

This may be slightly tangential, but given that the most common use case is not to have multiple cells don't you think we should have a note here to clarify that this should be modified to suit the environment?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes could be done but it's not related to the bug i'm trying to fix. I could piggy-back another commit to the PR if it was brought up earlier in the sprint but now i'd just focus on the must haves.

The RENAMED_CELLS variable is used across the docs in many places, it is described in https://openstack-k8s-operators.github.io/data-plane-adoption/user/downstream.html#adopting-the-compute-service_adopt-control-plane

Now that is searched for it, i see that description is not the first place the variable occurs in the docs, which could be improved upon, but again it's irrelevant to this bug.

Copy link
Contributor

Choose a reason for hiding this comment

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

In the guide, it is stated as an example we stick with to deploy 3 cells further on.
We could surely improve that in some other commits

done
> oc get pod openstack-$CELL-galera-0 -o jsonpath='{.status.phase}{"\n"}'
> oc get pod rabbitmq-$CELL-server-0 -o jsonpath='{.status.phase}{"\n"}'
> done

Choose a reason for hiding this comment

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

I think it may make sense to include a sample of expected output here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The expected output is the word Running per cell, i tried to hint at that in the introductory sentence for the code block. It could be made more clear a the cost of being more verbose, but i'm not sure if that's worth respinning the CI.

Copy link
Contributor

@ciecierski ciecierski Apr 15, 2025

Choose a reason for hiding this comment

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

We can be more verbose in documentation and have grep in CI at the same time.
Here is example output:
`
$ oc get pods -n openstack rabbitmq-server-0

NAME READY STATUS RESTARTS AGE
rabbitmq-server-0 1/1 Running 0 51m
`

and for galera:
`
oc get pods -n openstack openstack-galera-0

NAME READY STATUS RESTARTS AGE
openstack-galera-0 1/1 Running 0 53m
`

@jistr
Copy link
Contributor Author

jistr commented Apr 15, 2025

@odyssey4me Thanks for the review, but given that this patch has been on review for 3 weeks and the sprint is coming to a close, i think i'd focus any edits here on things that are clear breakages.

@jistr
Copy link
Contributor Author

jistr commented Apr 15, 2025

I'd like to avoid respinning the CI on tangential issues.

@odyssey4me
Copy link

@jistr Yes, fair enough - my suggestions are docs-only and could follow up in a PR that's docs-only to avoid respinning the integration testing in CI.

@holser holser requested review from bogdando and holser April 15, 2025 11:11
Copy link
Contributor

@holser holser left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Apr 15, 2025
@holser holser dismissed klgill’s stale review April 15, 2025 11:34

@jistr implemented requested changes in next PR updates. In case of any requests they can be processed as a new bug

@holser holser removed their assignment Apr 15, 2025
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.

lgtm

+
[source,yaml]
----
$ RENAMED_CELLS="cell1 cell2 cell3"
Copy link
Contributor

Choose a reason for hiding this comment

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

In the guide, it is stated as an example we stick with to deploy 3 cells further on.
We could surely improve that in some other commits

Copy link
Contributor

Choose a reason for hiding this comment

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

could you preserve the docs link?

@jistr
Copy link
Contributor Author

jistr commented Apr 15, 2025

2x lgtm, comments addressed.
/approve

@openshift-ci
Copy link

openshift-ci bot commented Apr 15, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jistr

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

The pull request process is described here

Details 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

@jistr
Copy link
Contributor Author

jistr commented Apr 15, 2025

For some reason my reply to one of the comments doesn't show in the discussion UI but it does show in the code UI:

https://github.com/openstack-k8s-operators/data-plane-adoption/pull/866/files#r2044430583

@ciecierski
Copy link
Contributor

/lgtm

@openshift-merge-bot openshift-merge-bot bot merged commit 20c3126 into openstack-k8s-operators:main Apr 15, 2025
6 checks passed
@jistr
Copy link
Contributor Author

jistr commented Apr 16, 2025

/cherry-pick 18.0-fr2

@openshift-cherrypick-robot

@jistr: #866 failed to apply on top of branch "18.0-fr2":

Applying: Add verification steps that look at OpenStackControlPlane CR status
Applying: Use MariaDB/Rabbit verification commands that will make issues visible
Using index info to reconstruct a base tree...
M	docs_user/modules/proc_deploying-backend-services.adoc
Falling back to patching base and 3-way merge...
Auto-merging docs_user/modules/proc_deploying-backend-services.adoc
CONFLICT (content): Merge conflict in docs_user/modules/proc_deploying-backend-services.adoc
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config advice.mergeConflict false"
Patch failed at 0002 Use MariaDB/Rabbit verification commands that will make issues visible

Details

In response to this:

/cherry-pick 18.0-fr2

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@jistr
Copy link
Contributor Author

jistr commented Apr 17, 2025

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.

9 participants