FIFO 0.7.2 hypervisor characteristic settings working incorrect.

Description

Testing scenario:
1- Create characteristic in one hypervisor. with: mem 1
2- Create test package setting rule: must mem =:= 1
3- Create a zone with this test package failed.

Sniffle error log:
2016-02-21 13:17:06.348 [warning] <0.7889.41>@sniffle_create_fsm:warn:1029 [a7420713-6311-4b04-9ae1-7ee201f65350] [create] Could not find hypervisor for rules: [{must,allowed,[<<"hypervisors">>,{<<"res">>,<<"uuid">>},<<"create">>],{tree,#{'...' => #{nothing => true}}}},{must,element,<<"virtualisation">>,<<"zone">>},{must,'>=',<<"resources.free-memory">>,1024},{must,'=:=',<<"mem">>,1},{must,'>=',<<"sysinfo.Live Image">>,<<"20141030T081701Z">>}].
2016-02-21 13:17:11.360 [warning] <0.9167.41>@Hey I'm currently in the middle of something, can you please put that in a ticket_hypervisor:getter:412 [Hey I'm currently in the middle of something, can you please put that in a ticket_hypervisor] Accessing unsupported getter <<"mem">>, reverting to jsxd.
2016-02-21 13:17:11.361 [warning] <0.9169.41>@Hey I'm currently in the middle of something, can you please put that in a ticket_hypervisor:getter:412 [Hey I'm currently in the middle of something, can you please put that in a ticket_hypervisor] Accessing unsupported getter <<"mem">>, reverting to jsxd.
2016-02-21 13:17:11.378 [warning] <0.7889.41>@sniffle_create_fsm:warn:1029 [669c0fde-9fe9-41d8-9622-8b0dcd5e62c7] [create] Could not find hypervisor for rules: [{must,allowed,[<<"hypervisors">>,{<<"res">>,<<"uuid">>},<<"create">>],{tree,#{'...' => #{nothing => true}}}},{must,element,<<"virtualisation">>,<<"zone">>},{must,'>=',<<"resources.free-memory">>,1024},{must,'=:=',<<"mem">>,1},{must,'>=',<<"sysinfo.Live Image">>,<<"20141030T081701Z">>}].
2016-02-21 13:17:16.379 [error] <0.7889.41>@sniffle_create_fsm:retry:505 [create] Failed after too many retries: 5 > 5
2016-02-21 13:17:16.381 [warning] <0.7889.41>@sniffle_create_fsm:warn:1029 [3764f6c7-8537-4e6e-b814-1cf6fd29ad52] Hypervisor creation failed in state failed for reason retry
2016-02-21 13:17:16.385 [info] <0.1262.0>@sniffle_create_pool:handle_info:126 [create] Finished task.
2016-02-21 13:17:16.421 [error] <0.7889.41> gen_fsm <0.7889.41> in state retry terminated with reason: failed
2016-02-21 13:17:16.422 [error] <0.7889.41> CRASH REPORT Process <0.7889.41> with 0 neighbours exited with reason: failed in gen_fsm:terminate/7 line 626
2016-02-21 13:17:16.422 [error] <0.1261.0> Supervisor sniffle_create_fsm_sup had child undefined started with {sniffle_create_fsm,start_link,undefined} at <0.7889.41> exit with reason failed in context child_terminated

Environment

FIFO 0.7.2
SmartOS 20160204T173339Z

Status

Assignee

Heinz N. Gies

Reporter

tim.tang

Labels

None

Components

Affects versions

Priority

Low
Configure