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

[EAP][Recovery] Migration pod starts with permission errors in log

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Minor
    • None
    • None
    • EAP6, EAP7

    Description

      When fix for the CLOUD-2261 is applied and the application template is used then migration pod starts with errors[1] that there is no permission to query the openshift api server for list of living pods in the current namespace. Any following query (migration pod runs the query each 30 seconds by default) succeeds.

      This seems there is not deployed service account with the view permission at time of the pod initiation.

      [1]

      CRITICAL:__main__:Cannot query OpenShift API for "https://openshift.default.svc/api/v1/namespaces/ochaloup/pods/eap-app-migration-1-szgcc/log?timestamps=true&tailLines=1 "
      Traceback (most recent call last):
        File "/opt/partition/query.py", line 157, in <module>
          queryResult = getLog(podName, sinceTime, tailLine)
        File "/opt/partition/query.py", line 120, in getLog
          .format(OpenShiftQuery.getNameSpace(), podName, sinceTimeParam, tailLineParam))
        File "/opt/partition/query.py", line 87, 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 400: Bad Request
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: