[Openstack] 'nova boot' : 'No valid host was found'
George Shuklin
george.shuklin at gmail.com
Tue Dec 3 11:55:15 UTC 2013
How many free memory you got left after devstack installation?
Anyway, reason and details are in console with nova-schedule.
02.12.2013 23:24 пользователь "John Smith" <lbalbalba at gmail.com> написал:
> Hi,
>
>
> Im trying out devstack. But whenever I try to start a flavor larger
> than m1.nano, I get this error : " No valid host was found."
>
> I dont know where to even begin to troubleshoot this. Any and all help
> is appreciated.
>
>
>
> Regards,
>
>
> John Smith
>
>
> ----------------------------------------------------------------------
> $ source /usr/local/src/devstack/openrc admin
> -bash-4.2$ wget
> https://launchpadlibrarian.net/83303699/cirros-0.3.0-i386-disk.img
> --2013-12-02 16:09:37--
> https://launchpadlibrarian.net/83303699/cirros-0.3.0-i386-disk.img
> Resolving launchpadlibrarian.net (launchpadlibrarian.net)...
> 91.189.89.228, 91.189.89.229
> Connecting to launchpadlibrarian.net
> (launchpadlibrarian.net)|91.189.89.228|:443... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 9159168 (8.7M) [text/plain]
> Saving to: âcirros-0.3.0-i386-disk.imgâ
>
>
> 100%[=======================================================================================================================================>]
> 9,159,168 1.70MB/s in 5.3s
>
> 2013-12-02 16:09:43 (1.64 MB/s) - âcirros-0.3.0-i386-disk.imgâ saved
> [9159168/9159168]
>
> -bash-4.2$ glance image-create --name=cirros-0.3.0-i386
> --is-public=true --container-format=bare --disk-format=qcow2 <
> cirros-0.3.0-i386-disk.img
> +------------------+--------------------------------------+
> | Property | Value |
> +------------------+--------------------------------------+
> | checksum | 90169ba6f09b5906a7f0755bd00bf2c3 |
> | container_format | bare |
> | created_at | 2013-12-02T21:09:50 |
> | deleted | False |
> | deleted_at | None |
> | disk_format | qcow2 |
> | id | 597221dd-5be5-4e56-8339-11adbe5653bf |
> | is_public | True |
> | min_disk | 0 |
> | min_ram | 0 |
> | name | cirros-0.3.0-i386 |
> | owner | 2d526ede707349f2813b06bf1b6e4a0c |
> | protected | False |
> | size | 9159168 |
> | status | active |
> | updated_at | 2013-12-02T21:09:51 |
> +------------------+--------------------------------------+
> -bash-4.2$ glance image-list
>
> +--------------------------------------+---------------------------------+-------------+------------------+----------+--------+
> | ID | Name
> | Disk Format | Container Format | Size | Status |
>
> +--------------------------------------+---------------------------------+-------------+------------------+----------+--------+
> | 597221dd-5be5-4e56-8339-11adbe5653bf | cirros-0.3.0-i386
> | qcow2 | bare | 9159168 | active |
> | 799e3f3f-83be-402b-9837-f94cc19e97ff | cirros-0.3.1-x86_64-uec
> | ami | ami | 25165824 | active |
> | 69ac528f-48b1-4f22-b71a-386ada686ba9 |
> cirros-0.3.1-x86_64-uec-kernel | aki | aki |
> 4955792 | active |
> | 9d094640-e2e2-4bef-b07e-85f375b5e5ea |
> cirros-0.3.1-x86_64-uec-ramdisk | ari | ari |
> 3714968 | active |
>
> +--------------------------------------+---------------------------------+-------------+------------------+----------+--------+
> -bash-4.2$ nova flavor-list
>
> +----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
> | ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs |
> RXTX_Factor | Is_Public |
>
> +----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
> | 1 | m1.tiny | 512 | 1 | 0 | | 1 | 1.0
> | True |
> | 2 | m1.small | 2048 | 20 | 0 | | 1 | 1.0
> | True |
> | 3 | m1.medium | 4096 | 40 | 0 | | 2 | 1.0
> | True |
> | 4 | m1.large | 8192 | 80 | 0 | | 4 | 1.0
> | True |
> | 42 | m1.nano | 64 | 0 | 0 | | 1 | 1.0
> | True |
> | 5 | m1.xlarge | 16384 | 160 | 0 | | 8 | 1.0
> | True |
> | 84 | m1.micro | 128 | 0 | 0 | | 1 | 1.0
> | True |
>
> +----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
> -bash-4.2$ nova boot --flavor m1.small --image cirros-0.3.0-i386 myvm
>
> n+--------------------------------------+--------------------------------------+
> | Property | Value
> |
>
> +--------------------------------------+--------------------------------------+
> | OS-DCF:diskConfig | MANUAL
> |
> | OS-EXT-AZ:availability_zone | nova
> |
> | OS-EXT-SRV-ATTR:host | None
> |
> | OS-EXT-SRV-ATTR:hypervisor_hostname | None
> |
> | OS-EXT-SRV-ATTR:instance_name | instance-00000001
> |
> | OS-EXT-STS:power_state | 0
> |
> | OS-EXT-STS:task_state | scheduling
> |
> | OS-EXT-STS:vm_state | building
> |
> | OS-SRV-USG:launched_at | None
> |
> | OS-SRV-USG:terminated_at | None
> |
> | accessIPv4 |
> |
> | accessIPv6 |
> |
> | adminPass | awDbZDS6uNof
> |
> | config_drive |
> |
> | created | 2013-12-02T21:10:26Z
> |
> | flavor | m1.small
> |
> | hostId |
> |
> | id |
> 585fe5f3-e3ab-46b5-adf6-1da0c112bda4 |
> | image | cirros-0.3.0-i386
> |
> | key_name | None
> |
> | metadata | {}
> |
> | name | myvm
> |
> | os-extended-volumes:volumes_attached | []
> |
> | progress | 0
> |
> | security_groups | [{u'name': u'default'}]
> |
> | status | BUILD
> |
> | tenant_id | 2d526ede707349f2813b06bf1b6e4a0c
> |
> | updated | 2013-12-02T21:10:26Z
> |
> | user_id | fe775b8220d5436380f0de7ec61cfae3
> |
>
> +--------------------------------------+--------------------------------------+
>
> -bash-4.2$ nova list
>
> +--------------------------------------+------+--------+------------+-------------+--------------------+
> | ID | Name | Status | Task State |
> Power State | Networks |
>
> +--------------------------------------+------+--------+------------+-------------+--------------------+
> | 585fe5f3-e3ab-46b5-adf6-1da0c112bda4 | myvm | BUILD | spawning |
> NOSTATE | private=10.4.128.2 |
>
> +--------------------------------------+------+--------+------------+-------------+--------------------+
> -bash-4.2$ nova show myvm
>
> +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
> | Property | Value
>
> |
>
> +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
> | OS-DCF:diskConfig | MANUAL
>
> |
> | OS-EXT-AZ:availability_zone | nova
>
> |
> | OS-EXT-SRV-ATTR:host | localhost.localdomain
>
> |
> | OS-EXT-SRV-ATTR:hypervisor_hostname | localhost.localdomain
>
> |
> | OS-EXT-SRV-ATTR:instance_name | instance-00000001
>
> |
> | OS-EXT-STS:power_state | 0
>
> |
> | OS-EXT-STS:task_state | None
>
> |
> | OS-EXT-STS:vm_state | error
>
> |
> | OS-SRV-USG:launched_at | None
>
> |
> | OS-SRV-USG:terminated_at | None
>
> |
> | accessIPv4 |
>
> |
> | accessIPv6 |
>
> |
> | config_drive |
>
> |
> | created | 2013-12-02T21:10:26Z
>
> |
> | fault | {u'message': u'No valid host
> was found. ', u'code': 500, u'details': u' File
> "/opt/stack/nova/nova/scheduler/filter_scheduler.py", line 107, in
> schedule_run_instance |
> | | raise
> exception.NoValidHost(reason="")
>
> |
> | | ', u'created':
> u'2013-12-02T21:12:51Z'}
>
> |
> | flavor | m1.small (2)
>
> |
> | hostId |
> 9118a70a83e5bcab35ef4c806b5608f38529fa88f34198f0f5e515b4
>
> |
> | id |
> 585fe5f3-e3ab-46b5-adf6-1da0c112bda4
>
> |
> | image | cirros-0.3.0-i386
> (597221dd-5be5-4e56-8339-11adbe5653bf)
>
> |
> | key_name | None
>
> |
> | metadata | {}
>
> |
> | name | myvm
>
> |
> | os-extended-volumes:volumes_attached | []
>
> |
> | private network | 10.4.128.2
>
> |
> | security_groups | default
>
> |
> | status | ERROR
>
> |
> | tenant_id |
> 2d526ede707349f2813b06bf1b6e4a0c
>
> |
> | updated | 2013-12-02T21:12:51Z
>
> |
> | user_id |
> fe775b8220d5436380f0de7ec61cfae3
>
> |
>
> +--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
> -bash-4.2$
>
> _______________________________________________
> Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to : openstack at lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20131203/282de1ab/attachment.html>
More information about the Openstack
mailing list