<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi folks:<br>
I am new to openstack, I am current trying to test the json filter, I changed my /etc/nova/nova.conf as follow<br>
<br>
scheduler_driver=nova.
<div id=":hi"><wbr>scheduler.multi.MultiScheduler<br>
compute_scheduler_driver=nova.<wbr>scheduler.filter_scheduler.<wbr>FilterScheduler<br>
volume_scheduler_driver=nova.<wbr>scheduler.chance.<wbr>ChanceScheduler<br>
scheduler_available_filters=<wbr>nova.scheduler.filters.<wbr>standard_filters<br>
scheduler_default_filters=<wbr>JsonFilter<br>
least_cost_functions=nova.<wbr>scheduler.least_cost.compute_<wbr>fill_first_cost_fn<br>
compute_fill_first_cost_fn_<wbr>weight=-1.0</div>
<br>
<br>
so I can use the json filter<br>
however, when I was using it, if I boot a vm without any --hint to the scheduler, then the vm started fine, but if I use<br>
<br>
nova --debug boot --image 827d564a-e636-4fc4-a376-
<div id=":hi"><wbr>d36f7ebe1747 --flavor 1 --hint query=['>=','$free_ram_mb',<wbr>1024] server1<br>
<br>
my vm started with error, and the following were output from the command above<br>
<br>
+-----------------------------
<div id=":hi"><wbr>--------+---------------------<wbr>-----------------+<br>
| Property                      <wbr>      | Value                         <wbr>       |<br>
+-----------------------------<wbr>--------+---------------------<wbr>-----------------+<br>
| OS-DCF:diskConfig             <wbr>      | MANUAL                        <wbr>       |<br>
| OS-EXT-SRV-ATTR:host          <wbr>      | None                          <wbr>       |<br>
| OS-EXT-SRV-ATTR:hypervisor_<wbr>hostname | None                          <wbr>       |<br>
| OS-EXT-SRV-ATTR:instance_name <wbr>      | instance-0000002b             <wbr>       |<br>
| OS-EXT-STS:power_state        <wbr>      | 0                             <wbr>       |<br>
| OS-EXT-STS:task_state         <wbr>      | scheduling                    <wbr>       |<br>
| OS-EXT-STS:vm_state           <wbr>      | error                         <wbr>       |<br>
| accessIPv4                    <wbr>      |                             <wbr>         |<br>
| accessIPv6                    <wbr>      |                             <wbr>         |<br>
| adminPass                     <wbr>      | dKvrsv4MZtfc                  <wbr>       |<br>
| config_drive                  <wbr>      |                             <wbr>         |<br>
| created                       <wbr>      | 2012-08-02T14:25:10Z          <wbr>       |<br>
| flavor                        <wbr>      | m1.tiny                       <wbr>       |<br>
| hostId                        <wbr>      |                             <wbr>         |<br>
| id                            <wbr>      | 9d4a5855-3c69-40ba-b50d-<wbr>3a2aa6a92edc |<br>
| image                         <wbr>      | cirros-0.3.0-x86_64-uec       <wbr>       |<br>
| key_name                      <wbr>      |                             <wbr>         |<br>
| metadata                      <wbr>      | {}                            <wbr>       |<br>
| name                          <wbr>      | server1                       <wbr>       |<br>
| progress                      <wbr>      | 0                             <wbr>       |<br>
| status                        <wbr>      | BUILD                         <wbr>       |<br>
| tenant_id                     <wbr>      | d99ffa1b0c43455ab8dbbd81cf4380<wbr>a7     |<br>
| updated                       <wbr>      | 2012-08-02T14:25:10Z          <wbr>       |<br>
| user_id                       <wbr>      | d5e02f1810a44575b99a147f94507d<wbr>a1     |<br>
+-----------------------------<wbr>--------+---------------------<wbr>-----------------+<br>
<br>
as you can see, the vm is in error, this also happens whenever I need to pass a hint to the scheduler, as in samehostfilter and differenthostfilter,<br>
<br>
Does anyone know what's going on, thanks in advance.<br>
Heng<br>
<br>
</div>
</div>
</div>
</body>
</html>