Bug 1865941 - [Doc 4.5 and DOC 4.4] Update log outputs for osd-removal job in the managing guide
Summary: [Doc 4.5 and DOC 4.4] Update log outputs for osd-removal job in the managing ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenShift Container Storage
Classification: Red Hat Storage
Component: documentation
Version: 4.5
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: OCS 4.5.0
Assignee: Erin Donnelly
QA Contact: Pratik Surve
URL:
Whiteboard:
Depends On:
Blocks: 1826397
TreeView+ depends on / blocked
 
Reported: 2020-08-04 15:11 UTC by Rachael
Modified: 2020-09-16 07:43 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Comment 12 Neha Berry 2020-08-24 17:41:34 UTC
Hi Erin,

As discussed, the changes are not yet reflecting in all the required sections. Please move the BZ back to ON_QA once all requested changes for oc logs command in [1] 
 are also added 

[1] https://docs.google.com/document/d/1Guc7SsTiGik_-QmfeR0AVI6O-Je81lBFSgzATU1z2eY/edit#

Comment 17 Neha Berry 2020-08-26 20:33:15 UTC
Thanks Erin for the changes.

Confirmed that all instances(5 in total) of `# oc logs -l job-name=ocs-osd-removal-${osd_id_to_remove}` along with the e.g. of log output has been replaced with following message/step:


Verify that the OSD is removed successfully by checking the status of the ocs-osd-removal pod. A status of Completed confirms that the OSD removal job succeeded.

# oc get pod -l job-name=ocs-osd-removal-${osd_id_to_remove} -n openshift-storage
NOTE
If ocs-osd-removal fails and the pod is not in the expected Completed state, check the pod logs for further debugging. For example:

# oc logs ${osd_id_to_remove} -n openshift-storage --tail=-1

Based on this, moving the BZ to verified state.


Changes reflected here

8.3.1. Replacing failed storage nodes on bare metal infrastructure (step 16)
8.3.2. Replacing failed storage nodes on Amazon EC2 infrastructure (Step 10. vi)
8.3.3. Replacing failed storage nodes on VMware infrastructure (Step 16)
9.2.1. Replacing operational or failed storage devices on VMware user-provisioned infrastructure (Step 5)
9.3.2. Replacing operational or failed storage devices on VMware and bare metal infrastructures (Step 5)

Comment 18 Neha Berry 2020-08-27 12:18:11 UTC
HI Erin

@akarsha pointed out that the following command doesnt work. And it is true as we are not using the pod name properly

 oc logs ${osd_id_to_remove} -n openshift-storage --tail=-1

We might need this to be changed in 5 places. Sorry for missing out and verifying the BZ with incorrect command

$ oc logs -l job-name=ocs-osd-removal-${osd_id_to_remove} -n openshift-storage --tail=-1


Note You need to log in before you can comment on or make changes to this bug.