[sheepdog] problems about `dog vdi object location` when node is in gateway mode

Hitoshi Mitake mitake.hitoshi at lab.ntt.co.jp
Wed Dec 10 11:15:33 CET 2014


At Tue, 9 Dec 2014 10:21:04 +0800,
Jinzhi Chen wrote:
> 
> [1  <multipart/alternative (7bit)>]
> [1.1  <text/plain; UTF-8 (7bit)>]
> hi,
>     when a new gateway (never joined a cluster before) joins a existing
> cluster (already formatted), `dog vdi object location` will cause the new
> gateway exit.
>     It's mainly because the new joined gateway's backend storage is not
> initialized(`sd_store` is not initialized), and `dog vdi object location`
> cause it using uninitialized pointer (sd_store->exist).
>     maybe we could check whether a node is in gateway mode in
> `local_oid_exist` function.
> and if that node is gateway, just return SD_RES_NO_OBJ.

Thanks for reporting and the above solution seems good to me. Could
you create a patch for this problem?

Thanks,
Hitoshi

> 
> 
> Thanks
> Jinzhi Chen
> [1.2  <text/html; UTF-8 (quoted-printable)>]
> 
> [2  <text/plain; us-ascii (7bit)>]
> -- 
> sheepdog mailing list
> sheepdog at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/sheepdog



More information about the sheepdog mailing list