Thanks Jay. After enable debug, I found the scheduler fails at ComputeCapabilitiesFilter step. Recall the filter chain I configured is
scheduler_default_filters=RetryFilter,AggregateInstanceExtraSpecsFilter,AvailabilityZoneFilter,RamFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter Now I'm researching why it fails at that filter. -- Yuanle On Fri, Dec 13, 2013 at 12:18 PM, Jay Lau <[email protected]> wrote: > You can enable debug log and check scheduler log to see what's wrong with > the filters. > > Just update /etc/nova/nova.conf, set debug=True and then restart nova > scheduler /etc/init.d/openstack-nova-scheduler restart. > > Thanks, > > Jay > > > 2013/12/13 sylecn <[email protected]> > >> Hi, >> >> I have enabled host aggregates to aid scheduling instances on hosts >> with cpus of the same type (in order to test live migration). But after >> I set it up, scheduling flavor with the extra_specs key-value pair always >> fail. >> >> The logs did not help much. How can I debug this problem? >> >> I'm running the Havana version in a test environment. Nova controller and >> nova-compute are on different nodes. >> >> Thanks, >> Yuanle >> >> nova-scheduler.log >> ==================== >> 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'] >> 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. >> >> This is the command use to boot the instance: >> >> bin/nova boot --flavor lm.c1 --key_name sylecn_at_vboxw1 --image >> cirros-0.3.1 --nic net-id=$VM_NET_ID c8 >> >> booting other flavor works fine on the same nova-compute node ( >> ceph3.geocast.net). >> >> Here is the host aggregates setup: >> >> /etc/nova/nova.conf >> =================== >> >> scheduler_default_filters=RetryFilter,AggregateInstanceExtraSpecsFilter,AvailabilityZoneFilter,RamFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter >> >> All nova services are restarted after updating nova.conf. >> >> sylecn@vboxw1:~/projects/openstack-deploy$ bin/nova flavor-show lm.c1 >> +----------------------------+--------------------------------------+ >> | Property | Value | >> +----------------------------+--------------------------------------+ >> | name | lm.c1 | >> | ram | 50 | >> | OS-FLV-DISABLED:disabled | False | >> | vcpus | 1 | >> | extra_specs | {u'cpu_athlon_5k': u'true'} | >> | swap | | >> | os-flavor-access:is_public | True | >> | rxtx_factor | 1.0 | >> | OS-FLV-EXT-DATA:ephemeral | 0 | >> | disk | 1 | >> | id | ab1e6c6e-fbc3-4139-a626-c64aac9b5986 | >> +----------------------------+--------------------------------------+ >> sylecn@vboxw1:~/projects/openstack-deploy$ bin/nova aggregate-details lm >> >> +----+------+-------------------+------------------------+------------------------------------------------------------+ >> | Id | Name | Availability Zone | Hosts | >> Metadata | >> >> +----+------+-------------------+------------------------+------------------------------------------------------------+ >> | 1 | lm | nova | [u'ceph3.geocast.net'] | >> {u'cpu_athlon_5k': u'true', u'availability_zone': u'nova'} | >> >> +----+------+-------------------+------------------------+------------------------------------------------------------+ >> sylecn@vboxw1:~/projects/openstack-deploy$ bin/nova show c8 >> >> +--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ >> | Property | >> Value >> | >> >> +--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ >> | status | >> ERROR >> | >> | updated | >> 2013-12-13T03:41:11Z >> | >> | OS-EXT-STS:task_state | >> None >> | >> | OS-EXT-SRV-ATTR:host | >> None >> | >> | key_name | >> sylecn_at_vboxw1 >> | >> | image | cirros-0.3.1 >> (42268409-bd69-479b-a423-a6fbe1a51bef) >> | >> | hostId >> | >> | >> | OS-EXT-STS:vm_state | >> error >> | >> | OS-EXT-SRV-ATTR:instance_name | >> instance-0000004c >> | >> | OS-SRV-USG:launched_at | >> None >> | >> | OS-EXT-SRV-ATTR:hypervisor_hostname | >> None >> | >> | flavor | lm.c1 >> (ab1e6c6e-fbc3-4139-a626-c64aac9b5986) >> | >> | id | >> ab7e8436-f998-4edc-89ee-a9b6bab17fa3 >> | >> | OS-SRV-USG:terminated_at | >> None >> | >> | user_id | >> 867dfccf4a14433287d67bf39004336d >> | >> | name | >> c8 >> | >> | created | >> 2013-12-13T03:41:10Z >> | >> | tenant_id | >> 860483f3ceeb43aab4d1f0e8f76b4064 >> | >> | OS-DCF:diskConfig | >> MANUAL >> | >> | metadata | >> {} >> | >> | os-extended-volumes:volumes_attached | >> [] >> | >> | accessIPv4 >> | >> | >> | accessIPv6 >> | >> | >> | 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 | >> | | raise >> exception.NoValidHost(reason="") >> | >> | | ', u'created': >> u'2013-12-13T03:41:11Z'} >> | >> | OS-EXT-STS:power_state | >> 0 >> | >> | OS-EXT-AZ:availability_zone | >> nova >> | >> | config_drive >> | >> | >> >> +--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ >> >> >> >> _______________________________________________ >> Mailing list: >> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack >> Post to : [email protected] >> Unsubscribe : >> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack >> >> >
_______________________________________________ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : [email protected] Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
