[one-users] Fwd: error status on disk image
Wojciech Giel
wojciech.giel at cimr.cam.ac.uk
Thu Dec 15 06:50:08 PST 2011
HI,
Thanks for response I have move back to opennebula 3.0 and still get this error:
Thu Dec 15 14:26:38 2011 [ImM][I]: Copying /var/lib/one/images/linux-generic.img to repository for image 3
Thu Dec 15 14:26:38 2011 [ReM][D]: ImageInfo method invoked
Thu Dec 15 14:26:38 2011 [ImG][D]: Message received: LOG I 3 Command execution fail: /var/lib/one/remotes/image/fs/cp /var/lib/one/images/linux-generic.img 3
Thu Dec 15 14:26:38 2011 [ImM][I]: Command execution fail: /var/lib/one/remotes/image/fs/cp /var/lib/one/images/linux-generic.img 3
Thu Dec 15 14:26:38 2011 [ImG][D]: Message received: LOG I 3 cp: Copying local image /var/lib/one/images/linux-generic.img to the image repository
Thu Dec 15 14:26:38 2011 [ImM][I]: cp: Copying local image /var/lib/one/images/linux-generic.img to the image repository
Thu Dec 15 14:26:38 2011 [ImG][D]: Message received: LOG E 3 cp: Command "cp -f /var/lib/one/images/linux-generic.img /var/lib/one/images/25bfbcc7d81aa996ca7e935f722b4b74" failed.
Thu Dec 15 14:26:38 2011 [ImM][E]: cp: Command "cp -f /var/lib/one/images/linux-generic.img /var/lib/one/images/25bfbcc7d81aa996ca7e935f722b4b74" failed.
Thu Dec 15 14:26:38 2011 [ImG][D]: Message received: LOG E 3 cp: cp: cannot stat `/var/lib/one/images/linux-generic.img': No such file or directory
Thu Dec 15 14:26:38 2011 [ImM][E]: cp: cp: cannot stat `/var/lib/one/images/linux-generic.img': No such file or directory
Thu Dec 15 14:26:38 2011 [ImG][D]: Message received: LOG E 3 Error copying /var/lib/one/images/linux-generic.img to /var/lib/one/images/25bfbcc7d81aa996ca7e935f722b4b74
Thu Dec 15 14:26:38 2011 [ImM][E]: Error copying /var/lib/one/images/linux-generic.img to /var/lib/one/images/25bfbcc7d81aa996ca7e935f722b4b74
Thu Dec 15 14:26:38 2011 [ImG][D]: Message received: LOG I 3 ExitCode: 1
Thu Dec 15 14:26:38 2011 [ImM][I]: ExitCode: 1
Thu Dec 15 14:26:38 2011 [ImG][D]: Message received: CP FAILURE 3 Error copying /var/lib/one/images/linux-generic.img to /var/lib/one/images/25bfbcc7d81aa996ca7e935f722b4b74
Thu Dec 15 14:26:38 2011 [ImM][E]: Error copying image in the repository: Error copying /var/lib/one/images/linux-generic.img to /var/lib/one/images/25bfbcc7d81aa996ca7e935f722b4b74
pwd
/var/lib/one
oneadmin at nebula5:~$ ls -la
total 52
drwxr-xr-x 9 oneadmin oneadmin 4201 2011-12-15 14:25 .
drwxr-xr-x 37 root root 4096 2011-12-13 11:46 ..
-rw-r--r-- 1 oneadmin oneadmin 17 2011-12-15 14:09 auth
-rw------- 1 oneadmin oneadmin 367 2011-12-15 14:09 .bash_history
drwx------ 2 oneadmin oneadmin 39 2011-12-15 14:07 .cache
-rw-r--r-- 1 oneadmin oneadmin 705 2011-12-15 14:10 config
drwxr-xr-x 3 oneadmin oneadmin 34 2011-12-15 14:11 .gem
drwxrws--T 2 oneadmin oneadmin 114 2011-12-15 14:25 images
drwxr-xr-x 2 oneadmin oneadmin 27 2011-12-15 14:09 .one
-rw-r--r-- 1 oneadmin oneadmin 16384 2011-12-15 14:11 oneacct.db
drwxr-xr-x 7 oneadmin oneadmin 4180 2011-12-15 14:04 remotes
drwxr-xr-x 2 oneadmin oneadmin 95 2011-12-15 14:07 .ssh
-rw------- 1 oneadmin oneadmin 818 2011-12-15 14:09 .viminfo
cat /var/lib/one/remotes/image/fs/fsrc
...
#------------------------------------------------------------------------------
# Configuration File for File-System based Image Repositories
#------------------------------------------------------------------------------
if [ -z "${ONE_LOCATION}" ]; then
export IMAGE_REPOSITORY_PATH=/var/lib/one/images
else
export IMAGE_REPOSITORY_PATH=$ONE_LOCATION/var/images
fi
...
I can create a new image as datablock type it registers fine. I can create image from copy of this image but when I try to create OS type or register a different (created with kvm-img RAW) on I get an error.
thanks
Wojciech
> Hi,
>
> I assume you are using the 3.1 development version.
> This is a new security feature to prevent users from registering any file
> readable by oneadmin.
>
> /var/lib/one is by default a restricted directory, you can configure the
> behaviour in /var/lib/one/remotes/image/fs/fsrc, check the Image Repository
> documentation for more info [1].
>
> You can also check the new features and main changes in the compatibility
> guide [2]
>
> Regards.
>
> [1]http://www.opennebula.org/documentation:rel3.2:image_repo#configuration
> [2]http://www.opennebula.org/documentation:rel3.2:compatibility
>
> --
> Carlos Martín, MSc
> Project Engineer
> OpenNebula - The Open Source Toolkit for Data Center Virtualization
> www.OpenNebula.org |cmartin at opennebula.org <http://lists.opennebula.org/listinfo.cgi/users-opennebula.org> |
> @OpenNebula<http://twitter.com/opennebula><cmartin at opennebula.org <http://lists.opennebula.org/listinfo.cgi/users-opennebula.org>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20111215/58dc19bd/attachment-0002.htm>
More information about the Users
mailing list