Error with bosh director deployment


Arpit Sharma
 

Hi All,

Check your command according to this. Replace values according to your environment.




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


Gw .
 

hi ,

I tried with the above ( added -v tenant=mytenantname) , but I still get the following 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}

If i exclude -v openstack_project it says
- Expected to find variables:
- openstack_project
Any suggestions ?


Arpit Sharma
 

Hi Adrian,

I have removed these parameter from file

-v openstack_domain=Default
-v openstack_project=admin

instead of these you need to enter tenant. As these are not available in keystone V2.


Arpit Sharma
 

Hi Adrian,

I have removed these parameter from file

-v openstack_domain=Default
-v openstack_project=admin

instead of these you need to enter tenant. As these are not available in keystone V2.


Adrian Monter
 

Hi Arpit,
Could you tell me what change you made in the file? i have the same problem

Thanks.


Adrian Monter
 

Hi everyone,

I have the same error "Missing key"
You could correct it?

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}

Thanks


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.


Arpit Sharma
 

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


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


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
 

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
 

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
 

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


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


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
 

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
 

Hi Johannes,

Got it. I think i need to put brackets.


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
 

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


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.