Bug 1830175 - [DDF] Replacing failed node is it required to restart mgr pod
Summary: [DDF] Replacing failed node is it required to restart mgr pod
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenShift Container Storage
Classification: Red Hat Storage
Component: documentation
Version: 4.3
Hardware: All
OS: All
unspecified
high
Target Milestone: ---
: OCS 4.5.0
Assignee: Erin Donnelly
QA Contact: Itzhak
URL:
Whiteboard:
Depends On:
Blocks: 1826397
TreeView+ depends on / blocked
 
Reported: 2020-05-01 01:06 UTC by Direct Docs Feedback
Modified: 2020-09-16 07:43 UTC (History)
8 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)
node replacement logs AWS UPI (2.32 MB, application/zip)
2020-09-02 12:07 UTC, Itzhak
no flags Details

Comment 3 Raz Tamir 2020-06-16 15:55:54 UTC
Hi Erin,

There's a good chance this is a workaround for another bug.
@Elad, @Neha,

You will know better, could you keep me honest here?

Comment 11 Itzhak 2020-09-02 09:54:23 UTC
I can confirm that with AWS UPI, OCP 4.5, OCS 4.5 we don't need to restart the mgr pod after node replacement. Notice that the old node name is "ip-10-0-51-23.us-east-2.compute.internal", and new node name is "ip-10-0-48-18.us-east-2.compute.internal": Here are the results before the node replacement:
 
(ocs-ci-venv) [yitzhak@localhost ocs-ci]$ oc rsh -n openshift-storage $(oc get pods -o wide -n openshift-storage|grep tool|awk '{print$1}') ceph osd status
+----+-------------------------------------------+-------+-------+--------+---------+--------+---------+-----------+
| id |                    host                   |  used | avail | wr ops | wr data | rd ops | rd data |   state   |
+----+-------------------------------------------+-------+-------+--------+---------+--------+---------+-----------+
| 0  |  ip-10-0-92-92.us-east-2.compute.internal | 1399M |  510G |    0   |  2457   |    2   |   106   | exists,up |
| 1  |  ip-10-0-51-23.us-east-2.compute.internal | 1400M |  510G |    5   |  35.2k  |    0   |     0   | exists,up |
| 2  | ip-10-0-76-201.us-east-2.compute.internal | 1399M |  510G |    6   |  93.6k  |    0   |     0   | exists,up |

(ocs-ci-venv) [yitzhak@localhost ocs-ci]$ oc rsh -n openshift-storage $(oc get pods -o wide -n openshift-storage|grep tool|awk '{print$1}') ceph osd tree
ID  CLASS WEIGHT  TYPE NAME                                     STATUS REWEIGHT PRI-AFF 
 -1       1.50000 root default                                                          
 -5       1.50000     region us-east-2                                                  
 -4       0.50000         zone us-east-2a                                               
 -3       0.50000             host ocs-deviceset-1-data-0-8m827                         
  1   ssd 0.50000                 osd.1                             up  1.00000 1.00000 
-14       0.50000         zone us-east-2b                                               
-13       0.50000             host ocs-deviceset-2-data-0-dqwjd                         
  2   ssd 0.50000                 osd.2                             up  1.00000 1.00000 
-10       0.50000         zone us-east-2c                                               
 -9       0.50000             host ocs-deviceset-0-data-0-9dtxx                         
  0   ssd 0.50000                 osd.0                             up  1.00000 1.00000 

(ocs-ci-venv) [yitzhak@localhost ocs-ci]$ oc get pods -n openshift-storage | grep osd
rook-ceph-osd-0-6dcd66cfc8-9hdtk                                  1/1     Running     0          25m
rook-ceph-osd-1-5756686468-59ngb                                  1/1     Running     0          25m
rook-ceph-osd-2-86449bb986-srl6x                                  1/1     Running     0          25m
rook-ceph-osd-prepare-ocs-deviceset-0-data-0-9dtxx-hwqkp          0/1     Completed   0          25m
rook-ceph-osd-prepare-ocs-deviceset-1-data-0-8m827-brnqd          0/1     Completed   0          25m
rook-ceph-osd-prepare-ocs-deviceset-2-data-0-dqwjd-wxkh6          0/1     Completed   0          25m


And here are the results after node replacement(without restarting the mgr pod):

(ocs-ci-venv) [yitzhak@localhost ocs-ci]$ oc rsh -n openshift-storage $(oc get pods -o wide -n openshift-storage|grep tool|awk '{print$1}') ceph osd status
+----+-------------------------------------------+-------+-------+--------+---------+--------+---------+-----------+
| id |                    host                   |  used | avail | wr ops | wr data | rd ops | rd data |   state   |
+----+-------------------------------------------+-------+-------+--------+---------+--------+---------+-----------+
| 0  |  ip-10-0-92-92.us-east-2.compute.internal | 1738M |  510G |    0   |  10.4k  |    2   |   106   | exists,up |
| 1  |  ip-10-0-48-18.us-east-2.compute.internal | 1738M |  510G |    0   |  2457   |    0   |     0   | exists,up |
| 2  | ip-10-0-76-201.us-east-2.compute.internal | 1738M |  510G |    0   |  3276   |    0   |     0   | exists,up |
+----+-------------------------------------------+-------+-------+--------+---------+--------+---------+-----------+

(ocs-ci-venv) [yitzhak@localhost ocs-ci]$ oc rsh -n openshift-storage $(oc get pods -o wide -n openshift-storage|grep tool|awk '{print$1}') ceph osd tree
ID  CLASS WEIGHT  TYPE NAME                                     STATUS REWEIGHT PRI-AFF 
 -1       1.50000 root default                                                          
 -5       1.50000     region us-east-2                                                  
 -4       0.50000         zone us-east-2a                                               
 -3       0.50000             host ocs-deviceset-1-data-0-8m827                         
  1   ssd 0.50000                 osd.1                             up  1.00000 1.00000 
-14       0.50000         zone us-east-2b                                               
-13       0.50000             host ocs-deviceset-2-data-0-dqwjd                         
  2   ssd 0.50000                 osd.2                             up  1.00000 1.00000 
-10       0.50000         zone us-east-2c                                               
 -9       0.50000             host ocs-deviceset-0-data-0-9dtxx                         
  0   ssd 0.50000                 osd.0                             u

(ocs-ci-venv) [yitzhak@localhost ocs-ci]$ oc get pods -n openshift-storage | grep osd
rook-ceph-osd-0-6dcd66cfc8-9hdtk                                  1/1     Running     0          63m
rook-ceph-osd-1-5756686468-t25gr                                  1/1     Running     0          17m
rook-ceph-osd-2-86449bb986-srl6x                                  1/1     Running     0          62m
rook-ceph-osd-prepare-ocs-deviceset-0-data-0-9dtxx-hwqkp          0/1     Completed   0          63m
rook-ceph-osd-prepare-ocs-deviceset-2-data-0-dqwjd-wxkh6          0/1     Completed   0          63m

Comment 12 Itzhak 2020-09-02 12:03:43 UTC
Addintional information about the cluster I used:

OCP version:
Client Version: 4.3.8
Server Version: 4.5.0-0.nightly-2020-08-01-204100
Kubernetes Version: v1.18.3+08c38ef

OCS verison:

cluster version
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.5.0-0.nightly-2020-08-01-204100   True        False         139m    Cluster version is 4.5.0-0.nightly-2020-08-01-204100

Rook version

Ceph version
OCP version:
Client Version: 4.3.8
Server Version: 4.5.0-0.nightly-2020-08-31-101523
Kubernetes Version: v1.18.3+6c42de8

OCS verison:
ocs-operator.v4.5.0-67.ci   OpenShift Container Storage   4.5.0-67.ci              Succeeded

cluster version
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.5.0-0.nightly-2020-08-31-101523   True        False         3h14m   Cluster version is 4.5.0-0.nightly-2020-08-31-101523

Rook version
rook: 4.5-46.d1b1f29c.release_4.5
go: go1.13.4

Ceph version
ceph version 14.2.8-91.el8cp (75b4845da7d469665bd48d1a49badcc3677bf5cd) nautilus (stable)

Comment 13 Itzhak 2020-09-02 12:07:58 UTC
Created attachment 1713436 [details]
node replacement logs AWS UPI


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