Date   

Re: How to save in file bits of an App

Dieu Cao <dcao@...>
 

I believe the cf curl command simply passes the correct authentication
headers and the --output option to curl.
I don't believe there's any other cli code involved.

-Dieu



On Tue, Jan 5, 2016 at 6:40 AM, Juan Antonio Breña Moral <
bren(a)juanantonio.info> wrote:

Hi Dieu,

Do you know what is ghte .go file to check the code and learn the way to
store data in files?

Many thanks in advance.

Juan Antonio


Re: Unable to deploy application

Deepak Arn <arn.deepak1@...>
 

Hi,

I have configured cf nise (https://github.com/yudai/cf_nise_installer) on OpenStack.
Able to reach outside world.

ubuntu(a)test:~$ curl google.com
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>302 Moved</TITLE></HEAD><BODY>
<H1>302 Moved</H1>
The document has moved
<A HREF="http://www.google.ca/?gfe_rd=cr&;ei=egKMVsXhJuWM8Qe2lrqABg">here</A>.
</BODY></HTML>


I went into the container and ran git clone, the command fails. However, I am able to ping or do nslookup github.com from the container . Once the git clone command gets terminated the container also gets deleted from the warden. Below is the log:

root(a)194p71rsd8m:~# git clone https://github.com/cloudfoundry/java-buildpack.git
Cloning into 'java-buildpack'...
Terminated

root(a)194p71rsd8m:~# ping github.com
PING github.com (192.30.252.129) 56(84) bytes of data.
64 bytes from github.com (192.30.252.129): icmp_seq=1 ttl=46 time=16.1 ms
64 bytes from github.com (192.30.252.129): icmp_seq=2 ttl=46 time=15.5 ms
64 bytes from github.com (192.30.252.129): icmp_seq=3 ttl=46 time=15.4 ms
^C
--- github.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 15.484/15.732/16.164/0.323 ms
root(a)194p71rsd8m:~# nslookup github.com
Server: 132.205.96.93
Address: 132.205.96.93#53

Non-authoritative answer:
Name: github.com
Address: 192.30.252.129

Now, what else I can do?

Thanks,


Re: Is a possible problem in Bluemix to download the source code of an App?

Juan Antonio Breña Moral <bren at juanantonio.info...>
 

Hi,

yes, I tried using 2 mobile internet connections and an ADSL connection to run the test in order to avoid any Proxy problem and the issue continued so in bluemix, the blob store is disconnected but in PWS is enabled.

But, what is the purpose for this kind disconnection?

I am going to explain a possible scenario:

A multinational has a a popular App which it runs in some regions deployed in Bluemix. so the IT team deploy the same application in several cells. with the time, the App evolves and the new version is deployed in a first region as pilot. In some cases, some companies to avoid lost the track of source code, validates the code deployed not the code stored in the private repository so using PAAS technology you could download the code certificated and later deploy in a new region.

What is your opinion?

Juan Antonio


Re: Staging Error while deploying application on OpenStack

D vidzz
 

I have configured cf nise (https://github.com/yudai/cf_nise_installer) on OpenStack.

I went into the container and ran git clone, the command fails. However, I am able to ping or do nslookup github.com from the container . Once the git clone command gets terminated the container also gets deleted from the warden. Below is the log:

root(a)194p71rsd8m:~# git clone https://github.com/cloudfoundry/java-buildpack.git
Cloning into 'java-buildpack'...
Terminated

root(a)194p71rsd8m:~# ping github.com
PING github.com (192.30.252.129) 56(84) bytes of data.
64 bytes from github.com (192.30.252.129): icmp_seq=1 ttl=46 time=16.1 ms
64 bytes from github.com (192.30.252.129): icmp_seq=2 ttl=46 time=15.5 ms
64 bytes from github.com (192.30.252.129): icmp_seq=3 ttl=46 time=15.4 ms
^C
--- github.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 15.484/15.732/16.164/0.323 ms
root(a)194p71rsd8m:~# nslookup github.com
Server: 132.205.96.93
Address: 132.205.96.93#53

Non-authoritative answer:
Name: github.com
Address: 192.30.252.129

Now, what else I can do?
Thanks,


Re: Is a possible problem in Bluemix to download the source code of an App?

Brian Martin <bkmartin@...>
 

As Matt indicated, the Bluemix blob store is not accessible except by the
system components of Bluemix.

On Tue, Jan 5, 2016 at 11:09 AM, Juan Antonio Breña Moral <
bren(a)juanantonio.info> wrote:

Hi,

I am going to test using another Internet connection.

Juan Antonio


Re: Is a possible problem in Bluemix to download the source code of an App?

Juan Antonio Breña Moral <bren at juanantonio.info...>
 

Hi,

I am going to test using another Internet connection.

Juan Antonio


Re: Is a possible problem in Bluemix to download the source code of an App?

Matthew Sykes <matthew.sykes@...>
 

Sure. I'm guessing you got a redirect from the cloud controller that points
to a private blob store that external clients don't have access to. That
blob store endpoint likely works fine for the cloud foundry components but
isn't something you can access.

On Tue, Jan 5, 2016 at 7:35 AM, Juan Antonio Breña Moral <
bren(a)juanantonio.info> wrote:

Hi Matthew,

Yes but it is the response given when I execute the method in the CC
located in bluemix, I mean.

Juan Antonio


--
Matthew Sykes
matthew.sykes(a)gmail.com


Re: Is a possible problem in Bluemix to download the source code of an App?

Juan Antonio Breña Moral <bren at juanantonio.info...>
 

Hi Matthew,

Yes but it is the response given when I execute the method in the CC located in bluemix, I mean.

Juan Antonio


Re: Is a possible problem in Bluemix to download the source code of an App?

Matthew Sykes <matthew.sykes@...>
 

Look closely at the IP address in your error message. You're targeting a
private IP. Unless you're part of that deployment, I'm guessing you won't
be able to access that address.

On Tue, Jan 5, 2016 at 7:17 AM, Juan Antonio Breña Moral <
bren(a)juanantonio.info> wrote:

Good afternoon,

I was doing some tests in a Local Instance, PWS & Bluemix to test the REST
Method:
http://apidocs.cloudfoundry.org/226/apps/downloads_the_bits_for_an_app.html

and all goes fine except in Bluemix. Testing on Bluemix I receive the
following error:

1) Cloud Foundry Upload Static Apps Create a Static App, Upload 1MB
oad Zip & Remove app:
Error: connect ETIMEDOUT 10.1.129.7:443
at Object.exports._errnoException (util.js:860:11)
at exports._exceptionWithHostPort (util.js:883:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1063:14)

What is the problem?

Test:

https://github.com/prosociallearnEU/cf-nodejs-client/blob/master/test/lib/model/cloudcontroller/UploadStaticAppsTests.js#L289-L343

Juan Antonio


--
Matthew Sykes
matthew.sykes(a)gmail.com


Is a possible problem in Bluemix to download the source code of an App?

Juan Antonio Breña Moral <bren at juanantonio.info...>
 

Good afternoon,

I was doing some tests in a Local Instance, PWS & Bluemix to test the REST Method:
http://apidocs.cloudfoundry.org/226/apps/downloads_the_bits_for_an_app.html

and all goes fine except in Bluemix. Testing on Bluemix I receive the following error:

1) Cloud Foundry Upload Static Apps Create a Static App, Upload 1MB
oad Zip & Remove app:
Error: connect ETIMEDOUT 10.1.129.7:443
at Object.exports._errnoException (util.js:860:11)
at exports._exceptionWithHostPort (util.js:883:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1063:14)

What is the problem?

Test:
https://github.com/prosociallearnEU/cf-nodejs-client/blob/master/test/lib/model/cloudcontroller/UploadStaticAppsTests.js#L289-L343

Juan Antonio


Re: Is it possible to upload a droplet?

Juan Antonio Breña Moral <bren at juanantonio.info...>
 

Hi, the way to store a Droplet is the same than when you download the source code?
Is it the same flag?

--output myapp.zip


Re: How to save in file bits of an App

Juan Antonio Breña Moral <bren at juanantonio.info...>
 

Hi Dieu,

Do you know what is ghte .go file to check the code and learn the way to store data in files?

Many thanks in advance.

Juan Antonio


Re: HTTP keepalive connections between gorouter and apps

Christopher Piraino <cpiraino@...>
 

Hi Carlo,

There has been some conversation before around this, this issue
<https://github.com/cloudfoundry/gorouter/issues/49#issuecomment-54686846>
on the gorouter is relevant. The issues that Michael raises there have
historically been our reasoning behind not using keepalive connections to
the apps.

We do not have this on the roadmap right now, but are certainly open to
discussing it.

- Chris Piraino

On Mon, Dec 28, 2015 at 10:14 PM, Carlo Alberto Ferraris <
carlo.ferraris(a)rakuten.com> wrote:

Is there any provision (or plan) to enable opt-in connection reuse between
gorouter and applications? Right now it looks like keepalives are disabled
for all apps [1], while this is clearly the safest option there are some
apps that are capable of correctly handling keepalives. Is something like
this on the roadmap, or has it been discussed already?

Carlo Alberto

[1]
https://github.com/cloudfoundry/gorouter/blob/a9044d1f87988250ec3a69b26a83fdc9a8d49735/proxy/proxy.go#L93


Changes to cloudfoundry-incubator/route-registrar

Zachary Auerbach <zauerbach@...>
 

Hi cf-dev,

The CF Release Integration Team will be making a backwards-incompatible
change to the configuration API of the golang route-registrar project
<http://github.com/cloudfoundry-incubator/route-registrar>. Consumers of
this project as a stand-alone codebase will need to modify their
configuration files in order to include our change. Developers of bosh
releases that deploy route-registrar will need to modify their bosh
templates and relevant manifests.

You can see the github repo
<http://github.com/cloudfoundry-incubator/route-registrar> for in depth
info on the new format.

Please let us know if there are any concerns, questions, that you would
like to bring to our attention.

Best,
Zak + Rob, CF Release Integration Team


Re: Unmap a router from an application using org.cloudfoundry.client.lib java library

Mark St.Godard
 

Hi Deepak,

Sorry, I think I understand your question now.. are you using this Java
library?
https://github.com/cloudfoundry/cf-java-client

And you are wondering how to unmap a route from an application ?

If so, I have not used this Java client library before, but I did a quick
look and this may be what you are looking for?
https://github.com/cloudfoundry/cf-java-client/blob/master/cloudfoundry-client/src/main/java/org/cloudfoundry/client/v2/applications/ApplicationsV2.java#L125-L130

If this is the library you are using, you also may get more answers from
the Github team / page.


Cheers


On Mon, Jan 4, 2016 at 10:14 AM, Mark St.Godard <markstgodard(a)gmail.com>
wrote:

Hi Deepak

Do you mean you have an app deployed in CF which is bound to a route
(i.e. myapp.foo.com) and you wish to unmap that route? Do you just
want the route unmapped from an app OR do you actually want the route
removed?

The CF CLI has commands to unmap and also delete routes

cf unmap-route APP_NAME DOMAIN_NAME -n HOSTNAME
cf delete-route DOMAIN_NAME -n HOSTNAME

If for some reason you needed to use the CF Cloud Controller (REST) API
See

https://apidocs.cloudfoundry.org/226/apps/remove_route_from_the_app.html
https://apidocs.cloudfoundry.org/226/routes/delete_a_particular_route.html

Note, when using CC APIs you will need to pass in oauth tokens, etc.


Anyway, let us know if this answers your question or clarify if you meant
something else.

Cheers







On Mon, Jan 4, 2016 at 1:33 AM, Deepak Kumar <deepmun1983(a)gmail.com>
wrote:

Hi,
I am trying to unmap a router from an application using cloudfoundry java
APIs. But I don't find a way to unmap it. Could you please assist if we
have a way to unmap an application from a router?


Re: Unmap a router from an application using org.cloudfoundry.client.lib java library

Mark St.Godard
 

Hi Deepak

Do you mean you have an app deployed in CF which is bound to a route (i.e.
myapp.foo.com) and you wish to unmap that route? Do you just want the
route unmapped from an app OR do you actually want the route removed?

The CF CLI has commands to unmap and also delete routes

cf unmap-route APP_NAME DOMAIN_NAME -n HOSTNAME
cf delete-route DOMAIN_NAME -n HOSTNAME

If for some reason you needed to use the CF Cloud Controller (REST) API
See

https://apidocs.cloudfoundry.org/226/apps/remove_route_from_the_app.html
https://apidocs.cloudfoundry.org/226/routes/delete_a_particular_route.html

Note, when using CC APIs you will need to pass in oauth tokens, etc.


Anyway, let us know if this answers your question or clarify if you meant
something else.

Cheers







On Mon, Jan 4, 2016 at 1:33 AM, Deepak Kumar <deepmun1983(a)gmail.com> wrote:

Hi,
I am trying to unmap a router from an application using cloudfoundry java
APIs. But I don't find a way to unmap it. Could you please assist if we
have a way to unmap an application from a router?


Re: URL of a Service Instance

Rahul Gupta
 

Hi Marco,

So to confirm my understanding on specifying VM characteristics in bosh manifest:
For example, if I configure m3.xlarge (4 cpu cores + 15 GB RAM) in iaas_settings block in BOSH manifest, would it mean each service instance will have the specifications of an m3.xlarge machine (4 cores + 15 GB RAM for each service instance) or does it mean there will be one m3.xlarge machine provisioned on AWS and all the service instances will be created on this one m3.xlarge, sharing 4 cores and 15 GB RAM?

Thanks,
Rahul


Unmap a router from an application using org.cloudfoundry.client.lib java library

Deepak Kumar
 

Hi,
I am trying to unmap a router from an application using cloudfoundry java APIs. But I don't find a way to unmap it. Could you please assist if we have a way to unmap an application from a router?


Re: CF CLI v6.14.1 Released Today

Christopher B Ferris <chrisfer@...>
 

+1 thanks!

Cheers,

Christopher Ferris
IBM Distinguished Engineer, CTO Open Technology
IBM Cloud, Open Technologies
email: chrisfer(a)us.ibm.com
twitter: @christo4ferris
blog: https://developer.ibm.com/opentech/author/chrisfer/
phone: +1 508 667 0402

On Dec 28, 2015, at 5:37 AM, Voelz, Marco <marco.voelz(a)sap.com> wrote:

Nice, thanks Dies!

$ brew tap cloudfoundry/tap
At another occasion I was already advocating for a separation of homebrew taps for pivotal products vs. open-source CF things.

Have you already integrated the update of the tap into your concourse build so I can steal it for other projects? :D
E.g. bosh-init has a pretty outdated version on homebrew, as the update part is not automated in the build process.

Warm regards
Marco


Re: URL of a Service Instance

Marco Nicosia
 

Hi Rahul, answers in-line:


On Thu, Dec 31, 2015 at 8:36 PM, Rahul Gupta <wildnez(a)gmail.com> wrote:


Thanks for yet another explanation. This leads to another question: how
does CF handle availability of service instances? If many of the instances
are maintained on one VM and if that VM becomes unavailable for X amount of
time then all the service instances running on that VM will also become
unavailable, together. Is there a documentation that might explain this
more detail?
I'm afraid there's no scheduler for VMs beyond what BOSH provides at
provision time, which isn't very complex today. There are features coming,
like anti-affinity rules to balance across AZs, but that's 2016 roadmap.

That means that for now, the service broker is responsible for making all
the decisions. The BOSH CPIs don't have ways of manipulating VMs after
launch (ttbomk), so most of those decisions are made at create-instance
time. I suppose if you have a very dynamic service, you can move
service-instances around VMs, but it's nothing we've tried before.


For my other question, is there a provision by which I can configure the
other environment characteristics such as cpu cores, RAM etc for a service
instance?
Yes. In the BOSH manifest, you specify the characteristics of the VM. You
can define your machine types in the iaas_settings block, here are examples:
AWS:
https://github.com/cloudfoundry/cf-mysql-release/blob/develop/manifest-generation/examples/aws/iaas-settings.yml
vSphere example:
https://github.com/cloudfoundry/cf-mysql-release/blob/develop/manifest-generation/examples/vsphere/iaas-settings.yml


And is there a documentation that can show how to pass JVM arguments to
configure heap size and other properties of a service instance JVM?
That's entirely up to the BOSH job(s) that you define to run on the VMs. In
our case, we don't specify MariaDB directly, instead we run a job called
"mariadb_ctrl" which, in the long run, calls this script:

https://github.com/cloudfoundry/mariadb_ctrl/blob/master/mysql_daemon.sh

It's important to know that BOSH will use monit to launch and monitor your
job. All that stuff is covered here:
http://bosh.io/docs/jobs.html#monitoring


Thanks,
Rahul
--
Marco Nicosia
Product Manager
Pivotal Software, Inc.
mnicosia(a)pivotal.io

6121 - 6140 of 9398