Hi Devs, As I found in the current codebase we do not parse Kubernetes response messages, as a result Cloud Controller does not see the error messages raised by the Kubernetes API server.
I have now introduced a new class to parse these messages: https://github.com/apache/stratos/blob/master/components/org.apache.stratos.kubernetes.client/src/main/java/org/apache/stratos/kubernetes/client/rest/KubernetesResponse.java Note: Existing class KubernetesResponse was renamed to HttpResponse and the new one was called KubernetesResponse. HttpResponse only contains HTTP response information. Now we can see error messages raised by the Kubernetes API server in the Cloud Controller log: org.apache.stratos.kubernetes.client.exceptions.KubernetesClientException: Could not create replication controller: [replication-controller-id] php-php-domain9f8b60c1-fcd1-46ec-a2e1-b7c081d89985 *[message] replicationController "php-php-domain9f8b60c1-fcd1-46ec-a2e1-b7c081d89985" is invalid: spec.template.spec.containers[0].name: invalid value 'php.php.domain9f8b60c1-fcd1-46ec-a2e1-b7c081d89985'* Thanks -- Imesh Gunaratne Technical Lead, WSO2 Committer & PMC Member, Apache Stratos
