Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-18946

[eap73-openjdk8-openshift-rhel7] [ocp3.11] openshift-migrate.sh - Cannot query OpenShift API

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • None
    • 7.3.0.GA.CR4
    • OpenShift
    • None

      When the '/opt/eap/bin/openshift-migrate.sh' is executed on the migration pod, the following error is produced (full logs attached - spotted with run eap-7.x-openshift-3-73#32):

      Error: Could not find or load main class com.arjuna.ats.arjuna.tools.RecoveryMonitor
      Thu Mar 12 09:08:27 UTC 2020: Executing synchronous recovery scan for a second time
      Error: Could not find or load main class com.arjuna.ats.arjuna.tools.RecoveryMonitor
      Thu Mar 12 09:08:27 UTC 2020: Synchronous recovery scans finished for the first and the second time
      CRITICAL:osquery:Cannot query OpenShift API for "https://openshift.default.svc/api/v1/namespaces/73-ekwx/pods/xa-load-1-r5qqj/log?timestamps=true&sinceTime=2020-03-12T09:07:52.783226914Z"
      Traceback (most recent call last):
        File "/opt/partition/queryosapi.py", line 120, in <module>
          queryResult = getLog(podName, sinceTime, tailLine)
        File "/opt/partition/queryosapi.py", line 83, in getLog
          .format(osquery.OpenShiftQuery.getNameSpace(), podName, sinceTimeParam, tailLineParam))
        File "/opt/partition/osquery.py", line 55, in queryApi
          return urllib2.urlopen(request, cafile = OpenShiftQuery.CERT_FILE_PATH).read()
        File "/usr/lib64/python2.7/urllib2.py", line 154, in urlopen
          return opener.open(url, data, timeout)
        File "/usr/lib64/python2.7/urllib2.py", line 437, in open
          response = meth(req, response)
        File "/usr/lib64/python2.7/urllib2.py", line 550, in http_response
          'http', request, response, code, msg, hdrs)
        File "/usr/lib64/python2.7/urllib2.py", line 475, in error
          return self._call_chain(*args)
        File "/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain
          result = func(*args)
        File "/usr/lib64/python2.7/urllib2.py", line 558, in http_error_default
          raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
      urllib2.HTTPError: HTTP Error 404: Not Found
      Thu Mar 12 09:08:34 UTC 2020: No transactions to recover
      

              ssur@redhat.com Sudeshna Sur (Inactive)
              tborgato@redhat.com Tommaso Borgato
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: