<div dir="ltr">Hi,<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="font-family:arial,sans-serif;font-size:13px">Tue Sep 10 14:32:48 2013 [ImM][E]: cp: Not allowed to copy images from /var/lib/one/ /etc/one/ /var/lib/one/</span></blockquote>

<div> </div><div>The dir /var/lib/one is a restricted dir, and OpenNebula won't allow you to copy images from there. Otherwise, you could copy the DB or other authentication files. That's why it works from /datastores.</div>

<div><br></div><div>See [1] for more information.</div><div><br style="font-family:arial,sans-serif;font-size:13px"></div><div>Best regards.</div><div><br></div><div>[1] <a href="http://opennebula.org/documentation:rel4.2:fs_ds#configuring_the_filesystem_datastores">http://opennebula.org/documentation:rel4.2:fs_ds#configuring_the_filesystem_datastores</a><br>

</div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">--<br>Join us at <a href="http://opennebulaconf.com" target="_blank">OpenNebulaConf2013</a> in Berlin, 24-26 September, 2013<br>--<div>

Carlos Martín, MSc<br>Project Engineer<br>OpenNebula - The Open-source Solution for Data Center Virtualization<div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>

</div></div></div>
<br><br><div class="gmail_quote">On Tue, Sep 10, 2013 at 4:59 PM, Gerry O'Brien <span dir="ltr"><<a href="mailto:gerry@scss.tcd.ie" target="_blank">gerry@scss.tcd.ie</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi,<br>
<br>
    This seems to be a general issue not specific to QCOW2. For the moment I've solved the issue by mounting the datastores (which are NFS exports for a filestore) on the root partition at /datastores and created a symlink form /var/lib/one/datatstore to /datastores.<br>


<br>
     Is this correct?<span class="HOEnZb"><font color="#888888"><br>
<br>
            Gerry</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
On 10/09/2013 14:38, Gerry O'Brien wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
    I get the following error when trying to create an image from a QCOW2 file:    "Error copying image in the datastore: Not allowed to copy image file /var/lib/one/datastores/1/<u></u>DELETEME.qcow2"<br>
    Below are the commands I use to create the QCOW2 file before trying to create the image named DELETEME using oneimage. The QCOW2 file is has been created with a backing file.<br>
<br>
    This used to work in Opennebula 3. I have made sure the use oneadmin is also in the cloud group in case it is some kind of permissions file.<br>
<br>
    Any ideas?<br>
<br>
        Regards,<br>
            Gerry<br>
<br>
<br>
<br>
qemu-img create -f qcow2 -o backing_file=/var/lib/one/<u></u>datastores/1/<u></u>e1e1735dada84a7c6290001b9a244e<u></u>be /var/lib/one/datastores/1/<u></u>DELETEME.qcow2 <br>
qemu-img info /var/lib/one/datastores/1/<u></u>DELETEME.qcow2<br>
image: /var/lib/one/datastores/1/<u></u>DELETEME.qcow2<br>
file format: qcow2<br>
virtual size: 50G (53687091200 bytes)<br>
disk size: 12K<br>
cluster_size: 65536<br>
backing file: /var/lib/one/datastores/1/<u></u>e1e1735dada84a7c6290001b9a244e<u></u>be<br>
<br>
<br>
<br>
ls -la /var/lib/one/datastores/1/<u></u>DELETEME.qcow2<br>
-rw-r--r-- 1 oneadmin oneadmin 197632 Sep 10 13:27 /var/lib/one/datastores/1/<u></u>DELETEME.qcow2<br>
<br>
 oneimage create -d default --name DELETEME  --path /var/lib/one/datastores/1/<u></u>DELETEME.qcow2 --prefix hd --type OS --driver qcow2 --persistent<br>
<br>
<br>
<br>
<br>
<br>
<br>
Below is a similar error message when using the sunstone GUI<br>
<br>
<br>
Tue Sep 10 14:32:48 2013 [ImM][I]: Copying /var/lib/one/datastores/1/<u></u>VlabC_1.qcow2 to repository for image 37<br>
Tue Sep 10 14:32:48 2013 [ReM][D]: Req:7232 UID:0 ImageAllocate result SUCCESS, 37<br>
Tue Sep 10 14:32:48 2013 [ReM][D]: Req:4064 UID:0 ImageInfo invoked, 37<br>
Tue Sep 10 14:32:48 2013 [ReM][D]: Req:4064 UID:0 ImageInfo result SUCCESS, "<IMAGE><ID>37</ID><U..."<br>
Tue Sep 10 14:32:48 2013 [ImM][I]: Command execution fail: /var/lib/one/remotes/<u></u>datastore/fs/cp PERTX0RSSVZFUl9BQ1RJT05fREFUQT<u></u>48SU1BR0U+<u></u>PElEPjM3PC9JRD48VUlEPjA8L1VJRD<u></u>48R0lEPjA8L0dJRD48VU5BTUU+<u></u>b25lYWRtaW48L1VOQU1FPjxHTkFNRT<u></u>5vbmVhZG1pbjwvR05BTUU+PE5BTUU+<u></u>UUNPVzItRXhhbXBsZTwvTkFNRT48UE<u></u>VSTUlTU0lPTlM+PE9XTkVSX1U+<u></u>MTwvT1dORVJfVT48T1dORVJfTT4xPC<u></u>9PV05FUl9NPjxPV05FUl9BPjA8L09X<u></u>TkVSX0E+PEdST1VQX1U+<u></u>MDwvR1JPVVBfVT48R1JPVVBfTT4wPC<u></u>9HUk9VUF9NPjxHUk9VUF9BPjA8L0dS<u></u>T1VQX0E+PE9USEVSX1U+<u></u>MDwvT1RIRVJfVT48T1RIRVJfTT4wPC<u></u>9PVEhFUl9NPjxPVEhFUl9BPjA8L09U<u></u>SEVSX0E+<u></u>PC9QRVJNSVNTSU9OUz48VFlQRT4yPC<u></u>9UWVBFPjxESVNLX1RZUEU+<u></u>MDwvRElTS19UWVBFPjxQRVJTSVNURU<u></u>5UPjE8L1BFUlNJU1RFTlQ+<u></u>PFJFR1RJTUU+<u></u>MTM3ODgxOTk2ODwvUkVHVElNRT48U0<u></u>9VUkNFPjwvU09VUkNFPjxQQVRIPi92<u></u>YXIvbGliL29uZS9kYXRhc3RvcmVzLz<u></u>EvVmxhYkNfMS5xY293MjwvUEFUSD48<u></u>RlNUWVBFPjwvRlNUWVBFPjxTSVpFPj<u></u>E8L1NJWkU+<u></u>PFNUQVRFPjQ8L1NUQVRFPjxSVU5OSU<u></u>5HX1ZNUz4wPC9SVU5OSU5HX1ZNUz48<u></u>Q0xPTklOR19PUFM+<u></u>MDwvQ0xPTklOR19PUFM+<u></u>PENMT05JTkdfSUQ+<u></u>LTE8L0NMT05JTkdfSUQ+<u></u>PERBVEFTVE9SRV9JRD4xPC9EQVRBU1<u></u>RPUkVfSUQ+<u></u>PERBVEFTVE9SRT5kZWZhdWx0PC9EQV<u></u>RBU1RPUkU+<u></u>PFZNUz48L1ZNUz48Q0xPTkVTPjwvQ0<u></u>xPTkVTPjxURU1QTEFURT48REVWX1BS<br>


</blockquote>
RU<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
ZJWD48IVtDREFUQVtoZF1dPjwvREVW<u></u>X1BSRUZJWD48RFJJVkVSPjwhW0NEQV<u></u>RBW3Fjb3cyXV0+PC9EUklWRVI+<u></u>PC9URU1QTEFURT48L0lNQUdFPjxEQV<u></u>RBU1RPUkU+PElEPjE8L0lEPjxVSUQ+<u></u>MDwvVUlEPjxHSUQ+<u></u>MDwvR0lEPjxVTkFNRT5vbmVhZG1pbj<u></u>wvVU5BTUU+<u></u>PEdOQU1FPm9uZWFkbWluPC9HTkFNRT<u></u>48TkFNRT5kZWZhdWx0PC9OQU1FPjxQ<u></u>RVJNSVNTSU9OUz48T1dORVJfVT4xPC<u></u>9PV05FUl9VPjxPV05FUl9NPjE8L09X<u></u>TkVSX00+PE9XTkVSX0E+<u></u>MDwvT1dORVJfQT48R1JPVVBfVT4xPC<u></u>9HUk9VUF9VPjxHUk9VUF9NPjA8L0dS<u></u>T1VQX00+PEdST1VQX0E+<u></u>MDwvR1JPVVBfQT48T1RIRVJfVT4xPC<u></u>9PVEhFUl9VPjxPVEhFUl9NPjA8L09U<u></u>SEVSX00+PE9USEVSX0E+<u></u>MDwvT1RIRVJfQT48L1BFUk1JU1NJT0<u></u>5TPjxEU19NQUQ+<u></u>ZnM8L0RTX01BRD48VE1fTUFEPnNoYX<u></u>JlZDwvVE1fTUFEPjxCQVNFX1BBVEg+<u></u>L3Zhci9saWIvb25lL2RhdGFzdG9yZX<u></u>MvMTwvQkFTRV9QQVRIPjxUWVBFPjA8<u></u>L1RZUEU+<u></u>PERJU0tfVFlQRT4wPC9ESVNLX1RZUE<u></u>U+PENMVVNURVJfSUQ+<u></u>LTE8L0NMVVNURVJfSUQ+<u></u>PENMVVNURVI+<u></u>PC9DTFVTVEVSPjxUT1RBTF9NQj4yMj<u></u>QwNzIzNjwvVE9UQUxfTUI+<u></u>PEZSRUVfTUI+<u></u>MjIzNjQ1MzI8L0ZSRUVfTUI+<u></u>PFVTRURfTUI+<u></u>NDI3MDc8L1VTRURfTUI+<u></u>PElNQUdFUz48SUQ+MDwvSUQ+<u></u>PElEPjE8L0lEPjxJRD4yPC9JRD48SU<u></u>Q+MzwvSUQ+<u></u>PElEPjQ8L0lEPjxJRD4xNjwvSUQ+<u></u>PElEPjIwPC9JRD48L0lNQU<br>


</blockquote>
d <br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
FUz48VEVNUExBVEU+<u></u>PERTX01BRD48IVtDREFUQVtmc11dPj<u></u>wvRFNfTUFEPjxUTV9NQUQ+<u></u>PCFbQ0RBVEFbc2hhcmVkXV0+<u></u>PC9UTV9NQUQ+PFRZUEU+<u></u>PCFbQ0RBVEFbSU1BR0VfRFNdXT48L1<u></u>RZUEU+<u></u>PC9URU1QTEFURT48L0RBVEFTVE9SRT<u></u>48L0RTX0RSSVZFUl9BQ1RJT05fREFU<u></u>QT4= 37<br>


Tue Sep 10 14:32:48 2013 [ImM][E]: cp: Not allowed to copy images from /var/lib/one/ /etc/one/ /var/lib/one/<br>
Tue Sep 10 14:32:48 2013 [ImM][E]: Not allowed to copy image file /var/lib/one/datastores/1/<u></u>VlabC_1.qcow2<br>
Tue Sep 10 14:32:48 2013 [ImM][I]: ExitCode: 255<br>
Tue Sep 10 14:32:48 2013 [ImM][E]: Error copying image in the datastore: Not allowed to copy image file /var/lib/one/datastores/1/<u></u>VlabC_1.qcow2<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</blockquote>
<br>
<br>
-- <br>
Gerry O'Brien<br>
<br>
Systems Manager<br>
School of Computer Science and Statistics<br>
Trinity College Dublin<br>
Dublin 2<br>
IRELAND<br>
<br>
00 353 1 896 1341<br>
<br>
<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/<u></u>listinfo.cgi/users-opennebula.<u></u>org</a><br>
</div></div></blockquote></div><br></div>