Re: URL of a Service Instance


Dieu Cao <dcao@...>
 

For 1. At minimum, you'll need to look at what application security groups
apply to your app, and have your admin add a new application security group
for that private ip range and bind it to your app's space or add it to the
set of running application security groups if all orgs on your cf should be
able to connect to services that your broker provisioned.

Beyond that, your network may have other restrictions on traffic coming
from your cloud foundry applications to your private ip addresses and
you'll need to talk to your network administrator about how to resolve that.

For 2. Only you know what service you have provisioned, how it was
provisioned and where to look at logs for it. If it was a bosh deployed
service, you should be able to bosh ssh onto the vm.

Dieu
CF CAPI PM

On Monday, December 28, 2015, Rahul Gupta <wildnez(a)gmail.com> wrote:

Hi Dieu,

I figured that out and did the following:
1. Created an instance of caching server. As soon as the instance gets
created, I extract the hostname and InetAddress of this instance and stores
in credentials upon bind request. For example, the host and InetAddress
returned is 10.254.0.58.
2. When an app is bound to the service, the credentials do show up in
VCAP_SERVICES.
3. I then use the IP address returned in credentials on bind response, in
the application to initiate a connection with the caching server. At this
point, the app refuses to find any server running at that IP.

So 2 questions:
1. The IP address returned is a private IP. Can an application running on
Cloud Foundry connect with a service instance through private IP address?
If yes, then do I need to do something special to enable this communication
through private IP?
2. How and where do I see the logs of caching server which was created by
the broker in createServiceInstance?

Thanks,
Rahul

Join {cf-dev@lists.cloudfoundry.org to automatically receive all group messages.