cloudfoundry-attic / bosh-photon-cpi-release

Apache License 2.0
6 stars 8 forks source link

Is there a way to turn on CPI HTTP wire trace logging? #6

Open dsboulder opened 8 years ago

dsboulder commented 8 years ago

I'm trying to boot a BOSH VM on a network and photon keeps putting it on "VM Network" instead of my photon network ID (which is associated with a portgroup). In debugging it, I wanted to see the API calls being made against the photon server.

Is there a way to see debug output from the CPI? So I can verify what network it's attempting to use when it creates a VM?

yjyum commented 8 years ago

If you are using "bosh-init" command to do a deployment, you can set the BOSH_INIT_LOG_LEVEL environment variable to: DEBUG.

If you are using "bosh" command, you can use "bosh task [TASK_ID] --debug" to get CPI output.

molteanu commented 8 years ago

We'll add this. https://www.pivotaltracker.com/story/show/129865593