[sheepdog-users] [sheepdog] fix bug 1317791

Valerio Pachera sirio81 at gmail.com
Sat Sep 6 08:02:16 CEST 2014


2014-09-05 16:04 GMT+02:00 Andrew J. Hobbs <ajhobbs at desu.edu>:

> Are you referring to unique tags within a vdi name, or over the entire
> cluster?


vdi name


> I've never attempted to use repeated tags inside a vdi, but I do use date
> derived tags across the cluster.  Requiring unique tags within a single vdi
> name would make sense to me, but I'd hate to lose the ability to use dated
> tags.
>

I also use dated for tag in the format year,month,day,hour,minute,second so
there's no possibility to duplicate a tag.


> While we're on the subject, requiring the tag not to start with a number
> seems a bit restrictive.  I'd be happier if I could tag it with
> '201409051004' for example..
>

I think it's very important to distinguish a tag from an id (number).
Just add a single letter.
It's easy to strip it away in scripts.
E.g. s201409060801

Valerio.


>
>
> On 09/04/2014 08:34 AM, Valerio Pachera wrote:
>
>
>
> 2014-09-04 12:42 GMT+02:00 Ruoyu <liangry at ucweb.com<mailto:
> liangry at ucweb.com>>:
>
> In your opinion, duplicated tag name should be forbidden once user tries
> to create a snapshot for the vdi?
> If yes, it is not difficult. I will take care of it.
>
>
> Because we can refer to a snapshot by id and by tag, I think tag has to be
> unique as the id.
> I guess sheepdog in its internal operation uses only the snapshot id but,
> situations like the one below, make me wonder what's going to happen till I
> tried it first.
>
> dog vdi list
>   Name        Id    Size    Used  Shared    Creation time   VDI id
> Copies  Tag
> s test         1  1.0 GB  1.0 GB  0.0 MB 2014-09-04 14:19   7c2b25      2
>          xxx
> s test         2  1.0 GB  0.0 MB  1.0 GB 2014-09-04 14:19   7c2b26      2
>          xxx
> s test         3  1.0 GB  0.0 MB  1.0 GB 2014-09-04 14:19   7c2b27      2
>          xxx
> s test         4  1.0 GB  0.0 MB  1.0 GB 2014-09-04 14:19   7c2b28      2
>          xxx
> s test         5  1.0 GB  0.0 MB  1.0 GB 2014-09-04 14:19   7c2b29      2
>          xxx
>   test         0  1.0 GB  0.0 MB  1.0 GB 2014-09-04 14:19   7c2b2a      2
>
> dog vdi delete -s xxx test
>
> dog vdi list
>   Name        Id    Size    Used  Shared    Creation time   VDI id
> Copies  Tag
> s test         1  1.0 GB  1.0 GB  0.0 MB 2014-09-04 14:19   7c2b25      2
>          xxx
> s test         2  1.0 GB  0.0 MB  1.0 GB 2014-09-04 14:19   7c2b26      2
>          xxx
> s test         3  1.0 GB  0.0 MB  1.0 GB 2014-09-04 14:19   7c2b27      2
>          xxx
> s test         4  1.0 GB  0.0 MB  1.0 GB 2014-09-04 14:19   7c2b28      2
>          xxx
>   test         0  1.0 GB  0.0 MB  1.0 GB 2014-09-04 14:19   7c2b2a      2
>
> Before patching, evaluate if there may be any impact in the cluster
> snapshot save:
> dog vdi snapshot -s xxx test
> dog cluster snapshot save tag1 path
> dog vdi delete -s 1 test
> # later on
> dog vdi snapshot -s xxx test
> dog cluster snapshot save tag2 path
>
> I this example, both cluster snapshots are storing the vdi with the same
> tag.
>
>
>
>
>
>
> --
> sheepdog-users mailing lists
> sheepdog-users at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/sheepdog-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/sheepdog-users/attachments/20140906/43de3b1e/attachment-0005.html>


More information about the sheepdog-users mailing list