[one-users] oneimage QCOW2 problem: Error copying image in the datastore: Not allowed to copy image file

Gerry O'Brien gerry at scss.tcd.ie
Tue Sep 10 07:59:44 PDT 2013


Hi,

     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.

      Is this correct?

             Gerry

On 10/09/2013 14:38, Gerry O'Brien wrote:
> Hi,
>
>     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/DELETEME.qcow2"
>     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.
>
>     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.
>
>     Any ideas?
>
>         Regards,
>             Gerry
>
>
>
> qemu-img create -f qcow2 -o 
> backing_file=/var/lib/one/datastores/1/e1e1735dada84a7c6290001b9a244ebe /var/lib/one/datastores/1/DELETEME.qcow2 
>
> qemu-img info /var/lib/one/datastores/1/DELETEME.qcow2
> image: /var/lib/one/datastores/1/DELETEME.qcow2
> file format: qcow2
> virtual size: 50G (53687091200 bytes)
> disk size: 12K
> cluster_size: 65536
> backing file: /var/lib/one/datastores/1/e1e1735dada84a7c6290001b9a244ebe
>
>
>
> ls -la /var/lib/one/datastores/1/DELETEME.qcow2
> -rw-r--r-- 1 oneadmin oneadmin 197632 Sep 10 13:27 
> /var/lib/one/datastores/1/DELETEME.qcow2
>
>  oneimage create -d default --name DELETEME  --path 
> /var/lib/one/datastores/1/DELETEME.qcow2 --prefix hd --type OS 
> --driver qcow2 --persistent
>
>
>
>
>
>
> Below is a similar error message when using the sunstone GUI
>
>
> Tue Sep 10 14:32:48 2013 [ImM][I]: Copying 
> /var/lib/one/datastores/1/VlabC_1.qcow2 to repository for image 37
> Tue Sep 10 14:32:48 2013 [ReM][D]: Req:7232 UID:0 ImageAllocate result 
> SUCCESS, 37
> Tue Sep 10 14:32:48 2013 [ReM][D]: Req:4064 UID:0 ImageInfo invoked, 37
> Tue Sep 10 14:32:48 2013 [ReM][D]: Req:4064 UID:0 ImageInfo result 
> SUCCESS, "<IMAGE><ID>37</ID><U..."
> Tue Sep 10 14:32:48 2013 [ImM][I]: Command execution fail: 
> /var/lib/one/remotes/datastore/fs/cp 
> PERTX0RSSVZFUl9BQ1RJT05fREFUQT48SU1BR0U+PElEPjM3PC9JRD48VUlEPjA8L1VJRD48R0lEPjA8L0dJRD48VU5BTUU+b25lYWRtaW48L1VOQU1FPjxHTkFNRT5vbmVhZG1pbjwvR05BTUU+PE5BTUU+UUNPVzItRXhhbXBsZTwvTkFNRT48UEVSTUlTU0lPTlM+PE9XTkVSX1U+MTwvT1dORVJfVT48T1dORVJfTT4xPC9PV05FUl9NPjxPV05FUl9BPjA8L09XTkVSX0E+PEdST1VQX1U+MDwvR1JPVVBfVT48R1JPVVBfTT4wPC9HUk9VUF9NPjxHUk9VUF9BPjA8L0dST1VQX0E+PE9USEVSX1U+MDwvT1RIRVJfVT48T1RIRVJfTT4wPC9PVEhFUl9NPjxPVEhFUl9BPjA8L09USEVSX0E+PC9QRVJNSVNTSU9OUz48VFlQRT4yPC9UWVBFPjxESVNLX1RZUEU+MDwvRElTS19UWVBFPjxQRVJTSVNURU5UPjE8L1BFUlNJU1RFTlQ+PFJFR1RJTUU+MTM3ODgxOTk2ODwvUkVHVElNRT48U09VUkNFPjwvU09VUkNFPjxQQVRIPi92YXIvbGliL29uZS9kYXRhc3RvcmVzLzEvVmxhYkNfMS5xY293MjwvUEFUSD48RlNUWVBFPjwvRlNUWVBFPjxTSVpFPjE8L1NJWkU+PFNUQVRFPjQ8L1NUQVRFPjxSVU5OSU5HX1ZNUz4wPC9SVU5OSU5HX1ZNUz48Q0xPTklOR19PUFM+MDwvQ0xPTklOR19PUFM+PENMT05JTkdfSUQ+LTE8L0NMT05JTkdfSUQ+PERBVEFTVE9SR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+MzwvSUQ+PElEPjQ8L0lEPjxJRD4xNjwvSUQ+PElEPjIwPC9JRD48L0lNQUd 
>
> FUz48VEVNUExBVEU+PERTX01BRD48IVtDREFUQVtmc11dPjwvRFNfTUFEPjxUTV9NQUQ+PCFbQ0RBVEFbc2hhcmVkXV0+PC9UTV9NQUQ+PFRZUEU+PCFbQ0RBVEFbSU1BR0VfRFNdXT48L1RZUEU+PC9URU1QTEFURT48L0RBVEFTVE9SRT48L0RTX0RSSVZFUl9BQ1RJT05fREFUQT4= 
> 37
> Tue Sep 10 14:32:48 2013 [ImM][E]: cp: Not allowed to copy images from 
> /var/lib/one/ /etc/one/ /var/lib/one/
> Tue Sep 10 14:32:48 2013 [ImM][E]: Not allowed to copy image file 
> /var/lib/one/datastores/1/VlabC_1.qcow2
> Tue Sep 10 14:32:48 2013 [ImM][I]: ExitCode: 255
> 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/VlabC_1.qcow2
>
>
>
>
>
>
>
>
>


-- 
Gerry O'Brien

Systems Manager
School of Computer Science and Statistics
Trinity College Dublin
Dublin 2
IRELAND

00 353 1 896 1341





More information about the Users mailing list