I am running branch 0.5.x.<br><br><div class="gmail_quote">On Wed, Mar 6, 2013 at 9:57 PM, Wenhao Xu <span dir="ltr"><<a href="mailto:xuwenhao2008@gmail.com" target="_blank">xuwenhao2008@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all, <div><br></div><div>I did a snapshot rollback experiment by executing the following steps. After all these steps, segment fault occurred when executing 'collie tree'.</div>
<div><br></div><div>$ collie vdi create img1 2G</div>
<div><br></div><div><div>$ collie vdi list</div><div> Name Id Size Used Shared Creation time VDI id Copies Tag</div><div> img1 1 2.0 GB 0.0 MB 0.0 MB 2013-03-06 21:39 9e028f 1</div>
</div><div><br></div><div>$ collie vdi snapshot -s snap1 img1</div><div><br></div><div>$ collie vdi snapshot -s snap2 img1</div><div><br></div><div><div>$ collie vdi tree</div><div>img1---[2013-03-06 21:39]---[2013-03-06 21:39]---(you are here)</div>
</div><div><br></div><div>$ collie vdi rollback -s snap1 img1</div><div><br></div><div><div>$ collie vdi tree</div><div>img1---[2013-03-06 21:39]-+-[2013-03-06 21:39]</div><div> `-(you are here)</div>
</div><div><br></div><div><div>$ collie vdi list</div><div> Name Id Size Used Shared Creation time VDI id Copies Tag</div><div>s img1 1 2.0 GB 0.0 MB 0.0 MB 2013-03-06 21:39 9e028f 1 snap1</div>
<div>s img1 2 2.0 GB 0.0 MB 0.0 MB 2013-03-06 21:39 9e0290 1 snap2</div><div> img1 3 2.0 GB 0.0 MB 0.0 MB 2013-03-06 21:40 9e0291 1</div></div><div><br></div><div><br></div><div>
$ collie vdi rollback -s 3 img1 #This step cause the problem, Am I doing something wrong? If this is not allowed, collie should probably prevent the command executing.<br></div><div><br></div><div><div>$ collie vdi tree</div>
<div>Segmentation fault (core dumped)</div></div><div><br></div><div>The worse thing is the volume cannot be deleted afterwards.</div><div><br></div><div> collie vdi delete -s 1 img1</div><div> collie vdi delete -s 2 img1</div>
<div><br></div><div>works fine.</div><div><br></div><div>But collie vdi delete img1 just hung forever. </div><div><br></div><div>The log shows sheep falls into a dead loop:</div><div><br></div><div><endless></div>
<div>
<div>Mar 06 21:55:29 [main] queue_request(355) READ_OBJ, 1</div><div>Mar 06 21:55:29 [gway 170902] do_process_work(1258) 2, 809e029100000000, 1</div><div>Mar 06 21:55:29 [main] queue_request(355) READ_OBJ, 1</div><div>Mar 06 21:55:29 [gway 170903] do_process_work(1258) 2, 809e029100000000, 1</div>
<div>Mar 06 21:55:29 [main] queue_request(355) READ_OBJ, 1</div><div>Mar 06 21:55:29 [gway 170904] do_process_work(1258) 2, 809e029100000000, 1</div><div>Mar 06 21:55:29 [main] queue_request(355) READ_OBJ, 1</div><div>Mar 06 21:55:29 [gway 170905] do_process_work(1258) 2, 809e029100000000, 1</div>
<div>Mar 06 21:55:29 [main] queue_request(355) READ_OBJ, 1</div><div>Mar 06 21:55:29 [gway 170906] do_process_work(1258) 2, 809e029100000000, 1</div><div>Mar 06 21:55:29 [main] queue_request(355) READ_OBJ, 1</div><div>Mar 06 21:55:29 [gway 170907] do_process_work(1258) 2, 809e029100000000, 1</div>
<div>Mar 06 21:55:29 [main] queue_request(355) READ_OBJ, 1</div><div>Mar 06 21:55:29 [gway 170908] do_process_work(1258) 2, 809e029100000000, 1</div><div>Mar 06 21:55:29 [main] queue_request(355) READ_OBJ, 1</div><div>Mar 06 21:55:29 [gway 170909] do_process_work(1258) 2, 809e029100000000, 1</div>
<div>Mar 06 21:55:29 [main] queue_request(355) READ_OBJ, 1</div><div>Mar 06 21:55:29 [gway 170910] do_process_work(1258) 2, 809e029100000000, 1</div><div>Mar 06 21:55:29 [main] queue_request(355) READ_OBJ, 1</div><div>Mar 06 21:55:29 [gway 170911] do_process_work(1258) 2, 809e029100000000, 1</div>
<div>Mar 06 21:55:29 [main] queue_request(355) READ_OBJ, 1</div><div>Mar 06 21:55:29 [gway 170912] do_process_work(1258) 2, 809e029100000000, 1</div><div>Mar 06 21:55:29 [main] queue_request(355) READ_OBJ, 1</div><div>Mar 06 21:55:29 [gway 170913] do_process_work(1258) 2, 809e029100000000, 1</div>
<div>Mar 06 21:55:29 [main] queue_request(355) READ_OBJ, 1</div><div>Mar 06 21:55:29 [gway 170914] do_process_work(1258) 2, 809e029100000000, 1</div><div>Mar 06 21:55:29 [main] queue_request(355) READ_OBJ, 1</div><div>Mar 06 21:55:29 [gway 170915] do_process_work(1258) 2, 809e029100000000, 1</div>
<div>Mar 06 21:55:29 [main] queue_request(355) READ_OBJ, 1</div><div>Mar 06 21:55:29 [gway 170916] do_process_work(1258) 2, 809e029100000000, 1</div><div>Mar 06 21:55:29 [main] queue_request(355) READ_OBJ, 1</div><div>Mar 06 21:55:29 [gway 170917] do_process_work(1258) 2, 809e029100000000, 1</div>
<div>Mar 06 21:55:29 [main] queue_request(355) READ_OBJ, 1</div><div>Mar 06 21:55:29 [gway 170918] do_process_work(1258) 2, 809e029100000000, 1</div><div>Mar 06 21:55:29 [main] queue_request(355) READ_OBJ, 1</div><div>Mar 06 21:55:29 [gway 170919] do_process_work(1258) 2, 809e029100000000, 1</div>
<div>Mar 06 21:55:29 [main] queue_request(355) READ_OBJ, 1</div><div>Mar 06 21:55:29 [gway 170920] do_process_work(1258) 2, 809e029100000000, 1</div><div>Mar 06 21:55:29 [main] queue_request(355) READ_OBJ, 1</div><div>Mar 06 21:55:29 [gway 170921] do_process_work(1258) 2, 809e029100000000, 1</div>
<div>Mar 06 21:55:29 [main] queue_request(355) READ_OBJ, 1</div><div>Mar 06 21:55:29 [gway 170922] do_process_work(1258) 2, 809e029100000000, 1</div><div>Mar 06 21:55:29 [main] queue_request(355) READ_OBJ, 1</div><div>Mar 06 21:55:29 [gway 170923] do_process_work(1258) 2, 809e029100000000, 1</div>
<div>Mar 06 21:55:29 [main] queue_request(355) READ_OBJ, 1</div><div>Mar 06 21:55:29 [gway 170924] do_process_work(1258) 2, 809e029100000000, 1</div><div>Mar 06 21:55:29 [main] queue_request(355) READ_OBJ, 1</div><div>Mar 06 21:55:29 [gway 170925] do_process_work(1258) 2, 809e029100000000, 1</div>
<div>Mar 06 21:55:29 [main] queue_request(355) READ_OBJ, 1</div><div>Mar 06 21:55:29 [gway 170926] do_process_work(1258) 2, 809e029100000000, 1</div></div><div></endless></div><div><br></div><div>This seems a severe bug. Hopefully it is not hard to solve. ;) Thanks. </div>
<div><br></div><div>Regards,</div><div>Wenhao</div><span class="HOEnZb"><font color="#888888"><div>-- <br>~_~
</div>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>~_~