Closed izgeri closed 6 years ago
Hi @izgeri,
host.pcfdev.io
should resolve to 192.168.65.2
, but a bug in versions earlier than v0.0.4 had resolution configured for 192.168.65.1
by mistake. Can you upgrade to v0.0.6?
That did the trick. Thanks @sclevine!!
I just tried to connect to a service broker outside of cf dev using:
cf create-service-broker broker-name cf_user cf_pass http://host.pcfdev.io:<broker_port>
and the return was:
Creating service broker broker-name as admin... FAILED Server error, status code: 504, error code: 10001, message: The request to the service broker timed out: http://host.pcfdev.io:8890/v2/catalog
What I ended up doing was the following: In window 1:
ifconfig | grep inet
and recorded all the IPv4 addresses (other than 127.0.0.1)
In window 2:ssh jumpbox@192.168.50.6 -i ~/.ssh/bosh-virtualbox.key
curl -u cf_user:cf_pass http://<ip from list list>:8890/v2/catalog
until I received a valid responseThen I used that IP instead of host.pcfdev.io
in the cf create-service-broker
command above and everything worked.
If I start a service defined in a docker compose file:
by running
docker-compose up -d my_service
, I cancurl -i localhost:8080
from the command line on my machine and get a response from my service as expected.If I deploy a basic app to CF Dev (for example, see here) by running
cf push
and try to runthe curl request hangs, and eventually dies on the error
curl: (7) Failed to connect to host.pcfdev.io port 8080: Connection timed out
On my local machine, I can also run
but from within my
hello-world
app runningnc -vz host.pcfdev.io 8080
also hangs and eventually results in the messageRunning
nslookup host.pcfdev.io
while ssh'd into myhello-world
app gives the following:I used to be able to use the
host.pcfdev.io
URL like I would uselocalhost
so that my apps running in PCF Dev could send requests to apps running in Docker containers, but this no longer seems possible with CF Dev. Is there a new URL I should be using, or is this functionality no longer supported?