<div dir="ltr"><div><div><div>You can enable debug log and check scheduler log to see what's wrong with the filters.<br><br></div>Just update /etc/nova/nova.conf, set debug=True and then restart nova scheduler /etc/init.d/openstack-nova-scheduler restart.<br>
<br></div>Thanks,<br><br></div>Jay<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/12/13 sylecn <span dir="ltr"><<a href="mailto:sylecn@gmail.com" target="_blank">sylecn@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,<br><br>I have enabled host aggregates to aid scheduling instances on hosts<br>with cpus of the same type (in order to test live migration). But after<br>
I set it up, scheduling flavor with the extra_specs key-value pair always fail.<br>
<br>The logs did not help much. How can I debug this problem?<br><br></div>I'm running the Havana version in a test environment. Nova controller and<br>nova-compute are on different nodes.<br><div><br>Thanks,<br>Yuanle<br>

<br>nova-scheduler.log<br>====================<br>2013-12-13 11:41:11.510 57764 INFO nova.scheduler.filter_scheduler [req-ad22cb01-07ef-4c79-b42e-49de8ce01473 867dfccf4a14433287d67bf39004336d 860483f3ceeb43aab4d1f0e8f76b4064] Attempting to build 1 instance(s) uuids: [u'ab7e8436-f998-4edc-89ee-a9b6bab17fa3']<br>

2013-12-13 11:41:11.543 57764 WARNING nova.scheduler.driver [req-ad22cb01-07ef-4c79-b42e-49de8ce01473 867dfccf4a14433287d67bf39004336d 860483f3ceeb43aab4d1f0e8f76b4064] [instance: ab7e8436-f998-4edc-89ee-a9b6bab17fa3] Setting instance to ERROR state.<br>

<br>This is the command use to boot the instance:<br><br>bin/nova boot --flavor lm.c1 --key_name sylecn_at_vboxw1 --image cirros-0.3.1 --nic net-id=$VM_NET_ID c8<br><br>booting other flavor works fine on the same nova-compute node (<a href="http://ceph3.geocast.net" target="_blank">ceph3.geocast.net</a>).<br>

<br>Here is the host aggregates setup:<br><br>/etc/nova/nova.conf<br>===================<br>scheduler_default_filters=RetryFilter,AggregateInstanceExtraSpecsFilter,AvailabilityZoneFilter,RamFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter<br>

<br>All nova services are restarted after updating nova.conf.<br><br>sylecn@vboxw1:~/projects/openstack-deploy$ bin/nova flavor-show lm.c1<br>+----------------------------+--------------------------------------+<br>| Property                   | Value                                |<br>

+----------------------------+--------------------------------------+<br>| name                       | lm.c1                                |<br>| ram                        | 50                                   |<br>| OS-FLV-DISABLED:disabled   | False                                |<br>

| vcpus                      | 1                                    |<br>| extra_specs                | {u'cpu_athlon_5k': u'true'}          |<br>| swap                       |                                      |<br>

| os-flavor-access:is_public | True                                 |<br>| rxtx_factor                | 1.0                                  |<br>| OS-FLV-EXT-DATA:ephemeral  | 0                                    |<br>| disk                       | 1                                    |<br>

| id                         | ab1e6c6e-fbc3-4139-a626-c64aac9b5986 |<br>+----------------------------+--------------------------------------+<br>sylecn@vboxw1:~/projects/openstack-deploy$ bin/nova aggregate-details lm<br>

+----+------+-------------------+------------------------+------------------------------------------------------------+<br>| Id | Name | Availability Zone | Hosts                  | Metadata                                                   |<br>

+----+------+-------------------+------------------------+------------------------------------------------------------+<br>| 1  | lm   | nova              | [u'<a href="http://ceph3.geocast.net" target="_blank">ceph3.geocast.net</a>'] | {u'cpu_athlon_5k': u'true', u'availability_zone': u'nova'} |<br>

+----+------+-------------------+------------------------+------------------------------------------------------------+<br>sylecn@vboxw1:~/projects/openstack-deploy$ bin/nova show c8<br>+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+<br>

| Property                             | Value                                                                                                                                                                                   |<br>

+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+<br>

| status                               | ERROR                                                                                                                                                                                   |<br>

| updated                              | 2013-12-13T03:41:11Z                                                                                                                                                                    |<br>

| OS-EXT-STS:task_state                | None                                                                                                                                                                                    |<br>

| OS-EXT-SRV-ATTR:host                 | None                                                                                                                                                                                    |<br>

| key_name                             | sylecn_at_vboxw1                                                                                                                                                                        |<br>

| image                                | cirros-0.3.1 (42268409-bd69-479b-a423-a6fbe1a51bef)                                                                                                                                     |<br>

| hostId                               |                                                                                                                                                                                         |<br>

| OS-EXT-STS:vm_state                  | error                                                                                                                                                                                   |<br>

| OS-EXT-SRV-ATTR:instance_name        | instance-0000004c                                                                                                                                                                       |<br>

| OS-SRV-USG:launched_at               | None                                                                                                                                                                                    |<br>

| OS-EXT-SRV-ATTR:hypervisor_hostname  | None                                                                                                                                                                                    |<br>

| flavor                               | lm.c1 (ab1e6c6e-fbc3-4139-a626-c64aac9b5986)                                                                                                                                            |<br>

| id                                   | ab7e8436-f998-4edc-89ee-a9b6bab17fa3                                                                                                                                                    |<br>

| OS-SRV-USG:terminated_at             | None                                                                                                                                                                                    |<br>

| user_id                              | 867dfccf4a14433287d67bf39004336d                                                                                                                                                        |<br>

| name                                 | c8                                                                                                                                                                                      |<br>

| created                              | 2013-12-13T03:41:10Z                                                                                                                                                                    |<br>

| tenant_id                            | 860483f3ceeb43aab4d1f0e8f76b4064                                                                                                                                                        |<br>

| OS-DCF:diskConfig                    | MANUAL                                                                                                                                                                                  |<br>

| metadata                             | {}                                                                                                                                                                                      |<br>

| os-extended-volumes:volumes_attached | []                                                                                                                                                                                      |<br>

| accessIPv4                           |                                                                                                                                                                                         |<br>

| accessIPv6                           |                                                                                                                                                                                         |<br>

| fault                                | {u'message': u'No valid host was found. ', u'code': 500, u'details': u'  File "/usr/lib/python2.7/dist-packages/nova/scheduler/filter_scheduler.py", line 107, in schedule_run_instance |<br>

|                                      |     raise exception.NoValidHost(reason="")                                                                                                                                              |<br>

|                                      | ', u'created': u'2013-12-13T03:41:11Z'}                                                                                                                                                 |<br>

| OS-EXT-STS:power_state               | 0                                                                                                                                                                                       |<br>

| OS-EXT-AZ:availability_zone          | nova                                                                                                                                                                                    |<br>

| config_drive                         |                                                                                                                                                                                         |<br>

+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+<br>

<br><br></div></div>
<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>
<br></blockquote></div><br></div>