<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
On 09-05-2020 20:31, gunnar.wagner wrote:<br>
<blockquote type="cite"
cite="mid:223af922-ad75-8dd6-2aa9-a95575743162@netcologne.de">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<br>
<div><font face="Helvetica, Arial, sans-serif">
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">I was unfortunate to choose my containers name such that LXD thinks one is a snapshot of the
other.</pre>
</blockquote>
hm. Not sure whether this is the explanation. The volume of a
snapshot of test04 would be named
<b>test04/second</b> and not <b>test04-second</b>. (at least
it is that scheme I get with '</font><tt>lxc storage volume
list pool2'</tt><font face="Helvetica, Arial, sans-serif">
(and also is the naming scheme you use to delete snapshots)<br>
</font></div>
</blockquote>
<br>
<font face="Helvetica, Arial, sans-serif">The problem is that the
underlying LVM names are such that a hyphen is used as a
separator. And any hyphen<br>
in the container (or snapshot) name is "escaped" by doubling it.
So in my case the LVM volume is named test04--second.<br>
In hindsight that was a bad choice, IMHO.<br>
</font>
<blockquote type="cite"
cite="mid:223af922-ad75-8dd6-2aa9-a95575743162@netcologne.de">
<div><font face="Helvetica, Arial, sans-serif">
<br>
So, if that naming has some sort of relevance as you suspect
It smells more like a bug then a feature.<br>
</font></div>
</blockquote>
<font face="Helvetica, Arial, sans-serif">The bug is that the
algorithm to find snapshots in the list of LVM volumes is wrong.
When it searches for<br>
snapshots for test04 it was looking for anything that starts with
test04- and that would incorrectly find<br>
test04-second. BTW, see <a class="moz-txt-link-freetext" href="https://github.com/lxc/lxd/issues/7335">https://github.com/lxc/lxd/issues/7335</a><br>
</font>
<blockquote type="cite"
cite="mid:223af922-ad75-8dd6-2aa9-a95575743162@netcologne.de">
<div><font face="Helvetica, Arial, sans-serif">
<br>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">And what interesting is that you can only use a hyphen as a separator, not
an underscore.</pre>
</blockquote>
can't confirm that neither. My snapshots all have names like </font><tt>'pre-some_string</tt><font
face="Helvetica, Arial, sans-serif">' and have never seen any
problem with that.</font><br>
</div>
</blockquote>
<font face="Helvetica, Arial, sans-serif">I was talking about the
name of the container, not the snapshot. You cannot have a
container named test04_second.<br>
-- <br>
Kees<br>
</font>
</body>
</html>