-
Notifications
You must be signed in to change notification settings - Fork 80
Control plane verification fixes #866
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
Control plane verification fixes #866
Conversation
|
Skipping CI for Draft Pull Request. |
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.
Is the dollar sign omitted on lines 411 and 412 because these lines are indented?
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.
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.
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.
In general i think achieving consistency on this would be nice :)
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.
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.
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 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...
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.
I'll ask the docs team for advice.
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.
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.
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.
For now i updated the PR to use the > prefix for the multi-line command.
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.
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.
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.
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.
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.
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.
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.
could you preserve the docs link?
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 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 :).
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.
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.
Relevant PR that originally moved the content: #722
30fdad0 to
cc732ad
Compare
17f4436 to
f8e3c8b
Compare
|
Can you link jira bug in description on this pull request? There is automation which adds linking in jira to pull request. Thank you |
|
Linked the bug, i think perhaps we should also put this on hold until #517 lands. /hold |
|
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/1d0d032d6c7541d4ab771221e662f78b ✔️ noop SUCCESS in 0s |
|
/unhold |
|
/hold |
f8e3c8b to
9f28ad9
Compare
|
/unhold |
9f28ad9 to
355b3a2
Compare
|
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/32e39da6056848c58a9f82f42668b615 ✔️ noop SUCCESS in 0s |
|
recheck image pull error |
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".
355b3a2 to
7d96934
Compare
|
Updated according to the comment and rebased. |
| + | ||
| [source,yaml] | ||
| ---- | ||
| $ RENAMED_CELLS="cell1 cell2 cell3" |
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 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?
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.
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.
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.
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 |
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.
I think it may make sense to include a sample of expected output here.
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 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.
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.
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
`
|
@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. |
|
I'd like to avoid respinning the CI on tangential issues. |
|
@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
left a comment
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.
/lgtm
@jistr implemented requested changes in next PR updates. In case of any requests they can be processed as a new bug
bogdando
left a comment
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.
lgtm
| + | ||
| [source,yaml] | ||
| ---- | ||
| $ RENAMED_CELLS="cell1 cell2 cell3" |
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.
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
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.
could you preserve the docs link?
|
2x lgtm, comments addressed. |
|
[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 DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
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 |
|
/lgtm |
20c3126
into
openstack-k8s-operators:main
|
/cherry-pick 18.0-fr2 |
|
@jistr: #866 failed to apply on top of branch "18.0-fr2": DetailsIn response to this:
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. |
Resolves: https://issues.redhat.com/browse/OSPRH-14744