Date   
Re: How to access the IP of my other instance inside my app

Eric Malm
 

Hi, Ushani,

The zookeeper release gets exactly those IPs via the "address" property on
each of the instances in its "peers" link:
https://github.com/cppforlife/zookeeper-release/blob/master/jobs/zookeeper/templates/zoo.cfg.erb#L1-L5.
The Template Accessor section in https://bosh.io/docs/links.html#templates
has more information on the available properties in a link. Presumably a
similar pattern would work for your WSO2 release.

Best,
Eric, CF Diego PM

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

Hi Dan,

I checked the doc and thanks for the info.

But what I really need is a way to capture the ips of instances
dynamically created when we define a number in deploy. manifest.
E.g.,

- instances: 3
name: wso2is
networks:
- name: wso2is_network
resource_pool: wso2is-resource-pool
templates:
- name: wso2is



========

Instance Process State AZ IPs
VM CID VM Type
wso2is/1aa7dc45-e657-4519-ba43-d9f08f4b708b running -
10.244.15.23 70899e3d-8efb-4197-63dc-267feffe3bb3 wso2is-resource-pool
wso2is/317d9109-a2bf-42a4-b959-9f556a599a91 running -
10.244.15.22 4410cbbb-dc84-4d78-42e9-56b7d60a6f5c wso2is-resource-pool
wso2is/6502084e-8ae2-43f9-9416-eb54952b6289 running -
10.244.15.24 da258279-6a96-4e8c-49ad-e752073b108f wso2is-resource-pool

I need to access 10.244.15.23 , 10.244.15.22, 10.244.15.24 IPs
dynamically.

Thanks

Re: Bosh Director calls CredHub twice during a deployment for the same secret

Michael Stancampiano
 

Performance is an issue, but just understanding the logic on why Director would make two calls during a deployment to obtain the same secret is important.

Thanks.

Stemcell upload issue Error: CPI error 'Bosh::Clouds::CloudError' with message

Krish J
 

Hi All,
I am getting below exception while uploading stemcell using bosh v version 2.0.40-9fc1ea4-2017-09-18T23:00:15Z

~/bosh-cli-ex$ bosh -e bosh-1 upload-stemcell ~/bosh-cli-ex/light-bosh-stemcell-3445.11-aws-xen-hvm-ubuntu-trusty-go_agent.tgz --sha1 2YDE+Dsl+D41WfDnYOLNIxNXx6hsd5HJk9PmR6j+
Using environment '10.0.0.6' as client 'admin'

######################################################### 100.00% 892.62 KB/s 0s
Task 24

Task 24 | 17:49:06 | Update stemcell: Extracting stemcell archive (00:00:00)
Task 24 | 17:49:06 | Update stemcell: Verifying stemcell manifest (00:00:00)
Task 24 | 17:52:41 | Error: CPI error 'Bosh::Clouds::CloudError' with message 'Unable to create a connection to AWS. Please check your provided settings: Region 'us-east-1', Endpoint 'Not provided'.
IaaS Error: #<Seahorse::Client::NetworkingError: execution expired>' in 'info' CPI method

Task 24 Started Fri Sep 22 17:49:06 UTC 2017
Task 24 Finished Fri Sep 22 17:52:41 UTC 2017
Task 24 Duration 00:03:35
Task 24 error

Uploading stemcell file:
Expected task '24' to succeed but state is 'error'

Exit code 1

Can any one help on this.
Thanks in Advance.

Regrd
Krish

Re: Bosh Director calls CredHub twice during a deployment for the same secret

Dmitriy Kalinin
 

we havent spent any time optimizing it since it shuold be pretty cheap to
make these calls. are you concerned about the perf aspect of it or
something else?

On Fri, Sep 22, 2017 at 10:55 AM, Michael Stancampiano <mstancamp(a)gmail.com>
wrote:

It appears Director calls CredHub for a single secret twice during a
deployment. Here are the Director calls:
1) Calls CredHub with a GET by name. In this case the query name parameter
value is the identifier from the deployment manifest file.
2) Calls CredHub with a GET by ID using the id value for the secret
returned in the first call.

Can someone explain why Director appears to be making two calls for the
same secret during a deployment?

Thanks.

Mike

Bosh Director calls CredHub twice during a deployment for the same secret

Michael Stancampiano
 

It appears Director calls CredHub for a single secret twice during a deployment. Here are the Director calls:
1) Calls CredHub with a GET by name. In this case the query name parameter value is the identifier from the deployment manifest file.
2) Calls CredHub with a GET by ID using the id value for the secret returned in the first call.

Can someone explain why Director appears to be making two calls for the same secret during a deployment?

Thanks.

Mike

Re: How to access the IP of my other instance inside my app

Ushani Balasooriya
 

Hi Dan,

I checked the doc and thanks for the info.

But what I really need is a way to capture the ips of instances dynamically created when we define a number in deploy. manifest.
E.g.,

- instances: 3
name: wso2is
networks:
- name: wso2is_network
resource_pool: wso2is-resource-pool
templates:
- name: wso2is



========

Instance Process State AZ IPs VM CID VM Type
wso2is/1aa7dc45-e657-4519-ba43-d9f08f4b708b running - 10.244.15.23 70899e3d-8efb-4197-63dc-267feffe3bb3 wso2is-resource-pool
wso2is/317d9109-a2bf-42a4-b959-9f556a599a91 running - 10.244.15.22 4410cbbb-dc84-4d78-42e9-56b7d60a6f5c wso2is-resource-pool
wso2is/6502084e-8ae2-43f9-9416-eb54952b6289 running - 10.244.15.24 da258279-6a96-4e8c-49ad-e752073b108f wso2is-resource-pool

I need to access 10.244.15.23 , 10.244.15.22, 10.244.15.24 IPs dynamically.

Thanks

Re: How to access the IP of my other instance inside my app

Ushani Balasooriya
 

Thanks Dan will check

Re: How to access the IP of my other instance inside my app

Daniel Mikusa
 

Take a look at the example referenced from the docs. You can see the links
exposed in the spec file and how they're consumed in the various templates.

https://github.com/cppforlife/zookeeper-release/tree/master/jobs/zookeeper

Dan


On Wed, Sep 20, 2017 at 10:44 AM, Ushani Balasooriya <ushanib(a)gmail.com>
wrote:

Hi Daniel,
I'm trying create a cluster setup which is configurable for n number of
instances. So, How can I access the IP set for a particular IP dynamically?
Or is there a way where I can access them using a pre defined host which
it can resolve the IP by itself?

Appreciate your help

Re: How to access the IP of my other instance inside my app

Ushani Balasooriya
 

Hi Daniel,
I'm trying create a cluster setup which is configurable for n number of instances. So, How can I access the IP set for a particular IP dynamically?
Or is there a way where I can access them using a pre defined host which it can resolve the IP by itself?

Appreciate your help

Re: How to access the IP of my other instance inside my app

Daniel Mikusa
 

I think you want Bosh links, but more specifically a self link ->
https://bosh.io/docs/links.html#self

Dan

On Wed, Sep 20, 2017 at 5:48 AM, Ushani Balasooriya <ushanib(a)gmail.com>
wrote:

Hi there,

Im going to deploy my application in BOSH and cluster it with n number of
nodes. E.g., 2

So in my app, when I deploy the app in my manifest.yml I have defined
below. So it starts at 10.244.15.21 and next node starts in 10.244.15.22
when give instances : 2 in my manifest.yml

static:
- 10.244.15.2 - 10.244.15.20

So in my each app I need to access each other nodes' IPs inside a XML
file. How can i do this dynamically in a xml file. Please advice. Thanks

E.g.,

<parameter name="localMemberHost">127.0.0.1</parameter>

<members>
<member>
<hostName>10.244.15.21</hostName>
<port>4000</port>
</member>

<member>
<hostName>10.244.15.22</hostName>
<port>4000</port>
</member>
</members>

How to access the IP of my other instance inside my app

Ushani Balasooriya
 

Hi there,

Im going to deploy my application in BOSH and cluster it with n number of nodes. E.g., 2

So in my app, when I deploy the app in my manifest.yml I have defined below. So it starts at 10.244.15.21 and next node starts in 10.244.15.22 when give instances : 2 in my manifest.yml

static:
- 10.244.15.2 - 10.244.15.20

So in my each app I need to access each other nodes' IPs inside a XML file. How can i do this dynamically in a xml file. Please advice. Thanks

E.g.,

<parameter name="localMemberHost">127.0.0.1</parameter>

<members>
<member>
<hostName>10.244.15.21</hostName>
<port>4000</port>
</member>

<member>
<hostName>10.244.15.22</hostName>
<port>4000</port>
</member>
</members>

Re: not running after update. Review logs for failed jobs - deploy fails

Ushani Balasooriya
 

Could not figure out any solution. Created the same project from scratch with same configs and it started working

not running after update. Review logs for failed jobs - deploy fails

Ushani Balasooriya
 

bosh -e vbox -d wso2is deploy wso2is-manifest.yml.

This is what I get,

Task 29 | 13:24:38 | Deprecation: Ignoring cloud config. Manifest contains 'networks' section.
Task 29 | 13:24:38 | Preparing deployment: Preparing deployment (00:00:00)
Task 29 | 13:24:38 | Preparing package compilation: Finding packages to compile (00:00:00)
Task 29 | 13:24:38 | Updating instance wso2is: wso2is/ba4e43c5-9202-4f60-aa74-d0bdef66af81 (0) (canary)



(00:03:16)
Error: 'wso2is/ba4e43c5-9202-4f60-aa74-d0bdef66af81 (0)' is not running after update. Review logs for failed jobs: wso2is
Task 29 | 13:27:54 | Error: 'wso2is/ba4e43c5-9202-4f60-aa74-d0bdef66af81 (0)' is not running after update. Review logs for failed jobs: wso2is


===========

After spending sometime learnt to check debug logs and When I checked the debug logs it shows only this,

Mon Sep 18 13:27:29 UTC 2017 Kicking off ctl script as root with start
Mon Sep 18 13:27:32 UTC 2017 JAVA_HOME: /var/vcap/packages/oraclejdk/jdk1.8.0_144/
Mon Sep 18 13:27:32 UTC 2017 JAVA_BINARY: /var/vcap/packages/oraclejdk/jdk1.8.0_144//bin/java

I googled and found to increase the canary_watch_time and update_watch_time as a solution. But still it didnt work

I see 2 // in JAVA_BINARY: /var/vcap/packages/oraclejdk/jdk1.8.0_144//bin/java and cannot figure out how it comes. can it be the reason? I removed 1 / from the ctl.erb as well. But no luck.

Re: /config/blobs.yml: no such file or directory

Ushani Balasooriya
 

Executing bosh init-release command created it for me.

/config/blobs.yml: no such file or directory

Ushani Balasooriya
 

It seems the config/blolbs.yml is not available. How can I resolve this?


bosh -e vbox add-blob /home/wso2/Downloads/jdk-8u144-linux-x64.tar.gz oraclejdk/jdk-8u144-linux-x64.tar.gz
Tracking blob:
Reading blobs index:
Opening file /home/wso2/newBOSH/config/blobs.yml:
open /home/wso2/newBOSH/config/blobs.yml: no such file or directory

Re: Unknown disk type '5GB' in consul instance group when

Dmitriy Kalinin
 

you might have to update your cloud config with one that cf-deployment
wants:

bosh -e 192.168.50.6 ucc <(wget -O-
https://raw.githubusercontent.com/cloudfoundry/cf-deployment/master/bosh-lite/cloud-config.yml
)

On Sun, Sep 17, 2017 at 10:39 PM, Karan Shukla <shuklak13(a)gmail.com> wrote:

I've been trying to deploy Cloud Foundry on a local machine using Bosh
Lite on a VM via cf-deployment.

According to the documentation, the following command should build Cloud
Foundry

bosh -e 192.168.50.6 -d cf deploy cf-deployment.yml \
-o operations/bosh-lite.yml \
--vars-store deployment-vars.yml \
-v system_domain=bosh-lite.com

The process successfully completes the first thirty tasks or so, and then
I run into the following error.

Error: Instance group 'consul' references an unknown disk type '5GB'

Anyone have some insight on what 'consul' is and how I can fix it? Seems
to be related to cloud-config.yml but I'm not sure which one in particular
I should be looking into (there's one for both cf-deployment and
bosh-deployment).

Unknown disk type '5GB' in consul instance group when

Karan Shukla
 

I've been trying to deploy Cloud Foundry on a local machine using Bosh Lite on a VM via cf-deployment.

According to the documentation, the following command should build Cloud Foundry

bosh -e 192.168.50.6 -d cf deploy cf-deployment.yml \
-o operations/bosh-lite.yml \
--vars-store deployment-vars.yml \
-v system_domain=bosh-lite.com

The process successfully completes the first thirty tasks or so, and then I run into the following error.

Error: Instance group 'consul' references an unknown disk type '5GB'

Anyone have some insight on what 'consul' is and how I can fix it? Seems to be related to cloud-config.yml but I'm not sure which one in particular I should be looking into (there's one for both cf-deployment and bosh-deployment).

Re: When I try to save the environment with the alias vbox it gives Missing PEM block

Ushani Balasooriya
 

Pls ignoe prvious comment

Issue was a space before the ( bracer. Correct command is as below.

bosh -e 192.168.50.6 alias-env vbox --ca-cert <(bosh int vbox/creds.yml --path /director_ssl/ca)
Using environment '192.168.50.6' as anonymous user

Name Bosh Lite Director
UUID 575074fe-09db-4c88-8aae-eb8284b3d702
Version 263.2.0 (00000000)
CPI warden_cpi
Features compiled_package_cache: disabled
config_server: disabled
dns: disabled
snapshots: disabled
User (not logged in)

Succeeded

Re: When I try to save the environment with the alias vbox it gives Missing PEM block

Ushani Balasooriya
 

Issue was I had extra ) at the end of the command.
bosh -e 192.168.50.6 alias-env vbox --ca-cert <(bosh int vbox/creds.yml --path /director_ssl/ca) should be
bosh -e 192.168.50.6 alias-env vbox --ca-cert <(bosh int vbox/creds.yml --path /director_ssl/ca

When I try to save the environment with the alias vbox it gives Missing PEM block

Ushani Balasooriya
 

bosh -e 192.168.50.6 alias-env vbox --ca-cert vbox/creds.yml

Validating Director connection config:
Parsing certificate 1: Missing PEM block

Exit code 1


Please explain me the below command. What is the --path parameter? I do not have a director_ssl folder. Also Is my above command correct? I have a folder called vox and creds.yml inside it.
bosh -e 192.168.50.6 alias-env vbox --ca-cert <(bosh int vbox/creds.yml --path /director_ssl/ca)