[one-users] Problem with saveas

Florian Antonescu florinantonescu at gmail.com
Thu Oct 25 02:48:55 PDT 2012


Hi,

I am having some problems with saving a image using onevm saveas and I
don't know what might be causing them. I am using OpenNebula 3.2 running on
Ubuntu Server 11 with two configured hosts, also running Ubuntu Server 11.
In the host I have configured in /etc/libvirt/qemu.conf user =
"oneadmin" group = "cloud" and dynamic_ownership = 0
After the VM starts I run a 'onevm saveas 29 0 test-29' and then 'onevm
shutdown 29' however, after the VM completes the shutdown the newly created
image is in error with the following message: 'chmod: changing permissions
of  /srv/cloud/one/var/images/fc98df772581a7b493e02b5de1b20082': Operation
not permitted'.
I have tracked this down to the fact that source disk belongs to root
instead of oneadmin user as shown by 'SRC: -rw-rw-rw- 1 root root 549781504
Oct 25 11:16 /srv/cloud/one/var/29/images/disk.0'
This change in permissions happens only after issuing the shutdown command.

Does anyone have any ideas why would this happen?

I am attaching below the complete logs

Thank you and best regards,
Florian Antonescu

Thu Oct 25 11:16:25 2012 [DiM][D]: Deploying VM 29
Thu Oct 25 11:16:29 2012 [TM][D]: Message received: LOG D 29 tm_clone.sh:
pandora:/srv/cloud/one/var/images/ad6689e50e084a4392c370bbe345bf4b
gaia:/srv/cloud/one/var/29/images/disk.0
Thu Oct 25 11:16:29 2012 [TM][D]: Message received: LOG D 29 tm_clone.sh:
DST: /srv/cloud/one/var/29/images/disk.0
Thu Oct 25 11:16:29 2012 [TM][D]: Message received: LOG I 29 tm_clone.sh:
Creating directory /srv/cloud/one/var/29/images
Thu Oct 25 11:16:29 2012 [TM][D]: Message received: LOG I 29 tm_clone.sh:
Executed "mkdir -p /srv/cloud/one/var/29/images".
Thu Oct 25 11:16:29 2012 [TM][D]: Message received: LOG I 29 tm_clone.sh:
Executed "chmod a+w /srv/cloud/one/var/29/images".
Thu Oct 25 11:16:29 2012 [TM][D]: Message received: LOG I 29 tm_clone.sh:
Cloning /srv/cloud/one/var/images/ad6689e50e084a4392c370bbe345bf4b
Thu Oct 25 11:16:29 2012 [TM][D]: Message received: LOG I 29 tm_clone.sh:
SRC: -rw-rw---- 1 oneadmin cloud 549781504 Oct 16 17:12
/srv/cloud/one/var/images/ad6689e50e084a4392c370bbe345bf4b
Thu Oct 25 11:16:29 2012 [TM][D]: Message received: LOG I 29 tm_clone.sh:
Executed "cp -r /srv/cloud/one/var/images/ad6689e50e084a4392c370bbe345bf4b
/srv/cloud/one/var/29/images/disk.0".
Thu Oct 25 11:16:29 2012 [TM][D]: Message received: LOG I 29 tm_clone.sh:
DST: -rw-r----- 1 oneadmin cloud 549781504 Oct 25 11:16
/srv/cloud/one/var/29/images/disk.0
Thu Oct 25 11:16:29 2012 [TM][D]: Message received: LOG I 29 tm_clone.sh:
Executed "chmod a+rw /srv/cloud/one/var/29/images/disk.0".
Thu Oct 25 11:16:29 2012 [TM][D]: Message received: LOG I 29 tm_clone.sh:
DST: *-rw-rw-rw- 1 oneadmin cloud 549781504 Oct 25 11:16
/srv/cloud/one/var/29/images/disk.0*
Thu Oct 25 11:16:29 2012 [TM][D]: Message received: LOG I 29 ExitCode: 0
Thu Oct 25 11:16:29 2012 [TM][D]: Message received: TRANSFER SUCCESS 29 -
Thu Oct 25 11:16:29 2012 [VMM][D]: Message received: LOG I 29 ExitCode: 0
Thu Oct 25 11:16:29 2012 [VMM][D]: Message received: LOG I 29 Successfully
execute network driver operation: pre.
Thu Oct 25 11:16:30 2012 [VMM][D]: Message received: LOG I 29 ExitCode: 0
Thu Oct 25 11:16:30 2012 [VMM][D]: Message received: LOG I 29 Successfully
execute virtualization driver operation: deploy.
Thu Oct 25 11:16:30 2012 [VMM][D]: Message received: LOG I 29 ExitCode: 0
Thu Oct 25 11:16:30 2012 [VMM][D]: Message received: LOG I 29 Successfully
execute network driver operation: post.
Thu Oct 25 11:16:30 2012 [VMM][D]: Message received: DEPLOY SUCCESS 29
one-29

Thu Oct 25 11:16:53 2012 [DiM][D]: Shutting down VM 29
Thu Oct 25 11:17:05 2012 [VMM][D]: Message received: LOG I 29 ExitCode: 0
Thu Oct 25 11:17:05 2012 [VMM][D]: Message received: LOG I 29 Successfully
execute virtualization driver operation: shutdown.
Thu Oct 25 11:17:05 2012 [VMM][D]: Message received: LOG I 29 ExitCode: 0
Thu Oct 25 11:17:05 2012 [VMM][D]: Message received: LOG I 29 Successfully
execute network driver operation: clean.
Thu Oct 25 11:17:05 2012 [VMM][D]: Message received: SHUTDOWN SUCCESS 29
Domain one-29 is being shutdown
Thu Oct 25 11:17:05 2012 [TM][D]: Message received: LOG I 29 tm_mv.sh:
Moving /srv/cloud/one/var/29/images/disk.0
Thu Oct 25 11:17:05 2012 [TM][D]: Message received: LOG I 29 tm_mv.sh: SRC:
*-rw-rw-rw- 1 root root 549781504 Oct 25 11:16
/srv/cloud/one/var/29/images/disk.0*
Thu Oct 25 11:17:05 2012 [TM][D]: Message received: LOG I 29 tm_mv.sh:
Executed "mv /srv/cloud/one/var/29/images/disk.0
/srv/cloud/one/var/29/disk.0".
Thu Oct 25 11:17:05 2012 [TM][D]: Message received: LOG I 29 ExitCode: 0
Thu Oct 25 11:17:05 2012 [TM][D]: Message received: LOG I 29 tm_delete.sh:
Deleting /srv/cloud/one/var/29/images
Thu Oct 25 11:17:05 2012 [TM][D]: Message received: LOG I 29 tm_delete.sh:
Executed "rm -rf /srv/cloud/one/var/29/images".
Thu Oct 25 11:17:05 2012 [TM][D]: Message received: LOG I 29 ExitCode: 0
Thu Oct 25 11:17:05 2012 [TM][D]: Message received: TRANSFER SUCCESS 29 -
Thu Oct 25 11:17:05 2012 [ImM][I]: Moving disk /srv/cloud/one/var/29/disk.0
to repository image 18
Thu Oct 25 11:17:05 2012 [ImG][D]: Message received: LOG I 18 Command
execution fail: /srv/cloud/one/var/remotes/image/fs/mv
/srv/cloud/one/var/29/disk.0 - 18 18
Thu Oct 25 11:17:05 2012 [ImM][I]: Command execution fail:
/srv/cloud/one/var/remotes/image/fs/mv /srv/cloud/one/var/29/disk.0 - 18 18
Thu Oct 25 11:17:05 2012 [ImG][D]: Message received: LOG I 18 mv: Moving
local image /srv/cloud/one/var/29/disk.0 to the image repository
Thu Oct 25 11:17:05 2012 [ImM][I]: mv: Moving local image
/srv/cloud/one/var/29/disk.0 to the image repository
Thu Oct 25 11:17:05 2012 [ImG][D]: Message received: LOG I 18 mv: Executed
"mv -f /srv/cloud/one/var/29/disk.0
/srv/cloud/one/var/images/fc98df772581a7b493e02b5de1b20082".
Thu Oct 25 11:17:05 2012 [ImM][I]: mv: Executed "mv -f
/srv/cloud/one/var/29/disk.0
/srv/cloud/one/var/images/fc98df772581a7b493e02b5de1b20082".
Thu Oct 25 11:17:05 2012 [ImG][D]: Message received: LOG E 18 mv: Command
"chmod 0660 /srv/cloud/one/var/images/fc98df772581a7b493e02b5de1b20082"
failed.
Thu Oct 25 11:17:05 2012 [ImM][E]: mv: Command "chmod 0660
/srv/cloud/one/var/images/fc98df772581a7b493e02b5de1b20082" failed.
Thu Oct 25 11:17:05 2012 [ImG][D]: Message received: LOG E 18 mv: chmod:
changing permissions of
`/srv/cloud/one/var/images/fc98df772581a7b493e02b5de1b20082': Operation not
permitted
Thu Oct 25 11:17:05 2012 [ImM][E]: *mv: chmod: changing permissions of
`/srv/cloud/one/var/images/fc98df772581a7b493e02b5de1b20082': Operation not
permitted*
Thu Oct 25 11:17:05 2012 [ImG][D]: Message received: LOG E 18 chmod:
changing permissions of
`/srv/cloud/one/var/images/fc98df772581a7b493e02b5de1b20082': Operation not
permitted
Thu Oct 25 11:17:05 2012 [ImM][E]: chmod: changing permissions of
`/srv/cloud/one/var/images/fc98df772581a7b493e02b5de1b20082': Operation not
permitted
Thu Oct 25 11:17:05 2012 [ImG][D]: Message received: LOG I 18 ExitCode: 1
Thu Oct 25 11:17:05 2012 [ImM][I]: ExitCode: 1
Thu Oct 25 11:17:05 2012 [ImG][D]: Message received: MV FAILURE 18 chmod:
changing permissions of
`/srv/cloud/one/var/images/fc98df772581a7b493e02b5de1b20082': Operation not
permitted
Thu Oct 25 11:17:05 2012 [ImM][E]: Error saving image to the repository:
chmod: changing permissions of
`/srv/cloud/one/var/images/fc98df772581a7b493e02b5de1b20082': Operation not
permitted
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20121025/a641eeed/attachment.htm>


More information about the Users mailing list