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

diagnostics: fix various issues #11295

Merged
merged 3 commits into from
Nov 21, 2016

Conversation

sosiouxme
Copy link
Member

@sosiouxme sosiouxme commented Oct 10, 2016

@sosiouxme sosiouxme force-pushed the 20161010-diagnostics-fixes branch 2 times, most recently from a744e80 to b14e6f1 Compare October 10, 2016 18:42
@sosiouxme
Copy link
Member Author

@jcantrill before i forget again to link you on this

I still have at least another thing or two I'd like to add


Use the 'oadm policy reconcile-cluster-roles' command to create the role. For example,

$ oadm policy reconcile-cluster-roles \
Copy link
Contributor

Choose a reason for hiding this comment

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

For consistency we should probably update all places to include '$' in the other messages found in AGL diagnostics

Copy link
Member Author

Choose a reason for hiding this comment

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

sounds good

Copy link
Contributor

Choose a reason for hiding this comment

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

The CLI Hacking Guide says no $:
https://github.com/openshift/origin/blob/master/docs/cli_hacking_guide.adoc#writing-examples

And that's what most if not all commands follow.

Wouldn't it be the case for oc diagnostics too?

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see where it explicitly says to not use dollar signs but I think this example is subtly different. Here we are suggesting a command you can run to resolve a discovered issue. We are not suggesting an example of running a diagnostics command. Regardless, I suggest we either add '$' or remove them to be consistent with places we have used them before.

Copy link
Contributor

Choose a reason for hiding this comment

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

We removed all $ prefixes back in May to follow the style in Kubernetes: #8454.

I'm not sure if it's the case here, but for the CLI commands those comments become part of the generated docs, so I agree with you that we need to be consistent.

Copy link
Contributor

@rhcarvalho rhcarvalho Nov 7, 2016

Choose a reason for hiding this comment

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

I'm not sure if it's the case here,

Most probably not the case... these seem to be just constants that I believe are printed as output of the diagnostics.

Copy link
Member Author

Choose a reason for hiding this comment

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

I could argue that bit of the CLI hacking guide is only about the command usage statement. I think diagnostics is the only place that has output related to running other commands entirely. It's a gray area; I think it is clearer with the $ to indicate commands; what do you think?

bug 1382903 https://bugzilla.redhat.com/show_bug.cgi?id=1382903
When the LoggingPublicUrl isn't configured in master config, the
diagnostic no longer silently succeeds, but instead is skipped with a
message about why.
@sosiouxme sosiouxme force-pushed the 20161010-diagnostics-fixes branch from b14e6f1 to ebceafe Compare November 4, 2016 15:25
for consistency, the commands we tell the user to follow are all
preceded by a shell prompt.
@sosiouxme
Copy link
Member Author

[merge]

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 9b82a96

@openshift-bot
Copy link
Contributor

openshift-bot commented Nov 21, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/11610/) (Base Commit: 826c379) (Image: devenv-rhel7_5394)

@openshift-bot openshift-bot merged commit 9d3d355 into openshift:master Nov 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants