Skip to content

Conversation

prithvipatil97
Copy link
Contributor

@prithvipatil97 prithvipatil97 commented Jan 2, 2025

  • Need to add one step in the Quick Start point of About Logging 6.0 documentation.
  • Here is the documentation link: https://docs.openshift.com/container-platform/4.17/observability/logging/logging-6.0/log6x-about.html#quick-start
  • Here Step 2 is mentioned as "Create a LokiStack custom resource (CR) in the openshift-logging namespace:"
  • But before creating LokiStack custom resource (CR), it is necessary to create an object storage secret.
  • Without creating a secret we can not create Lokistack customer resource.
  • We need to mention that object storage secret name in the LokiStack custom resource (CR) under spec.storage.secret.name section.
  • So it is required to add this step in our documentation.
  • Hence adding Step 2 in the documentation:

  1. Create a secret with the details to access to an existing object storage bucket. AWS is used in the following example:
$ oc create secret generic logging-loki-s3 \
  --from-literal=bucketnames="<bucket_name>" \
  --from-literal=endpoint="<aws_bucket_endpoint>" \
  --from-literal=access_key_id="<aws_access_key_id>" \
  --from-literal=access_key_secret="<aws_access_key_secret>" \
  --from-literal=region="<aws_region_of_your_bucket>" \
  -n openshift-logging

Version(s):

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

Issue:

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

Link to docs preview:

https://86648--ocpdocs-pr.netlify.app/openshift-enterprise/latest/observability/logging/logging-6.0/log6x-about.html

QE review:

  • QE has approved this change.

Additional information:

…cumentation

- Need to add one step in the Quick Start point of About Logging 6.0 documentation.
- Here is the documentation link: https://docs.openshift.com/container-platform/4.17/observability/logging/logging-6.0/log6x-about.html#quick-start
- Before creating `LokiStack` custom resource (CR) in the openshift-logging namespace, it is necessary to create an object storage secret.
- Without creating a secret we can not create `Lokistack` customer resource.
- So it is required to add this step in our documentation.
- Hence adding Step 2 in the documentation:

-----------------
2.  Create a secret with the details to access to an existing object storage bucket. AWS is used in the following example: 

~~~
$ oc create secret generic logging-loki-s3 \
  --from-literal=bucketnames="<bucket_name>" \
  --from-literal=endpoint="<aws_bucket_endpoint>" \
  --from-literal=access_key_id="<aws_access_key_id>" \
  --from-literal=access_key_secret="<aws_access_key_secret>" \
  --from-literal=region="<aws_region_of_your_bucket>" \
  -n openshift-logging
~~~
------------------
@openshift-ci openshift-ci bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jan 2, 2025
@ocpdocs-previewbot
Copy link

ocpdocs-previewbot commented Jan 2, 2025

🤖 Mon Jan 06 19:58:21 - Prow CI generated the docs preview:

https://86648--ocpdocs-pr.netlify.app/openshift-enterprise/latest/observability/logging/logging-6.0/log6x-about.html

@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 2, 2025
@xenolinux xenolinux added peer-review-in-progress Signifies that the peer review team is reviewing this PR and removed peer-review-needed Signifies that the peer review team needs to review this PR labels Jan 2, 2025
Copy link
Contributor

@xenolinux xenolinux left a comment

Choose a reason for hiding this comment

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

A tiny nit; otherwise LGTM

Gentle reminder for QE review.

@xenolinux xenolinux added peer-review-done Signifies that the peer review team has reviewed this PR and removed peer-review-in-progress Signifies that the peer review team is reviewing this PR labels Jan 2, 2025
- Need to add one step in the Quick Start point of About Logging 6.0 documentation.
- Here is the documentation link: https://docs.openshift.com/container-platform/4.17/observability/logging/logging-6.0/log6x-about.html#quick-start
- Here Step 2 is mentioned as "Create a LokiStack custom resource (CR) in the openshift-logging namespace:"
- But before creating `LokiStack` custom resource (CR), it is necessary to create an `object storage secret`.
- Without creating a secret we can not create `Lokistack` customer resource.
- We need to mention that `object storage secret` name in the `LokiStack custom resource (CR)` under `spec.storage.secret.name` section.
- So it is required to add this step in our documentation.
- Hence adding Step 2 in the documentation:

-----------------
2.  Create a secret to access an existing object storage bucket:
Example command for AWS

~~~
$ oc create secret generic logging-loki-s3 \
  --from-literal=bucketnames="<bucket_name>" \
  --from-literal=endpoint="<aws_bucket_endpoint>" \
  --from-literal=access_key_id="<aws_access_key_id>" \
  --from-literal=access_key_secret="<aws_access_key_secret>" \
  --from-literal=region="<aws_region_of_your_bucket>" \
  -n openshift-logging
~~~
------------------

Co-authored-by: Servesha Dudhgaonkar <49194531+xenolinux@users.noreply.github.com>
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

Hello @xenolinux ,
Thanks for your suggestions.

As suggested by you I performed commit changes.
But I am facing an issue while Squash commits.

# git clone https://github.com/prithvipatil97/openshift-docs
fatal: destination path 'openshift-docs' already exists and is not an empty directory

# git clone --depth 1 https://github.com/prithvipatil97/openshift-docs
Cloning into 'openshift-docs'...
remote: Enumerating objects: 11078, done.
remote: Counting objects: 100% (11078/11078), done.
remote: Compressing objects: 100% (10043/10043), done.
remote: Total 11078 (delta 1506), reused 3231 (delta 998), pack-reused 0 (from 0)
Receiving objects: 100% (11078/11078), 75.90 MiB | 439.00 KiB/s, done.
Resolving deltas: 100% (1506/1506), done.

# git checkout patch-17
error: pathspec 'patch-17' did not match any file(s) known to git

I tried some actions to resolve this issue, but it is not working.

Let me create a New PR with suggested new changes, and will link that new PR with this PR.
I hope it will be fine.

Kindly confirm.

Regards,
Prithviraj Patil

@prithvipatil97
Copy link
Contributor Author

Hello @xenolinux ,
Thanks for your response and for sharing the correct step.

I followed all the steps.
But currently, it is failing at the last step, with the git push command. Getting following error:

remote: Permission to prithvipatil97/openshift-docs.git denied to prithvipatil97.
fatal: unable to access 'https://github.com/prithvipatil97/openshift-docs/': The requested URL returned error: 403

Here are steps followed:

pripatil@pripatil-thinkpadt14sgen2i:~$ git clone https://github.com/prithvipatil97/openshift-docs
Cloning into 'openshift-docs'...
remote: Enumerating objects: 573405, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 573405 (delta 2), reused 0 (delta 0), pack-reused 573401 (from 1)
Receiving objects: 100% (573405/573405), 1.05 GiB | 1.82 MiB/s, done.
Resolving deltas: 100% (389441/389441), done.
pripatil@pripatil-thinkpadt14sgen2i:~/openshift-docs$ git checkout patch-17
branch 'patch-17' set up to track 'origin/patch-17'.
Switched to a new branch 'patch-17'
pripatil@pripatil-thinkpadt14sgen2i:~/openshift-docs$ git rebase -i HEAD~2
[detached HEAD fdf3e73b68] Need to add one step in quick start procedure of About Logging 6.0 documentation
 Author: Prithviraj Patil <116709298+prithvipatil97@users.noreply.github.com>
 Date: Thu Jan 2 22:12:32 2025 +0530
 Committer: Prithviraj Patil <pripatil@pripatil-thinkpadt14sgen2i.punetw6.csb>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly. Run the
following command and follow the instructions in your editor to edit
your configuration file:

    git config --global --edit

After doing this, you may fix the identity used for this commit with:

    git commit --amend --reset-author

 1 file changed, 14 insertions(+)
Successfully rebased and updated refs/heads/patch-17.
pripatil@pripatil-thinkpadt14sgen2i:~/openshift-docs$ git log -5 --pretty=format:'%h - %an, %ar : %s'
fdf3e73b68 - Prithviraj Patil, 8 days ago : Need to add one step in quick start procedure of About Logging 6.0 documentation
9fa27f3d93 - Servesha Dudhgaonkar, 10 days ago : Merge pull request #85711 from sbeskin-redhat/CNV_46268_Replace_running_with_runStrategy
7830941439 - Joe Aldinger, 11 days ago : Merge pull request #85972 from JoeAldinger/OCPBUGS-45841
284d366f83 - Servesha Dudhgaonkar, 11 days ago : Merge pull request #86619 from xenolinux/cp-x86
2d92228834 - xenolinux, 2 weeks ago : OSDOCS#13000: Clarify platforms for CP and nodepools in IBM-Z/P
pripatil@pripatil-thinkpadt14sgen2i:~/openshift-docs$ git push origin HEAD --force
Username for 'https://github.com': prithvipatil97
Password for 'https://prithvipatil97@github.com': 
remote: Permission to prithvipatil97/openshift-docs.git denied to prithvipatil97.
fatal: unable to access 'https://github.com/prithvipatil97/openshift-docs/': The requested URL returned error: 403

I am using the correct username and password.
Instead of a password, I tried with a Personal Access Token as well. But it is still not working.

Here is the repository URL:

pripatil@pripatil-thinkpadt14sgen2i:~/openshift-docs$ git remote -v
origin	https://github.com/prithvipatil97/openshift-docs (fetch)
origin	https://github.com/prithvipatil97/openshift-docs (push)

Could you please help me here.
I think I have a permission issue here.

Regards,
Prithviraj Patil

@xenolinux
Copy link
Contributor

Hello @xenolinux , Thanks for your response and for sharing the correct step.

I followed all the steps. But currently, it is failing at the last step, with the git push command. Getting following error:

remote: Permission to prithvipatil97/openshift-docs.git denied to prithvipatil97.
fatal: unable to access 'https://github.com/prithvipatil97/openshift-docs/': The requested URL returned error: 403

Here are steps followed:

pripatil@pripatil-thinkpadt14sgen2i:~$ git clone https://github.com/prithvipatil97/openshift-docs
Cloning into 'openshift-docs'...
remote: Enumerating objects: 573405, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 573405 (delta 2), reused 0 (delta 0), pack-reused 573401 (from 1)
Receiving objects: 100% (573405/573405), 1.05 GiB | 1.82 MiB/s, done.
Resolving deltas: 100% (389441/389441), done.
pripatil@pripatil-thinkpadt14sgen2i:~/openshift-docs$ git checkout patch-17
branch 'patch-17' set up to track 'origin/patch-17'.
Switched to a new branch 'patch-17'
pripatil@pripatil-thinkpadt14sgen2i:~/openshift-docs$ git rebase -i HEAD~2
[detached HEAD fdf3e73b68] Need to add one step in quick start procedure of About Logging 6.0 documentation
 Author: Prithviraj Patil <116709298+prithvipatil97@users.noreply.github.com>
 Date: Thu Jan 2 22:12:32 2025 +0530
 Committer: Prithviraj Patil <pripatil@pripatil-thinkpadt14sgen2i.punetw6.csb>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly. Run the
following command and follow the instructions in your editor to edit
your configuration file:

    git config --global --edit

After doing this, you may fix the identity used for this commit with:

    git commit --amend --reset-author

 1 file changed, 14 insertions(+)
Successfully rebased and updated refs/heads/patch-17.
pripatil@pripatil-thinkpadt14sgen2i:~/openshift-docs$ git log -5 --pretty=format:'%h - %an, %ar : %s'
fdf3e73b68 - Prithviraj Patil, 8 days ago : Need to add one step in quick start procedure of About Logging 6.0 documentation
9fa27f3d93 - Servesha Dudhgaonkar, 10 days ago : Merge pull request #85711 from sbeskin-redhat/CNV_46268_Replace_running_with_runStrategy
7830941439 - Joe Aldinger, 11 days ago : Merge pull request #85972 from JoeAldinger/OCPBUGS-45841
284d366f83 - Servesha Dudhgaonkar, 11 days ago : Merge pull request #86619 from xenolinux/cp-x86
2d92228834 - xenolinux, 2 weeks ago : OSDOCS#13000: Clarify platforms for CP and nodepools in IBM-Z/P
pripatil@pripatil-thinkpadt14sgen2i:~/openshift-docs$ git push origin HEAD --force
Username for 'https://github.com': prithvipatil97
Password for 'https://prithvipatil97@github.com': 
remote: Permission to prithvipatil97/openshift-docs.git denied to prithvipatil97.
fatal: unable to access 'https://github.com/prithvipatil97/openshift-docs/': The requested URL returned error: 403

I am using the correct username and password. Instead of a password, I tried with a Personal Access Token as well. But it is still not working.

Here is the repository URL:

pripatil@pripatil-thinkpadt14sgen2i:~/openshift-docs$ git remote -v
origin	https://github.com/prithvipatil97/openshift-docs (fetch)
origin	https://github.com/prithvipatil97/openshift-docs (push)

Could you please help me here. I think I have a permission issue here.

Regards, Prithviraj Patil

Hey @prithvipatil97 To resolve these errors, we need to jump in the meeting and it could take time. I am also on PTO and will be back Wed. I think you can consider creating another PR by closing this PR. Add the merge review label again since the peer review is done. You can mention this PR link in the PR description. Thanks!

@prithvipatil97
Copy link
Contributor Author

Hello @xenolinux ,
Thank you very much for your response.

Sure.
Let me create a new PR with new suggested changes and will link it to this PR for reference.

And we will close this PR.

Regards,
Prithviraj Patil

@prithvipatil97
Copy link
Contributor Author

Created a new PR:
Linked to #86970

@prithvipatil97
Copy link
Contributor Author

New PR has been linked to this PR.
Hence closing this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

peer-review-done Signifies that the peer review team has reviewed this PR size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants