Uploaded image for project: 'Cloud Enablement'
  1. Cloud Enablement
  2. CLOUD-3517

openshift-migrate.sh/partitionPV.sh - Cannot query OpenShift API causes transaction recovery issues

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • EAP CD 20.0.GA
    • EAP73 7.3.0.BETA, EAP73 7.3.0-OpenJDK 11.BETA
    • jboss-eap-modules
    • None

    Description

      When the '/opt/eap/bin/openshift-migrate.sh' is executed on the migration pod, the following error is produced (full logs attached - spetted 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
      

      Attachments

        Issue Links

          Activity

            People

              ochaloup@redhat.com Ondrej Chaloupka (Inactive)
              ochaloup@redhat.com Ondrej Chaloupka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: