Date   

Going to CF Summit Europe? Want to chat about Routing topics?

Shannon Coen
 

I'll be Basel Switzerland October 11-12 for CF Summit Europe.

If you'd like to chat about any of the following topics, or others related
to Routing in CF, let me know!


- Certificate management for custom/private domains,
bring-your-own-cert, automatic generation of certs, integration with Let’s
Encrypt, etc
- Istio, Envoy, and service mesh
- Isolation Segments
- Encryption end-to-end; TLS between Routers and Apps
- Mutual Authentication between clients and apps through CF Router using
X-Forwarded-Client-Cert header to forward the client cert
- Routing rules; e.g. more flexible matching, weights, rate-limiting, etc
- TCP Routing
- Route Services


Best,

Shannon Coen
Product Manager, Cloud Foundry
Pivotal, Inc.


Re: cf cell's df result question

강경원 <atplus12345 at gmail.com...>
 

I cut the loop device info for containers. Where can I find the rep's disk
calculation algorithm or source code for available disk size?

On Sep 15, 2017 19:14, "George Lestaris" <glestaris(a)pivotal.io> wrote:

Hello Kyungwon,

Where do you see that your cell disk is using 10G? It could be because of
how the BOSH VMs partition the disk.

On Thu, Sep 14, 2017 at 9:46 PM, Lior Okman <lior.okman(a)gmail.com> wrote:


Hi,

Usually a certain percentage (5% by default) of the available disk space
is reserved for uid 0. You can check to see what that percentage amounts to
in bytes using the following command if the filesystem is ext{2,3,4}:

echo $(( $(tune2fs -l /dev/xvdb2 |grep "Reserved block count"|cut -f2
-d: ) * $(tune2fs -l /dev/xvdb2 | grep "Block size" |cut -f2 -d: ) ))

See tune2fs(8) for details.

For a 100G disk this would amount to your missing 5G.

--
Lior

On Thu, Sep 14, 2017 at 1:45 PM, 강경원 <kyungwon.kang(a)samsung.com> wrote:

Hi, when I check the cell's disk, it's using 10G but df result reports
only 5G is used. Can I know why?



diego-cell/b3d42906-84f3-40db-8361-64232dac4ff8:/var/vcap/data# df -h
Filesystem Size Used Avail Use% Mounted on
udev 3.9G 4.0K 3.9G 1% /dev
tmpfs 799M 548K 798M 1% /run
/dev/xvda1 2.9G 1.9G 866M 69% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
none 5.0M 0 5.0M 0% /run/lock
none 3.9G 3.6M 3.9G 1% /run/shm
none 100M 0 100M 0% /run/user
/dev/xvdb2 91G 5.1G 81G 6% /var/vcap/data



Regards,

Kyungwon Kang.


강경원(Kang, Kyungwon) Marcus Kang
RHCA/PMP/ITIL Master/OCP(Oracle/Solaris)
직급:수석
클라우드기술그룹(클라우드) M.P: 82-10-8998-2092
kyungwon.kang(a)samsung.com





--
George Lestaris
GrootFS <https://www.github.com/cloudfoundry/grootfs> Product Manager, Cloud
Foundry <https://www.cloudfoundry.org/>, Pivotal <https://www.pivotal.io/>


Building 97% > :cargoRunLocal

Forty 5
 

Hi
I am new to UAA and install it as standalone on OSX. When I run the app with ./gradlew run, I got the following line

:assemble
:assemble took 1ms
:cleanCargoConfDir UP-TO-DATE
:cleanCargoConfDir took 0ms
:cargoRunLocal
Press Ctrl-C to stop the container...
Building 97% > :cargoRunLocal
I can't find much information on the internet on how to debug or good explanation of it. I checked the UAA.log and localhost_access...txt and both not show any error. Any reason why it can finish the build?


Re: Can I have a different port to run my app?

Ushani Balasooriya
 

Thanks Daniel


Re: CF CLI v6.31.0 Released Today - Docker image support in app manifest

Amit Kumar Gupta
 


App manifest support for Docker apps
💃😁

Awesome, thanks Dies!


CF CLI v6.31.0 Released Today - Docker image support in app manifest

Koper, Dies <diesk@...>
 

The CF CLI team cut 6.31.0 today.
Deb, yum and Homebrew repos have been updated; binaries, installers and link to release notes are available at:

https://github.com/cloudfoundry/cli#downloads
App manifest support for Docker apps

This cf CLI release introduces new attributes to the app manifest to support pushing of Docker apps.
Private Docker repositories are also supported, using the non-interactive workflow introduced for push in cf CLI 6.26.0 with the CF_DOCKER_PASSWORD environment variable.



$ cat ./manifest.yml

---

applications:

name: dockerapp

docker:

image: internal-registry.example.com:5000/my-repo/my-image:v2

username: alice



$ CF_DOCKER_PASSWORD=$(pass docker/image) cf push

Using manifest file ./manifest.yml



Creating app dockerapp in org myorg / space dev as alice...

...

Refer to the Deploying with App Manifests<http://docs.cloudfoundry.org/devguide/deploy-apps/manifest.html#docker> documentation for details.

The private Docker repo feature requires a target CF release of v260 (CC API v2.82.0) onwards.

Built with Golang 1.9.0

Golang 1.9.0 was released last month.
See the Golang announcement<https://golang.org/doc/go1.9> for details.

Refactored commands

We are in the process of creating a more consistent user experience; our goal is to standardize UI output.
For example, warnings and errors will consistently be outputted to stderr instead of stdout and English table and key-value headers displayed in lowercase.
As we iterate through the list of commands, we are also focusing on improving performance and stability.
Please review your scripts if they depend on the output of these commands.

List of improved commands in this release:

* create-app-manifest

Updated commands

* push now accepts docker attributes in the app manifest to push a Docker app. (#696<https://github.com/cloudfoundry/cli/issues/696>)
* create-app-manifest now includes the docker attributes when generating an app manifest for a Docker app.
* app now displays the image name of a Docker app.

Refer to the documentation<https://docs.cloudfoundry.org/devguide/deploy-apps/cf-networking.html#create-policies> for details.

New & updated community plugins

* network-policy<https://github.com/cloudfoundry-incubator/cf-networking-release> v1.6.0 - Allow the user to manage application network policies
Enjoy!

Regards,
Dies Koper
Cloud Foundry Product Manager - CLI


Re: Can I have a different port to run my app?

Ben Joyce
 

Worked for me.

On 15 September 2017 at 13:04, Daniel Mikusa <dmikusa(a)pivotal.io> wrote:

It seems to work for me. Maybe the URL is getting split up by your email
client. Here's a shortened version: https://goo.gl/CC33Tz.

Dan

On Fri, Sep 15, 2017 at 2:36 AM, Ushani Balasooriya <ushanib(a)gmail.com>
wrote:

Hi Daniel,

That link cannot be opened. It says Not Found.


Re: Can I have a different port to run my app?

Daniel Mikusa
 

It seems to work for me. Maybe the URL is getting split up by your email
client. Here's a shortened version: https://goo.gl/CC33Tz.

Dan

On Fri, Sep 15, 2017 at 2:36 AM, Ushani Balasooriya <ushanib(a)gmail.com>
wrote:

Hi Daniel,

That link cannot be opened. It says Not Found.


Re: cf cell's df result question

George Lestaris
 

Hello Kyungwon,

Where do you see that your cell disk is using 10G? It could be because of
how the BOSH VMs partition the disk.

On Thu, Sep 14, 2017 at 9:46 PM, Lior Okman <lior.okman(a)gmail.com> wrote:


Hi,

Usually a certain percentage (5% by default) of the available disk space
is reserved for uid 0. You can check to see what that percentage amounts to
in bytes using the following command if the filesystem is ext{2,3,4}:

echo $(( $(tune2fs -l /dev/xvdb2 |grep "Reserved block count"|cut -f2
-d: ) * $(tune2fs -l /dev/xvdb2 | grep "Block size" |cut -f2 -d: ) ))

See tune2fs(8) for details.

For a 100G disk this would amount to your missing 5G.

--
Lior

On Thu, Sep 14, 2017 at 1:45 PM, 강경원 <kyungwon.kang(a)samsung.com> wrote:

Hi, when I check the cell's disk, it's using 10G but df result reports
only 5G is used. Can I know why?



diego-cell/b3d42906-84f3-40db-8361-64232dac4ff8:/var/vcap/data# df -h
Filesystem Size Used Avail Use% Mounted on
udev 3.9G 4.0K 3.9G 1% /dev
tmpfs 799M 548K 798M 1% /run
/dev/xvda1 2.9G 1.9G 866M 69% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
none 5.0M 0 5.0M 0% /run/lock
none 3.9G 3.6M 3.9G 1% /run/shm
none 100M 0 100M 0% /run/user
/dev/xvdb2 91G 5.1G 81G 6% /var/vcap/data



Regards,

Kyungwon Kang.


강경원(Kang, Kyungwon) Marcus Kang
RHCA/PMP/ITIL Master/OCP(Oracle/Solaris)
직급:수석
클라우드기술그룹(클라우드) M.P: 82-10-8998-2092
kyungwon.kang(a)samsung.com




--
George Lestaris
GrootFS <https://www.github.com/cloudfoundry/grootfs> Product Manager, Cloud
Foundry <https://www.cloudfoundry.org/>, Pivotal <https://www.pivotal.io/>


Re: Can I have a different port to run my app?

Ushani Balasooriya
 

Hi Daniel,

That link cannot be opened. It says Not Found.


Re: cf cell's df result question

Lior Okman
 

Hi,

Usually a certain percentage (5% by default) of the available disk space is
reserved for uid 0. You can check to see what that percentage amounts to in
bytes using the following command if the filesystem is ext{2,3,4}:

echo $(( $(tune2fs -l /dev/xvdb2 |grep "Reserved block count"|cut -f2 -d:
) * $(tune2fs -l /dev/xvdb2 | grep "Block size" |cut -f2 -d: ) ))

See tune2fs(8) for details.

For a 100G disk this would amount to your missing 5G.

--
Lior

On Thu, Sep 14, 2017 at 1:45 PM, 강경원 <kyungwon.kang(a)samsung.com> wrote:

Hi, when I check the cell's disk, it's using 10G but df result reports
only 5G is used. Can I know why?



diego-cell/b3d42906-84f3-40db-8361-64232dac4ff8:/var/vcap/data# df -h
Filesystem Size Used Avail Use% Mounted on
udev 3.9G 4.0K 3.9G 1% /dev
tmpfs 799M 548K 798M 1% /run
/dev/xvda1 2.9G 1.9G 866M 69% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
none 5.0M 0 5.0M 0% /run/lock
none 3.9G 3.6M 3.9G 1% /run/shm
none 100M 0 100M 0% /run/user
/dev/xvdb2 91G 5.1G 81G 6% /var/vcap/data



Regards,

Kyungwon Kang.


강경원(Kang, Kyungwon) Marcus Kang
RHCA/PMP/ITIL Master/OCP(Oracle/Solaris)
직급:수석
클라우드기술그룹(클라우드) M.P: 82-10-8998-2092
kyungwon.kang(a)samsung.com





Cloud Foundry API /v2/service_instances

Weiss Christian
 

Hallo,

I have created a service broker with tags in the catalog. If a application binds the service I can see the tags in the vcap_services. Now I want to retrieve all service instances with a specific tag. However I was not able to find a appropiate CF API. Using /v2/service_instances
https://apidocs.cloudfoundry.org/272/service_instances/retrieve_a_particular_service_instance.html.
allows to query the instances but does not allows tags as query parameter.
If use this api to retrieve a instance of my service then the tags are even empty. ( "tags": []).
What would be the appropiate way to get a list of service instances with a specific tag?

Best regards, Christian


Re: Can I have a different port to run my app?

Daniel Mikusa
 

I think I answered this question here:
https://lists.cloudfoundry.org/archives/list/cf-dev(a)lists.cloudfoundry.org/message/FJK25F3BNLEFJVGHFHF5QWB3ETNQSSF3/

Dan

On Thu, Sep 14, 2017 at 4:27 AM, Ushani Balasooriya <ushanib(a)gmail.com>
wrote:

My application is developed in a way as it starts on the port 9763 http
transport
Also there is a feasibility to change the port by giving an offset to run
it in a different port.

My question is, in Diego container, is there a particular port where I
should write my app to run? Or If i deploy it just as it is, should it be
able to run on port 9763?

Should I need to configure my app to start it in a different port like
8080 or 8000? If so why and what is that port?

Appreciate your help


Re: How to start my app in http and https ports?

Daniel Mikusa
 

Your app needs to listen on the port assigned to it. It can find this
information by looking at the environment variable named `PORT` and reading
the value out of that (it will be the port number). If your app is being
run by Diego, which is pretty much all CF installations now, the port
number will be 8080. You can get by with just manually configuring the
port to 8080, but technically you should read the port number from the PORT
environment variable as it could potentially change in the future.

Hope that helps!

On Thu, Sep 14, 2017 at 4:30 AM, Ushani Balasooriya <ushanib(a)gmail.com>
wrote:

Hi Daniel,
I have changed my app to be started on http transport and it is started on
port 9763 by default when I deploy it. So should this port be changed to
listen to 8080 when I deploy on PCF or anything else should be done? What
is the port assigned to $PORT variable if I use it in my application
runtime?


cf cell's df result question

강경원 <kyungwon.kang at samsung.com...>
 

Hi, when I check the cell's disk, it's using 10G but df result reports only 5G is used. Can I know why?

 

diego-cell/b3d42906-84f3-40db-8361-64232dac4ff8:/var/vcap/data# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            3.9G  4.0K  3.9G   1% /dev
tmpfs           799M  548K  798M   1% /run
/dev/xvda1      2.9G  1.9G  866M  69% /
none            4.0K     0  4.0K   0% /sys/fs/cgroup
none            5.0M     0  5.0M   0% /run/lock
none            3.9G  3.6M  3.9G   1% /run/shm
none            100M     0  100M   0% /run/user
/dev/xvdb2       91G  5.1G   81G   6% /var/vcap/data

 

Regards,

Kyungwon Kang.

 
강경원(Kang, Kyungwon) Marcus Kang
RHCA/PMP/ITIL Master/OCP(Oracle/Solaris)
직급:수석
클라우드기술그룹(클라우드) M.P: 82-10-8998-2092
kyungwon.kang@...
 

 


CF Summit EU Unconference - Registration Open; Talks & Sponsors Requested

Daniel Jones
 

Hi all,

You can now register for the (free!) Unconference
<https://www.eventbrite.co.uk/e/cf-summit-europe-2017-unconference-tickets-37837803890>
at CF Summit Europe 2017. It'll take place between 1800-2200 on Tuesday
10th October, in the same venue as the Summit, and will feature food,
drink, lightning talks, open space, and a pub quiz.

If you think you may attend, *please* register, so we can make sure we have
enough space, beer and food for everyone.

Would you like to *talk at the Unconference*? We're looking for lightning
talks (<= 10 minutes) to go along with the open space sessions.

If you'd like to talk then please fill in our Google Form:
https://goo.gl/forms/xB0beLDZ4Tk8AZjR2

We're open to novel talks, or cut-down versions of talks that didn't make
the cut for the Summit itself. I expect that a fair few engineering folks
will be in attendance, so excruciatingly technical talks are welcome!

We're also *looking for sponsors* - if your organisation is interested,
please contact Sara Lenz (slenz(a)anynines.com) for more information. Sponsor
benefits include top-of-agenda lightning talks, signage, and online
promotion.

Regards,
Daniel Jones - CTO
+44 (0)79 8000 9153
@DanielJonesEB <https://twitter.com/DanielJonesEB>
*EngineerBetter* Ltd <http://www.engineerbetter.com> - UK Cloud Foundry
Specialists


Re: How to start my app in http and https ports?

Ushani Balasooriya
 

Hi Daniel,
I have changed my app to be started on http transport and it is started on port 9763 by default when I deploy it. So should this port be changed to listen to 8080 when I deploy on PCF or anything else should be done? What is the port assigned to $PORT variable if I use it in my application runtime?


Can I have a different port to run my app?

Ushani Balasooriya
 

My application is developed in a way as it starts on the port 9763 http transport
Also there is a feasibility to change the port by giving an offset to run it in a different port.

My question is, in Diego container, is there a particular port where I should write my app to run? Or If i deploy it just as it is, should it be able to run on port 9763?

Should I need to configure my app to start it in a different port like 8080 or 8000? If so why and what is that port?

Appreciate your help


Re: I need to use mysql as the database. How can I deploy mysql in to PCF? How can I find the mysql docker image

Ushani Balasooriya
 

Hi Ronak,

I found this. It seems like I dont need to install the mysql seperately as I can use which I find in market place. I created a service.


Thanks,


Re: I need to use mysql as the database. How can I deploy mysql in to PCF? How can I find the mysql docker image

Ronak Banka
 

Hi Ushani,

Containers on cloud foundry are ephemeral, so even if you deploy the mysql
image on PCF dev, the moment container will restart you will loose all data.

If I am not wrong you get a couple of services with pcfdev, you can check
using "cf m" for marketplace, check this
https://docs.cloudfoundry.org/devguide/services/managing-services.html

Thanks
Ronak


On Thu, Sep 14, 2017 at 11:10 AM, Ushani Balasooriya <ushanib(a)gmail.com>
wrote:

I think I can get the docker image of mysql and push it in to the pcf. How
can I run a mysql script against PCF deployed mysql?