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


Johannes Hiemer
 

Hi Arpit,
did you check: architecture='x86_64', auto_disk_config='true',
hypervisor_type='kvm', os_distro='centos', os_type='linux',
version='3421.11'

Maybe no Hypervisor of type KVM?

On Wed, 12 Jul 2017 at 10:05 Arpit Sharma <arpitvipulsharma(a)gmail.com>
wrote:

Hey! I found some keypoints....
1) when I am trying to upload that stemcell manually from horizon as
image, size is around 535 MB and I am able to launch instance also from
that image via horizon.
2) But when I am trying to create environment and executing bosh
create-env , it uploads image, but size is 3 GB. I am not able to launch
instance from that via horizon.

see these output

openstack image list

+--------------------------------------+--------------------------------------------------+--------+
| ID | Name
| Status |

+--------------------------------------+--------------------------------------------------+--------+
| 3e8eadc1-1171-49a7-affb-76b819105c9c | samestemcellmanually
| active |
| 103cb62d-c40b-481b-b821-74ec7fb9e9a9 |
bosh-openstack-kvm-centos-7-go_agent-raw/3421.11 | active |

openstack image show 3e8eadc1-1171-49a7-affb-76b819105c9c
+------------------+------------------------------------------------------+
| Field | Value |
+------------------+------------------------------------------------------+
| checksum | a98478d63957cafab6c06eb88d26e795 |
| container_format | bare |
| created_at | 2017-07-12T07:47:45Z |
| disk_format | raw |
| file | /v2/images/3e8eadc1-1171-49a7-affb-76b819105c9c/file |
| id | 3e8eadc1-1171-49a7-affb-76b819105c9c |
| min_disk | 0 |
| min_ram | 0 |
| name | samestemcellmanually |
| owner | 0b57c21403bb46d2a77de147c506ae89 |
| protected | False |
| schema | /v2/schemas/image |
| size | 561621381 |
| status | active |
| tags | |
| updated_at | 2017-07-12T07:55:19Z |
| virtual_size | None |
| visibility | public



openstack image show 103cb62d-c40b-481b-b821-74ec7fb9e9a9

+------------------+-------------------------------------------------------------------------------------------------------------------------------+
| Field | Value
|

+------------------+-------------------------------------------------------------------------------------------------------------------------------+
| checksum | 980d07ff5a1c5649173bb02c2d34707a
|
| container_format | bare
|
| created_at | 2017-07-12T07:42:29Z
|
| disk_format | raw
|
| file | /v2/images/103cb62d-c40b-481b-b821-74ec7fb9e9a9/file
|
| id | 103cb62d-c40b-481b-b821-74ec7fb9e9a9
|
| min_disk | 0
|
| min_ram | 0
|
| name | bosh-openstack-kvm-centos-7-go_agent-raw/3421.11
|
| owner | 0b57c21403bb46d2a77de147c506ae89
|
| properties | architecture='x86_64', auto_disk_config='true',
hypervisor_type='kvm', os_distro='centos', os_type='linux',
version='3421.11' |
| protected | False
|
| schema | /v2/schemas/image
|
| size | 3221225472
|
| status | active
|
| tags |
|
| updated_at | 2017-07-12T07:42:37Z
|
| virtual_size | None
|
| visibility | private
|


3) same things are happening with CLI. I am able to launch instance from
manually uploaded image.

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