Closed rhuiser closed 5 years ago
@rhuiser I believe there's some confusion with how cfdev is deployed. Distinct credhubs can exist for both the bosh director and for a given Cloud Foundry deployment. When you target with credhub api -s http://$BOSH_ENVIRONMENT:8844 (10.245.0.2:8844) ...
, you are attempting to target the credhub for the bosh director. Cfdev does not have a credhub deployed with its bosh director so nothing exists at that ip and port - and thus the aforementioned command is expected to fail.
As you have noticed, there is a credhub deployed for the Cloud Foundry deployment. In your example, the ip and port is 10.144.0.140:8844
. However, the second issue is that in cfdev, any ports that you wish to communicate with from outside of the VM must be explicitly forwarded or traffic will not reach, which we have not done for this particular case. Due to the dynamic nature of its ip (credhub could show up on any IP in the configured subnet), this is a non-trivial problem to solve.
In short, as of right now, there's no way to talk to the credhub deployed from outside of the VM.
@rhuiser would you mind sharing a bit about your use case? We are looking to better understand how people are using CF / PCF Dev, and what they are looking for. Your answers to this 4 question survey would be very helpful to us: https://goo.gl/forms/3OHzU2S5907hiu5r1
Hi Samuel,
I filled out the survey (submitted as robin.huiser@rdc.pt)
Regards, met vriendelijke groet,
Robin Huiser On 14 Jan 2019, 20:46 +0000, Samuel Dawson notifications@github.com, wrote:
@rhuiser would you mind sharing a bit about your use case? We are looking to better understand how people are using CF / PCF Dev, and what they are looking for. Your answers to this 4 question survey would be very helpful to us: https://goo.gl/forms/3OHzU2S5907hiu5r1 — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
When I run
credhub api -s http://$BOSH_ENVIRONMENT:8844 --skip-tls-validation
, the command returns with the error:It looks like there is some forwarding issue between the director and the credhub instance?
bosh -e cfdev -d cf ssh credhub -c 'ps -ef | grep java'
:No messages are written to the logfiles under
/var/vcap/sys/log/credhub
upon connection attempts on this node.Any idea?