<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2014-09-04 12:42 GMT+02:00 Ruoyu <span dir="ltr"><<a href="mailto:liangry@ucweb.com" target="_blank">liangry@ucweb.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div><div class="h5">
<br></div></div>
In your opinion, duplicated tag name should be forbidden once user
tries to create a snapshot for the vdi?<br>
If yes, it is not difficult. I will take care of it.<br><br></div></blockquote><div><br></div><div>Because we can refer to a snapshot by id and by tag, I think tag has to be unique as the id.<br></div><div>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.<br>
<br>dog vdi list<br> Name Id Size Used Shared Creation time VDI id Copies Tag<br>s test 1 1.0 GB 1.0 GB 0.0 MB 2014-09-04 14:19 7c2b25 2 xxx<br>s test 2 1.0 GB 0.0 MB 1.0 GB 2014-09-04 14:19 7c2b26 2 xxx<br>
s test 3 1.0 GB 0.0 MB 1.0 GB 2014-09-04 14:19 7c2b27 2 xxx<br>s test 4 1.0 GB 0.0 MB 1.0 GB 2014-09-04 14:19 7c2b28 2 xxx<br>s test 5 1.0 GB 0.0 MB 1.0 GB 2014-09-04 14:19 7c2b29 2 xxx<br>
test 0 1.0 GB 0.0 MB 1.0 GB 2014-09-04 14:19 7c2b2a 2 <br><br>dog vdi delete -s xxx test<br><br>dog vdi list<br> Name Id Size Used Shared Creation time VDI id Copies Tag<br>
s test 1 1.0 GB 1.0 GB 0.0 MB 2014-09-04 14:19 7c2b25 2 xxx<br>s test 2 1.0 GB 0.0 MB 1.0 GB 2014-09-04 14:19 7c2b26 2 xxx<br>s test 3 1.0 GB 0.0 MB 1.0 GB 2014-09-04 14:19 7c2b27 2 xxx<br>
s test 4 1.0 GB 0.0 MB 1.0 GB 2014-09-04 14:19 7c2b28 2 xxx<br> test 0 1.0 GB 0.0 MB 1.0 GB 2014-09-04 14:19 7c2b2a 2 <br></div></div><br></div><div class="gmail_extra">Before patching, evaluate if there may be any impact in the cluster snapshot save:<br>
</div><div class="gmail_extra">dog vdi snapshot -s xxx test<br></div><div class="gmail_extra">dog cluster snapshot save tag1 path<br></div><div class="gmail_extra">dog vdi delete -s 1 test<br></div><div class="gmail_extra">
# later on<br>dog vdi snapshot -s xxx test<br></div><div class="gmail_extra"><div class="gmail_extra">dog cluster snapshot save tag2 path<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">I this example, both cluster snapshots are storing the vdi with the same tag.<br>
</div></div><div class="gmail_extra"><br><br></div></div>