We're updating the issue view to help you get more done. 

Chunter fails when calling vmadm update

Description

When trying to update data that goes to vmadm, chunter fails.

For example on the UI, a vm, changing the alias.

When doing that, chunter logs looks like this:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 2014-09-04 01:51:45.967 [debug] <0.27975.4>@chunter_spec:create_update:275 Generated update: {"add_nics":[],"alias":"bosh-bm-bff55-new-alias","hostname":"hi-ho-lets-go","resolvers":["127.0.0.1"]}. 2014-09-04 01:51:45.967 [warning] <0.27975.4>@chunter_vm_fsm:terminate:871 [terminate:0756244c-5812-4dc5-aa90-442cea0b4fa9] Terminating from stopped with reason {{badmatch,undefined},[{chunter_spec,create_update,3,[{file,"src/chunter_spec.erl"},{line,280}]},{chunter_vm_fsm,handle_event,3,[{file,"src/chunter_vm_fsm.erl"},{line,583}]},{gen_fsm,handle_msg,7,[{file,"gen_fsm.erl"},{line,505}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}. 2014-09-04 01:51:45.967 [warning] <0.27975.4>@chunter_vm_fsm:terminate:873 [terminate:0756244c-5812-4dc5-aa90-442cea0b4fa9] The state: {state,<<"ab9f8f8c-4623-4a4b-b768-15e4df3cc62a">>,unknown,<<"0756244c-5812-4dc5-aa90-442cea0b4fa9">>,undefined,undefined,undefined,[],[],false,<<"stopped">>} . 2014-09-04 01:51:45.967 [debug] <0.27975.4>@chunter_vm_fsm:terminate:876 [terminate:0756244c-5812-4dc5-aa90-442cea0b4fa9] console not running. 2014-09-04 01:51:45.968 [error] <0.27975.4> gen_fsm {vm,<<48,55,53,54,50,52,52,99,45,53,56,49,50,45,52,100,99,53,45,97,97,57,48,45,52,52,50,99,101,97,48,98,52,102,97,57>>} in state stopped terminated with reason: no match of right hand value undefined in chunter_spec:create_update/3 line 280 ==> /var/log/chunter/crash.log <== 2014-09-04 01:51:45 =ERROR REPORT==== ** State machine {vm,<<"0756244c-5812-4dc5-aa90-442cea0b4fa9">>} terminating ** Last event in was {update,undefined,[{<<"alias">>,<<"bosh-bm-bff55-new-alias">>},{<<"hostname">>,<<"hi-ho-lets-go">>},{<<"resolvers">>,[<<"127.0.0.1">>]}]} (for all states) ** When State == stopped ** Data == {state,<<"ab9f8f8c-4623-4a4b-b768-15e4df3cc62a">>,unknown,<<"0756244c-5812-4dc5-aa90-442cea0b4fa9">>,undefined,undefined,undefined,[],[],false,<<"stopped">>} ** Reason for termination = ** {{badmatch,undefined},[{chunter_spec,create_update,3,[{file,"src/chunter_spec.erl"},{line,280}]},{chunter_vm_fsm,handle_event,3,[{file,"src/chunter_vm_fsm.erl"},{line,583}]},{gen_fsm,handle_msg,7,[{file,"gen_fsm.erl"},{line,505}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]} ==> /var/log/chunter/error.log <== 2014-09-04 01:51:45.968 [error] <0.27975.4> gen_fsm {vm,<<48,55,53,54,50,52,52,99,45,53,56,49,50,45,52,100,99,53,45,97,97,57,48,45,52,52,50,99,101,97,48,98,52,102,97,57>>} in state stopped terminated with reason: no match of right hand value undefined in chunter_spec:create_update/3 line 280 ==> /var/log/chunter/crash.log <== 2014-09-04 01:51:45 =CRASH REPORT==== crasher: initial call: chunter_vm_fsm:init/1 pid: <0.27975.4> registered_name: [] exception exit: {{{badmatch,undefined},[{chunter_spec,create_update,3,[{file,"src/chunter_spec.erl"},{line,280}]},{chunter_vm_fsm,handle_event,3,[{file,"src/chunter_vm_fsm.erl"},{line,583}]},{gen_fsm,handle_msg,7,[{file,"gen_fsm.erl"},{line,505}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]},[{gen_fsm,terminate,7,[{file,"gen_fsm.erl"},{line,622}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]} ancestors: [chunter_vm_sup,chunter_sup,<0.207.0>] messages: [] links: [<0.215.0>,<0.98.0>] dictionary: [] trap_exit: true status: running heap_size: 1598 stack_size: 27 reductions: 31798 neighbours: 2014-09-04 01:51:45 =SUPERVISOR REPORT==== Supervisor: {local,chunter_vm_sup} Context: child_terminated Reason: {{badmatch,undefined},[{chunter_spec,create_update,3,[{file,"src/chunter_spec.erl"},{line,280}]},{chunter_vm_fsm,handle_event,3,[{file,"src/chunter_vm_fsm.erl"},{line,583}]},{gen_fsm,handle_msg,7,[{file,"gen_fsm.erl"},{line,505}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]} Offender: [{pid,<0.27975.4>},{name,chunter_vm_fsm},{mfargs,{chunter_vm_fsm,start_link,[<<"0756244c-5812-4dc5-aa90-442cea0b4fa9">>]}},{restart_type,transient},{shutdown,infinity},{child_type,worker}] ==> /var/log/chunter/console.log <== 2014-09-04 01:51:45.967 [warning] <0.27975.4>@chunter_vm_fsm:terminate:871 [terminate:0756244c-5812-4dc5-aa90-442cea0b4fa9] Terminating from stopped with reason {{badmatch,undefined},[{chunter_spec,create_update,3,[{file,"src/chunter_spec.erl"},{line,280}]},{chunter_vm_fsm,handle_event,3,[{file,"src/chunter_vm_fsm.erl"},{line,583}]},{gen_fsm,handle_msg,7,[{file,"gen_fsm.erl"},{line,505}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}. 2014-09-04 01:51:45.967 [warning] <0.27975.4>@chunter_vm_fsm:terminate:873 [terminate:0756244c-5812-4dc5-aa90-442cea0b4fa9] The state: {state,<<"ab9f8f8c-4623-4a4b-b768-15e4df3cc62a">>,unknown,<<"0756244c-5812-4dc5-aa90-442cea0b4fa9">>,undefined,undefined,undefined,[],[],false,<<"stopped">>} . 2014-09-04 01:51:45.968 [error] <0.27975.4> gen_fsm {vm,<<48,55,53,54,50,52,52,99,45,53,56,49,50,45,52,100,99,53,45,97,97,57,48,45,52,52,50,99,101,97,48,98,52,102,97,57>>} in state stopped terminated with reason: no match of right hand value undefined in chunter_spec:create_update/3 line 280 ==> /var/log/chunter/debug.log <== 2014-09-04 01:51:45.968 [error] <0.27975.4> CRASH REPORT Process <0.27975.4> with 0 neighbours exited with reason: no match of right hand value undefined in chunter_spec:create_update/3 line 280 in gen_fsm:terminate/7 line 622 ==> /var/log/chunter/error.log <== 2014-09-04 01:51:45.968 [error] <0.27975.4> CRASH REPORT Process <0.27975.4> with 0 neighbours exited with reason: no match of right hand value undefined in chunter_spec:create_update/3 line 280 in gen_fsm:terminate/7 line 622 ==> /var/log/chunter/console.log <== 2014-09-04 01:51:45.968 [error] <0.27975.4> CRASH REPORT Process <0.27975.4> with 0 neighbours exited with reason: no match of right hand value undefined in chunter_spec:create_update/3 line 280 in gen_fsm:terminate/7 line 622 ==> /var/log/chunter/debug.log <== 2014-09-04 01:51:45.968 [error] <0.215.0> Supervisor chunter_vm_sup had child chunter_vm_fsm started with chunter_vm_fsm:start_link(<<"0756244c-5812-4dc5-aa90-442cea0b4fa9">>) at <0.27975.4> exit with reason no match of right hand value undefined in chunter_spec:create_update/3 line 280 in context child_terminated ==> /var/log/chunter/error.log <== 2014-09-04 01:51:45.968 [error] <0.215.0> Supervisor chunter_vm_sup had child chunter_vm_fsm started with chunter_vm_fsm:start_link(<<"0756244c-5812-4dc5-aa90-442cea0b4fa9">>) at <0.27975.4> exit with reason no match of right hand value undefined in chunter_spec:create_update/3 line 280 in context child_terminated ==> /var/log/chunter/console.log <== 2014-09-04 01:51:45.968 [error] <0.215.0> Supervisor chunter_vm_sup had child chunter_vm_fsm started with chunter_vm_fsm:start_link(<<"0756244c-5812-4dc5-aa90-442cea0b4fa9">>) at <0.27975.4> exit with reason no match of right hand value undefined in chunter_spec:create_update/3 line 280 in context child_terminated 2014-09-04 01:51:46.214 [info] <0.28076.4>@chunter_vm_fsm:snapshot_sizes:1061 [0756244c-5812-4dc5-aa90-442cea0b4fa9] Updating Snapshots.

Environment

latest rel.

Status

Assignee

Heinz N. Gies

Reporter

Phillip Neumann

Labels

None

Components

Fix versions

Affects versions

0.6.0

Priority

Critical