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

Incorrect structure of command in Configuring replication policy for the log store #86740

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

prithvipatil97
Copy link
Contributor

@prithvipatil97 prithvipatil97 commented Jan 6, 2025

$ oc edit clusterlogging instance 
  • But this is not the correct way.
  • The correct way to mention clusterlogging in the Red Hat Standard Documentation is ClusterLogging.
  • We can verify this in the other part of our documentation.
  • In addition, Step1 is noted with "Edit the ClusterLogging custom resource (CR) in the openshift-logging project:"
  • However, the project name is not mentioned in the command.
  • It is necessary to mention the project name while executing that command.

Reason:

  1. Suppose the user is not a part of openshift-logging project, and he tries to run this command then this command will not work.
  2. If the credentials are shared, and two people are using the same cluster at the same time, then, the second person could change to work in a different namespace.
  • Hence it will be always beneficial to run the above command with the project name.
  • We need to perform these changes in our documentation.
  • Here is the correct structure of this command.

  1. Edit the ClusterLogging custom resource (CR) in the openshift-logging project:
$ oc edit -n openshift-logging ClusterLogging instance 

Version(s):

RHOCP-4.18, RHOCP-4.17, RHOCP-4.16, RHOCP-4.15, RHOCP-4.14, RHOCP-4.13, RHOCP-4.12

Issue:

https://issues.redhat.com/browse/OBSDOCS-1598

Link to docs preview:

https://86740--ocpdocs-pr.netlify.app/openshift-dedicated/latest/observability/logging/log_storage/logging-config-es-store.html

https://86740--ocpdocs-pr.netlify.app/openshift-enterprise/latest/observability/logging/log_storage/logging-config-es-store.html

https://86740--ocpdocs-pr.netlify.app/openshift-rosa/latest/observability/logging/log_storage/logging-config-es-store.html

QE review:

  • QE has approved this change.

Additional information:

…the log store

The structure of the command is incorrect in Configuring the replication policy for the log store documentation.
Here is the documentation Link: https://docs.openshift.com/container-platform/4.16/observability/logging/log_storage/logging-config-es-store.html#cluster-logging-elasticsearch-ha_logging-config-es-store
Here in Step1 under the procedure section, we could see the below command is mentioned:
$ oc edit clusterlogging instance 
But this is not the correct way.
The correct way to mention `clusterlogging` in the Red Hat Standard Documentation is `ClusterLogging`.
We can verify this in the other part of our documentation.
In addition, Step1 is noted with "Edit the ClusterLogging custom resource (CR) in the openshift-logging project:"
However, the project name is not mentioned in the command.
It is necessary to mention the project name while executing that command.
Reason:
1. Suppose the user is not a part of `openshift-logging` project, and he tries to run this command then this command will not work.
2. If the credentials are shared, and two people are using the same cluster at the same time, then, the second person could change to work in a different namespace.
 

Hence it will be always beneficial to run the above command with the project name.
We need to perform these changes in our documentation.
Here is the correct structure of this command.
--------------------
1. Edit the ClusterLogging custom resource (CR) in the openshift-logging project:

$ oc edit -n openshift-logging ClusterLogging instance 
           --------------------
@openshift-ci openshift-ci bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jan 6, 2025
Copy link

openshift-ci bot commented Jan 6, 2025

@prithvipatil97: all tests passed!

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

@prithvipatil97
Copy link
Contributor Author

/label peer-review-needed

@openshift-ci openshift-ci bot added the peer-review-needed Signifies that the peer review team needs to review this PR label Jan 6, 2025
@mburke5678
Copy link
Contributor

mburke5678 commented Jan 6, 2025

@prithvipatil97 The user is told to use the openshift-logging project in the step text:

Edit the ClusterLogging custom resource (CR) in the openshift-logging project:

I think having the project in both places would be redundant. If you strongly believe that the command should have the namespace, we should change the step text.

. Edit the `ClusterLogging` custom resource (CR):
+
[source,terminal]
----
$ oc edit -n openshift-logging ClusterLogging instance
----

Also, if we make the change to include the namespace in the command, the change should be made in all places:

image

@briandooley WDYT?

@mburke5678 mburke5678 added the peer-review-in-progress Signifies that the peer review team is reviewing this PR label Jan 6, 2025
@briandooley
Copy link
Contributor

@mburke5678 Going to need some clarification. When you say "both" places, where do you mean?

I agree that the change in one place should be replicated in the other places as well, assuming that the commands pass QE.

@prithvipatil97
Copy link
Contributor Author

Hello @mburke5678 ,
Thank you very much for your attention here.

With this PR we are performing 2 changes. Here is the current command:

$ oc edit clusterlogging instance 

-The correct way to mention clusterlogging in documentation is ClusterLogging
-And Yes, I strongly believe that the command should have the namespace.
-I have mentioned the reason for this in the PR description.

Additionally, If you think of changing the step text, that would also be acceptable.
However, I believe it is unnecessary to change the step text, as it will not cause confusion for users.

Also, if we check this doc path [1] and [2]
[1] modules/cluster-logging-cpu-memory.adoc
[2] modules/cluster-logging-collector-limits.adoc

Here it is mentioned:

. Edit the `ClusterLogging` custom resource (CR) in the `openshift-logging` project:
+
[source,terminal]
----
$ oc -n openshift-logging edit ClusterLogging instance
----

So I think we should be good to proceed with this change.
Kindly share your thoughts on it.

Regards,
Prithviraj Patil

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
peer-review-in-progress Signifies that the peer review team is reviewing this PR peer-review-needed Signifies that the peer review team needs to review this PR size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants