<div dir="ltr"><br><div><div class="gmail_extra">On Mon, Dec 2, 2013 at 4:17 PM, John Smith <span dir="ltr"><<a href="mailto:lbalbalba@gmail.com" target="_blank">lbalbalba@gmail.com</a>></span> wrote:<br><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
<br>
Im trying out devstack. But whenever I try to start a flavor larger<br>
than m1.nano, I get this error : " No valid host was found."<br>
<br>
I dont know where to even begin to troubleshoot this. Any and all help<br>
is appreciated.<br>
<br>
<br>
<br>
Regards,<br>
<br>
<br>
John Smith<br>
<br></blockquote><div><br></div><div>One of the causes of that message is that the scheduler cannot locate a compute host that has sufficient resources (CPUs, memory, storage) to create a VM with the requested flavor.<br>
<br><br></div><div>My first guess would be that you don't have enough memory on the machine where you're running DevStack. Check your memory usage and free disk space and see if there's enough room for an m1.small. If you don't have enough memory/disk that's your issue. If that isn't it, you'll need to check the scheduler log file to see what went wrong.<br>
</div><div><br><br></div><div>Lorin<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
----------------------------------------------------------------------<br>
$ source /usr/local/src/devstack/openrc admin<br>
-bash-4.2$ wget<br>
<a href="https://launchpadlibrarian.net/83303699/cirros-0.3.0-i386-disk.img
--2013-12-02" target="_blank">https://launchpadlibrarian.net/83303699/cirros-0.3.0-i386-disk.img<br>
--2013-12-02</a> 16:09:37--<br>
<a href="https://launchpadlibrarian.net/83303699/cirros-0.3.0-i386-disk.img" target="_blank">https://launchpadlibrarian.net/83303699/cirros-0.3.0-i386-disk.img</a><br>
Resolving <a href="http://launchpadlibrarian.net" target="_blank">launchpadlibrarian.net</a> (<a href="http://launchpadlibrarian.net" target="_blank">launchpadlibrarian.net</a>)...<br>
91.189.89.228, 91.189.89.229<br>
Connecting to <a href="http://launchpadlibrarian.net" target="_blank">launchpadlibrarian.net</a><br>
(<a href="http://launchpadlibrarian.net" target="_blank">launchpadlibrarian.net</a>)|91.189.89.228|:443... connected.<br>
HTTP request sent, awaiting response... 200 OK<br>
Length: 9159168 (8.7M) [text/plain]<br>
Saving to: âcirros-0.3.0-i386-disk.imgâ<br>
<br>
100%[=======================================================================================================================================>]<br>
9,159,168 1.70MB/s in 5.3s<br>
<br>
2013-12-02 16:09:43 (1.64 MB/s) - âcirros-0.3.0-i386-disk.imgâ saved<br>
[9159168/9159168]<br>
<br>
-bash-4.2$ glance image-create --name=cirros-0.3.0-i386<br>
--is-public=true --container-format=bare --disk-format=qcow2 <<br>
cirros-0.3.0-i386-disk.img<br>
+------------------+--------------------------------------+<br>
| Property | Value |<br>
+------------------+--------------------------------------+<br>
| checksum | 90169ba6f09b5906a7f0755bd00bf2c3 |<br>
| container_format | bare |<br>
| created_at | 2013-12-02T21:09:50 |<br>
| deleted | False |<br>
| deleted_at | None |<br>
| disk_format | qcow2 |<br>
| id | 597221dd-5be5-4e56-8339-11adbe5653bf |<br>
| is_public | True |<br>
| min_disk | 0 |<br>
| min_ram | 0 |<br>
| name | cirros-0.3.0-i386 |<br>
| owner | 2d526ede707349f2813b06bf1b6e4a0c |<br>
| protected | False |<br>
| size | 9159168 |<br>
| status | active |<br>
| updated_at | 2013-12-02T21:09:51 |<br>
+------------------+--------------------------------------+<br>
-bash-4.2$ glance image-list<br>
+--------------------------------------+---------------------------------+-------------+------------------+----------+--------+<br>
| ID | Name<br>
| Disk Format | Container Format | Size | Status |<br>
+--------------------------------------+---------------------------------+-------------+------------------+----------+--------+<br>
| 597221dd-5be5-4e56-8339-11adbe5653bf | cirros-0.3.0-i386<br>
| qcow2 | bare | 9159168 | active |<br>
| 799e3f3f-83be-402b-9837-f94cc19e97ff | cirros-0.3.1-x86_64-uec<br>
| ami | ami | 25165824 | active |<br>
| 69ac528f-48b1-4f22-b71a-386ada686ba9 |<br>
cirros-0.3.1-x86_64-uec-kernel | aki | aki |<br>
4955792 | active |<br>
| 9d094640-e2e2-4bef-b07e-85f375b5e5ea |<br>
cirros-0.3.1-x86_64-uec-ramdisk | ari | ari |<br>
3714968 | active |<br>
+--------------------------------------+---------------------------------+-------------+------------------+----------+--------+<br>
-bash-4.2$ nova flavor-list<br>
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+<br>
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs |<br>
RXTX_Factor | Is_Public |<br>
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+<br>
| 1 | m1.tiny | 512 | 1 | 0 | | 1 | 1.0<br>
| True |<br>
| 2 | m1.small | 2048 | 20 | 0 | | 1 | 1.0<br>
| True |<br>
| 3 | m1.medium | 4096 | 40 | 0 | | 2 | 1.0<br>
| True |<br>
| 4 | m1.large | 8192 | 80 | 0 | | 4 | 1.0<br>
| True |<br>
| 42 | m1.nano | 64 | 0 | 0 | | 1 | 1.0<br>
| True |<br>
| 5 | m1.xlarge | 16384 | 160 | 0 | | 8 | 1.0<br>
| True |<br>
| 84 | m1.micro | 128 | 0 | 0 | | 1 | 1.0<br>
| True |<br>
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+<br>
-bash-4.2$ nova boot --flavor m1.small --image cirros-0.3.0-i386 myvm<br>
n+--------------------------------------+--------------------------------------+<br>
| Property | Value |<br>
+--------------------------------------+--------------------------------------+<br>
| OS-DCF:diskConfig | MANUAL |<br>
| OS-EXT-AZ:availability_zone | nova |<br>
| OS-EXT-SRV-ATTR:host | None |<br>
| OS-EXT-SRV-ATTR:hypervisor_hostname | None |<br>
| OS-EXT-SRV-ATTR:instance_name | instance-00000001 |<br>
| OS-EXT-STS:power_state | 0 |<br>
| OS-EXT-STS:task_state | scheduling |<br>
| OS-EXT-STS:vm_state | building |<br>
| OS-SRV-USG:launched_at | None |<br>
| OS-SRV-USG:terminated_at | None |<br>
| accessIPv4 | |<br>
| accessIPv6 | |<br>
| adminPass | awDbZDS6uNof |<br>
| config_drive | |<br>
| created | 2013-12-02T21:10:26Z |<br>
| flavor | m1.small |<br>
| hostId | |<br>
| id | 585fe5f3-e3ab-46b5-adf6-1da0c112bda4 |<br>
| image | cirros-0.3.0-i386 |<br>
| key_name | None |<br>
| metadata | {} |<br>
| name | myvm |<br>
| os-extended-volumes:volumes_attached | [] |<br>
| progress | 0 |<br>
| security_groups | [{u'name': u'default'}] |<br>
| status | BUILD |<br>
| tenant_id | 2d526ede707349f2813b06bf1b6e4a0c |<br>
| updated | 2013-12-02T21:10:26Z |<br>
| user_id | fe775b8220d5436380f0de7ec61cfae3 |<br>
+--------------------------------------+--------------------------------------+<br>
<br>
-bash-4.2$ nova list<br>
+--------------------------------------+------+--------+------------+-------------+--------------------+<br>
| ID | Name | Status | Task State |<br>
Power State | Networks |<br>
+--------------------------------------+------+--------+------------+-------------+--------------------+<br>
| 585fe5f3-e3ab-46b5-adf6-1da0c112bda4 | myvm | BUILD | spawning |<br>
NOSTATE | private=10.4.128.2 |<br>
+--------------------------------------+------+--------+------------+-------------+--------------------+<br>
-bash-4.2$ nova show myvm<br>
+--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+<br>
| Property | Value<br>
<br>
|<br>
+--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+<br>
| OS-DCF:diskConfig | MANUAL<br>
<br>
|<br>
| OS-EXT-AZ:availability_zone | nova<br>
<br>
|<br>
| OS-EXT-SRV-ATTR:host | localhost.localdomain<br>
<br>
|<br>
| OS-EXT-SRV-ATTR:hypervisor_hostname | localhost.localdomain<br>
<br>
|<br>
| OS-EXT-SRV-ATTR:instance_name | instance-00000001<br>
<br>
|<br>
| OS-EXT-STS:power_state | 0<br>
<br>
|<br>
| OS-EXT-STS:task_state | None<br>
<br>
|<br>
| OS-EXT-STS:vm_state | error<br>
<br>
|<br>
| OS-SRV-USG:launched_at | None<br>
<br>
|<br>
| OS-SRV-USG:terminated_at | None<br>
<br>
|<br>
| accessIPv4 |<br>
<br>
|<br>
| accessIPv6 |<br>
<br>
|<br>
| config_drive |<br>
<br>
|<br>
| created | 2013-12-02T21:10:26Z<br>
<br>
|<br>
| fault | {u'message': u'No valid host<br>
was found. ', u'code': 500, u'details': u' File<br>
"/opt/stack/nova/nova/scheduler/filter_scheduler.py", line 107, in<br>
schedule_run_instance |<br>
| | raise<br>
exception.NoValidHost(reason="")<br>
<br>
|<br>
| | ', u'created':<br>
u'2013-12-02T21:12:51Z'}<br>
<br>
|<br>
| flavor | m1.small (2)<br>
<br>
|<br>
| hostId |<br>
9118a70a83e5bcab35ef4c806b5608f38529fa88f34198f0f5e515b4<br>
<br>
|<br>
| id |<br>
585fe5f3-e3ab-46b5-adf6-1da0c112bda4<br>
<br>
|<br>
| image | cirros-0.3.0-i386<br>
(597221dd-5be5-4e56-8339-11adbe5653bf)<br>
<br>
|<br>
| key_name | None<br>
<br>
|<br>
| metadata | {}<br>
<br>
|<br>
| name | myvm<br>
<br>
|<br>
| os-extended-volumes:volumes_attached | []<br>
<br>
|<br>
| private network | 10.4.128.2<br>
<br>
|<br>
| security_groups | default<br>
<br>
|<br>
| status | ERROR<br>
<br>
|<br>
| tenant_id |<br>
2d526ede707349f2813b06bf1b6e4a0c<br>
<br>
|<br>
| updated | 2013-12-02T21:12:51Z<br>
<br>
|<br>
| user_id |<br>
fe775b8220d5436380f0de7ec61cfae3<br>
<br>
|<br>
+--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+<br>
-bash-4.2$<br>
<br>
_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Lorin Hochstein<br><div>Lead Architect - Cloud Services</div><div>Nimbis Services, Inc.</div><div><a href="http://www.nimbisservices.com" target="_blank">www.nimbisservices.com</a></div>
</div>
</div></div></div>