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


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


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.


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.


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.


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.


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.


Arpit Sharma
 

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


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.


Arpit Sharma
 

Hi Johannes,

Got it. I think i need to put brackets.


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?


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?


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..


Arpit Sharma
 

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


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..


Arpit Sharma
 

Hey,
I am agree with you but whats wrong with this command

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

why it is giving 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


Johannes Hiemer
 

Arpit, you did not specify a domain. Is your OS installation having v2 or
v3 API endpoints?

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

Hey,
I am agree with you but whats wrong with this command

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

why it is giving 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


Arpit Sharma
 

Hi Johannes,

I am using openstack newton, which i deployed by RDO project, packstack. Let me share you catalog...

swift object-store RegionOne
Admin
http://10.100.10.151:8080/v1/AUTH_0b57c21403bb46d2a77de147c506ae89
Internal
http://10.100.10.151:8080/v1/AUTH_0b57c21403bb46d2a77de147c506ae89
Public
http://10.100.10.151:8080/v1/AUTH_0b57c21403bb46d2a77de147c506ae89
cinderv2 volumev2 RegionOne
Admin
http://10.100.10.151:8776/v2/0b57c21403bb46d2a77de147c506ae89
Internal
http://10.100.10.151:8776/v2/0b57c21403bb46d2a77de147c506ae89
Public
http://10.100.10.151:8776/v2/0b57c21403bb46d2a77de147c506ae89
neutron network RegionOne
Admin
http://10.100.10.151:9696
Internal
http://10.100.10.151:9696
Public
http://10.100.10.151:9696
ceilometer metering RegionOne
Admin
http://10.100.10.151:8777
Internal
http://10.100.10.151:8777
Public
http://10.100.10.151:8777
glance image RegionOne
Admin
http://10.100.10.151:9292
Internal
http://10.100.10.151:9292
Public
http://10.100.10.151:9292
cinder volume RegionOne
Admin
http://10.100.10.151:8776/v1/0b57c21403bb46d2a77de147c506ae89
Internal
http://10.100.10.151:8776/v1/0b57c21403bb46d2a77de147c506ae89
Public
http://10.100.10.151:8776/v1/0b57c21403bb46d2a77de147c506ae89
keystone identity RegionOne
Admin
http://10.100.10.151:35357/v2.0
Internal
http://10.100.10.151:5000/v2.0
Public
http://10.100.10.151:5000/v2.0
gnocchi metric RegionOne
Admin
http://10.100.10.151:8041
Internal
http://10.100.10.151:8041
Public
http://10.100.10.151:8041
nova compute RegionOne
Admin
http://10.100.10.151:8774/v2.1/0b57c21403bb46d2a77de147c506ae89
Internal
http://10.100.10.151:8774/v2.1/0b57c21403bb46d2a77de147c506ae89
Public
http://10.100.10.151:8774/v2.1/0b57c21403bb46d2a77de147c506ae89
cinderv3 volumev3 RegionOne
Admin
http://10.100.10.151:8776/v3/0b57c21403bb46d2a77de147c506ae89
Internal
http://10.100.10.151:8776/v3/0b57c21403bb46d2a77de147c506ae89
Public
http://10.100.10.151:8776/v3/0b57c21403bb46d2a77de147c506ae89
aodh alarming RegionOne
Admin
http://10.100.10.151:8042
Internal
http://10.100.10.151:8042
Public
http://10.100.10.151:8042


Arpit Sharma
 

If I am not specifying domain... it is asking domain to specify.


Arpit Sharma
 

Hi Johannes,

Got it... Issue was due to V2. I am using V2. Solved it. Done some changes in cpi.yml. That issue solved. But now I am getting other error. But I think it is related to openstack. Let me check it.