Date   

Re: Error with bosh director deployment

Johannes Hiemer
 

No it is just a complete example. Remove the section if you don't need it.

On 11. Jul 2017, at 09:23, Arpit Sharma <arpitvipulsharma(a)gmail.com> wrote:

Hey Johannes,

Thanks for your response. Are you asking me to create other machine with postgre database?

Here I dont have any external database machine..


Re: Error with bosh director deployment

Arpit Sharma
 

Hi, Thanks for your response. Are you asking me to create external database machine? Here I am not using any external database..


Re: Error with bosh director deployment

Arpit Sharma
 

Hey Johannes,

Thanks for your response. Are you asking me to create other machine with postgre database?

Here I dont have any external database machine..


Re: Error with bosh director deployment

Johannes Hiemer
 

Here you go:

#!/bin/bash
bosh create-env bosh.yml \
-o openstack/cpi.yml \
--state=/workspace/deployments/bosh-1/state.json \
--vars-store=/workspace/deployments/bosh-1/creds.yml \
-v director_name=bosh-1 \
-v internal_cidr=1.1.1.0/24 \
-v internal_gw=1.1.1.0.254 \
-v internal_ip=1.1.1.4 \
-v auth_url=https://your.os-host.com:5000/v3 \
-v default_key_name=bosh-dev \
-v default_security_groups=[bosh] \
-v net_id=4e758eb5-787d-4e17-ac34-b97aeac6f022 \
-v az=zone00 \
-v region=region00 \
-v openstack_password=123455678 \
-v openstack_username=yourUser \
-v openstack_domain=yourDomain \
-v openstack_project=yourProject \
-v private_key=theKey.pem \
-v external_db_host=1.1.1.3 \
-v external_db_port=5432 \
-v external_db_user=dbUser \
-v external_db_password=dbPassword

On Tue, 11 Jul 2017 at 08:57 Arpit Sharma <arpitvipulsharma(a)gmail.com>
wrote:

Hi Johannes,

After correction of security group, again I am getting this error....

creating stemcell (bosh-openstack-kvm-ubuntu-trusty-go_agent 3421.9):
CPI 'create_stemcell' method responded with error:
CmdError{"type":"InvalidCall","message":"Arguments are not correct,
details: 'Invalid OpenStack cloud properties:
#\u003cMembrane::SchemaValidationError: { openstack =\u003e { tenant
=\u003e Missing key } }\u003e'","ok_to_retry":false}

Exit code 1

Can you update me what is wrong again with this command?


Re: Error with bosh director deployment

Arpit Sharma
 

Hi Johannes,

After correction of security group, again I am getting this error....

creating stemcell (bosh-openstack-kvm-ubuntu-trusty-go_agent 3421.9):
CPI 'create_stemcell' method responded with error: CmdError{"type":"InvalidCall","message":"Arguments are not correct, details: 'Invalid OpenStack cloud properties: #\u003cMembrane::SchemaValidationError: { openstack =\u003e { tenant =\u003e Missing key } }\u003e'","ok_to_retry":false}

Exit code 1

Can you update me what is wrong again with this command?


Bosh Director question related to CredHub

Michael Stancampiano
 

Bosh Director with CredHub enabled can handle the processing of credential identifiers in a manifest file instead of the actual value/literal. For example:
password: (( db_pwd))

Can Bosh Director process a value in a manifest file that contains both literals and a credential identifier? For example:
db_uri: posgressql://db_user:((db_pwd))@dbhost:1234/dbname

Thanks.


Re: Error with bosh director deployment

Arpit Sharma
 

Hi Johannes,

Got it. I think i need to put brackets.


Re: Error with bosh director deployment

Johannes Hiemer
 

In the CLI command itself

On 10. Jul 2017, at 20:52, Arpit Sharma <arpitvipulsharma(a)gmail.com> wrote:

Hi Johannes,

Thanks for your response. In which file i need to make this change. I am already passing these variable values in command.


Re: Error with bosh director deployment

Arpit Sharma
 

In which file I need to make this change..? can you update me?


Re: Error with bosh director deployment

Arpit Sharma
 

Hi Johannes,

Thanks for your response. In which file i need to make this change. I am already passing these variable values in command.


Re: Error with bosh director deployment

Arpit Sharma
 

Hi Tim,

I didn't get you. I am using vim. I have already done setup of openstack. On this setup I want to deploy Director. I am following this link
https://bosh.io/docs/init-openstack.html
I havn't done any changes in manifest. I am using same which i got from git clone.


Re: Error with bosh director deployment

Tim Lawrence
 

oops, I should have read the thread :-)

On Mon, Jul 10, 2017 at 4:02 PM, Johannes Hiemer <jvhiemer(a)gmail.com> wrote:

As stated before changed security groups to default_security_groups=[default],
then it should work.

On Mon, 10 Jul 2017 at 16:56 Tim Lawrence <tim.lawrence1984(a)gmail.com>
wrote:

looks like some kind of character encoding issue.. which editor did you
edit the manifest in? Are you using a Unicode Charset or something?

On Mon, Jul 10, 2017 at 1:35 PM, Arpit Sharma <arpit.sharma(a)hexad.de>
wrote:


Dear Team,


I am deploying bosh environment. When I am trying to deply director
server, I am getting following error. Can you help me with this


creating stemcell (bosh-openstack-kvm-ubuntu-trusty-go_agent 3421.9):
CPI 'create_stemcell' method responded with error:
CmdError{"type":"InvalidCall","message":"Arguments are not correct,
details: 'Invalid OpenStack cloud properties: #\u003cMembrane::SchemaValidationError:
{ openstack =\u003e { default_security_groups =\u003e Expected instance of
Array, given instance of String, tenant =\u003e Missing key }
}\u003e'","ok_to_retry":false}

Exit code 1

I am using below mentioned command for the same:

bosh create-env bosh-deployment/bosh.yml \
--state=state.json \
--vars-store=creds.yml \
-o bosh-deployment/openstack/cpi.yml \
-v director_name=bosh-1 \
-v internal_cidr=192.168.1.0/24 \
-v internal_gw=192.168.1.1 \
-v internal_ip=192.168.1.7 \
-v auth_url=http://10.100.10.151:5000/v2.0 \
-v az=nova \
-v default_key_name=mykey \
-v default_security_groups=default \
-v net_id=54093c23-1a21-4e1c-ab3d-88a70986bf38 \
-v openstack_password=4b61a9e4bcc64b5d \
-v openstack_username=admin \
-v openstack_domain=Default \
-v openstack_project=admin \
-v private_key=/root/.ssh/privroot_rsa \
-v region=RegionOne








Mit freundlichen Grüßen

*Arpit*
*Sharma **System Engineer*


Hexad GmbH | Porschestr. 58 | 38440 Wolfsburg
Mobile: +49-015163290303 <+49%201516%203290303>
Telefon: +49 (5361) 27 27 029 <+49%205361%202727029>
Telefax: -
www.hexad.de
An *ISO 9001:2008 & CMMI Level 3* company
Registergericht: Amtsgericht Offenbach am Main
HRB Nr./ Commercial Register No.: 45139
Geschäftsführer/ Chairman: Suresh Shamanna
------------------------------
This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise confidential information. If you have
received it in error, please notify the sender immediately and delete the
original. Any other use of the email by you is prohibited.


Re: Question on Bosh download manifest command with CredHub enabled

Dmitriy Kalinin
 

manifest would contain credential identifiers.

Sent from my iPhone

On Jul 10, 2017, at 7:40 AM, Michael Stancampiano <mstancamp(a)gmail.com> wrote:

Assume CredHub is installed and enabled to be used with Bosh Director. A deployment was performed whose manifest file contained variable identifiers for credentials and not the real values. This would have been of the form ((credential_identifier)) in the manifest file. After the successful deployment, the bosh download manifest <deployment_name> command is executed. Does the downloaded manifest contain the credential identifiers, or the real values (such as a password)?


Re: Error with bosh director deployment

Johannes Hiemer
 

As stated before changed security groups to default_security_groups=[default],
then it should work.

On Mon, 10 Jul 2017 at 16:56 Tim Lawrence <tim.lawrence1984(a)gmail.com>
wrote:

looks like some kind of character encoding issue.. which editor did you
edit the manifest in? Are you using a Unicode Charset or something?

On Mon, Jul 10, 2017 at 1:35 PM, Arpit Sharma <arpit.sharma(a)hexad.de>
wrote:


Dear Team,


I am deploying bosh environment. When I am trying to deply director
server, I am getting following error. Can you help me with this


creating stemcell (bosh-openstack-kvm-ubuntu-trusty-go_agent 3421.9):
CPI 'create_stemcell' method responded with error:
CmdError{"type":"InvalidCall","message":"Arguments are not correct,
details: 'Invalid OpenStack cloud properties:
#\u003cMembrane::SchemaValidationError: { openstack =\u003e {
default_security_groups =\u003e Expected instance of Array, given instance
of String, tenant =\u003e Missing key } }\u003e'","ok_to_retry":false}

Exit code 1

I am using below mentioned command for the same:

bosh create-env bosh-deployment/bosh.yml \
--state=state.json \
--vars-store=creds.yml \
-o bosh-deployment/openstack/cpi.yml \
-v director_name=bosh-1 \
-v internal_cidr=192.168.1.0/24 \
-v internal_gw=192.168.1.1 \
-v internal_ip=192.168.1.7 \
-v auth_url=http://10.100.10.151:5000/v2.0 \
-v az=nova \
-v default_key_name=mykey \
-v default_security_groups=default \
-v net_id=54093c23-1a21-4e1c-ab3d-88a70986bf38 \
-v openstack_password=4b61a9e4bcc64b5d \
-v openstack_username=admin \
-v openstack_domain=Default \
-v openstack_project=admin \
-v private_key=/root/.ssh/privroot_rsa \
-v region=RegionOne








Mit freundlichen Grüßen

*Arpit*
*Sharma **System Engineer*


Hexad GmbH | Porschestr. 58 | 38440 Wolfsburg
Mobile: +49-015163290303 <+49%201516%203290303>
Telefon: +49 (5361) 27 27 029 <+49%205361%202727029>
Telefax: -
www.hexad.de
An *ISO 9001:2008 & CMMI Level 3* company
Registergericht: Amtsgericht Offenbach am Main
HRB Nr./ Commercial Register No.: 45139
Geschäftsführer/ Chairman: Suresh Shamanna
------------------------------
This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise confidential information. If you have
received it in error, please notify the sender immediately and delete the
original. Any other use of the email by you is prohibited.


Re: Error with bosh director deployment

Tim Lawrence
 

looks like some kind of character encoding issue.. which editor did you
edit the manifest in? Are you using a Unicode Charset or something?

On Mon, Jul 10, 2017 at 1:35 PM, Arpit Sharma <arpit.sharma(a)hexad.de> wrote:


Dear Team,


I am deploying bosh environment. When I am trying to deply director
server, I am getting following error. Can you help me with this


creating stemcell (bosh-openstack-kvm-ubuntu-trusty-go_agent 3421.9):
CPI 'create_stemcell' method responded with error:
CmdError{"type":"InvalidCall","message":"Arguments are not correct,
details: 'Invalid OpenStack cloud properties: #\u003cMembrane::SchemaValidationError:
{ openstack =\u003e { default_security_groups =\u003e Expected instance of
Array, given instance of String, tenant =\u003e Missing key }
}\u003e'","ok_to_retry":false}

Exit code 1

I am using below mentioned command for the same:

bosh create-env bosh-deployment/bosh.yml \
--state=state.json \
--vars-store=creds.yml \
-o bosh-deployment/openstack/cpi.yml \
-v director_name=bosh-1 \
-v internal_cidr=192.168.1.0/24 \
-v internal_gw=192.168.1.1 \
-v internal_ip=192.168.1.7 \
-v auth_url=http://10.100.10.151:5000/v2.0 \
-v az=nova \
-v default_key_name=mykey \
-v default_security_groups=default \
-v net_id=54093c23-1a21-4e1c-ab3d-88a70986bf38 \
-v openstack_password=4b61a9e4bcc64b5d \
-v openstack_username=admin \
-v openstack_domain=Default \
-v openstack_project=admin \
-v private_key=/root/.ssh/privroot_rsa \
-v region=RegionOne








Mit freundlichen Grüßen

*Arpit*
*Sharma **System Engineer*


Hexad GmbH | Porschestr. 58 | 38440 Wolfsburg
Mobile: +49-015163290303 <+49%201516%203290303>
Telefon: +49 (5361) 27 27 029 <+49%205361%202727029>
Telefax: -
www.hexad.de
An *ISO 9001:2008 & CMMI Level 3* company
Registergericht: Amtsgericht Offenbach am Main
HRB Nr./ Commercial Register No.: 45139
Geschäftsführer/ Chairman: Suresh Shamanna
------------------------------
This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise confidential information. If you have
received it in error, please notify the sender immediately and delete the
original. Any other use of the email by you is prohibited.


Question on Bosh download manifest command with CredHub enabled

Michael Stancampiano
 

Assume CredHub is installed and enabled to be used with Bosh Director. A deployment was performed whose manifest file contained variable identifiers for credentials and not the real values. This would have been of the form ((credential_identifier)) in the manifest file. After the successful deployment, the bosh download manifest <deployment_name> command is executed. Does the downloaded manifest contain the credential identifiers, or the real values (such as a password)?


Re: Error with bosh director deployment

Prashant Ghorpade
 

Try with following, as a array...

v default_security_groups=[default]

Thanks,
Prashant

-----Original Message-----
From: Arpit Sharma [mailto:arpitvipulsharma(a)gmail.com]
Sent: Monday, July 10, 2017 7:23 PM
To: cf-bosh(a)lists.cloudfoundry.org
Subject: [cf-bosh] Error with bosh director deployment

EXTERNAL

Dear Team,

I am deploying bosh environment. When I am trying to deply director server, I am getting following error. Can you help me with this

creating stemcell (bosh-openstack-kvm-ubuntu-trusty-go_agent 3421.9):
CPI 'create_stemcell' method responded with error: CmdError{"type":"InvalidCall","message":"Arguments are not correct, details: 'Invalid OpenStack cloud properties: #\u003cMembrane::SchemaValidationError: { openstack =\u003e { default_security_groups =\u003e Expected instance of Array, given instance of String, tenant =\u003e Missing key } }\u003e'","ok_to_retry":false}

Exit code 1

I am using below mentioned command for the same:

bosh create-env bosh-deployment/bosh.yml \
--state=state.json \
--vars-store=creds.yml \
-o bosh-deployment/openstack/cpi.yml \
-v director_name=bosh-1 \
-v internal_cidr=192.168.1.0/24 \
-v internal_gw=192.168.1.1 \
-v internal_ip=192.168.1.7 \
-v auth_url=http://10.100.10.151:5000/v2.0 \
-v az=nova \
-v default_key_name=mykey \
-v default_security_groups=default \
-v net_id=54093c23-1a21-4e1c-ab3d-88a70986bf38 \
-v openstack_password=4b61a9e4bcc64b5d \
-v openstack_username=admin \
-v openstack_domain=Default \
-v openstack_project=admin \
-v private_key=/root/.ssh/privroot_rsa \
-v region=RegionOne


Error with bosh director deployment

Arpit Sharma
 

Dear Team,

I am deploying bosh environment. When I am trying to deply director server, I am getting following error. Can you help me with this

creating stemcell (bosh-openstack-kvm-ubuntu-trusty-go_agent 3421.9):
CPI 'create_stemcell' method responded with error: CmdError{"type":"InvalidCall","message":"Arguments are not correct, details: 'Invalid OpenStack cloud properties: #\u003cMembrane::SchemaValidationError: { openstack =\u003e { default_security_groups =\u003e Expected instance of Array, given instance of String, tenant =\u003e Missing key } }\u003e'","ok_to_retry":false}

Exit code 1

I am using below mentioned command for the same:

bosh create-env bosh-deployment/bosh.yml \

--state=state.json \
--vars-store=creds.yml \
-o bosh-deployment/openstack/cpi.yml \
-v director_name=bosh-1 \
-v internal_cidr=192.168.1.0/24 \
-v internal_gw=192.168.1.1 \
-v internal_ip=192.168.1.7 \
-v auth_url=http://10.100.10.151:5000/v2.0 \
-v az=nova \
-v default_key_name=mykey \
-v default_security_groups=default \
-v net_id=54093c23-1a21-4e1c-ab3d-88a70986bf38 \
-v openstack_password=4b61a9e4bcc64b5d \
-v openstack_username=admin \
-v openstack_domain=Default \
-v openstack_project=admin \
-v private_key=/root/.ssh/privroot_rsa \
-v region=RegionOne


Error with bosh director deployment

Arpit Sharma <arpit.sharma@...>
 

Dear Team,


I am deploying bosh environment. When I am trying to deply director server, I am getting following error. Can you help me with this


creating stemcell (bosh-openstack-kvm-ubuntu-trusty-go_agent 3421.9):
CPI 'create_stemcell' method responded with error: CmdError{"type":"InvalidCall","message":"Arguments are not correct, details: 'Invalid OpenStack cloud properties: #\u003cMembrane::SchemaValidationError: { openstack =\u003e { default_security_groups =\u003e Expected instance of Array, given instance of String, tenant =\u003e Missing key } }\u003e'","ok_to_retry":false}

Exit code 1

I am using below mentioned command for the same:

bosh create-env bosh-deployment/bosh.yml \
--state=state.json \
--vars-store=creds.yml \
-o bosh-deployment/openstack/cpi.yml \
-v director_name=bosh-1 \
-v internal_cidr=192.168.1.0/24 \
-v internal_gw=192.168.1.1 \
-v internal_ip=192.168.1.7 \
-v auth_url=http://10.100.10.151:5000/v2.0 \
-v az=nova \
-v default_key_name=mykey \
-v default_security_groups=default \
-v net_id=54093c23-1a21-4e1c-ab3d-88a70986bf38 \
-v openstack_password=4b61a9e4bcc64b5d \
-v openstack_username=admin \
-v openstack_domain=Default \
-v openstack_project=admin \
-v private_key=/root/.ssh/privroot_rsa \
-v region=RegionOne
?







Mit freundlichen Grüßen

Arpit Sharma
System Engineer

[cid:logo-new_d82ab629-1cab-4160-8c5e-66b51a256ed9.jpg]

Hexad GmbH | Porschestr. 58 | 38440 Wolfsburg
Mobile: +49-015163290303
Telefon: +49 (5361) 27 27 029
Telefax: -
www.hexad.de<http://www.hexad.de>

An ISO 9001:2008 & CMMI Level 3 company
Registergericht: Amtsgericht Offenbach am Main
HRB Nr./ Commercial Register No.: 45139
Geschäftsführer/ Chairman: Suresh Shamanna
________________________________
This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.


Re: Bosh Deploy Says NoSuchKey However Object exists in the blobstore

nitin padalia
 

agents were pointing to old blobstore, updating it fixed the isseue. However I believe bosh upload release/stemcell --fix should've fix it.