-
Notifications
You must be signed in to change notification settings - Fork 39.8k
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
[Federation] Print out status updates while kubefed init
is running
#41849
Conversation
Hi @perotinus. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with 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/test-infra repository. I understand the commands that are listed here. |
General comment for the overall change. I was thinking about doing something less verbose than this since these are user facing messages. Example: "Creating a namespace for federation system components..." you wait until the operation is done and then on the same line say "Ok" or "Done". "Creating a namespace for federation system components...Done" Something like that. Also, don't you need linebreaks at the end of each Review status: 0 of 2 files reviewed at latest revision, all discussions resolved. Comments from Reviewable |
a discussion (no related file): The last message could be Comments from Reviewable |
e9aa313
to
3bd9ce3
Compare
Review status: 0 of 2 files reviewed at latest revision, 1 unresolved discussion. a discussion (no related file): Previously, irfanurrehman wrote…
Thanks for the feedback! Yes, that makes a lot of sense. I've created some simpler messages that will always print (and fixed the line breaks), and moved some of the more-detailed messages to verbose logs. WDYT? Comments from Reviewable |
Ok, I've made these updates. Thanks! Review status: 0 of 2 files reviewed at latest revision, 1 unresolved discussion. Comments from Reviewable |
@madhusudancs @irfanurrehman PTAL? |
Reviewed 2 of 2 files at r2. a discussion (no related file): Previously, perotinus (Jonathan MacMillan) wrote…
I have left a few comments. None of those are critical or urgent. So I would recommend making all those changes in a separate follow up PR. In the cases where you print the messages to STDOUT, you skip logging them. I think it is worth adding an INFO log for those It looks good to me otherwise. However, I would like @irfanurrehman to make another pass and add the LGTM label when he is satisfied. federation/pkg/kubefed/init/init.go, line 241 at r2 (raw file):
Print the namespace in the message federation/pkg/kubefed/init/init.go, line 246 at r2 (raw file):
Use federation/pkg/kubefed/init/init.go, line 249 at r2 (raw file):
I like this simplification a lot. However, I think service deserves its own message. It is one of the slowest operations in the entire init command, probably as slow as or slower than waiting for the control plane pods to come up. federation/pkg/kubefed/init/init.go, line 270 at r2 (raw file):
What's happening here is creation of kubeconfig data to be populated in a secret. While your message is correct if one reads it very carefully, it might also cause some confusion. I would just write this as federation/pkg/kubefed/init/init.go, line 275 at r2 (raw file):
Same as above. federation/pkg/kubefed/init/init.go, line 298 at r2 (raw file):
I would just say federation/pkg/kubefed/init/init.go, line 332 at r2 (raw file):
No log here? federation/pkg/kubefed/init/init.go, line 349 at r2 (raw file):
Log here? federation/pkg/kubefed/init/init.go, line 353 at r2 (raw file):
No log here? federation/pkg/kubefed/init/init.go, line 360 at r2 (raw file):
log here? Comments from Reviewable |
/lgtm Except one thing (add it as part of follow up PR) I think everything is covered. (provided you would take the additional comments from @madhusudancs in a follow up PR). |
@perotinus, please run hack/update-bazel.sh to update the bazel build files and update the commit, I will lgtm it again. |
/approve Review status: all files reviewed at latest revision, 11 unresolved discussions, some commit checks failed. Comments from Reviewable |
3bd9ce3
to
defec24
Compare
/lgtm |
defec24
to
a784af7
Compare
@madhusudancs I ran hack/update-bazel.sh and need approval again. Can you oblige? Thanks! |
@madhusudancs Can you poke the robot again? The failures look like they were related to the BUILD file issue. |
Review status: 0 of 3 files reviewed at latest revision, 11 unresolved discussions. a discussion (no related file): Previously, madhusudancs (Madhusudan.C.S) wrote…
Thanks! I've created a follow-up PR that addresses your concerns: #42296 federation/pkg/kubefed/init/init.go, line 241 at r2 (raw file): Previously, madhusudancs (Madhusudan.C.S) wrote…
Done. federation/pkg/kubefed/init/init.go, line 246 at r2 (raw file): Previously, madhusudancs (Madhusudan.C.S) wrote…
Done. federation/pkg/kubefed/init/init.go, line 249 at r2 (raw file): Previously, madhusudancs (Madhusudan.C.S) wrote…
Done. federation/pkg/kubefed/init/init.go, line 270 at r2 (raw file): Previously, madhusudancs (Madhusudan.C.S) wrote…
Done. federation/pkg/kubefed/init/init.go, line 275 at r2 (raw file): Previously, madhusudancs (Madhusudan.C.S) wrote…
Done. federation/pkg/kubefed/init/init.go, line 298 at r2 (raw file): Previously, madhusudancs (Madhusudan.C.S) wrote…
Done. federation/pkg/kubefed/init/init.go, line 332 at r2 (raw file): Previously, madhusudancs (Madhusudan.C.S) wrote…
Done. federation/pkg/kubefed/init/init.go, line 349 at r2 (raw file): Previously, madhusudancs (Madhusudan.C.S) wrote…
Done. federation/pkg/kubefed/init/init.go, line 353 at r2 (raw file): Previously, madhusudancs (Madhusudan.C.S) wrote…
Done. federation/pkg/kubefed/init/init.go, line 360 at r2 (raw file): Previously, madhusudancs (Madhusudan.C.S) wrote…
Done. Comments from Reviewable |
@madhusudancs Can you re-LGTM this? |
@k8s-bot gce etcd3 e2e test this |
Review status: 0 of 3 files reviewed at latest revision, 12 unresolved discussions. federation/pkg/kubefed/init/init.go, line 280 at r3 (raw file):
You wouldn't need to print the ". . ." as part of a particular message. Comments from Reviewable |
Review status: 0 of 3 files reviewed at latest revision, 12 unresolved discussions. federation/pkg/kubefed/init/init.go, line 280 at r3 (raw file): Previously, irfanurrehman wrote…
Thanks! Just replied to your comments on #42296. I'll update this PR based on the results of that discussion. Comments from Reviewable |
Review status: 0 of 3 files reviewed at latest revision, 12 unresolved discussions. federation/pkg/kubefed/init/init.go, line 280 at r3 (raw file): Previously, perotinus (Jonathan MacMillan) wrote…
OK, based on discussion in #42296, I've updated this PR. Comments from Reviewable |
@madhusudancs @irfanurrehman I think this should be good-to-go at this point. Can someone LGTM? |
A very minor nit, else this pr is good to go from me. Review status: 0 of 3 files reviewed at latest revision, 12 unresolved discussions, some commit checks failed. federation/pkg/kubefed/init/init.go, line 280 at r3 (raw file): Previously, perotinus (Jonathan MacMillan) wrote…
Thanks @perotinus. I see that you have removed all the dots from the messages. Comments from Reviewable |
No worries! Better to have it be right, especially when it'll be exposed to users. Review status: 0 of 3 files reviewed at latest revision, 12 unresolved discussions. federation/pkg/kubefed/init/init.go, line 280 at r3 (raw file): Previously, irfanurrehman wrote…
Ah, yes, that make sense. Fixed. Comments from Reviewable |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: irfanurrehman, madhusudancs, perotinus
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
Automatic merge from submit-queue |
This is not an ideal final state–it does not address the appearance of hanging during long-running commands, for example–but it provides some level of information when the operations are successful.
See #41725.
Release note: