[sheepdog] bug: Invalid free space size '0': must be an integer between 0

levin li levin108 at gmail.com
Mon Aug 6 03:45:07 CEST 2012


On 2012年08月06日 03:36, Jens WEBER wrote:
>>
>> Thanks a lot for your feedback, I've submitted a patch to fix this bug.
>>
>> thanks,
>>
>> levin
>>
> 
> Thanks a lot too! I still have the problem that gateway-only node crashes after cluster shutdown, start and than collie cluster cleanup or collie vdi object test2 -i 2. Any Idea here?
> 
> [ ok ] sheepdog gateway-only (-d -p 7000 -g -z 999 /var/lib/sheepdog/disc0) is running.
> [ ok ] sheepdog for Disk A (-d -p 7001 -z 1 /var/lib/sheepdog/disc1) is running.
> [ ok ] sheepdog for Disk B (-d -p 7002 -z 2 /var/lib/sheepdog/disc2) is running.
> [ ok ] sheepdog for Disk C (-d -p 7003 -z 3 /var/lib/sheepdog/disc3) is running.
> [ ok ] sheepdog for Disk D (-d -p 7004 -z 4 /var/lib/sheepdog/disc4) is running.
> [ ok ] sheepdog for Disk E (-d -p 7005 -z 5 /var/lib/sheepdog/disc5) is running.
> [ ok ] sheepdog for Disk F (-d -p 7006 -z 6 /var/lib/sheepdog/disc6) is running.
> 
> - collie vdi object test2 -i 2
> [main] do_read(269) failed to read from socket: 0
> [main] exec_req(356) failed to read a response
> Failed to connect to 172.30.0.80:7000
> The node list has changed: please try again
> The node list has changed: please try again
> The node list has changed: please try again
> The node list has changed: please try again
> The node list has changed: please try again
> The node list has changed: please try again
> Failed to read the inode object 0xfd3815
> 
> - collie cluster cleanup
> [main] do_read(269) failed to read from socket: 0
> [main] exec_req(356) failed to read a response
> failed to connect to  localhost:7000
> failed to execute request
> 
> my test script:
> 
> #!/bin/bash
> 
> pkill -9 sheep
> sleep 6
> 
> for DIR in /var/lib/sheepdog/disc*; do
>   rm -r $DIR/*
>   ln -s /etc/sheepdog/$(basename $DIR).setup $DIR/setup
> done
> 
> /etc/init.d/sheepdog start
> 
> collie cluster format -c 3
> for ((i=0;i<5;i++)); do
>         qemu-img create -f raw sheepdog:test$i 10M
>         qemu-io -c "write -P 0x01 0 10M" sheepdog:test$i
> done
> echo "- collie vdi object test2 -i 2 # ok, no problem"
> collie vdi object test2 -i 2 # ok, no problem
> echo "- collie cluster cleanup       # ok, no problem"
> collie cluster cleanup       # ok, no problem
> 
> # but now ...
> echo "collie cluster shutdown"
> collie cluster shutdown
> sleep 6
> 
> /etc/init.d/sheepdog start
> echo "- collie vdi object test2 -i 2"
> collie vdi object test2 -i 2 # gateway-only crashes !!!!
> 
> /etc/init.d/sheepdog start
> echo "- collie cluster cleanup"
> collie cluster cleanup       # gateway-only crashes !!!!
> 
> /etc/init.d/sheepdog start
> echo "- collie node recovery" # ok, no problem
> collie node recovery # ok, no problem
> 
> Thanks Jens
> 

Later I'll give a fix to this bug.

thanks,

levin



More information about the sheepdog mailing list