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
- relates to
-
CLOUD-2760 [EAP][XA] jta-crash-rec-eap7 quickstart doesn't work with sprint-21 img
- New
-
CLOUD-2261 [EAP][XA][Recovery][NFS] split lock is broken after a minute of network partition
- Closed