Bug 1925307 - elasticsearch-rollover and elasticsearch-delete pods are in error states with 'ValueError: No JSON object could be decoded'
Summary: elasticsearch-rollover and elasticsearch-delete pods are in error states with...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Logging
Version: 4.5
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.5.z
Assignee: ewolinet
QA Contact: Qiaoling Tang
URL:
Whiteboard: logging-exploration
Depends On: 1901756
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-02-04 20:13 UTC by OpenShift BugZilla Robot
Modified: 2022-10-14 03:49 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-04-28 14:15:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift elasticsearch-operator pull 638 0 None open [release-4.5] Bug 1925307: Handle invalid json in delete script 2021-03-05 10:50:27 UTC
Github openshift elasticsearch-operator pull 693 0 None open Bug 1925307: Cherypicking updates to index management scripts 2021-04-14 19:58:12 UTC
Red Hat Product Errata RHBA-2021:1303 0 None None None 2021-04-28 14:16:06 UTC

Description OpenShift BugZilla Robot 2021-02-04 20:13:17 UTC
+++ This bug was initially created as a clone of Bug #1901756 +++

+++ This bug was initially created as a clone of Bug #1899905 +++

Description of problem:
elasticsearch-rollover and elasticsearch-delete pods are in error states with 'ValueError: No JSON object could be decoded'
 
~~~
$ oc get pods  | grep Error
elasticsearch-delete-app-1604990700-m5tzq       0/1     Error       0          6d7h
elasticsearch-delete-audit-1605496500-69cc2     0/1     Error       0          11h
elasticsearch-delete-infra-1605519000-lzngc     0/1     Error       0          4h45m
elasticsearch-rollover-app-1605261600-hk5nq     0/1     Error       0          3d4h
elasticsearch-rollover-audit-1605097800-bj4vm   0/1     Error       0          5d1h
elasticsearch-rollover-infra-1605372300-877hc   0/1     Error       0          45h
 
$ oc logs jobs/elasticsearch-delete-app-1604990700
 
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python2.7/json/__init__.py", line 290, in load
    **kw)
  File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python2.7/json/decoder.py", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
 
 
$ oc logs jobs/elasticsearch-delete-infra-1605519000
 
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib64/python2.7/json/__init__.py", line 290, in load
    **kw)
  File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python2.7/json/decoder.py", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
~~~
 
 
Version-Release number of selected component (if applicable):
4.5
 
How reproducible:
NA
 
Actual results:
elasticsearch-rollover and elasticsearch-delete pods failing with 'ValueError: No JSON object could be decoded'
 
Expected results:
elasticsearch-rollover and elasticsearch-delete jobs should complete successfully.
 
Additional info:
 
The cluster is recently upgraded to 4.5.16. Sometimes jobs run successfully.
 
~~~
$ oc -n openshift-logging get jobs
NAME                                      COMPLETIONS   DURATION   AGE
curator-1605497400                        1/1           4s         10h
elasticsearch-delete-app-1604990700       0/1           6d7h       6d7h
elasticsearch-delete-app-1605535200       1/1           8s         13m
elasticsearch-delete-audit-1605496500     0/1           10h        10h
elasticsearch-delete-audit-1605535200     1/1           8s         13m
elasticsearch-delete-infra-1605519000     0/1           4h43m      4h43m
elasticsearch-delete-infra-1605535200     1/1           3s         13m
elasticsearch-rollover-app-1605261600     0/1           3d4h       3d4h
elasticsearch-rollover-app-1605535200     1/1           8s         13m
elasticsearch-rollover-audit-1605097800   0/1           5d1h       5d1h
elasticsearch-rollover-audit-1605535200   1/1           8s         13m
elasticsearch-rollover-infra-1605372300   0/1           45h        45h
elasticsearch-rollover-infra-1605535200   1/1           3s         13m
~~~

--- Additional comment from florian.hauser.at on 2020-11-22 08:31:19 UTC ---

Same issue here - started with 4.5.16 and still occurs on 4.5.19.

Comment 1 Courtney Ruhm 2021-02-24 18:30:25 UTC
Hello,

Is there any additional info on when this 4.5 backport is going to be worked on? 

Thank you.

Comment 2 Courtney Ruhm 2021-03-01 18:04:22 UTC
Hello,

Is there any additional info on when this 4.5 backport is going to be worked on? 

Thank you.

Comment 9 Qiaoling Tang 2021-04-25 03:46:12 UTC
Verified with elasticsearch-operator.4.5.0-202104231433.p0

Comment 11 errata-xmlrpc 2021-04-28 14:15:57 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (OpenShift Container Platform 4.5.38 extras update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:1303


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