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


Johannes Hiemer
 

Arpit,
for debugging purpose: please try to download a stemcells and upload it by
hand into OS. See if it is working, if not you might have the wrong
stemcell. (there is a difference between the format: default and raw).

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

Dear All,

I am deploying bosh direct server on Openstack Newton(RDO
Project/Packstack). When I am creating environment, vm creation with
stemcell have failed. I know this error is related to openstack
environment. At openstack level it is showing no valid host found and
Filter ImagePropertiesFilter returned 0 hosts. I have tried directly to
deploy VM from bosh-openstack-kvm-ubuntu-trusty-go_agent/3421.9 image.. But
it is also failed. I have installed openstack on machine with 4VCPU,24GB
RAM and 295GB local storage... Is this resources are enough for launching
of VM from bosh-openstack-kvm-ubuntu-trusty-go_agent/3421.9 image? Is there
any issue with this image?

On the other side when I am creating instances on Openstack.. they are
working ok. That means openstack is working ok. But why it is stucking at
director deployment. For your response, here I am copying error.


Started validating
Downloading release 'bosh'... Skipped [Found in local cache] (00:00:00)
Validating release 'bosh'... Finished (00:00:00)
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:01)
Finished validating (00:00:03)

Started installing CPI
Compiling package
'ruby_openstack_cpi/6576c0d52231e773f4ad53f5c5a0785c4247696a'... Finished
(00:01:24)
Compiling package
'bosh_openstack_cpi/918abecbb3015ee383d5cb2af23e8dbfed6392d1'... Finished
(00:00:01)
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:01:26)

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

Started deploying
Creating VM for instance 'bosh/0' from stemcell
'55f5c6b5-1f8c-4f82-acd1-92084374a92c'... Failed (00:00:08)
Failed deploying (00:00:08)

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

Deploying:
Creating instance 'bosh/0':
Creating VM:
Creating vm with stemcell cid '55f5c6b5-1f8c-4f82-acd1-92084374a92c':
CPI 'create_vm' method responded with error:
CmdError{"type":"Bosh::Clouds::VMCreationFailed","message":"Server
`75fd53e2-0ec4-4089-a952-92f4703f2ccd' state is error, expected active\nNo
valid host was found. There are not enough hosts available. File
\"/usr/lib/python2.7/site-packages/nova/conductor/manager.py\", line 496,
in build_instances\n context, request_spec, filter_properties)\n File
\"/usr/lib/python2.7/site-packages/nova/conductor/manager.py\", line 567,
in _schedule_instances\n hosts =
self.scheduler_client.select_destinations(context, spec_obj)\n File
\"/usr/lib/python2.7/site-packages/nova/scheduler/utils.py\", line 370, in
wrapped\n return func(*args, **kwargs)\n File
\"/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py\",
line 51, in select_destinations\n return
self.queryclient.select_destinations(context, spec_obj)\n File
\"/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py\",
line 37, in __run_method\
n ret
urn getattr(self.instance, __name)(*args, **kwargs)\n File
\"/usr/lib/python2.7/site-packages/nova/scheduler/client/query.py\", line
32, in select_destinations\n return
self.scheduler_rpcapi.select_destinations(context, spec_obj)\n File
\"/usr/lib/python2.7/site-packages/nova/scheduler/rpcapi.py\", line 126, in
select_destinations\n return cctxt.call(ctxt, 'select_destinations',
**msg_args)\n File
\"/usr/lib/python2.7/site-packages/oslo_messaging/rpc/client.py\", line
169, in call\n retry=self.retry)\n File
\"/usr/lib/python2.7/site-packages/oslo_messaging/transport.py\", line 97,
in _send\n timeout=timeout, retry=retry)\n File
\"/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py\",
line 464, in send\n retry=retry)\n File
\"/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py\",
line 455, in _send\n raise result\n","ok_to_retry":true}

Exit code 1

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