Re: Can I clear /var/vcap/micro_bosh/data/cache?
adrian.kurt@...
Hi Steffen
toggle quoted messageShow quoted text
Did you try the bosh cleanup command? Kind regards Adrian
-----Original Message-----
From: Steffen Uhlig [mailto:Steffen.Uhlig(a)de.ibm.com] Sent: Donnerstag, 19. Oktober 2017 15:58 To: cf-bosh(a)lists.cloudfoundry.org Subject: [cf-bosh] Can I clear /var/vcap/micro_bosh/data/cache? Hi, I have a BOSH director where I need to free up some disk space. I noticed a number of large files in /var/vcap/micro_bosh/data/cache. Is it safe to delete them? Regards Steffen
|
|
Can I clear /var/vcap/micro_bosh/data/cache?
Hi,
I have a BOSH director where I need to free up some disk space. I noticed a number of large files in /var/vcap/micro_bosh/data/cache. Is it safe to delete them? Regards Steffen
|
|
Bosh Director issue accessing certificates from CredHub
Michael Stancampiano
The following type of errors are occurring when Director attempts to access certificates stored in CredHub during a deployment:
- Failed to fetch variable '/secrets/consul_agent_cert/v1' from config server: Expected data[0] to have key 'value' - Failed to fetch variable '/secrets/consul_agent_cert/v1' from config server: Expected data[0] to have key 'value' The manifest deployment file uses dot notation to access the certificate values. Examples: agent_cert: ((/secrets/consul_agent_cert/v1.certificate)) agent_key: ((/secrets/consul_agent_cert/v1.private_key)) Other CredHub types (password, ssh, value) are processed successfully by Director. The certificates appear to be correctly formatted and returned when using a client (curl, postman) to access them via the CredHub REST API. Is there a known issue with Director accessing certificates from CredHub? Our Director level is 262.3. Thanks for any information that can be provided.
|
|
Re: How to access the IP of my other instance inside my app
Ushani Balasooriya
Thanks Eric. I could do it by using a small bash script . Thanks for your input.
|
|
Re: Stemcell upload issue Error: CPI error 'Bosh::Clouds::CloudError' with message
Danny Berger
Hi - you may want to verify that your director has connectivity to the
toggle quoted messageShow quoted text
internet and AWS API in the us-east-1 region. Perhaps you can try running the following after SSH'ing to the director. $ curl -vvv https://ec2.us-east-1.amazonaws.com Danny
On Fri, Sep 22, 2017 at 12:26 PM, Krish J <imur1978(a)gmail.com> wrote:
Hi All, --
Danny Berger
|
|
Re: How to access the IP of my other instance inside my app
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,
|
|
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
|
|
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,
|
|
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,
|
|
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
|
|