<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>I'm using folsom. Getting scheduler error.</span></div><br><br>My commands in order:<br># nova aggregate-create smlAgg nova<br>+----+--------+-------------------+-------+----------+<br>| Id | Name   | Availability Zone | Hosts | Metadata |<br>+----+--------+-------------------+-------+----------+<br>| 10 | smlAgg | nova              |       |          |<br>+----+--------+-------------------+-------+----------+<br># nova aggregate-set-metadata 10 mem=true<br>Aggregate 10 has been successfully updated.<br>+----+--------+-------------------+-------+-------------------+<br>| Id | Name   | Availability Zone | Hosts |
 Metadata          |<br>+----+--------+-------------------+-------+-------------------+<br>| 10 | smlAgg | nova              | []    | {u'mem': u'true'} |<br>+----+--------+-------------------+-------+-------------------+<br># nova aggregate-add-host 10 n005<br>Aggregate 10 has been successfully updated.<br>+----+--------+-------------------+-----------+-------------------+<br>| Id | Name   | Availability Zone | Hosts     | Metadata          |<br>+----+--------+-------------------+-----------+-------------------+<br>| 10 | smlAgg | nova              | [u'n005'] | {u'mem': u'true'} |<br>+----+--------+-------------------+-----------+-------------------+<br># nova aggregate-add-host 10
 n006<br>Aggregate 10 has been successfully updated.<br>+----+--------+-------------------+--------------------+-------------------+<br>| Id | Name   | Availability Zone | Hosts              | Metadata          |<br>+----+--------+-------------------+--------------------+-------------------+<br>| 10 | smlAgg | nova              | [u'n005', u'n006'] | {u'mem': u'true'} |<br>+----+--------+-------------------+--------------------+-------------------+<br># nova aggregate-add-host 10 n007<br>Aggregate 10 has been successfully updated.<br>+----+--------+-------------------+-----------------------------+-------------------+<br>| Id | Name   | Availability Zone |
 Hosts                       | Metadata          |<br>+----+--------+-------------------+-----------------------------+-------------------+<br>| 10 | smlAgg | nova              | [u'n005', u'n006', u'n007'] | {u'mem': u'true'} |<br>+----+--------+-------------------+-----------------------------+-------------------+<br># nova-manage instance_type set_key --name=m1.tiny  --key=mem --value=true<br>Key mem set to true on instance type m1.tiny<br># nova flavor-show m1.tiny<br>+----------------------------+-------------------+<br>| Property                   | Value            
 |<br>+----------------------------+-------------------+<br>| OS-FLV-DISABLED:disabled   | False             |<br>| OS-FLV-EXT-DATA:ephemeral  | 0                 |<br>| disk                       | 0                 |<br>| extra_specs                | {u'mem': u'true'} |<br>| id                         | 1                 |<br>|
 name                       | m1.tiny           |<br>| os-flavor-access:is_public | True              |<br>| ram                        | 512               |<br>| rxtx_factor                | 1.0               |<br>| swap                      
 |                   |<br>| vcpus                      | 1                 |<br>+----------------------------+-------------------+<br># nova boot --image c6714433-1653-463c-906a-9511e3e6b21b --flavor m1.tiny test<br>+-------------------------------------+---------------------------------------------------------------------------------+<br>| Property                            |
 Value                                                                           |<br>+-------------------------------------+---------------------------------------------------------------------------------+<br>| OS-DCF:diskConfig                   |
 MANUAL                                                                          |<br>| OS-EXT-SRV-ATTR:host                |
 None                                                                            |<br>| OS-EXT-SRV-ATTR:hypervisor_hostname | None                                                                            |<br>|
 OS-EXT-SRV-ATTR:instance_name       | instance-00000250                                                               |<br>| OS-EXT-STS:power_state              |
 0                                                                               |<br>| OS-EXT-STS:task_state               |
 None                                                                            |<br>| OS-EXT-STS:vm_state                 |
 error                                                                           |<br>| accessIPv4                         
 |                                                                                 |<br>| accessIPv6                         
 |                                                                                 |<br>| adminPass                           |
 ************                                                                    |<br>| config_drive                       
 |                                                                                 |<br>| created                             |
 2013-07-03T21:23:22Z                                                            |<br>| fault                               | {u'message': u'NoValidHost', u'code': 500, u'created': u'2013-07-03T21:23:23Z'} |<br>| flavor                              |
 m1.tiny                                                                         |<br>| hostId                             
 |                                                                                 |<br>| id                                  |
 53e42fa5-8d72-4f80-8586-eb7f20cd14d0                                            |<br>| image                               | CentOS_6                                                                        |<br>|
 key_name                            | None                                                                            |<br>| metadata                            |
 {}                                                                              |<br>| name                                |
 test                                                                            |<br>| security_groups                     | [{u'name': u'default'}]                                                         |<br>|
 status                              | ERROR                                                                           |<br>| tenant_id                           |
 4c2340f60b7c48a0a2504eeefe2ff74a                                                |<br>| updated                             | 2013-07-03T21:23:23Z                                                            |<br>|
 user_id                             | 3800b26a95c44e7abd1c080f7695560a                                                |<br>+-------------------------------------+---------------------------------------------------------------------------------+<br><br><br>nova.conf:<br>scheduler_driver                        =nova.scheduler.multi.MultiScheduler<br>compute_scheduler_driver               
 =nova.scheduler.filter_scheduler.FilterScheduler<br>scheduler_available_filters             =nova.scheduler.filters.all_filters<br>scheduler_default_filters               =AggregateInstanceExtraSpecsFilter,AvailabilityZoneFilter,RamFilter,ComputeFilter<br>least_cost_functions                    =nova.scheduler.least_cost.compute_fill_first_cost_fn<br>compute_fill_first_cost_fn_weight       =-1.0<br>scheduler_host_subset_size         =1<br><br><br><br><br>log:<br>==> /var/log/nova/scheduler.log <==<br>2013-07-03 15:23:23 WARNING nova.scheduler.driver [req-8616e45a-2826-4d2f-9870-b5b80ea81740 3800b26a95c44e7abd1c080f7695560a 4c2340f60b7c48a0a2504eeefe2ff74a]
 [instance: 53e42fa5-8d72-4f80-8586-eb7f20cd14d0] Setting instance to ERROR state.<br><br><div id="RTEContent"><div><img src="http://www.sharemation.com/Ahmadbut/Ahmad_Ahmadi.gif?unq=-vc9zlo">  </div></div><div><br></div>  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font size="2" face="Arial"> <b><span style="font-weight:bold;">From:</span></b> Sylvain Bauza <sylvain.bauza@digimind.com><br> <b><span style="font-weight: bold;">To:</span></b> Ahmad Ahmadi <ahmadidamha@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> "openstack-operators@lists.openstack.org" <openstack-operators@lists.openstack.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, July 3, 2013 7:16 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re:
 [Openstack-operators] Instance Scheduling on Hosts<br> </font> </div> <div class="y_msg_container"><br>
<div id="yiv1489507577">
  

    
  
  <div>
    <div class="yiv1489507577moz-cite-prefix">I ended up successfully in creating
      flavors with aggregate hosts metadata and the filter you mentioned
      on my Folsom install.<br>
      <br>
      I followed the same configuration steps <span>[1]<br>
        <br>
        What kind of error are you getting ? Is nova-scheduler failing
        or nova-compute ? Check the logs to get the exact error, please
        :-)<br>
        <br>
        -Sylvain<br>
        <br>
        [1] :
http://docs.openstack.org/folsom/openstack-compute/admin/content/host-aggregates.html#d6e10301<br>
      </span><br>
      <br>
      Le 02/07/2013 22:55, Ahmad Ahmadi a écrit :<br>
    </div>
    <blockquote type="cite">
      <div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt;">
        <div>I have two groups of hosts as compute nodes:</div>
        <div><br>
          BigGroup: a few machines with very big RAM</div>
        <div style="color:rgb(0, 0, 0);font-size:16px;
font-family:times new roman, new york, times, serif;
background-color:transparent;font-style:normal;"><span>SmallGroup: a lot of
            machines with smaller RAM each.</span></div>
        <div style="color:rgb(0, 0, 0);font-size:16px;
font-family:times new roman, new york, times, serif;
background-color:transparent;font-style:normal;"><br>
          <span></span></div>
        <div style="color:rgb(0, 0, 0);font-size:16px;
font-family:times new roman, new york, times, serif;
background-color:transparent;font-style:normal;"><span>My goal is to assigne
            bigger instances (from bigger flavors) to BigGroup and </span><span>smaller
            instances to SmallGroup.</span></div>
        <div style="color:rgb(0, 0, 0);font-size:16px;
font-family:times new roman, new york, times, serif;
background-color:transparent;font-style:normal;"><span>I tried the
            "AggregateInstanceExtraSpecsFilter" filtering with assigning
            different keys to instances and making aggregated hosts
            (http://docs.openstack.org/folsom/openstack-compute/admin/content/host-aggregates.html),
            but didn't work and all the instance boots will end up to
            error.</span></div>
        <div style="color:rgb(0, 0, 0);font-size:16px;
font-family:times new roman, new york, times, serif;
background-color:transparent;font-style:normal;">Any idea?</div>
        <div style="color:rgb(0, 0, 0);font-size:16px;
font-family:times new roman, new york, times, serif;
background-color:transparent;font-style:normal;"><br>
        </div>
        <div style="color:rgb(0, 0, 0);font-size:16px;
font-family:times new roman, new york, times, serif;
background-color:transparent;font-style:normal;">More over does anyone know
          how can I assign higher cost to bigger nodes for weighting?</div>
        <div style="color:rgb(0, 0, 0);font-size:16px;
font-family:times new roman, new york, times, serif;
background-color:transparent;font-style:normal;"><br>
        </div>
        <div style="color:rgb(0, 0, 0);font-size:16px;
font-family:times new roman, new york, times, serif;
background-color:transparent;font-style:normal;">Thanks,<br>
          <span></span></div>
      </div>
      <br>
      <fieldset class="yiv1489507577mimeAttachmentHeader"></fieldset>
      <br>
      <pre>_______________________________________________
OpenStack-operators mailing list
<a rel="nofollow" class="yiv1489507577moz-txt-link-abbreviated" ymailto="mailto:OpenStack-operators@lists.openstack.org" target="_blank" href="mailto:OpenStack-operators@lists.openstack.org">OpenStack-operators@lists.openstack.org</a>
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
</pre>
    </blockquote>
    <br>
  </div>

</div><br><br></div> </div> </div>  </div></body></html>