[sheepdog-users] [sheepdog] fix bug 1317791

Andrew J. Hobbs ajhobbs at desu.edu
Fri Sep 5 16:04:51 CEST 2014


Are you referring to unique tags within a vdi name, or over the entire cluster?  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.

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..


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.





-------------- next part --------------
A non-text attachment was scrubbed...
Name: ajhobbs.vcf
Type: text/x-vcard
Size: 353 bytes
Desc: ajhobbs.vcf
URL: <http://lists.wpkg.org/pipermail/sheepdog-users/attachments/20140905/4c29a996/attachment-0005.vcf>


More information about the sheepdog-users mailing list