Hi,
I have a qcow2 image on an external drive which is mounted as /mnt/sdh1
ownership is oneadmin:oneadmin and i can manually copy the file to /var/lib/one/datastores while logged in as oneadmin. But through sunstone it gives error:
“Error copying image in the datastore: Not allowed to copy image file /mnt/sdh1/cld_transfer/xxxx.qcow2”
oned.log:
Wed Jul 20 17:18:57 2016 [Z0][ImM][I]: Copying /mnt/sdh1/cld_transfer/xxxx.qcow2 to repository for image 48
Wed Jul 20 17:18:57 2016 [Z0][ReM][D]: Req:7920 UID:0 ImageAllocate result SUCCESS, 48
Wed Jul 20 17:18:57 2016 [Z0][AuM][D]: Message received: AUTHENTICATE SUCCESS 588 -
Wed Jul 20 17:18:57 2016 [Z0][ReM][D]: Req:9328 UID:0 ImageInfo invoked , 48
Wed Jul 20 17:18:57 2016 [Z0][ReM][D]: Req:9328 UID:0 ImageInfo result SUCCESS, "48<U…"
Wed Jul 20 17:18:58 2016 [Z0][ReM][D]: Req:432 UID:0 ImagePoolInfo invoked , -2, 0, -2000, -1
Wed Jul 20 17:18:58 2016 [Z0][ReM][D]: Req:432 UID:0 ImagePoolInfo result SUCCESS, "<IMAGE_POOL><…"
Wed Jul 20 17:18:58 2016 [Z0][ImM][I]: Command execution fail: /var/lib/one/remotes/datastore/fs/cp PERTX0RSSVZFUl9BQ1RJT05fREFUQT48SU1BR0U+PElEPjQ4PC9JRD48VUlEPjA8L1VJRD48R0lEPjA8L0dJRD48VU5BTUU+b25lYWRtaW48L1VOQU1FPjxHTkFNRT5vbmVhZG1pbjwvR05BTUU+PE5BTUU+RktNLUNsb2c8L05BTUU+PFBFUk1JU1NJT05TPjxPV05FUl9VPjE8L09XTkVSX1U+PE9XTkVSX00+MTwvT1dORVJfTT48T1dORVJfQT4wPC9PV05FUl9BPjxHUk9VUF9VPjA8L0dST1VQX1U+PEdST1VQX00+MDwvR1JPVVBfTT48R1JPVVBfQT4wPC9HUk9VUF9BPjxPVEhFUl9VPjA8L09USEVSX1U+PE9USEVSX00+MDwvT1RIRVJfTT48T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jwvSUQ+PElEPjQzPC9JRD48SUQ+NDQ8L0lEPjwvSU1BR0VTPjxURU1QTEFURT48Q0xPTkVfVEFSR0VUPjwhW0NEQVRBW1NZU1RFTV1dPjwvQ0xPTkVfVEFSR0VUPjxESVNLX1RZUEU+PCFbQ0RBVEFbRklMRV1dPjwvRElTS19UWVBFPjxEU19NQUQ+PCFbQ0RBVEFbZnNdXT48L0RTX01BRD48TE5fVEFSR0VUPjwhW0NEQVRBW05PTkVdXT48L0xOX1RBUkdFVD48UkVTVFJJQ1RFRF9ESVJTPjwhW0NEQVRBWy9dXT48L1JFU1RSSUNURURfRElSUz48U0FGRV9ESVJTPjwhW0NEQVRBWy92YXIvdG1wXV0+PC9TQUZFX0RJUlM+PFRNX01BRD48IVtDREFUQVtxY293Ml1dPjwvVE1fTUFEPjwvVEVNUExBVEU+PC9EQVRBU1RPUkU+PC9EU19EUklWRVJfQUNUSU9OX0RBVEE+ 48
Wed Jul 20 17:18:58 2016 [Z0][ImM][E]: cp: Not allowed to copy images from /var/lib/one/ /etc/one/ /var/lib/one/ /
Wed Jul 20 17:18:58 2016 [Z0][ImM][E]: Not allowed to copy image file /mnt/sdh1/cld_transfer/xxxx.qcow2
Wed Jul 20 17:18:58 2016 [Z0][ImM][I]: ExitCode: 255
Wed Jul 20 17:18:58 2016 [Z0][ImM][E]: Error copying image in the datastore: Not allowed to copy image file /mnt/sdh1/cld_transfer/xxxx.qcow2
[root@node01 cld_transfer]# pwd
/mnt/sdh1/cld_transfer
[root@node01 cld_transfer]# ll -a
total 19729984
drwxr-xr-x 2 oneadmin oneadmin 40 Jul 20 16:43 .
drwxr-xr-x 3 oneadmin oneadmin 25 Jul 20 16:42 …
-rwxr-xr-x 1 oneadmin oneadmin 20203503616 Jul 20 16:53 xxxx.qcow2
Any idea what i’m missing and how to fix it?
Thanks,
Orhan