Re: Creating vm with stemcell failed.... No valid host was found. There are not enough hosts available..Filter ImagePropertiesFilter returned 0 hosts

Tyler Schultz
 

Arpit,

More recent versions of the stemcell remove the vcap user's root
privileges.

To gain root access, you can use
[cloudfoundry/os-conf-release/jobs/user_add](
https://github.com/cloudfoundry/os-conf-release/tree/master/jobs/user_add).
This release job will add a user with root privileges.

Alternatively you can use the [cloudfoundry/bosh-deployment](
https://github.com/cloudfoundry/bosh-deployment) repo. This is a routinely
updated way to deploy the latest versions of director. This repo makes
reference to the aforementioned user-add release:
https://github.com/cloudfoundry/bosh-deployment/blob/master/docs/jumpbox-user.md
.

--Tyler

On Tue, Jul 25, 2017 at 7:05 AM, Arpit Sharma <arpitvipulsharma(a)gmail.com>
wrote:

Hi Tushar & Johannes,

This time i have done setup on 8 core srever with ocata version of
openstack. I know ocata is not compatible with bosh right now. But I think
it should work. Bosh director deployment has been done successfully as
shown below message. I am also able to login with vcap user. But still I am
not able to get root access.


Started validating
Downloading release 'bosh'... Skipped [Found in local cache] (00:00:00)
Validating release 'bosh'... Finished (00:00:01)
Downloading release 'bosh-openstack-cpi'... Skipped [Found in local
cache] (00:00:00)
Validating release 'bosh-openstack-cpi'... Finished (00:00:00)
Validating cpi release... Finished (00:00:00)
Validating deployment manifest... Finished (00:00:00)
Downloading stemcell... Skipped [Found in local cache] (00:00:00)
Validating stemcell... Finished (00:00:03)
Finished validating (00:00:06)

Started installing CPI
Compiling package 'ruby_openstack_cpi/6576c0d52231e773f4ad53f5c5a0785c4247696a'...
Finished (00:03:08)
Compiling package 'bosh_openstack_cpi/918abecbb3015ee383d5cb2af23e8dbfed6392d1'...
Finished (00:00:03)
Installing packages... Finished (00:00:00)
Rendering job templates... Finished (00:00:00)
Installing job 'openstack_cpi'... Finished (00:00:00)
Finished installing CPI (00:03:12)

Starting registry... Finished (00:00:00)
Uploading stemcell 'bosh-openstack-kvm-ubuntu-trusty-go_agent/3421.9'...
Finished (00:00:08)

Started deploying
Creating VM for instance 'bosh/0' from stemcell 'b61f7cac-b039-4f8e-b90f-21296d170528'...
Finished (00:00:51)
Waiting for the agent on VM '3b17e4e7-4ccf-4984-a43e-0713e8f9974c' to
be ready... Finished (00:00:52)
Creating disk... Finished (00:00:07)
Attaching disk 'ee06c19f-55fb-413c-b185-12a125433331' to VM
'3b17e4e7-4ccf-4984-a43e-0713e8f9974c'... Finished (00:00:20)
Rendering job templates... Finished (00:00:03)
Compiling package 'ruby_openstack_cpi/6576c0d52231e773f4ad53f5c5a0785c4247696a'...
Finished (00:04:50)
Compiling package 'ruby/c1086875b047d112e46756dcb63d8f19e63b3ac4'...
Skipped [Package already compiled] (00:00:00)
Compiling package 'mysql/b7e73acc0bfe05f1c6cbfd97bf92d39b0d3155d5'...
Skipped [Package already compiled] (00:00:00)
Compiling package 'libpq/661f5817afe24fa2f18946d2757bff63246b1d0d'...
Skipped [Package already compiled] (00:00:00)
Compiling package 's3cli/bb1c1976d221fdadf13a6bc873896cd5e2433580'...
Skipped [Package already compiled] (00:00:00)
Compiling package 'bosh_openstack_cpi/918abecbb3015ee383d5cb2af23e8dbfed6392d1'...
Finished (00:00:04)
Compiling package 'director/e9cd35786422e87bd0571a4423bc947e50fe97e6'...
Skipped [Package already compiled] (00:00:01)
Compiling package 'nginx/2ec2f63293bf6f544e95969bf5e5242bc226a800'...
Skipped [Package already compiled] (00:00:00)
Compiling package 'registry/d81865cf0ad85fd79cb19aeb565bf622f2a17a83'...
Skipped [Package already compiled] (00:00:00)
Compiling package 'nats/63ae42eb73527625307ff522fb402832b407321d'...
Skipped [Package already compiled] (00:00:00)
Compiling package 'verify_multidigest/8fc5d654cebad7725c34bb08b3f60b912db7094a'...
Skipped [Package already compiled] (00:00:00)
Compiling package 'postgres-9.4/ded764a075ae7513d4718b7cf200642fdbf81ae4'...
Skipped [Package already compiled] (00:00:00)
Compiling package 'health_monitor/e9317b2ad349f019e69261558afa587537f06f25'...
Skipped [Package already compiled] (00:00:00)
Compiling package 'postgres/3b1089109c074984577a0bac1b38018d7a2890ef'...
Skipped [Package already compiled] (00:00:00)
Compiling package 'davcli/5f08f8d5ab3addd0e11171f739f072b107b30b8c'...
Skipped [Package already compiled] (00:00:00)
Updating instance 'bosh/0'... Finished (00:00:23)
Waiting for instance 'bosh/0' to be running... Finished (00:01:09)
Running the post-start scripts 'bosh/0'... Finished (00:00:00)
Finished deploying (00:08:53)

Stopping registry... Finished (00:00:00)
Cleaning up rendered CPI jobs... Finished (00:00:00)

Succeeded

Join cf-bosh@lists.cloudfoundry.org to automatically receive all group messages.