Re: [one-users] Opennebula 3.0 accounting tools problem on ubuntu 10.04

2011-12-12 Thread Javier Fontan
Hello,

Can you check that oneacctd is running?

Also we are having some problems with oneacctd daemon and mysql
databases and we are working to solve this. Meanwhile it would be
better that you use a sqlite database to keep the accounting records.

Bye

On Tue, Nov 15, 2011 at 8:02 AM, Mohd Noor Julaini Hussin
julaini.hus...@mimos.my wrote:

 Hello,

 I currently use opennebula 3.0 with using mysql as databases.
 i already start oneacctd daemon and install opennebula  accounting tools 
 2.9.85 as root user.
 my system also have a few of running vm like ttylinux,ubuntu10.04 that create 
 by command line as root user
 but when i execute oneacct -u 0 there is no output.I hope someone can help me 
 with this kind of problem.
 thank you.


 below is details of my system:

 OS:Ubuntu 10.04 LTS 64bit.
 opennebula 3.0
 database:opennebula
 password:abc123
 server:localhost
 user:root
 installation type self-installation using $ONE_LOCATION.(/srv/cloud/one)
 opennebula can only start by using root user.
 all required gem have been install.
 i also fix the bug for opennebula 3.0 refer to 
 http://opennebula.org/documentation:rel3.0:acctd_conf#considerations_limitations
 acctd.conf also have been configured using mysql:below is my acctd 
 configuration file:


 :DB: mysql://root:abc123@localhost/opennebula
 # Duration of each daemon loop in seconds
 :STEP: 300 # 5 minutes

 #---
 # VM Monitoring
 #---

 :VM_MONITORING:

    # Number of daemon loops until a VM monitoring watch
    :STEPS: 1

    # Number of VM records to preserve
    :WINDOW_SIZE: 5

 #---
 # HOST Monitoring
 #---

 :HOST_MONITORING:
  # Number of daemon loops until a Hosts monitoring watch
    :STEPS: 3

    # Number of HOST records to preserve
    :WINDOW_SIZE: 5

 #---
 # Accounting
 #---

 :ACCOUNTING:

    # Number of daemon loops until an accounting watch
    :STEPS: 10


 Regards,

 Mohd Noor
 ---
  A strategic agency under MOSTI
  www.mimos.my
 ---

 --
 -
 -
 DISCLAIMER:

 This e-mail (including any attachments) is for the addressee(s)
 only and may contain confidential information. If you are not the
 intended recipient, please note that any dealing, review,
 distribution, printing, copying or use of this e-mail is strictly
 prohibited. If you have received this email in error, please notify
 the sender  immediately and delete the original message.
 MIMOS Berhad is a research and development institution under
 the purview of the Malaysian Ministry of Science, Technology and
 Innovation. Opinions, conclusions and other information in this e-
 mail that do not relate to the official business of MIMOS Berhad
 and/or its subsidiaries shall be understood as neither given nor
 endorsed by MIMOS Berhad and/or its subsidiaries and neither
 MIMOS Berhad nor its subsidiaries accepts responsibility for the
 same. All liability arising from or in connection with computer
 viruses and/or corrupted e-mails is excluded to the fullest extent
 permitted by law.


 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org



-- 
Javier Fontán Muiños
Project Engineer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | jfon...@opennebula.org | @OpenNebula
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Scheduler and required memory/cpu

2011-12-12 Thread Tomáš Nechutný
Hello,

My computer has 4GB of physical RAM (+swap). This computer is also
only OpenNebula host. I created 3 VMs with 2GB specified in template
(without REQUIREMENTS). However the scheduler deploys only 1 VM. This
page http://www.linux-kvm.org/page/Memory sates:

 The qemu/kvm process runs mostly like a normal Linux program. It allocates 
 its memory with normal malloc() or mmap() calls. If a guest is going to have 
 1GB of physical memory, qemu/kvm will effectively do a malloc(130), 
 allocating 1GB of host virtual space. However, just like a normal program 
 doing a malloc(), there is no actual physical memory allocated at the time of 
 the malloc(). It will not be actually allocated until the first time it is 
 touched.

I think that it should be possible when there is no ohter host.

This is probably related to http://dev.opennebula.org/issues/846.

--
Tomáš Nechutný
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Announce 3.0 packages for SUSE

2011-12-12 Thread Jaime Melis
Hello Robert,

thanks a lot for updating the packages, and thanks a lot for developing the
new systemd scripts, we will include them in OpenNebula's source code.

Regards,
Jaime

On Thu, Dec 8, 2011 at 9:46 PM, Robert Schweikert rjsch...@suse.com wrote:

 Hi,

 Yes, 3.0 has been out for a while and I am a bit late. But better late
 then never. Earlier this week I released 3.0 builds from the :Testing
 repository on OBS (openSUSE Build Service) into the main repository

 http://download.opensuse.org/**repositories/Virtualization:/**
 Cloud:/OpenNebula/http://download.opensuse.org/repositories/Virtualization:/Cloud:/OpenNebula/

 I also updated the KIWI example, available with the next KIWI development
 release tomorrow, as well as the wiki entries:

 http://en.opensuse.org/SDB:**Cloud_OpenNebulahttp://en.opensuse.org/SDB:Cloud_OpenNebula

 http://en.opensuse.org/SDB:**KIWI_Cookbook_ONebula_Cloudhttp://en.opensuse.org/SDB:KIWI_Cookbook_ONebula_Cloud

 For openSUSE 12.1 we switched to systemd. The openSUSE 12.1 package for
 OpenNebula contains service unit files. I'll post those in a separet e-mail.

 Enjoy,
 Robert

 --
 Robert Schweikert   MAY THE SOURCE BE WITH YOU
 SUSE-IBM Software Integration Center   LINUX
 Tech Lead
 rjsch...@suse.com
 rschw...@ca.ibm.com
 781-464-8147
 __**_
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**orghttp://lists.opennebula.org/listinfo.cgi/users-opennebula.org




-- 
Jaime Melis
Project Engineer
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org | jme...@opennebula.org
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] iscsi target as a guest disk

2011-12-12 Thread Tengvall, Ilkka (NSN - FI Espoo)
Hi,

I'm new to Open Nebula, and have some questions. First one would be
about iscsi support. I can't find any reference from oned documents
itself about iscsi. Is it possible to configure guests  using iscsi lun
from remote server as a os block device?

I have done it using libvirt, so it works, but how to map this to oned
configs?

another way which would also work would be booting kernel directly or
via ipxe and give it iscsi as a root device. Both of those work too.

Is there a way to do this in oned?

I found an old related posting here, but I don't know if it ever led to
anything:

http://lists.opennebula.org/htdig.cgi/users-opennebula.org/2009-July/000599.html

-- 
Ilkka Tengvall
Senior Specialist, Linux  Virtualization Architecture

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Instantiating Multiple VMs from Template with Name

2011-12-12 Thread Stefan Dietrich

Hi,

I`m running an OpenNebula 3.0 installation build from source on 
Scientific Linux 6.1 x64.
I have a problem instantiating multiple VMs from a template with the 
name set:


1) Instantiating multiple VMs from templates within Sunstone adds a 
number after the name of the VM, e.g. 'test_01', 'test_02', 'test_03'. 
Is it possible to change the suffix from the underscore to a normal dash 
(test_01 - test-01)?


2) If I try to instantiate multiple VMs from CMD line with 'onetemplate 
instantiate 3 -m 2 -n test' every VM gets the name 'test' and not 
'test_01', 'test_02'.

This behaviour differs from Sunstone, which I had not expected.
Is this a bug or a feature?

I hope somebody has a solution for this :)

Regards,
Stefan
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] error status on disk image

2011-12-12 Thread Wojciech Giel

Hi,
I'm trying to create disk image template using both sunstone and command 
line but result is the same:


oneimage list -v
  ID USER GROUPNAMESIZE TYPE  REGTIME PUB 
PER STAT  RVMS
   4 oneadmin oneadmin linux 0M   OS   12/12 14:07:32  No  
No  err 0


sunstone
ERROR   


TIMESTAMP   Mon Dec 12 14:07:32 2011
MESSAGE 	Error copying image in the repository: Not allowed to copy 
image file /var/lib/one/templates/linux_generic.img



oneadmin is the owner of /var/lib/one/templates/ directory.
what might be a problem ?
thanks
Wojciech

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Problem in network from fresh install opennebula 3

2011-12-12 Thread Carlos Martín Sánchez
Hi,

It looks like for some reason the LEASES attributes weren't processed. If I
create a vnet from this template:

$ cat fixed
BRIDGE=virbrCLOUD
LEASES=[ IP=84.21.173.192, MAC=02:fe:54:15:ad:C0 ]
LEASES=[ IP=84.21.173.194, MAC=02:fe:54:15:ad:C2 ]
NAME=red1
TYPE=FIXED

The xml shows the two LEASES inside VNET/TEMPLATE/ and VNET/LEASES [1].
Can you reproduce this error? Is there anything in your template file that
might cause the parser to fail?

Regards.

[1]
$ onevnet show red1 -x
VNET
  ID0/ID
  UID0/UID
  GID0/GID
  UNAMEoneadmin/UNAME
  GNAMEoneadmin/GNAME
  NAMEred1/NAME
  TYPE1/TYPE
  BRIDGEvirbrCLOUD/BRIDGE
  PUBLIC0/PUBLIC
  TOTAL_LEASES0/TOTAL_LEASES
  TEMPLATE
BRIDGE![CDATA[virbrCLOUD]]/BRIDGE
LEASES
  IP![CDATA[84.21.173.192]]/IP
  MAC![CDATA[02:fe:54:15:ad:C0]]/MAC
/LEASES
LEASES
  IP![CDATA[84.21.173.194]]/IP
  MAC![CDATA[02:fe:54:15:ad:C2]]/MAC
/LEASES
NAME![CDATA[red1]]/NAME
TYPE![CDATA[FIXED]]/TYPE
  /TEMPLATE
  LEASES
LEASE
  IP84.21.173.192/IP
  MAC02:fe:54:15:ad:c0/MAC
  USED0/USED
  VID-1/VID
/LEASE
LEASE
  IP84.21.173.194/IP
  MAC02:fe:54:15:ad:c2/MAC
  USED0/USED
  VID-1/VID
/LEASE
  /LEASES
/VNET

--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | cmar...@opennebula.org |
@OpenNebulahttp://twitter.com/opennebulacmar...@opennebula.org


2011/11/25 Carlos Fernández Iglesias cigles...@cesga.es

 Hello,

 This is the info:

 -bash-4.1$ onevnet show -x 0
 VNET
  ID0/ID
  UID0/UID
  GID0/GID
  UNAMEoneadmin/UNAME
  GNAMEoneadmin/GNAME
  NAME171/NAME
  TYPE1/TYPE
  BRIDGEvirbrCLOUD/BRIDGE
  PUBLIC1/PUBLIC
  TOTAL_LEASES0/TOTAL_LEASES
  TEMPLATE
   BRIDGE![CDATA[virbrCLOUD]]**/BRIDGE
   LEASES
 IP![CDATA[84.21.173.192]]**/IP
 MAC![CDATA[02:fe:54:15:ad:**C0]]/MAC
   /LEASES
   LEASES
 IP![CDATA[84.21.173.194]]**/IP
 MAC![CDATA[02:fe:54:15:ad:**C2]]/MAC
   /LEASES
   NAME![CDATA[PROBAS]]/**NAME
   TYPE![CDATA[FIXED]]/TYPE
  /TEMPLATE
  LEASES/
 /VNET

 Thank you.

 El vie 25 nov 2011 10:03:27 CET, Ruben S. Montero escribió:

 hi

 What is info of onevnet show -x 0 ?


 Cheers

 2011/11/25 Carlos Fernández Iglesiascigles...@cesga.es:

  I am trying to get the lease also with the oneadmin account, yes.

 This are the lines in oned.log:

 Fri Nov 25 09:45:19 2011 [ReM][D]: TemplateInfo method invoked
 Fri Nov 25 09:45:19 2011 [ReM][D]: TemplateInstantiate method invoked
 Fri Nov 25 09:45:19 2011 [ONE][E]: Could not get virtual network for VM.
 Fri Nov 25 09:45:19 2011 [ReM][E]: [TemplateInstantiate] Error
 allocating a
 new virtual machine. Could not get virtual network for VM.

 Thank you.

 El jue 24 nov 2011 21:02:51 CET, Ruben S. Montero escribió:


 Are you trying yo get the lease also with the oneadmin account? Any
 relevant message in oned.log?

 2011/11/24 Carlos Fernández Iglesiascigles...@cesga.es:


 Hello,

 I have a fresh install with a network configured:
 ID : 0
 USER   : oneadmin
 GROUP  : oneadmin
 PUBLIC : Yes
 USED LEASES: 0

 VIRTUAL NETWORK TEMPLATE
 BRIDGE=virbrCLOUD
 LEASES=[ IP=84.21.173.192, MAC=02:fe:54:15:ad:C0 ]
 LEASES=[ IP=84.21.173.194, MAC=02:fe:54:15:ad:C2 ]
 NAME=red1
 TYPE=FIXED

 one template that uses it, but onetemplate instantiate gives allways
 the
 same error with oneadmin:

 [TemplateInstantiate] Error allocating a new virtual machine. Could not
 get
 virtual network for VM.

 Does anyone know what i'm doing wrong?

 Thanks.

 Machine template:
 TEMPLATE 0 INFORMATION
 ID : 0
 NAME   : Opennebula pruebas migracion
 USER   : oneadmin
 GROUP  : oneadmin
 REGISTER TIME  : 11/24 15:27:05
 PUBLIC : Yes

 TEMPLATE CONTENTS
 CONTEXT=[
  FILES=/var/lib/oneadmin/init.**sh,
  GATEWAY=84.21.173.254,
  HOSTNAME=$NAME,
  IP_PRIVATE=192.168.195.1,
  IP_PUBLIC=84.21.173.194,
  NODE_CORES=1,
  ROOT_PASSWD=pass,
  TARGET=hdd,
  USER_GID=1000,
  USER_ID=1000,
  USER_NAME=user,
  USER_PASSWD=user ]
 CPU=1
 DISK=[
  DRIVER=qcow2,
  IMAGE_ID=3 ]
 DISK=[
  READONLY=no,
  SIZE=1024,
  TARGET=hdc,
  TYPE=swap ]
 GRAPHICS=[
  KEYMAP=es,
  LISTEN=0.0.0.0,
  TYPE=vnc ]
 MEMORY=1024
 NAME=Opennebula pruebas migracion
 NIC=[
  IP=84.21.173.194,
  MODEL=virtio,
  NETWORK_ID=0 ]
 RANK=- RUNNING_VMS
 REQUIREMENTS=HYPERVISOR=\**kvm\TM_MAD=\tm_ssh\
 TEMPLATE_ID=0
 VCPU=1
 __**_
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**orghttp://lists.opennebula.org/listinfo.cgi/users-opennebula.org






 __**_
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**orghttp://lists.opennebula.org/listinfo.cgi/users-opennebula.org






 __**_
 Users mailing list
 

Re: [one-users] Concurrent disk access

2011-12-12 Thread Fabian Wenk

Hello Richard

On 12.12.2011 00:55, richard -rw- weinberger wrote:

On Mon, Dec 12, 2011 at 12:50 AM, Steven Timmt...@fnal.gov  wrote:

 What kind of transfer method are you using?  shared, ssh, lvm?
 You can load the .raw file into the image repository, make
 it persistent, and that will take care of it.


I'm using shared.

But if I use the image repository, it will *copy* my image at least once, right?
My images are very big.500GiB.


Yes, it will be copied, unless you use NFS or any other shared 
storage for the images repository. Using a registered image is 
the only chance for OpenNebula to know that a certain image is 
being used by a VM. This will be updated in the images table in 
the database. OpenNebula does not care about a more then once 
used path to a disk in the VM template.



bye
Fabian
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Virtual Machine Lock Manager

2011-12-12 Thread Fabian Wenk

Hello Upendra

On 12.12.2011 08:04, Upendra Moturi wrote:

Is there any locking mechanism to lock vms ,so that there are no two vms
using same hard disk


Register the hard disk image in the image repository (with 
'oneimage register ...') and then in the VM template use the 
registered image.



bye
Fabian
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] error status on disk image

2011-12-12 Thread Fabian Wenk

Hello Wojciech

On 12.12.2011 15:18, Wojciech Giel wrote:

TIMESTAMP   Mon Dec 12 14:07:32 2011
MESSAGE Error copying image in the repository: Not allowed to copy
image file /var/lib/one/templates/linux_generic.img

oneadmin is the owner of /var/lib/one/templates/ directory.
what might be a problem ?


Check the permissions on the folder of the image repository, as 
far as I know, at least oneadmin:cloud should be able to write there.



bye
Fabian
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] VMs instantiated from template have incorrect name?

2011-12-12 Thread Carlos Martín Sánchez
Hi,

You can use the -n (--name) option with onetemplate instantiate.

Regards.
--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | cmar...@opennebula.org |
@OpenNebulahttp://twitter.com/opennebulacmar...@opennebula.org


On Tue, Dec 6, 2011 at 6:37 AM, Graeme Gillies
graeme.r.gill...@gmail.comwrote:

 Hi,

 I currently have a vm template in onetemplate that looks like the following

 TEMPLATE 0 INFORMATION
 ID : 0
 NAME   : gg-devel
 USER   : ggillies
 GROUP  : users
 REGISTER TIME  : 12/02 14:43:50
 PUBLIC : No

 TEMPLATE CONTENTS
 CPU=1
 DISK=[
  BUS=virtio,
  DRIVER=raw,
  IMAGE_ID=4,
  TARGET=vda,
  TYPE=DISK ]
 DISK=[
  BUS=virtio,
  SIZE=1024,
  TARGET=vdb,
  TYPE=SWAP ]
 GRAPHICS=[
  LISTEN=0.0.0.0,
  TYPE=vnc ]
 MEMORY=512
 NAME=gg-devel
 NIC=[
  NETWORK_ID=0 ]
 OS=[
  ARCH=x86_64,
  BOOT=hd ]
 TEMPLATE_ID=0

 You can see in the template the name of the vm is gg-devel.

 However, when I use

 onetemplate instantiate 0

 And look at the running vm the name is just the generic one-XX

ID USER GROUPNAME STAT CPU MEMHOSTNAME
   TIME
43 ggillies usersone-43   runn  15512M virt-02-cloud.l
 00 00:03:25

 Is this a bug or intended? I'd like to be able to add vm templates
 into the library and when they are instantiated have the correct name
 from the template. I understand that people might be able to
 instantiate multiple instances of a template, but in that cause,
 shouldn't every instance after the first have a number appended? In my
 use case, the disk images are marked as persistent so people won't be
 able to instantiate more than 1 instance at a time.

 Any clarification would be much appreciated.

 Regards,

 Graeme
 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] error status on disk image

2011-12-12 Thread Carlos Martín Sánchez
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 | cmar...@opennebula.org |
@OpenNebulahttp://twitter.com/opennebulacmar...@opennebula.org


On Mon, Dec 12, 2011 at 3:18 PM, Wojciech Giel wojciech.g...@cimr.cam.ac.uk
 wrote:

 **
 Hi,
 I'm trying to create disk image template using both sunstone and command
 line but result is the same:

 oneimage list -v
   ID USER GROUPNAMESIZE TYPE  REGTIME PUB PER
 STAT  RVMS
4 oneadmin oneadmin linux 0M   OS   12/12 14:07:32  No  No
 err 0

 sunstone
   ERROR


   TIMESTAMP Mon Dec 12 14:07:32 2011  MESSAGE Error copying image in the
 repository: Not allowed to copy image file
 /var/lib/one/templates/linux_generic.img
 oneadmin is the owner of /var/lib/one/templates/ directory.
 what might be a problem ?
 thanks
 Wojciech


 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] error status on disk image

2011-12-12 Thread Wojciech Giel

Hello Fabian,
oneadmin is owner of templates , images:

drwxrwxrwx 2 oneadmin oneadmin12 2011-12-09 16:22 0
-rw-r--r-- 1 oneadmin oneadmin20 2011-12-09 14:43 auth
-rw-r--r-- 1 oneadmin oneadmin   819 2011-12-09 14:47 config
drwxrwsrwt 2 oneadmin oneadmin12 2011-11-18 11:22 images
-rw-r--r-- 1 oneadmin oneadmin 16384 2011-12-09 16:35 oneacct.db
-rw-r--r-- 1 oneadmin oneadmin 25600 2011-12-09 14:41 one.db
drwxr-xr-x 7 oneadmin oneadmin  4180 2011-12-09 14:39 remotes
drwxrwxrwx 2 oneadmin oneadmin   132 2011-12-12 16:00 templates

some logs:

Mon Dec 12 16:23:57 2011 [ReM][D]: ImagePoolInfo method invoked
Mon Dec 12 16:24:02 2011 [ReM][D]: UserPoolInfo method invoked
Mon Dec 12 16:24:10 2011 [ReM][D]: ImageAllocate method invoked
Mon Dec 12 16:24:10 2011 [ImM][I]: Copying 
/var/lib/one/templates/lll.img to repository for image 8
Mon Dec 12 16:24:10 2011 [ImG][D]: Message received: LOG I 8 Command 
execution fail: /var/lib/one/remotes/image/fs/cp 
/var/lib/one/templates/lll.img 8


Mon Dec 12 16:24:10 2011 [ImM][I]: Command execution fail: 
/var/lib/one/remotes/image/fs/cp /var/lib/one/templates/lll.img 8
Mon Dec 12 16:24:10 2011 [ImG][D]: Message received: LOG E 8 cp: Not 
allowed to copy images from /var/lib/one/ /etc/one/ /var/lib/one/ /etc/


Mon Dec 12 16:24:10 2011 [ImM][E]: cp: Not allowed to copy images from 
/var/lib/one/ /etc/one/ /var/lib/one/ /etc/
Mon Dec 12 16:24:10 2011 [ImG][D]: Message received: LOG E 8 Not allowed 
to copy image file /var/lib/one/templates/lll.img


Mon Dec 12 16:24:10 2011 [ImM][E]: Not allowed to copy image file 
/var/lib/one/templates/lll.img

Mon Dec 12 16:24:10 2011 [ImG][D]: Message received: LOG I 8 ExitCode: 255

Mon Dec 12 16:24:10 2011 [ImM][I]: ExitCode: 255
Mon Dec 12 16:24:10 2011 [ImG][D]: Message received: CP FAILURE 8 Not 
allowed to copy image file /var/lib/one/templates/lll.img


Mon Dec 12 16:24:10 2011 [ImM][E]: Error copying image in the 
repository: Not allowed to copy image file /var/lib/one/templates/lll.img

Mon Dec 12 16:24:15 2011 [ReM][D]: ImagePoolInfo method invoked
Mon Dec 12 16:24:16 2011 [ReM][D]: HostPoolInfo method invoked
Mon Dec 12 16:24:16 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
Mon Dec 12 16:24:16 2011 [ReM][D]: AclInfo method invoked
Mon Dec 12 16:24:26 2011 [ReM][D]: GroupPoolInfo method invoked
Mon Dec 12 16:24:26 2011 [AuM][D]: Message received: LOG I 8293 ExitCode: 0

thanks
wojciech

On 12/12/11 15:18, Fabian Wenk wrote:

Hello Wojciech

On 12.12.2011 15:18, Wojciech Giel wrote:

TIMESTAMP Mon Dec 12 14:07:32 2011
MESSAGE Error copying image in the repository: Not allowed to copy
image file /var/lib/one/templates/linux_generic.img

oneadmin is the owner of /var/lib/one/templates/ directory.
what might be a problem ?


Check the permissions on the folder of the image repository, as far as 
I know, at least oneadmin:cloud should be able to write there.



bye
Fabian
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


--
wojciech.g...@cimr.cam.ac.uk
JDRF/WT Diabetes and Inflammation Laboratory (DIL)
Cambridge Institute for Medical Research (CIMR)
University of Cambridge
Wellcome Trust/MRC Building
Addenbrooke's Hospital Hills Road Cambridge CB2 0XY
Tel: 01223 763228

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] x509 sunstone

2011-12-12 Thread Faarooq Lowe
It appears that the x509 authentication doesn't work with sunstone.  We 
we had to change :core_auth to cipher as opposed to x509.  Is there a 
way to patch this.



Mon Dec 12 12:11:27 2011 [AuM][D]: Message received: LOG I 1 Command 
execution fail: /opt/one-3.1/var/remotes/auth/x509/authenticate 
serveradmin /DC=org/DC=doegrids/OU=Services/CN=fgitb317.fnal.gov 
serveradmin:DmyUl4MAqrML6zx9tyjSCt8lJaAuGEu/CJATL90DfK2B5VD5VG2cJ/4x77P/EcRq


Mon Dec 12 12:11:27 2011 [AuM][I]: Command execution fail: 
/opt/one-3.1/var/remotes/auth/x509/authenticate serveradmin 
/DC=org/DC=doegrids/OU=Services/CN=fgitb317.fnal.gov 
serveradmin:DmyUl4MAqrML6zx9tyjSCt8lJaAuGEu/CJATL90DfK2B5VD5VG2cJ/4x77P/EcRq
Mon Dec 12 12:11:27 2011 [AuM][D]: Message received: LOG E 1 undefined 
method `public_key' for nil:NilClass


Mon Dec 12 12:11:27 2011 [AuM][I]: undefined method `public_key' for 
nil:NilClass

Mon Dec 12 12:11:27 2011 [AuM][D]: Message received: LOG I 1 ExitCode: 255

Mon Dec 12 12:11:27 2011 [AuM][I]: ExitCode: 255
Mon Dec 12 12:11:27 2011 [AuM][D]: Message received: AUTHENTICATE 
FAILURE 1 undefined method `public_key' for nil:NilClass


___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] OpenNebula ignores SAVE parameter

2011-12-12 Thread richard -rw- weinberger
Hi,

After deleting a VM OpenNebula tries to save an image.
But SAVE is set to no. Therefore, the image is in error-state!

Here my image definition:

NAME = img1
SOURCE = /srv/guestimgs/guests/_centos6_template/disk1.raw
TYPE = OS
PERSISTENT = yes
SAVE = no
BUS = virtio
DRIVER = raw



 oneimage show 3
IMAGE 3 INFORMATION
ID : 3
NAME   : img1
USER   : oneadmin
GROUP  : oneadmin
TYPE   : OS
REGISTER TIME  : 12/12 20:31:40
PUBLIC : No
PERSISTENT : Yes
SOURCE : /srv/guestimgs/guests/_centos6_template/disk1.raw
SIZE   : 0
STATE  : err
RUNNING_VMS: 0

IMAGE TEMPLATE
BUS=virtio
DEV_PREFIX=hd
DRIVER=raw
ERROR=[
  MESSAGE=Error saving image to the repository: Could not move
/var/lib/one/35/disk.0 to
/srv/guestimgs/guests/_centos6_template/disk1.raw,
  TIMESTAMP=Mon Dec 12 20:56:51 2011 ]
NAME=img1
SAVE=no
SOURCE=/srv/guestimgs/guests/_centos6_template/disk1.raw
TYPE=OS


-- 
Thanks,
//richard
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] OpenNebula ignores SAVE parameter

2011-12-12 Thread richard -rw- weinberger
Here the output of oned.log:

---

Mon Dec 12 21:26:32 2011 [ImM][I]: Moving disk /var/lib/one/36/disk.0
to repository image 4
Mon Dec 12 21:26:32 2011 [ImG][D]: Message received: LOG I 4 Command
execution fail: /var/lib/one/remotes/image/fs/mv
/var/lib/one/36/disk.0
/var/lib/one/images/517ad24a7a4a258ef9fd75c0d3d501ef 4

Mon Dec 12 21:26:32 2011 [ImM][I]: Command execution fail:
/var/lib/one/remotes/image/fs/mv /var/lib/one/36/disk.0
/var/lib/one/images/517ad24a7a4a258ef9fd75c0d3d501ef 4
Mon Dec 12 21:26:32 2011 [ImG][D]: Message received: LOG I 4 mv:
Moving local image /var/lib/one/36/disk.0 to the image repository

Mon Dec 12 21:26:32 2011 [ImM][I]: mv: Moving local image
/var/lib/one/36/disk.0 to the image repository
Mon Dec 12 21:26:32 2011 [ImG][D]: Message received: LOG E 4 mv:
Command mv -f /var/lib/one/36/disk.0
/var/lib/one/images/517ad24a7a4a258ef9fd75c0d3d501ef failed.

Mon Dec 12 21:26:32 2011 [ImM][E]: mv: Command mv -f
/var/lib/one/36/disk.0
/var/lib/one/images/517ad24a7a4a258ef9fd75c0d3d501ef failed.
Mon Dec 12 21:26:32 2011 [ImG][D]: Message received: LOG E 4 mv: mv:
Aufruf von stat für „/var/lib/one/36/disk.0“ nicht möglich: Datei oder
Verzeichnis nicht gefunden

Mon Dec 12 21:26:32 2011 [ImM][E]: mv: mv: Aufruf von stat für
„/var/lib/one/36/disk.0“ nicht möglich: Datei oder Verzeichnis nicht
gefunden
Mon Dec 12 21:26:32 2011 [ImG][D]: Message received: LOG E 4 Could not
move /var/lib/one/36/disk.0 to
/var/lib/one/images/517ad24a7a4a258ef9fd75c0d3d501ef

Mon Dec 12 21:26:32 2011 [ImM][E]: Could not move
/var/lib/one/36/disk.0 to
/var/lib/one/images/517ad24a7a4a258ef9fd75c0d3d501ef
Mon Dec 12 21:26:32 2011 [ImG][D]: Message received: LOG I 4 ExitCode: 1

Mon Dec 12 21:26:32 2011 [ImM][I]: ExitCode: 1
Mon Dec 12 21:26:32 2011 [ImG][D]: Message received: MV FAILURE 4
Could not move /var/lib/one/36/disk.0 to
/var/lib/one/images/517ad24a7a4a258ef9fd75c0d3d501ef

Mon Dec 12 21:26:32 2011 [ImM][E]: Error saving image to the
repository: Could not move /var/lib/one/36/disk.0 to
/var/lib/one/images/517ad24a7a4a258ef9fd75c0d3d501ef
Mon Dec 12 21:26:32 2011 [TM][D]: Message received: LOG I 36
tm_delete.sh: Deleting /var/lib/one//36/images

Mon Dec 12 21:26:32 2011 [TM][D]: Message received: LOG I 36
tm_delete.sh: Executed rm -rf /var/lib/one//36/images.

Mon Dec 12 21:26:32 2011 [TM][D]: Message received: LOG I 36 ExitCode: 0

Mon Dec 12 21:26:32 2011 [TM][D]: Message received: TRANSFER SUCCESS 36 -
--

-- 
Thanks,
//richard
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Virtual Machine Lock Manager

2011-12-12 Thread Upendra Moturi
Thanks Fabian.

On Mon, Dec 12, 2011 at 8:42 PM, Fabian Wenk fab...@wenks.ch wrote:

 Hello Upendra


 On 12.12.2011 08:04, Upendra Moturi wrote:

 Is there any locking mechanism to lock vms ,so that there are no two vms
 using same hard disk


 Register the hard disk image in the image repository (with 'oneimage
 register ...') and then in the VM template use the registered image.


 bye
 Fabian
 __**_
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**orghttp://lists.opennebula.org/listinfo.cgi/users-opennebula.org




-- 
Thanks and Regards,
Upendra.M

*As a leading developer of IT infrastructure software solutions, Hexagrid
developed the first cloud
computinghttp://www.hexagrid.com/d/vxdatacenter.htmlplatform that
directly aligns with the real-world IT delivery models of
both solution providers and enterprises. Hexagrid provides all the software
and support that IT organizations need to successfully build public,
private, or hybrid clouds that fit their specific business and end-user
requirements. Hexagrid cloud solutions truly simplify and expedite virtual
IT management, empowering successful cloud computing strategies that
quickly increase profits by pooling resources, delivering control, and
building value. Our Software, Your Cloud.  For more information, visit
www.hexagrid.com and follow @Hexagrid on Twitter*
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org