Log VMware Cloud Director Requests and Responses
This section details how to record the HTTP requests and responses that occur in VMware Cloud Director.
Use the following command to log HTTP requests to
VMware Cloud Director, and HTTP responses from
VMware Cloud Director. The command causes the
Kubernetes Cloud Provider for VMware Cloud Director to log the HTTP requests, and HTTP responses made through go-vcloud-director SDK.
kubectl set env -n kube-system deployment/vmware-cloud-director-ccm GOVCD_LOG_ON_SCREEN=true -oyaml
To locate the container logs, use the following command:
kubectl logs -n kube-system <CPI Pod>
To stop logging the HTTP requests and responses from
VMware Cloud Director, use the following command:
kubectl set env -n kube-system deployment/vmware-cloud-director-ccm GOVCD_LOG_ON_SCREEN-
Note: Collect the logs before and after you activate the wire log. The above commands update the
Kubernetes Cloud Provider for VMware Cloud Director deployment, that creates a new
Kubernetes Cloud Provider for VMware Cloud Director pod. The logs in the old pod do not save when updates are made.