<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Dear DRBD Community,</p>
<p>I am currently experimenting with LINSTOR + LVM Thin as storage
and i have stumbled upon this Bug (from my point of view) while
trying to assign a resource created from a snapshot to a combined
node:<br>
</p>
<p><tt>root@coruscant:~# <b>linstor resource-definition create
resource2</b><br>
SUCCESS:<br>
Description:<br>
New resource definition 'resource2' created.<br>
Details:<br>
Resource definition 'resource2' UUID is:
1d7a79e5-629d-488b-b3a8-a343a855154f<br>
root@coruscant:~# <b>linstor snapshot volume-definition restore
--from-resource </b></tt><tt><b><tt>resource1</tt></b><b>
--from-snapshot </b><b>snap1</b><b> --to-resource resource2</b><br>
SUCCESS:<br>
Description:<br>
Volume definitions of resource definition 'resource2'
restored from resource '</tt><tt><tt><tt>resource1</tt></tt>',
snapshot 'snap1'.<br>
Details:<br>
Resource UUIDs: <br>
root@coruscant:~# <b>linstor resource create coruscant
resource2 --storage-pool ssd-pool</b><br>
SUCCESS:<br>
Description:<br>
New resource 'resource2' on node 'coruscant' registered.<br>
Details:<br>
Resource 'resource2' on node 'coruscant' UUID is:
46d9235a-b726-4dd2-b2b7-d893c75a8212<br>
SUCCESS:<br>
Description:<br>
Volume with number '0' on resource 'resource2' on node
'coruscant' successfully registered<br>
Details:<br>
Volume UUID is: 0a160ebf-c41a-4154-992f-374f5dd95d85<br>
SUCCESS:<br>
Description:<br>
Volume with number '1' on resource 'resource2' on node
'coruscant' successfully registered<br>
Details:<br>
Volume UUID is: 3907d2da-e1bc-4f31-b587-11bccc049b21<br>
<font color="#ff0000"><b>ERROR:</b><b><br>
</b><b>Description:</b><b><br>
</b><b> (Node: 'coruscant') Meta data creation for resource
'resource2' volume 0 failed</b><b><br>
</b><b>Cause:</b><b><br>
</b><b> Meta data creation for volume 0 +failed</b></font><br>
root@coruscant:~# <b>linstor --version</b><br>
<b>linstor 0.6.1;</b> GIT-hash:
695dda395fb9f25a4655f3d672059685f7fc7b39<br>
root@coruscant:~#</tt><tt><br>
<br>
</tt></p>
<p>STEPS to reproduce it:<br>
</p>
<p>1) Create a snapshot of some resource</p>
<p><tt>linstor snapshot create resource1 snap1</tt><br>
</p>
<p>2) Create a new RD</p>
<p><tt>linstor resource-definition create </tt><tt>resource</tt><tt>2</tt></p>
<p>3) Restore it from SNAP1</p>
<p><tt>linstor snapshot volume-definition restore --from-resource </tt><tt><tt>resource1</tt>
--from-snapshot </tt><tt><tt>snap1</tt> --to-resource </tt><tt>resource</tt><tt>2</tt></p>
<p>4) Assign<br>
</p>
<p><tt>linstor resource create coruscant </tt><tt><tt>resource</tt><tt>2</tt>
--storage-pool ssd-pool</tt><br>
</p>
<p><br>
</p>
<p>Do you have any suggestion what am i doing wrong?<br>
Thank you!<br>
</p>
<p>Best regards<br>
</p>
<pre class="moz-signature" cols="72">--
Roman Szabados
M-AT: +43 664 831 6687</pre>
</body>
</html>