Documentation on creating and deploying windows applications diego-windows-release


Vinay Vaidya
 

Deployed Diego components for Cloud Foundry per https://github.com/cloudfoundry-incubator/diego-windows-release

How do I create and deploy windows apps on Diego? Specifically, is it possible to deploy a native windows application that has multiple fiies and directories besides the main executable? What about a .NET application that is a client using a websocket connection to the server? Thanks.


James Bayer
 

this blog [1] shows an example windows app push:
cf push APPNAME -s windows2012R2 -b binary_buildpack

in this example, you'd want to take an app like this example [2] that has
been "published" from visual studio and push from that publish directory
(or specify it with -p).

web socket apps should work well provided your load balancer configuration
supports web socket.

[1]
https://blog.pivotal.io/pivotal-cloud-foundry/products/pivotal-cloud-foundry-1-6-technical-blog-new-runtime-services-net-more
[2] https://github.com/jbayer/windows-cf-demo

On Tue, Nov 17, 2015 at 6:44 AM, Vinay Vaidya <vvaidya(a)rediffmail.com>
wrote:

Deployed Diego components for Cloud Foundry per
https://github.com/cloudfoundry-incubator/diego-windows-release

How do I create and deploy windows apps on Diego? Specifically, is it
possible to deploy a native windows application that has multiple fiies and
directories besides the main executable? What about a .NET application that
is a client using a websocket connection to the server? Thanks.


--
Thank you,

James Bayer


Vinay Vaidya
 

James, Thanks for the inputs. It took me a while to work on it.
I tried the app push but I am getting 'NoCompatbleCell' failure when starting. Here are the steps that I have followed:
1. Install the CF Diego release on bosh-vm
2. Install Diego-Windows-Release on another Win2012R2 server vm
3. Pushed the app with cf push APPNAME -s windows2012R2 -b binary_buildpack --no-start
4. Enabled diego for the app
5. Start the app

Here is the auctioneer log excerpt:
{"timestamp":"1448978418.765795946","source":"auctioneer","message":"auctioneer.request.serving","log_level":1,"data":{"method":"POST","request":"/v1/tasks","session":"8"}}
{"timestamp":"1448978418.766194105","source":"auctioneer","message":"auctioneer.request.task-auction-handler.create.submitted","log_level":1,"data":{"method":"POST","request":"/v1/tasks","session":"8.1.1","tasks":["902a58f7-efad-46b5-8569-6f962c84f03d-ef8e363bc9b34c86a397764aaeab9f16"]}}
{"timestamp":"1448978418.766262293","source":"auctioneer","message":"auctioneer.request.done","log_level":1,"data":{"method":"POST","request":"/v1/tasks","session":"8"}}
{"timestamp":"1448978418.766420841","source":"auctioneer","message":"auctioneer.auction.fetching-cell-reps","log_level":1,"data":{"session":"9"}}
{"timestamp":"1448978418.769232273","source":"auctioneer","message":"auctioneer.auction.fetched-cell-reps","log_level":1,"data":{"cell-reps-count":2,"session":"9"}}
{"timestamp":"1448978418.769321442","source":"auctioneer","message":"auctioneer.auction.fetching-zone-state","log_level":1,"data":{"session":"9"}}
{"timestamp":"1448978433.771463871","source":"auctioneer","message":"auctioneer.auction.failed-to-get-state","log_level":2,"data":{"cell-guid":"WIN-JQTPCVJ14JM","error":"Get http://10.0.3.15:1800/state: dial tcp 10.0.3.15:1800: i/o timeout","session":"9"}}
{"timestamp":"1448978433.771752357","source":"auctioneer","message":"auctioneer.auction.zone-state","log_level":1,"data":{"cell-count":1,"session":"9","zone":"z1"}}
{"timestamp":"1448978433.771788359","source":"auctioneer","message":"auctioneer.auction.fetched-zone-state","log_level":1,"data":{"cell-state-count":1,"duration":"15.002333005s","num-failed-requests":1,"session":"9"}}
{"timestamp":"1448978433.771812439","source":"auctioneer","message":"auctioneer.auction.fetching-auctions","log_level":1,"data":{"session":"9"}}
{"timestamp":"1448978433.771835566","source":"auctioneer","message":"auctioneer.auction.fetched-auctions","log_level":1,"data":{"lrp-start-auctions":0,"session":"9","task-auctions":1}}
{"timestamp":"1448978433.771849394","source":"auctioneer","message":"auctioneer.auction.scheduling","log_level":1,"data":{"session":"9"}}
{"timestamp":"1448978433.771918058","source":"auctioneer","message":"auctioneer.auction.scheduled","log_level":1,"data":{"failed-lrp-start-auctions":0,"failed-task-auctions":1,"session":"9","successful-lrp-start-auctions":0,"successful-task-auctions":0}}


Ben Moss <bmoss@...>
 

Hi Vinay,

Can you confirm you installed the GardenWindowsRelease on your Windows
server as well? You also might try running the hakim executable we include
in the DiegoWindows releases
<https://github.com/cloudfoundry-incubator/diego-windows-release/releases>,
it's a simple diagnostic tool that you run on your Windows server to
troubleshoot some common issues.
Ben

On Tue, Dec 1, 2015 at 2:09 PM, Ben Moss <bmoss(a)pivotal.io> wrote:

Hi Vinay,

Can you confirm you installed the GardenWindowsRelease on your Windows
server as well? You also might try running the hakim executable we include
in the DiegoWindows releases
<https://github.com/cloudfoundry-incubator/diego-windows-release/releases>,
it's a simple diagnostic tool that you run on your Windows server to
troubleshoot some common issues.

Ben

On Tue, Dec 1, 2015 at 1:56 PM, Mike Dalessio <mdalessio(a)pivotal.io>
wrote:

FYI

---------- Forwarded message ----------
From: Vinay Vaidya <vvaidya(a)rediffmail.com>
Date: Tue, Dec 1, 2015 at 9:07 AM
Subject: [cf-dev] Re: Re: Documentation on creating and deploying windows
applications diego-windows-release
To: cf-dev(a)lists.cloudfoundry.org


James, Thanks for the inputs. It took me a while to work on it.
I tried the app push but I am getting 'NoCompatbleCell' failure when
starting. Here are the steps that I have followed:
1. Install the CF Diego release on bosh-vm
2. Install Diego-Windows-Release on another Win2012R2 server vm
3. Pushed the app with cf push APPNAME -s windows2012R2 -b
binary_buildpack --no-start
4. Enabled diego for the app
5. Start the app

Here is the auctioneer log excerpt:

{"timestamp":"1448978418.765795946","source":"auctioneer","message":"auctioneer.request.serving","log_level":1,"data":{"method":"POST","request":"/v1/tasks","session":"8"}}

{"timestamp":"1448978418.766194105","source":"auctioneer","message":"auctioneer.request.task-auction-handler.create.submitted","log_level":1,"data":{"method":"POST","request":"/v1/tasks","session":"8.1.1","tasks":["902a58f7-efad-46b5-8569-6f962c84f03d-ef8e363bc9b34c86a397764aaeab9f16"]}}

{"timestamp":"1448978418.766262293","source":"auctioneer","message":"auctioneer.request.done","log_level":1,"data":{"method":"POST","request":"/v1/tasks","session":"8"}}

{"timestamp":"1448978418.766420841","source":"auctioneer","message":"auctioneer.auction.fetching-cell-reps","log_level":1,"data":{"session":"9"}}

{"timestamp":"1448978418.769232273","source":"auctioneer","message":"auctioneer.auction.fetched-cell-reps","log_level":1,"data":{"cell-reps-count":2,"session":"9"}}

{"timestamp":"1448978418.769321442","source":"auctioneer","message":"auctioneer.auction.fetching-zone-state","log_level":1,"data":{"session":"9"}}
{"timestamp":"1448978433.771463871","source":"auctioneer","message":"auctioneer.auction.failed-to-get-state","log_level":2,"data":{"cell-guid":"WIN-JQTPCVJ14JM","error":"Get
http://10.0.3.15:1800/state: dial tcp 10.0.3.15:1800: i/o
timeout","session":"9"}}

{"timestamp":"1448978433.771752357","source":"auctioneer","message":"auctioneer.auction.zone-state","log_level":1,"data":{"cell-count":1,"session":"9","zone":"z1"}}

{"timestamp":"1448978433.771788359","source":"auctioneer","message":"auctioneer.auction.fetched-zone-state","log_level":1,"data":{"cell-state-count":1,"duration":"15.002333005s","num-failed-requests":1,"session":"9"}}

{"timestamp":"1448978433.771812439","source":"auctioneer","message":"auctioneer.auction.fetching-auctions","log_level":1,"data":{"session":"9"}}

{"timestamp":"1448978433.771835566","source":"auctioneer","message":"auctioneer.auction.fetched-auctions","log_level":1,"data":{"lrp-start-auctions":0,"session":"9","task-auctions":1}}

{"timestamp":"1448978433.771849394","source":"auctioneer","message":"auctioneer.auction.scheduling","log_level":1,"data":{"session":"9"}}

{"timestamp":"1448978433.771918058","source":"auctioneer","message":"auctioneer.auction.scheduled","log_level":1,"data":{"failed-lrp-start-auctions":0,"failed-task-auctions":1,"session":"9","successful-lrp-start-auctions":0,"successful-task-auctions":0}}