Description
ozone admin container report doesn't return error message but a default payload in case of errors
Response
[root@<hostname> ~]# ozone admin container report Container Summary Report generated at 1970-01-01T00:00:00Z ========================================================== Container State Summary ======================= OPEN: 0 CLOSING: 0 QUASI_CLOSED: 0 CLOSED: 0 DELETING: 0 DELETED: 0 RECOVERING: 0 Container Health Summary ======================== UNDER_REPLICATED: 0 MIS_REPLICATED: 0 OVER_REPLICATED: 0 MISSING: 0 UNHEALTHY: 0 EMPTY: 0 OPEN_UNHEALTHY: 0 QUASI_CLOSED_STUCK: 0 [root@<hostname> ~]# [root@<hostname> ~]# ozone admin container report Container Summary Report generated at 2024-04-04T04:25:05Z ========================================================== Container State Summary ======================= OPEN: 8 CLOSING: 0 QUASI_CLOSED: 0 CLOSED: 18 DELETING: 0 DELETED: 28 RECOVERING: 0 Container Health Summary ======================== UNDER_REPLICATED: 0 MIS_REPLICATED: 0 OVER_REPLICATED: 0 MISSING: 0 UNHEALTHY: 0 EMPTY: 1 OPEN_UNHEALTHY: 0 QUASI_CLOSED_STUCK: 0 First 100 EMPTY containers: #2006
Here the first response was when all the DN's roles were stopped.
Here there are 2 options:
- Default payload and no error message was returned
- Container report should be returned, SCM was up only few of the DN roles were stopped.