Re: [one-users] Opennebula RC1 and PUBLIC_CLOUD

2013-11-26 Thread Ирек Фасихов
Thank you, Carlos.


2013/11/25 Carlos Martín Sánchez 

> Hi,
>
> The automatic requirements now includes always the !(PUBLIC_CLOUD=YES)
> condition to support hybrid templates [1].
> In an environment without hybrid hosts, it should not have any effect.
>
> From the output you provide, I see a couple of problems:
> - The DS RBD is not a system DS, its type is IMAGE. The scheduler selects
> a system DS to run the  VMs, and the SCHED_DS_REQUIREMENTS attribute refers
> only to system DS.
> - Your DS template has PUBLIC_CLOUD=YES. Even if it was a system DS, the
> scheduler would filter it because of it.
>
> Ceph DS can only hold images, you can't create an RBD system DS. You need
> a system DS [2] in the same cluster 100 to be able to deploy images.
>
> Regards
>
> [1] http://dev.opennebula.org/issues/2092
> [2]
> http://opennebula.org/documentation:rel4.4:ceph_ds#configuring_the_system_datastore
>
> --
> Carlos Martín, MSc
> Project Engineer
> OpenNebula - Flexible Enterprise Cloud Made Simple
> www.OpenNebula.org | cmar...@opennebula.org | 
> @OpenNebula
>
>
> On Sun, Nov 24, 2013 at 7:55 AM, Ирек Фасихов  wrote:
>
>> I use Hypervisor KVM, but when I run VM status of "Pending".
>> In parameter VM automatically generated AUTOMATIC_REQUIREMENTS =
>> CLUSTER_ID = 100 *&! (PUBLIC_CLOUD = YES). *
>> Is this true?
>>
>>
>> *[oneadmin@cloud ~]$ onedatastore show 105*
>> DATASTORE 105 INFORMATION
>>
>> ID : 105
>> NAME   : RBD
>> USER   : oneadmin
>> GROUP  : oneadmin
>> CLUSTER: XXX
>> TYPE   : IMAGE
>> DS_MAD : ceph
>> TM_MAD : ceph
>> BASE PATH  : /var/lib/one//datastores/105
>> DISK_TYPE  : RBD
>>
>> DATASTORE CAPACITY
>>
>> TOTAL: : 5.5T
>> USED:  : 315.3G
>> FREE:  : 5.1T
>>
>> PERMISSIONS
>>
>> OWNER  : um-
>> GROUP  : u--
>> OTHER  : u--
>>
>> DATASTORE TEMPLATE
>>
>> BRIDGE_LIST="cloud"
>> CLONE_TARGET="SELF"
>> DATASTORE_CAPACITY_CHECK="YES"
>> DISK_TYPE="RBD"
>> DS_MAD="ceph"
>> LN_TARGET="NONE"
>> NAME="RBD"
>> PUBLIC_CLOUD="YES"
>> TM_MAD="ceph"
>> TYPE="IMAGE_DS"
>>
>> IMAGES
>> 11
>>
>>
>>
>> *[oneadmin@cloud ~]$ onetemplate show 13*
>> TEMPLATE 13 INFORMATION
>>
>> ID : 13
>> NAME   : Temp
>> USER   : oneadmin
>> GROUP  : oneadmin
>> REGISTER TIME  : 11/24 00:10:43
>>
>> PERMISSIONS
>>
>> OWNER  : um-
>> GROUP  : ---
>> OTHER  : ---
>>
>> TEMPLATE CONTENTS
>>
>> CLUSTER_100="100"
>> CPU="8"
>> DISK=[
>>   DEV_PREFIX="vd",
>>   IMAGE="Test2",
>>   IMAGE_UNAME="oneadmin" ]
>> GRAPHICS=[
>>   LISTEN="0.0.0.0",
>>   TYPE="VNC" ]
>> MEMORY="4096"
>> OS=[
>>   ARCH="x86_64",
>>   BOOT="cdrom" ]
>> SCHED_DS_RANK="FREE_MB"
>> SCHED_DS_REQUIREMENTS="NAME=RBD"
>> SCHED_RANK="FREECPU"
>> SCHED_REQUIREMENTS="CLUSTER_ID=\"100\""
>> VCPU="8"
>>
>>
>> [oneadmin@cloud ~]$ onevm show 80
>> VIRTUAL MACHINE 80 INFORMATION
>>
>> ID  : 80
>> NAME: Temp-80
>> USER: oneadmin
>> GROUP   : oneadmin
>> STATE   : PENDING
>> LCM_STATE   : LCM_INIT
>> RESCHED : No
>> START TIME  : 11/24 10:39:20
>> END TIME: -
>> DEPLOY ID   : -
>>
>> VIRTUAL MACHINE MONITORING
>>
>> NET_RX  : 0K
>> USED CPU: 0
>> NET_TX  : 0K
>> USED MEMORY : 0K
>>
>> PERMISSIONS
>>
>> OWNER   : um-
>> GROUP   : ---
>> OTHER   : ---
>>
>> VM DISKS
>>
>>  ID TARGET IMAGE   TYPE SAVE SAVE_AS
>>   0 vdaTest2   rbdNO   -
>>
>> USER TEMPLATE
>>
>> CLUSTER_100="100"
>> SCHED_DS_RANK="FREE_MB"
>> SCHED_DS_REQUIREMENTS="NAME=RBD"
>> *SCHED_MESSAGE="Sun Nov 24 10:52:07 2013 : No system datastore meets
>> SCHED_DS_REQUIREMENTS: CLUSTER_ID = 100 & !(PUBLIC_CLOUD = YES) & (
>> NAME=RBD )"*
>> SCHED_RANK="FREECPU"
>> SCHED_REQUIREMENTS="CLUSTER_ID=\"100\""
>>
>> VIRTUAL MACHINE TEMPLATE
>>
>> *AUTOMATIC_REQUIREMENTS="CLUSTER_ID = 100 & !(PUBLIC_CLOUD = YES)"*
>> CPU="8"
>> GRAPHICS=[
>>   LISTEN="0.0.0.0",
>>   PORT="5980",
>>   TYPE="VNC" ]
>> MEMORY="4096"
>> OS=[
>>   ARCH="x86_64",
>>   BOOT="cdrom" ]
>> TEMPLATE_ID="13"
>> VCPU="8"
>> VMID="80"
>>
>> Thanks.
>>
>> --
>> С уважением, Фасихов Ирек Нургаязович
>> Моб.: +79229045757
>>
>> ___
>> Users mailing list
>> Users@lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>


-- 
С уважением, Фасихов Ирек Нургаязович
Моб.: +79229045757
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Is it OK for VM migration between two physical hosts when the home folders of these two hosts are different?

2013-11-26 Thread Qiubo Su (David Su)
Dear OpenNebula Community,

Thanks for your help.

If it is failed when start a VM, how to debug to sort out the cause for the
error?

Thanks,
Q.S.


On Tue, Nov 26, 2013 at 11:56 PM, Carlos Martín Sánchez <
cmar...@opennebula.org> wrote:

> Hi,
>
> The oneadmin home is not relevant, what is required is that the datastores
> are mounted in the same location [1]. DATASTORE_LOCATION is defined in
> oned.conf, and by default it is /var/lib/one/datastores.
>
> Regards
>
> [1]
> http://opennebula.org/documentation:rel4.2:system_ds#using_the_shared_transfer_driver
>
> --
> Carlos Martín, MSc
> Project Engineer
> OpenNebula - Flexible Enterprise Cloud Made Simple
> www.OpenNebula.org | cmar...@opennebula.org | 
> @OpenNebula
>
>
> On Tue, Nov 19, 2013 at 11:51 AM, Qiubo Su (David Su) 
> wrote:
>
>> Dear OpenNebula Community,
>>
>> For VM migration between two physical host machines HostA (with IP
>> 192.168.1.97) and HostB (with IP 192.168.1.98).
>>
>> 1) in HostA, create a user "oneadmin", add user to group "oneadmin" and
>> have /home/var/lib/one as home folder.
>>
>> edit /etc/exports as below:
>>
>> /home/var/lib/one
>> 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash,anonuid=1,anongid=1)
>>
>> 2) in HostB, create a user "oneadmin", add user to group "oneadmin" and
>> have /var/lib/one as home folder.
>>
>> edit /etc/fstab as below:
>>
>> 192.168.1.97:/home/var/lib/one /var/lib/one nfs defaults
>> 0 0
>>
>> From above 1) and 2) can see that the home folders of HostA and HostB are
>> different, is this setup OK for VM migration between HostA and HostB?
>>
>> Thanks kindly,
>> Q.S.
>>
>>
>> ___
>> 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] datastore log info missing from oned.log in v4.2

2013-11-26 Thread Gary S. Cuozzo
Then it seems that this has changed since the 3.8.x series.  I use log_debug 
script function to log various messages in my drivers.  I have my log level set 
to DEBUG in conf file.  I used to see those messages, as I would expect, unless 
I changed the log level to something above DEBUG.  The messages were logged 
regardless of the outcome of the script.

It seems that if that is no longer the case, then the log facility can't be 
used for anything other than error conditions and having DEBUG, INFO, etc. is 
not very useful anymore.

Maybe I'm missing the point of the feature, but it definitely did not work this 
way before and was something I relied on for certain things.  I'm now 
overriding the log_debug function locally in my script and writing the output 
to my own log file.  That is not as nice because now the log entries are not 
intertwined with other events which are happening in the oned.log file.

IMO, any message should be written to the file based on the configured log 
level.

Let me know your thoughts.

Thanks for the reply,
gary

- Original Message -
From: "Javier Fontan" 

STDERR is only logged when the action is not successful, maybe that is
your problem.

On Sat, Nov 23, 2013 at 11:35 PM, Gary S. Cuozzo  wrote:
> Hi All,
> I finally got some time to get back to looking at this.  My original task was 
> to get my custom drivers working with ONE 4.2.  I was able to do so.  It was 
> related to a bug fix where the SRC & DST arguments to pre/postmigrate were 
> swapped.  I simply had to swap them back.  The irony in it is that I was the 
> one that suggested the pre/postmigrate feature request and reported that bug. 
>  ;)
>
> So, I'm happily able to live migrate again.
>
> Oddly though, I am unable to get any log messages to show up in oned.log 
> file.  I'm guessing some of the common script libraries have gotten 
> reorganized, so I need to dig in a bit more on this issue.
>
> Cheers,
> gary
>
> - Original Message -
> From: "Gary S. Cuozzo" 
> To: "Users OpenNebula" 
> Sent: Friday, November 8, 2013 8:53:32 AM
> Subject: Re: [one-users] datastore log info missing from oned.log in v4.2
>
> Is this a new behavior?  I used to see any logged messages up to the level of 
> the log mode in the oned.log file.  It seems like 'debug' mode should log 
> regardless of the exit code of the script.  Even if I changed the logs from 
> log_debug to log_error, still no output.  I'll try forcing exit 1 to see if 
> that causes the logs to show up.
>
> Also, I validated that when I first installed ONE 4.2, the log messages were 
> there, but now are not.  I went back to my logs from a few weeks ago and see 
> all the messages I would expect.  I did not have time to work on this, so the 
> server sat for a few weeks.  Now I'm back to working on it and not seeing the 
> messages.  Very odd.
>
> Will let you know if setting exit 1 helps.
>
> Thanks for the reply,
> gary
>
> - Original Message -
> Normally the transfers are not logged when everything goes ok, that
> is, the script exists with 0.
>
> On Fri, Nov 8, 2013 at 1:17 AM, Gary S. Cuozzo  wrote:
>> Hi All,
>> I have recently upgraded our environment from 3.8.x to 4.2 version.  Running
>> on Ubuntu 12.04LTS.  I have some custom datastore/tm drivers that I wrote
>> which worked well in 3.8.  I am trying to troubleshoot something related to
>> live migration and my log messages are not getting to /var/log/one/oned.log
>> file.  I have logging set to debug in oned.conf.  I see debug level messages
>> for other subsystems, such as [ReM] but nothing related to the datastore or
>> tm.
>>
>> Just as a sanity check, I have another server that I did a clean install on
>> and I'm seeing the same results.
>>
>> I also tested adding some log entries into the stock ONE drivers and I do
>> not see anything logged.
>>
>> Any ideas?
>>
>> Thanks in advance,
>> gary
>>
>>
>> ___
>> Users mailing list
>> Users@lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>
>
>
> --
> Javier Fontán Muiños
> Developer
> OpenNebula - The Open Source Toolkit for Data Center Virtualization
> www.OpenNebula.org | @OpenNebula | github.com/jfontan
> ___
> 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



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


[one-users] Detach problem in VMware ESX

2013-11-26 Thread Tino Vazquez
Hi,

I've created a new thread for this problem.


> after i attach new disk to a vm, but  i could not detach the attached disk
> this is the error log
> Tue Nov 26 14:34:48 2013 [LCM][I]: New VM state is UNKNOWN
> Tue Nov 26 14:35:29 2013 [VMM][I]: VM found again, state is RUNNING
> Tue Nov 26 15:42:05 2013 [VMM][I]: Command execution fail:
> /var/lib/one/remotes/vmm/vmware/detach_disk 'one-348'
> '/vmfs/volumes/151/348/disk.2' 'hdc' '2' 348 10.24.101.72
> Tue Nov 26 15:42:05 2013 [VMM][E]: : Command " vim-cmd
> vmsvc/device.diskremove 44 0 2 /vmfs/volumes/151/348/disk.2" failed: Failed
> to find a controller with the specified bus number.
> Tue Nov 26 15:42:05 2013 [VMM][E]: Could not detach from one-348
> Tue Nov 26 15:42:05 2013 [VMM][I]: ExitCode: 255
> Tue Nov 26 15:42:05 2013 [VMM][I]: Failed to execute virtualization driver
> operation: detach_disk.
> Tue Nov 26 15:42:05 2013 [VMM][E]: Error detaching VM Disk: Could not detach
> from one-348
>

Attaching/Detaching using a IDE controller is not supported in VMware
ESX.This is documented in the new development documentation, platform
notes for VMware ESX [1]:

8<

to accomplish disk hotplugging and nic hotplugging (ignore the first
bullet for the latter)

disks need to be attached through SCSI, so their images should have a
DEV_PREFIX=“sd”
VM template that will permit SCSI disk attaches afterwards needs to
have an explicitly defined SCSI controller:

RAW=[TYPE = "vmware",
 DATA = ""]

to use SCSI disk based VMs, it is usually a good idea to explicitly
declare the PCI bridges. This can be accomplished with the following
added to the VM template:

 FEATURES=[PCIBRIDGE="1"]

to accomplish hot migration (through vMotion)
-->8---

Regards,

-Tino

[1] http://opennebula.org/documentation:rel4.4:uspng#esx_5x_as_vmware_node
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] updating TEMPLATE from hooks with onevm update

2013-11-26 Thread Olivier Sallou

On 11/26/2013 03:04 PM, Simon Boulet wrote:
> Bonjour Olivier,
>
> I think there are two issues in your question.
>
> On Tue, Nov 26, 2013 at 5:55 AM, Olivier Sallou
> mailto:olivier.sal...@irisa.fr>> wrote:
>
>
> On 11/26/2013 11:51 AM, Olivier Sallou wrote:
>>
>> On 11/26/2013 11:14 AM, Carlos Martín Sánchez wrote:
>>> stored in VM/USER_TEMPLATE. You can see this with the onevm show
>>> -x command. The onevm update action only allows to edit the
>>> USER_TEMPLATE attributes, and as you described, the create hook
>>> is triggered after the VM has been correctly created.
>>>
>
> First, yes, you can use the VM CREATE hooks to inject or change the
> USER_TEMPLATE attributes by issuing the onevm update action. To
> prevent VMs from being deployed before the hooks has run, you can
> set VM_SUBMIT_ON_HOLD = "YES", and have your hook do a onevm release
> at the end of its execution for the scheduler to pick and deploy the
> VM. This will make sure that when the VM is deployed, the template
> contains all the attributes you wanted.
>
> You can also do some extra sanitization / filtering and not allow the
> VM to be deployed if contains some missing attributes, etc. by not
> calling the onevm release at the end.
>
> This works very well for us. In fact, we do some heavy stuff in the
> hooks, such as attaching additional IP addresses, attaching or
> detaching disks, etc. dynamically according to external sources, such
> as the OpenNebula user template (but also external databases, CRM, etc.)
My hook job is ok regarding vm user_template  update, I tried with and
without VM_SUBMIT_ON_HOLD (thanks for the hint), but I have the same
issue, my user_template variables are not set in the context.sh file.
>  
>
>> What I expect is to get my USER_TEMPLATE in the context.sh
>> mounted in my VM.
>>
>> A basic use case is to generate a unique password for a web
>> application running in the VM. I'd like to generate the passsword
>> with a hook and send the password to the user by mail (until
>> here, this is fine). The generated password is also in the VM
>> context/template so that it appears in the context.sh of the VM.
>> At startup, a specific init script read the VM contextualization
>> and init the web application with the password provided.
> The above example could be managed directly in the VM, without
> specific contextualization, but there are cases where some
> variables could be user dependent, so those variables would need
> to be set dynamically on opennebula server side.
>
>
>
> Perhaps that's the real problem here... I'm not very familiar with
> context.sh script. Is the entire VM template available (including the
> USER_TEMPLATE) or only the CONTEXT section?

user_template is not set by itelf in the vm context file, only the
context. But in my context, I add variables that refer to USER_TEMPLATE
(but it is right that there are not set in first place, only after
hooks). So it seems that we can refer to USER_TEMPLATE var, but only if
there are predefined, not added in a hook (template not
regenerated/calculated).

the best would be to have user_template vars added to the context.sh
file in addition to the one in the vm template, AFTER the hooks.

Olivier
>
> Simon
>

-- 
Olivier Sallou
IRISA / University of Rennes 1
Campus de Beaulieu, 35000 RENNES - FRANCE
Tel: 02.99.84.71.95

gpg key id: 4096R/326D8438  (keyring.debian.org)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438

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


Re: [one-users] updating TEMPLATE from hooks with onevm update

2013-11-26 Thread Simon Boulet
Bonjour Olivier,

I think there are two issues in your question.

On Tue, Nov 26, 2013 at 5:55 AM, Olivier Sallou wrote:

>
> On 11/26/2013 11:51 AM, Olivier Sallou wrote:
>
>
> On 11/26/2013 11:14 AM, Carlos Martín Sánchez wrote:
>
> stored in VM/USER_TEMPLATE. You can see this with the onevm show -x
> command. The onevm update action only allows to edit the USER_TEMPLATE
> attributes, and as you described, the create hook is triggered after the VM
> has been correctly created.
>
>
First, yes, you can use the VM CREATE hooks to inject or change the
USER_TEMPLATE attributes by issuing the onevm update action. To prevent VMs
from being deployed before the hooks has run, you can set VM_SUBMIT_ON_HOLD
= "YES", and have your hook do a onevm release at the end of its execution
for the scheduler to pick and deploy the VM. This will make sure that when
the VM is deployed, the template contains all the attributes you wanted.

You can also do some extra sanitization / filtering and not allow the VM to
be deployed if contains some missing attributes, etc. by not calling the
onevm release at the end.

This works very well for us. In fact, we do some heavy stuff in the hooks,
such as attaching additional IP addresses, attaching or detaching disks,
etc. dynamically according to external sources, such as the OpenNebula user
template (but also external databases, CRM, etc.)


>  What I expect is to get my USER_TEMPLATE in the context.sh mounted in my
> VM.
>
> A basic use case is to generate a unique password for a web application
> running in the VM. I'd like to generate the passsword with a hook and send
> the password to the user by mail (until here, this is fine). The generated
> password is also in the VM context/template so that it appears in the
> context.sh of the VM. At startup, a specific init script read the VM
> contextualization and init the web application with the password provided.
>
> The above example could be managed directly in the VM, without specific
> contextualization, but there are cases where some variables could be user
> dependent, so those variables would need to be set dynamically on
> opennebula server side.
>
>

Perhaps that's the real problem here... I'm not very familiar with
context.sh script. Is the entire VM template available (including the
USER_TEMPLATE) or only the CONTEXT section?

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


[one-users] resize VM dialog is better, but there is a problem with VCPU

2013-11-26 Thread Rolandas Naujikas

Hi,

After 
http://dev.opennebula.org/projects/opennebula/repository/revisions/ba2bd837018a4d606e554b919359b74ecc888d9f 
resize dialog works better, but for VCPU there is logic error. In 
leftmost position VCPU value should be 1 at least, 0 - is not valid 
value. Maximum value should be also bigger 16 at least.


Also 0 value is not meaningful for CPU and MEMORY.

Regards, Rolandas

P.S. Of cause all those values could be entered manually.
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] sunstone novnc console on separate window/tab in 4.4RC (one-4.4)

2013-11-26 Thread Rolandas Naujikas
After 
http://dev.opennebula.org/projects/opennebula/repository/revisions/277a862a7aac0026e299f0305e329bd9c3a8cb04 
I see VM title bar text is over at top of console output.


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


Re: [one-users] updating TEMPLATE from hooks with onevm update (Users Digest, Vol 69, Issue 133)

2013-11-26 Thread Olivier Sallou

On 11/26/2013 12:05 PM, Rolandas Naujikas wrote:
> On 2013-11-26 12:55, Olivier Sallou wrote:
>>
>> On 11/26/2013 11:51 AM, Olivier Sallou wrote:
>>>
>>> On 11/26/2013 11:14 AM, Carlos Mart?n S?nchez wrote:
 Hi,

 When the VM is created, the template contents are parsed and stored
 in VM/TEMPLATE. All the extra unknown attributes are stored in
 VM/USER_TEMPLATE. You can see this with the onevm show -x command.
 The onevm update action only allows to edit the USER_TEMPLATE
 attributes, and as you described, the create hook is triggered after
 the VM has been correctly created.

 I don't see any easy way to make your work flow fit into OpenNebula.
 Could you elaborate a bit more on your use case?
>>> What I expect is to get my USER_TEMPLATE in the context.sh mounted in
>>> my VM.
>>>
>>> A basic use case is to generate a unique password for a web
>>> application running in the VM. I'd like to generate the passsword with
>>> a hook and send the password to the user by mail (until here, this is
>>> fine). The generated password is also in the VM context/template so
>>> that it appears in the context.sh of the VM. At startup, a specific
>>> init script read the VM contextualization and init the web application
>>> with the password provided.
>
> onegate feature probably could help you.
> http://opennebula.org/documentation:rel4.2:onegate_usage
We do not want to push info from VM to open nebula or other systems, but
push some local/dynamic information to the VM (at startup), via the
context, so that the VM can initialise with those dynamic data.

Olivier
>
> Rolandas
>
>> The above example could be managed directly in the VM, without specific
>> contextualization, but there are cases where some variables could be
>> user dependent, so those variables would need to be set dynamically on
>> opennebula server side.
>>>
>>>
>>> Olivier

 I'm assuming you want those two variables to end in the context
 section of the VM. In that case the preferred way to do so would be
 to have a VM Template for each Image, and in there set the needed
 variables.

 Regards
 -- 
 Carlos Mart?n, MSc
 Project Engineer
 OpenNebula - Flexible Enterprise Cloud Made Simple
 www.OpenNebula.org  |
 cmar...@opennebula.org  | @OpenNebula
 


 On Tue, Nov 26, 2013 at 8:41 AM, Olivier Sallou
 mailto:olivier.sal...@irisa.fr>> wrote:

  Hi,

  If my VM HOOK (on CREATE) adds new elements with a onevm update,
  I can see those variables in the the "user template"  of the vm/

  onevm show:

  
  USER
  TEMPLATE

  SSH_PUBLIC_KEY="ssh-rsa.."
  XGRID_PWD="xxx"
  

  In my image template, I have set:

  SSH_PUBLIC_KEY $USER[SSH_PUBLIC_KEY]
  XGRID_PWD $USER[XGRID_PWD]


  But in the VM template, I do not see any of those variable.

  It would seem that user template attributes are created *after*
  the vm template generation.

  Any idea  ?

  Thanks

  Olivier



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


>>>
>>> -- 
>>> Olivier Sallou
>>> IRISA / University of Rennes 1
>>> Campus de Beaulieu, 35000 RENNES - FRANCE
>>> Tel: 02.99.84.71.95
>>>
>>> gpg key id: 4096R/326D8438  (keyring.debian.org)
>>> Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438
>>>
>>>
>>>
>>> ___
>>> 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
>
>

-- 
Olivier Sallou
IRISA / University of Rennes 1
Campus de Beaulieu, 35000 RENNES - FRANCE
Tel: 02.99.84.71.95

gpg key id: 4096R/326D8438  (keyring.debian.org)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438

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


Re: [one-users] different authentication methods for different interfaces

2013-11-26 Thread knawnd

Carlos Martín Sánchez wrote on 26/11/13 13:54:

Hi,

That is not supported, only one auth driver can be set for each user. We could consider adding 
support for more than one drivers, but that would require a bit of development and I can't think 
of any immediate workaround.


By the way, I know this is not what you asked, but x509 is also supported for 
the cli [1].
Carlos, thanks a lot for reply! Then I will probably consider the use of x509 authentication method 
for both cli and sunstone.


Best regards,
Nikolay.



Regards

[1] http://opennebula.org/documentation:rel4.2:x509_auth

--
Carlos Martín, MSc
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org  | cmar...@opennebula.org 
 | @OpenNebula 



On Mon, Nov 25, 2013 at 12:13 PM, mailto:kna...@gmail.com>> 
wrote:

Dear community,

I wonder if it is possible for a single user to usetwo different 
authentication methods for
different interfaces: e.g. ssh authentication method for cli and x509 one 
for sunstone?

Regards,
Nikolay.
___
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] datastore log info missing from oned.log in v4.2

2013-11-26 Thread Javier Fontan
STDERR is only logged when the action is not successful, maybe that is
your problem.

On Sat, Nov 23, 2013 at 11:35 PM, Gary S. Cuozzo  wrote:
> Hi All,
> I finally got some time to get back to looking at this.  My original task was 
> to get my custom drivers working with ONE 4.2.  I was able to do so.  It was 
> related to a bug fix where the SRC & DST arguments to pre/postmigrate were 
> swapped.  I simply had to swap them back.  The irony in it is that I was the 
> one that suggested the pre/postmigrate feature request and reported that bug. 
>  ;)
>
> So, I'm happily able to live migrate again.
>
> Oddly though, I am unable to get any log messages to show up in oned.log 
> file.  I'm guessing some of the common script libraries have gotten 
> reorganized, so I need to dig in a bit more on this issue.
>
> Cheers,
> gary
>
> - Original Message -
> From: "Gary S. Cuozzo" 
> To: "Users OpenNebula" 
> Sent: Friday, November 8, 2013 8:53:32 AM
> Subject: Re: [one-users] datastore log info missing from oned.log in v4.2
>
> Is this a new behavior?  I used to see any logged messages up to the level of 
> the log mode in the oned.log file.  It seems like 'debug' mode should log 
> regardless of the exit code of the script.  Even if I changed the logs from 
> log_debug to log_error, still no output.  I'll try forcing exit 1 to see if 
> that causes the logs to show up.
>
> Also, I validated that when I first installed ONE 4.2, the log messages were 
> there, but now are not.  I went back to my logs from a few weeks ago and see 
> all the messages I would expect.  I did not have time to work on this, so the 
> server sat for a few weeks.  Now I'm back to working on it and not seeing the 
> messages.  Very odd.
>
> Will let you know if setting exit 1 helps.
>
> Thanks for the reply,
> gary
>
> - Original Message -
> Normally the transfers are not logged when everything goes ok, that
> is, the script exists with 0.
>
> On Fri, Nov 8, 2013 at 1:17 AM, Gary S. Cuozzo  wrote:
>> Hi All,
>> I have recently upgraded our environment from 3.8.x to 4.2 version.  Running
>> on Ubuntu 12.04LTS.  I have some custom datastore/tm drivers that I wrote
>> which worked well in 3.8.  I am trying to troubleshoot something related to
>> live migration and my log messages are not getting to /var/log/one/oned.log
>> file.  I have logging set to debug in oned.conf.  I see debug level messages
>> for other subsystems, such as [ReM] but nothing related to the datastore or
>> tm.
>>
>> Just as a sanity check, I have another server that I did a clean install on
>> and I'm seeing the same results.
>>
>> I also tested adding some log entries into the stock ONE drivers and I do
>> not see anything logged.
>>
>> Any ideas?
>>
>> Thanks in advance,
>> gary
>>
>>
>> ___
>> Users mailing list
>> Users@lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>
>
>
> --
> Javier Fontán Muiños
> Developer
> OpenNebula - The Open Source Toolkit for Data Center Virtualization
> www.OpenNebula.org | @OpenNebula | github.com/jfontan
> ___
> 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



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


Re: [one-users] updating TEMPLATE from hooks with onevm update (Users Digest, Vol 69, Issue 133)

2013-11-26 Thread Rolandas Naujikas

On 2013-11-26 12:55, Olivier Sallou wrote:


On 11/26/2013 11:51 AM, Olivier Sallou wrote:


On 11/26/2013 11:14 AM, Carlos Mart?n S?nchez wrote:

Hi,

When the VM is created, the template contents are parsed and stored
in VM/TEMPLATE. All the extra unknown attributes are stored in
VM/USER_TEMPLATE. You can see this with the onevm show -x command.
The onevm update action only allows to edit the USER_TEMPLATE
attributes, and as you described, the create hook is triggered after
the VM has been correctly created.

I don't see any easy way to make your work flow fit into OpenNebula.
Could you elaborate a bit more on your use case?

What I expect is to get my USER_TEMPLATE in the context.sh mounted in
my VM.

A basic use case is to generate a unique password for a web
application running in the VM. I'd like to generate the passsword with
a hook and send the password to the user by mail (until here, this is
fine). The generated password is also in the VM context/template so
that it appears in the context.sh of the VM. At startup, a specific
init script read the VM contextualization and init the web application
with the password provided.


onegate feature probably could help you.
http://opennebula.org/documentation:rel4.2:onegate_usage

Rolandas


The above example could be managed directly in the VM, without specific
contextualization, but there are cases where some variables could be
user dependent, so those variables would need to be set dynamically on
opennebula server side.



Olivier


I'm assuming you want those two variables to end in the context
section of the VM. In that case the preferred way to do so would be
to have a VM Template for each Image, and in there set the needed
variables.

Regards
--
Carlos Mart?n, MSc
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org  |
cmar...@opennebula.org  | @OpenNebula



On Tue, Nov 26, 2013 at 8:41 AM, Olivier Sallou
mailto:olivier.sal...@irisa.fr>> wrote:

 Hi,

 If my VM HOOK (on CREATE) adds new elements with a onevm update,
 I can see those variables in the the "user template"  of the vm/

 onevm show:

 
 USER
 TEMPLATE

 SSH_PUBLIC_KEY="ssh-rsa.."
 XGRID_PWD="xxx"
 

 In my image template, I have set:

 SSH_PUBLIC_KEY $USER[SSH_PUBLIC_KEY]
 XGRID_PWD  $USER[XGRID_PWD]


 But in the VM template, I do not see any of those variable.

 It would seem that user template attributes are created *after*
 the vm template generation.

 Any idea  ?

 Thanks

 Olivier



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




--
Olivier Sallou
IRISA / University of Rennes 1
Campus de Beaulieu, 35000 RENNES - FRANCE
Tel: 02.99.84.71.95

gpg key id: 4096R/326D8438  (keyring.debian.org)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438



___
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] Unable to login to sunstone as user

2013-11-26 Thread Stefan Kooman
Quoting Daniel Molina (dmol...@opennebula.org):
> On 25 November 2013 15:24, Stefan Kooman  wrote:
> 
> > Quoting Daniel Molina (dmol...@opennebula.org):
> > > On 25 November 2013 14:28, Stefan Kooman  wrote:
> > >
> > > > At least with "sinatra" as backend. If I use passenger I'm able
> > > > to login ... dashboard screen gets loaded ... and then I'm warped back
> > > > to the login page. Same config files (sunstone-server.conf etc.). No
> > > > errors are logged in apache/passenger error log. This behaviour is the
> > > > same for oneadmin user and unpriviliged users.
> > > >
> > > > Any hints on this one?
> > > >
> > >
> > > It looks like a memcache issue. Is it enabled in sunstone-server.conf?
> > It is, and I'm able to connect to it from the sunstone server. I've
> > installed memcached locally just to rule that out ... doesn't change
> > anything :(.
> >
> 
> Let's try to find out the problem:
> * Check in "/var/log/one/sunstone.log" that the memcache is indeed enabled.
> Note that it is "memcache" and not "memcached":
>  :sessions=>"memcache",
> * Try removing the cookies from your browser, maybe firefox is trying to
> use the old sinatra session and sunstone-server cannot find it in memcache.
> 
> Hope this helps

I logged all sessions on the memcached server and no connection was made
when I started apache / tried to login ... :sessions wasn't initialized
properly. I fixen that and know it's working. I must have been sleepin'
while updating config files.

/me--

Thanks for your looking into it.

Gr. Stefan

-- 
| BIT BV  http://www.bit.nl/Kamer van Koophandel 09090351
| GPG: 0xD14839C6   +31 318 648 688 / i...@bit.nl


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


Re: [one-users] Is it OK for VM migration between two physical hosts when the home folders of these two hosts are different?

2013-11-26 Thread Carlos Martín Sánchez
Hi,

The oneadmin home is not relevant, what is required is that the datastores
are mounted in the same location [1]. DATASTORE_LOCATION is defined in
oned.conf, and by default it is /var/lib/one/datastores.

Regards

[1]
http://opennebula.org/documentation:rel4.2:system_ds#using_the_shared_transfer_driver

--
Carlos Martín, MSc
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | cmar...@opennebula.org |
@OpenNebula


On Tue, Nov 19, 2013 at 11:51 AM, Qiubo Su (David Su) wrote:

> Dear OpenNebula Community,
>
> For VM migration between two physical host machines HostA (with IP
> 192.168.1.97) and HostB (with IP 192.168.1.98).
>
> 1) in HostA, create a user "oneadmin", add user to group "oneadmin" and
> have /home/var/lib/one as home folder.
>
> edit /etc/exports as below:
>
> /home/var/lib/one
> 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash,anonuid=1,anongid=1)
>
> 2) in HostB, create a user "oneadmin", add user to group "oneadmin" and
> have /var/lib/one as home folder.
>
> edit /etc/fstab as below:
>
> 192.168.1.97:/home/var/lib/one /var/lib/one nfs defaults
> 0 0
>
> From above 1) and 2) can see that the home folders of HostA and HostB are
> different, is this setup OK for VM migration between HostA and HostB?
>
> Thanks kindly,
> Q.S.
>
>
> ___
> 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] updating TEMPLATE from hooks with onevm update

2013-11-26 Thread Olivier Sallou

On 11/26/2013 11:51 AM, Olivier Sallou wrote:
>
> On 11/26/2013 11:14 AM, Carlos Martín Sánchez wrote:
>> Hi,
>>
>> When the VM is created, the template contents are parsed and stored
>> in VM/TEMPLATE. All the extra unknown attributes are stored in
>> VM/USER_TEMPLATE. You can see this with the onevm show -x command.
>> The onevm update action only allows to edit the USER_TEMPLATE
>> attributes, and as you described, the create hook is triggered after
>> the VM has been correctly created.
>>
>> I don't see any easy way to make your work flow fit into OpenNebula.
>> Could you elaborate a bit more on your use case?
> What I expect is to get my USER_TEMPLATE in the context.sh mounted in
> my VM.
>
> A basic use case is to generate a unique password for a web
> application running in the VM. I'd like to generate the passsword with
> a hook and send the password to the user by mail (until here, this is
> fine). The generated password is also in the VM context/template so
> that it appears in the context.sh of the VM. At startup, a specific
> init script read the VM contextualization and init the web application
> with the password provided.
The above example could be managed directly in the VM, without specific
contextualization, but there are cases where some variables could be
user dependent, so those variables would need to be set dynamically on
opennebula server side.
>
>
> Olivier
>>
>> I'm assuming you want those two variables to end in the context
>> section of the VM. In that case the preferred way to do so would be
>> to have a VM Template for each Image, and in there set the needed
>> variables.
>>
>> Regards
>> --
>> Carlos Martín, MSc
>> Project Engineer
>> OpenNebula - Flexible Enterprise Cloud Made Simple
>> www.OpenNebula.org  |
>> cmar...@opennebula.org  | @OpenNebula
>> 
>>
>>
>> On Tue, Nov 26, 2013 at 8:41 AM, Olivier Sallou
>> mailto:olivier.sal...@irisa.fr>> wrote:
>>
>> Hi,
>>
>> If my VM HOOK (on CREATE) adds new elements with a onevm update,
>> I can see those variables in the the "user template"  of the vm/
>>
>> onevm show:
>>
>> 
>> USER
>> TEMPLATE 
>>  
>>
>> SSH_PUBLIC_KEY="ssh-rsa.."
>> XGRID_PWD="xxx"
>> 
>>
>> In my image template, I have set:
>>
>> SSH_PUBLIC_KEY   $USER[SSH_PUBLIC_KEY]
>> XGRID_PWD$USER[XGRID_PWD]
>>
>>
>> But in the VM template, I do not see any of those variable.
>>
>> It would seem that user template attributes are created *after*
>> the vm template generation.
>>
>> Any idea  ?
>>
>> Thanks
>>
>> Olivier
>>
>>
>>
>> ___
>> Users mailing list
>> Users@lists.opennebula.org 
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>
> -- 
> Olivier Sallou
> IRISA / University of Rennes 1
> Campus de Beaulieu, 35000 RENNES - FRANCE
> Tel: 02.99.84.71.95
>
> gpg key id: 4096R/326D8438  (keyring.debian.org)
> Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438
>
>
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

-- 
Olivier Sallou
IRISA / University of Rennes 1
Campus de Beaulieu, 35000 RENNES - FRANCE
Tel: 02.99.84.71.95

gpg key id: 4096R/326D8438  (keyring.debian.org)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438

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


Re: [one-users] updating TEMPLATE from hooks with onevm update

2013-11-26 Thread Olivier Sallou

On 11/26/2013 11:14 AM, Carlos Martín Sánchez wrote:
> Hi,
>
> When the VM is created, the template contents are parsed and stored in
> VM/TEMPLATE. All the extra unknown attributes are stored in
> VM/USER_TEMPLATE. You can see this with the onevm show -x command. The
> onevm update action only allows to edit the USER_TEMPLATE attributes,
> and as you described, the create hook is triggered after the VM has
> been correctly created.
>
> I don't see any easy way to make your work flow fit into OpenNebula.
> Could you elaborate a bit more on your use case?
What I expect is to get my USER_TEMPLATE in the context.sh mounted in my VM.

A basic use case is to generate a unique password for a web application
running in the VM. I'd like to generate the passsword with a hook and
send the password to the user by mail (until here, this is fine). The
generated password is also in the VM context/template so that it appears
in the context.sh of the VM. At startup, a specific init script read the
VM contextualization and init the web application with the password
provided.


Olivier
>
> I'm assuming you want those two variables to end in the context
> section of the VM. In that case the preferred way to do so would be to
> have a VM Template for each Image, and in there set the needed variables.
>
> Regards
> --
> Carlos Martín, MSc
> Project Engineer
> OpenNebula - Flexible Enterprise Cloud Made Simple
> www.OpenNebula.org  |
> cmar...@opennebula.org  | @OpenNebula
> 
>
>
> On Tue, Nov 26, 2013 at 8:41 AM, Olivier Sallou
> mailto:olivier.sal...@irisa.fr>> wrote:
>
> Hi,
>
> If my VM HOOK (on CREATE) adds new elements with a onevm update, I
> can see those variables in the the "user template"  of the vm/
>
> onevm show:
>
> 
> USER
> TEMPLATE  
>
> SSH_PUBLIC_KEY="ssh-rsa.."
> XGRID_PWD="xxx"
> 
>
> In my image template, I have set:
>
> SSH_PUBLIC_KEY$USER[SSH_PUBLIC_KEY]
> XGRID_PWD $USER[XGRID_PWD]
>
>
> But in the VM template, I do not see any of those variable.
>
> It would seem that user template attributes are created *after*
> the vm template generation.
>
> Any idea  ?
>
> Thanks
>
> Olivier
>
>
>
> ___
> Users mailing list
> Users@lists.opennebula.org 
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>

-- 
Olivier Sallou
IRISA / University of Rennes 1
Campus de Beaulieu, 35000 RENNES - FRANCE
Tel: 02.99.84.71.95

gpg key id: 4096R/326D8438  (keyring.debian.org)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438

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


Re: [one-users] updating TEMPLATE from hooks with onevm update

2013-11-26 Thread Carlos Martín Sánchez
Hi,

When the VM is created, the template contents are parsed and stored in
VM/TEMPLATE. All the extra unknown attributes are stored in
VM/USER_TEMPLATE. You can see this with the onevm show -x command. The
onevm update action only allows to edit the USER_TEMPLATE attributes, and
as you described, the create hook is triggered after the VM has been
correctly created.

I don't see any easy way to make your work flow fit into OpenNebula. Could
you elaborate a bit more on your use case?

I'm assuming you want those two variables to end in the context section of
the VM. In that case the preferred way to do so would be to have a VM
Template for each Image, and in there set the needed variables.

Regards
--
Carlos Martín, MSc
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | cmar...@opennebula.org |
@OpenNebula


On Tue, Nov 26, 2013 at 8:41 AM, Olivier Sallou wrote:

>  Hi,
>
> If my VM HOOK (on CREATE) adds new elements with a onevm update, I can see
> those variables in the the "user template"  of the vm/
>
> onevm show:
>
> 
> USER
> TEMPLATE
> SSH_PUBLIC_KEY="ssh-rsa.."
> XGRID_PWD="xxx"
> 
>
> In my image template, I have set:
>
>   SSH_PUBLIC_KEY $USER[SSH_PUBLIC_KEY]  XGRID_PWD $USER[XGRID_PWD]
> But in the VM template, I do not see any of those variable.
>
> It would seem that user template attributes are created *after* the vm
> template generation.
>
> Any idea  ?
>
> Thanks
>
> Olivier
>
>
>
> ___
> 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


[one-users] Contents of Users digest

2013-11-26 Thread Chaturvedi, Arvind
Please stop auto alert.
I don't want such alerts in every hours.

Please remove my ID from your database.

-Original Message-
From: users-boun...@lists.opennebula.org 
[mailto:users-boun...@lists.opennebula.org] On Behalf Of 
users-requ...@lists.opennebula.org
Sent: Tuesday, November 26, 2013 10:58 AM
To: users@lists.opennebula.org
Subject: Users Digest, Vol 69, Issue 131


Send Users mailing list submissions to
users@lists.opennebula.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
or, via email, send a message with subject or body 'help' to
users-requ...@lists.opennebula.org

You can reach the person managing the list at
users-ow...@lists.opennebula.org

When replying, please edit your Subject line so it is more specific than "Re: 
Contents of Users digest..."


Today's Topics:

   1. Re: Users Digest, Vol 69, Issue 130 (Chaturvedi, Arvind)
   2. Re: Re; Snapshots ... rendering bug on Placement ...
  (Daniel Molina)


--

Message: 1
Date: Tue, 26 Nov 2013 09:58:38 +
From: "Chaturvedi, Arvind" 
To: "users@lists.opennebula.org" 
Subject: Re: [one-users] Users Digest, Vol 69, Issue 130
Message-ID: <2D1A358AAE311347B81E57B3B38F5FC988A9C0F5@inicxdb01>
Content-Type: text/plain; charset="us-ascii"

Please stop auto alert.
I don't want such alerts in every hours.

Please remove my ID from your database.

Kind Regards,
Arvind Chaturvedi

-Original Message-
From: users-boun...@lists.opennebula.org 
[mailto:users-boun...@lists.opennebula.org] On Behalf Of 
users-requ...@lists.opennebula.org
Sent: Tuesday, November 26, 2013 10:55 AM
To: users@lists.opennebula.org
Subject: Users Digest, Vol 69, Issue 130


Send Users mailing list submissions to
users@lists.opennebula.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
or, via email, send a message with subject or body 'help' to
users-requ...@lists.opennebula.org

You can reach the person managing the list at
users-ow...@lists.opennebula.org

When replying, please edit your Subject line so it is more specific than "Re: 
Contents of Users digest..."


Today's Topics:

   1. Re: Unable to login to sunstone as user (Daniel Molina)
   2. Re: Contex script (Javier Fontan)
   3. Re: Contex script (Giancarlo De Filippis)
   4. Re: different authentication methods for differentinterfaces
  (Carlos Mart?n S?nchez)


--

Message: 1
Date: Tue, 26 Nov 2013 10:34:50 +0100
From: Daniel Molina 
To: Stefan Kooman 
Cc: "users@lists.opennebula.org" 
Subject: Re: [one-users] Unable to login to sunstone as user
Message-ID:

Content-Type: text/plain; charset="iso-8859-1"

On 25 November 2013 15:24, Stefan Kooman  wrote:

> Quoting Daniel Molina (dmol...@opennebula.org):
> > On 25 November 2013 14:28, Stefan Kooman  wrote:
> >
> > > At least with "sinatra" as backend. If I use passenger I'm able to 
> > > login ... dashboard screen gets loaded ... and then I'm warped 
> > > back to the login page. Same config files (sunstone-server.conf 
> > > etc.). No errors are logged in apache/passenger error log. This 
> > > behaviour is the same for oneadmin user and unpriviliged users.
> > >
> > > Any hints on this one?
> > >
> >
> > It looks like a memcache issue. Is it enabled in sunstone-server.conf?
> It is, and I'm able to connect to it from the sunstone server. I've 
> installed memcached locally just to rule that out ... doesn't change 
> anything :(.
>

Let's try to find out the problem:
* Check in "/var/log/one/sunstone.log" that the memcache is indeed enabled.
Note that it is "memcache" and not "memcached":
 :sessions=>"memcache",
* Try removing the cookies from your browser, maybe firefox is trying to use 
the old sinatra session and sunstone-server cannot find it in memcache.

Hope this helps


>
> Gr. Stefan
>
> --
> | BIT BV  http://www.bit.nl/Kamer van Koophandel 09090351
> | GPG: 0xD14839C6   +31 318 648 688 / i...@bit.nl
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iF4EAREIAAYFAlKTXYIACgkQTyGgYdFIOcYYRAD9F1yGr6bMBzssNIXCDw1Xl4hG
> dEmGQmxbQzYqdn1CtZAA/0fNKMVjmfxFwbxmqPE0ed6V+Rg2Mhc5GzuQdETnFNNV
> =FQln
> -END PGP SIGNATURE-
>
>


--
--
Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | 
dmol...@opennebula.org | @OpenNebula
-

Re: [one-users] Re; Snapshots ... rendering bug on Placement ...

2013-11-26 Thread Daniel Molina
Hi Gareth,

Could you send us the output of onevm show -x when this value is shown in
Sunstone. Are the server and client time synchronise?

Cheers


On 21 November 2013 15:58, Gareth Bult  wrote:

> Ok, looks like a rendering bug following migration .. if I wait a few
> minutes and refresh, it reverts to the "onevm show" value ...
>
>  #HostAction ReasonChg timeTotal time Prolog time 0node3 
> live-migrateUSER13:23:38 21/11/20130d
> 00:03 0d 00:01 1 node1live-migrate USER13:27:02 21/11/2013 0d 00:020d
> 00:00 2node3 live-migrateUSER 13:29:32 21/11/20130d 01:04 0d 00:00 3 node2
> live-migrate USER14:32:51 21/11/2013 0d 00:010d 00:00 4node1 noneNONE14:33:52 
> 21/11/2013*30d
> 23:56* 0d 00:00
>
> $ onevm show 225
> VIRTUAL MACHINE 225 INFORMATION
> ID : 225
> NAME : Ten
> USER : oneadmin
> GROUP : oneadmin
> STATE : ACTIVE
> LCM_STATE : RUNNING
> RESCHED : No
> HOST : node1
> CLUSTER ID : -1
> START TIME : 11/21 13:23:21
> END TIME : -
> DEPLOY ID : one-225
>
> VIRTUAL MACHINE MONITORING
> USED MEMORY : 1024M
> USED CPU : 0
> NET_TX : 1K
> NET_RX : 71K
>
> PERMISSIONS
> OWNER : um-
> GROUP : ---
> OTHER : ---
>
> VM DISKS
>  ID TARGET IMAGE TYPE SAVE SAVE_AS
> 0 sda Ubuntu 12.04 Clone file NO -
>
> VM NICS
> ID NETWORK VLAN BRIDGE IP MAC
>  0 Public Range 1 no public 193.111.185.139 02:00:c1:6f:b9:8b
> fe80::400:c1ff:fe6f:b98b
>
> VIRTUAL MACHINE HISTORY
> SEQ HOST ACTION DS START TIME PROLOG
>  0 node3 live-migrate 0 11/21 13:23:38 0d 00h03m 0h01m34s
> 1 node1 live-migrate 0 11/21 13:27:02 0d 00h02m 0h00m00s
>  2 node3 live-migrate 0 11/21 13:29:32 0d 01h04m 0h00m00s
> 3 node2 live-migrate 0 11/21 14:32:51 0d 00h01m 0h00m00s
>  4 node1 none 0 11/21 14:33:52 0d *00h05m* 0h00m00s
>
> VIRTUAL MACHINE TEMPLATE
> CONTEXT=[
> DISK_ID="1",
>  ETH0_DNS="8.8.8.8",
> ETH0_GATEWAY="193.111.185.1",
>  ETH0_IP="193.111.185.139",
> ETH0_MASK="255.255.255.0",
>  ETH0_NETWORK="193.111.185.0",
> HOSTNAME="demo",
>  NETWORK="YES",
> TARGET="hda",
>  VDC_CACHE_SIZE="1G" ]
> CPU="0.1"
> GRAPHICS=[
> LISTEN="0.0.0.0",
>  PORT="6125",
> TYPE="VNC" ]
> MEMORY="1024"
> RAW=[
>  TYPE="kvm" ]
> TEMPLATE_ID="1"
> VMID="225"
>
> --
> *Gareth Bult*
> “The odds of hitting your target go up dramatically when you aim at it.”
>
>
>
> --
> *From: *"Ruben S. Montero" 
> *To: *"Gareth Bult" 
> *Cc: *"users" 
> *Sent: *Wednesday, 20 November, 2013 12:36:57 PM
> *Subject: *Re: [one-users] Re; Snapshots ...
>
> Ups my mistake, Storage tab I meant... When you save a disk you can do it
> live or deferred, deferred is when the VM is shutdown, live calls the cpds
> script to copy the disk to the datastore.
>
>
> On Wed, Nov 20, 2013 at 1:41 PM, Gareth Bult  wrote:
>
>> Ok, I've completely missed the capacity / cpds bit , indeed I can't see
>> any other snapshot option on the GUI
>> so I'm going to have to go back and read some more .. however
>>
>> Re; the bug, looks like rendering, gone back to it now and it looks fine
>> ...
>>
>>  #HostAction ReasonChg timeTotal time Prolog time 0node3 
>> live-migrateUSER19:08:46 19/11/20130d
>> 00:01 0d 00:00 1 node2live-migrate USER19:09:44 19/11/2013 0d 00:030d
>> 00:00 2node1 live-migrateUSER 19:12:56 19/11/20130d 00:01 0d 00:00 3node3
>> live-migrate USER19:13:59 19/11/2013 0d 14:470d 00:00 4node1 
>> noneNONE10:00:15 20/11/20130d
>> 02:17 0d 00:00
>> I must admit to being a little confused, my "capacity" tab on VM's has
>> only a "resize" button .. which is inactive (?)
>> (cpds sounds ideal if I can find how to use it .. :)  )
>>
>> --
>> *Gareth Bult*
>> “The odds of hitting your target go up dramatically when you aim at it.”
>>
>>
>>
>> --
>> *From: *"Ruben S. Montero" 
>> *To: *"Gareth Bult" 
>> *Cc: *"users" 
>> *Sent: *Wednesday, 20 November, 2013 11:20:09 AM
>> *Subject: *Re: [one-users] Re; Snapshots ...
>>
>> Hi
>>
>> As you know there are two types of snapshots, system and disk. Disk only
>> snapshots are handled through the capacity tab in sunstone and eventually
>> by the CPDS script in the TM. System snapshots are handled by the snapshot
>> script of VMM.
>>
>> There are no plans to redesign this, disk snapshotting can use a custom
>> storage facility through "cpds", but system snapshots will be handled
>> through the hypervisor
>>
>> Note that system snapshots require also to checkpoint the memory state of
>> the system, thats the reason for requiring qcow2 in kvm. So I am not really
>> sure how this two processes, memory and disk snapshot, can be orchestrated
>> outside of libvirt, maybe libvirt hooks?
>>
>> About the bug, I am wondering if this is a rendering issue or something
>> deeper, could you send the output of:
>>
>> onevm show  -x
>>
>> Cheers
>>
>> Ruben
>>
>>
>>
>>
>>
>> On Wed, Nov 20, 2013 at 11:19 AM, Gareth Bult  wrote:
>>
>>> Hi,
>>>
>>> It seems that the snapshot facility relies on the "libvirt" snapshot
>>> facility wh
>>
>> ich at the moment
>>> relies entirely upon the QEMU snapshot facility, which means you can

Re: [one-users] Users Digest, Vol 69, Issue 130

2013-11-26 Thread Chaturvedi, Arvind
Please stop auto alert.
I don't want such alerts in every hours.

Please remove my ID from your database.

Kind Regards,
Arvind Chaturvedi

-Original Message-
From: users-boun...@lists.opennebula.org 
[mailto:users-boun...@lists.opennebula.org] On Behalf Of 
users-requ...@lists.opennebula.org
Sent: Tuesday, November 26, 2013 10:55 AM
To: users@lists.opennebula.org
Subject: Users Digest, Vol 69, Issue 130


Send Users mailing list submissions to
users@lists.opennebula.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
or, via email, send a message with subject or body 'help' to
users-requ...@lists.opennebula.org

You can reach the person managing the list at
users-ow...@lists.opennebula.org

When replying, please edit your Subject line so it is more specific than "Re: 
Contents of Users digest..."


Today's Topics:

   1. Re: Unable to login to sunstone as user (Daniel Molina)
   2. Re: Contex script (Javier Fontan)
   3. Re: Contex script (Giancarlo De Filippis)
   4. Re: different authentication methods for differentinterfaces
  (Carlos Mart?n S?nchez)


--

Message: 1
Date: Tue, 26 Nov 2013 10:34:50 +0100
From: Daniel Molina 
To: Stefan Kooman 
Cc: "users@lists.opennebula.org" 
Subject: Re: [one-users] Unable to login to sunstone as user
Message-ID:

Content-Type: text/plain; charset="iso-8859-1"

On 25 November 2013 15:24, Stefan Kooman  wrote:

> Quoting Daniel Molina (dmol...@opennebula.org):
> > On 25 November 2013 14:28, Stefan Kooman  wrote:
> >
> > > At least with "sinatra" as backend. If I use passenger I'm able to 
> > > login ... dashboard screen gets loaded ... and then I'm warped 
> > > back to the login page. Same config files (sunstone-server.conf 
> > > etc.). No errors are logged in apache/passenger error log. This 
> > > behaviour is the same for oneadmin user and unpriviliged users.
> > >
> > > Any hints on this one?
> > >
> >
> > It looks like a memcache issue. Is it enabled in sunstone-server.conf?
> It is, and I'm able to connect to it from the sunstone server. I've 
> installed memcached locally just to rule that out ... doesn't change 
> anything :(.
>

Let's try to find out the problem:
* Check in "/var/log/one/sunstone.log" that the memcache is indeed enabled.
Note that it is "memcache" and not "memcached":
 :sessions=>"memcache",
* Try removing the cookies from your browser, maybe firefox is trying to use 
the old sinatra session and sunstone-server cannot find it in memcache.

Hope this helps


>
> Gr. Stefan
>
> --
> | BIT BV  http://www.bit.nl/Kamer van Koophandel 09090351
> | GPG: 0xD14839C6   +31 318 648 688 / i...@bit.nl
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iF4EAREIAAYFAlKTXYIACgkQTyGgYdFIOcYYRAD9F1yGr6bMBzssNIXCDw1Xl4hG
> dEmGQmxbQzYqdn1CtZAA/0fNKMVjmfxFwbxmqPE0ed6V+Rg2Mhc5GzuQdETnFNNV
> =FQln
> -END PGP SIGNATURE-
>
>


--
--
Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | 
dmol...@opennebula.org | @OpenNebula
-- next part --
An HTML attachment was scrubbed...
URL: 
<http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131126/b5a0def8/attachment-0001.htm>

--

Message: 2
Date: Tue, 26 Nov 2013 10:38:31 +0100
From: Javier Fontan 
To: Giancarlo De Filippis 
Cc: "users@lists.opennebula.org" 
Subject: Re: [one-users] Contex script
Message-ID:

Content-Type: text/plain; charset="iso-8859-1"

ssh public key is installed for root password. Are you trying to connect to 
root user with the correct private key?


On Mon, Nov 25, 2013 at 5:03 PM, Giancarlo De Filippis
wrote:

>
>
> Good evening,
>
> i've created a VM with ubuntu kvm image from marketplace.
>
> My templatre is:
>   CONTEXTFILES_DS 
> /var/lib/one/datastores/2/4e178e253b6f838c9b2b0458712538a0:'id_rsa.pub'
> /var/lib/one/datastores/2/7fcc69a21a0a86ea5437eea7a171b1b3:'init.sh'
> NETWORK YES  TARGET hdb  ETH0_NETWORK *  ETH0_MASK ** 
> SSH_PUBLIC_KEY ***  
> ETH0_IP
> *  ETH0_GATEWAY ***  ETH0_DNS 8.8.8.8  DISK_ID 1
> --
>
> i can ping the vm, but dont login with my account without password.
> Have you a link with the full document (with sample) for a correct 
> contex file for remote access with ssh wothout password?
> Thanks to all...
>

Re: [one-users] different authentication methods for different interfaces

2013-11-26 Thread Carlos Martín Sánchez
Hi,

That is not supported, only one auth driver can be set for each user. We
could consider adding support for more than one drivers, but that would
require a bit of development and I can't think of any immediate workaround.

By the way, I know this is not what you asked, but x509 is also supported
for the cli [1].

Regards

[1] http://opennebula.org/documentation:rel4.2:x509_auth

--
Carlos Martín, MSc
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | cmar...@opennebula.org |
@OpenNebula


On Mon, Nov 25, 2013 at 12:13 PM,  wrote:

> Dear community,
>
> I wonder if it is possible for a single user to usetwo different
> authentication methods for different interfaces: e.g. ssh authentication
> method for cli and x509 one for sunstone?
>
> Regards,
> Nikolay.
> ___
> 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] Contex script

2013-11-26 Thread Giancarlo De Filippis


Thanks! 

Everything is running!!! 

Il 26/11/2013 10:38 Javier Fontan ha scritto: 

> ssh public key is installed for root password. Are you trying to connect to 
> root user with the correct private key? 
> 
> On Mon, Nov 25, 2013 at 5:03 PM, Giancarlo De Filippis  
> wrote:
> 
>> Good evening, 
>> 
>> i've created a VM with ubuntu kvm image from marketplace. 
>> 
>> My templatre is: 
>> 
>> CONTEXT
>> 
>> FILES_DS
>> /var/lib/one/datastores/2/4e178e253b6f838c9b2b0458712538a0:'id_rsa.pub' 
>> /var/lib/one/datastores/2/7fcc69a21a0a86ea5437eea7a171b1b3:'init.sh'
>> 
>> NETWORK
>> YES
>> 
>> TARGET
>> hdb
>> 
>> ETH0_NETWORK
>> *
>> 
>> ETH0_MASK
>> **
>> 
>> SSH_PUBLIC_KEY
>> ***
>> 
>> ETH0_IP
>> *
>> 
>> ETH0_GATEWAY
>> ***
>> 
>> ETH0_DNS
>> 8.8.8.8
>> 
>> DISK_ID
>> 1
>> 
>> -- 
>> 
>> i can ping the vm, but dont login with my account without password. 
>> Have you a link with the full document (with sample) for a correct contex 
>> file for remote access with ssh wothout password? 
>> Thanks to all... 
>> 
>> GIANCARLO DE FILIPPIS 
>> LTBL S.r.L. 
>> Cell. +39 320 8155325 [1]
>> Uff. +39 02 89604424 [2]
>> Fax +39 02 89954500 [3] 
>> __ 
>> ___
>> Users mailing list
>> Users@lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org [4]
> 
> -- 
> Javier Fontán Muiños
> Developer
> OpenNebula - The Open Source Toolkit for Data Center Virtualization
> www.OpenNebula.org [5] | @OpenNebula | github.com/jfontan [6]

-- 

GIANCARLO DE FILIPPIS 
LTBL S.r.L. 
Cell. +39 320 8155325
Uff. +39 02 89604424
Fax +39 02 89954500 
__ 



Links:
--
[1] tel:%2B39%20320%208155325
[2] tel:%2B39%2002%2089604424
[3] tel:%2B39%2002%2089954500
[4] http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[5] http://www.OpenNebula.org
[6] http://github.com/jfontan
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Contex script

2013-11-26 Thread Javier Fontan
ssh public key is installed for root password. Are you trying to connect to
root user with the correct private key?


On Mon, Nov 25, 2013 at 5:03 PM, Giancarlo De Filippis
wrote:

>
>
> Good evening,
>
> i've created a VM with ubuntu kvm image from marketplace.
>
> My templatre is:
>   CONTEXTFILES_DS 
> /var/lib/one/datastores/2/4e178e253b6f838c9b2b0458712538a0:'id_rsa.pub'
> /var/lib/one/datastores/2/7fcc69a21a0a86ea5437eea7a171b1b3:'init.sh'
> NETWORK YES  TARGET hdb  ETH0_NETWORK *  ETH0_MASK **
> SSH_PUBLIC_KEY ***  ETH0_IP
> *  ETH0_GATEWAY ***  ETH0_DNS 8.8.8.8  DISK_ID 1
> --
>
> i can ping the vm, but dont login with my account without password.
> Have you a link with the full document (with sample) for a correct contex
> file for remote access with ssh wothout password?
> Thanks to all...
>
> *Giancarlo De Filippis*
> LTBL S.r.L.
> Cell. +39 320 8155325
> Uff.  +39 02 89604424
> Fax  +39 02 89954500
> __
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>


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


Re: [one-users] Unable to login to sunstone as user

2013-11-26 Thread Daniel Molina
On 25 November 2013 15:24, Stefan Kooman  wrote:

> Quoting Daniel Molina (dmol...@opennebula.org):
> > On 25 November 2013 14:28, Stefan Kooman  wrote:
> >
> > > At least with "sinatra" as backend. If I use passenger I'm able
> > > to login ... dashboard screen gets loaded ... and then I'm warped back
> > > to the login page. Same config files (sunstone-server.conf etc.). No
> > > errors are logged in apache/passenger error log. This behaviour is the
> > > same for oneadmin user and unpriviliged users.
> > >
> > > Any hints on this one?
> > >
> >
> > It looks like a memcache issue. Is it enabled in sunstone-server.conf?
> It is, and I'm able to connect to it from the sunstone server. I've
> installed memcached locally just to rule that out ... doesn't change
> anything :(.
>

Let's try to find out the problem:
* Check in "/var/log/one/sunstone.log" that the memcache is indeed enabled.
Note that it is "memcache" and not "memcached":
 :sessions=>"memcache",
* Try removing the cookies from your browser, maybe firefox is trying to
use the old sinatra session and sunstone-server cannot find it in memcache.

Hope this helps


>
> Gr. Stefan
>
> --
> | BIT BV  http://www.bit.nl/Kamer van Koophandel 09090351
> | GPG: 0xD14839C6   +31 318 648 688 / i...@bit.nl
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iF4EAREIAAYFAlKTXYIACgkQTyGgYdFIOcYYRAD9F1yGr6bMBzssNIXCDw1Xl4hG
> dEmGQmxbQzYqdn1CtZAA/0fNKMVjmfxFwbxmqPE0ed6V+Rg2Mhc5GzuQdETnFNNV
> =FQln
> -END PGP SIGNATURE-
>
>


-- 
--
Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] AppMarket Update

2013-11-26 Thread Daniel Molina
Just let me know if it worked, and I'll push it to the repo


On 26 November 2013 02:47, Naza  wrote:

> Thanks for the patch.
>
> Regards,
> Naza
>
>
> On Tue, Nov 26, 2013 at 1:39 AM, Daniel Molina wrote:
>
>> Hi,
>>
>> Indeed it is a bug, could you try applying the following patch?
>> https://gist.github.com/dmamolina/14c2d2bc6ec53fcdab72
>>
>> appmarket update ID FILE
>>
>> Cheers
>>
>>
>> On 22 November 2013 05:13, Naza  wrote:
>>
>>> I am trying to update the appliance logo and description in the
>>> appmarket using appmarket update command but it throws error. I assumed the
>>> command requires a json file format as an input so my file:
>>>
>>> {
>>> "id":"528d708080ea62085100010b",
>>> "logo":"http://x.x.x.x/logo/logo.png";,
>>> "description":"Logo description"
>>> }
>>>
>>> i execute
>>>
>>> # appmarket update file
>>>
>>> /srv/cloud/one/lib/ruby/oneapps/market/appmarket_client.rb:106:in
>>> `update': wrong number of arguments (1 for 2) (ArgumentError)
>>> from /srv/cloud/one/bin/appmarket:251:in `block (2 levels) in
>>> '
>>> from /srv/cloud/one/lib/ruby/cli/command_parser.rb:449:in `call'
>>> from /srv/cloud/one/lib/ruby/cli/command_parser.rb:449:in `run'
>>> from /srv/cloud/one/lib/ruby/cli/command_parser.rb:76:in
>>> `initialize'
>>> from /srv/cloud/one/bin/appmarket:101:in `new'
>>> from /srv/cloud/one/bin/appmarket:101:in `'
>>>
>>> The documentation does not have much about appmarket update:
>>> http://opennebula.org/documentation:rel4.2:appmarket_use
>>>
>>> Please help me to resolve this problem.
>>>
>>> Thanks in advance.
>>>
>>> Regards,
>>> Naza
>>>
>>>
>>> ___
>>> Users mailing list
>>> Users@lists.opennebula.org
>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>
>>>
>>
>>
>> --
>> --
>> Daniel Molina
>> Project Engineer
>> OpenNebula - Flexible Enterprise Cloud Made Simple
>> www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula
>>
>
>


-- 
--
Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] opennebula 4.4 rc sunstone server get 100% cpu use

2013-11-26 Thread caohf
Thanks.
I will try it.
I system os is Centos X86_64 && install opennebula via rpm packages




 Best Wishes!
 Dennis

From: Daniel Molina
Date: 2013-11-26 17:24
To: caohf
CC: users@lists.opennebula.org
Subject: Re: Re: [one-users] opennebula 4.4 rc sunstone server get 100% cpu use
Hi,


Could you try installing the nokogiri gem, and restarting sunstone-server after 
that


Cheers


On 26 November 2013 07:38, caohf  wrote:

Dear Cheers:
My ruby version is :
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] 

the gem list:
*** LOCAL GEMS ***

daemons (1.1.9)
eventmachine (1.0.3)
json (1.8.1)
rack (1.5.2)
rack-protection (1.5.1)
rvm (1.11.3.8)
sequel (4.3.0)
sinatra (1.4.4)
sqlite3 (1.3.8)
thin (1.6.0)
tilt (1.4.1)




 Best Wishes!
 Dennis

From: Daniel Molina
Date: 2013-11-25 19:52
To: caohf
CC: users@lists.opennebula.org
Subject: Re: [one-users] opennebula 4.4 rc sunstone server get 100% cpu use
Hi, 


What ruby version are you running? Could you send us the list of gems (gem list)


Cheers



On 25 November 2013 11:23, caohf  wrote:

Dear All:
when i login the sunstone i find the sunstone process get 100% cpu use.
  PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  COMMAND
  
22989 oneadmin  20   0  304m 209m 4080 R 99.5  0.9   6:04.00 ruby 
/usr/lib/one/sunstone/sunstone-server
25525 oneadmin  20   0  304m 209m 4080 S  0.3  0.9   0:00.69 ruby 
/usr/lib/one/sunstone/sunstone-server




 Best Wishes!
 Dennis

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







-- 

--

Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula





-- 

--

Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] opennebula 4.4 rc sunstone server get 100% cpu use

2013-11-26 Thread Daniel Molina
Hi,

Could you try installing the nokogiri gem, and restarting sunstone-server
after that

Cheers

On 26 November 2013 07:38, caohf  wrote:

>  Dear Cheers:
> My ruby version is :
> ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
>
> the gem list:
>  *** LOCAL GEMS ***
>
> daemons (1.1.9)
> eventmachine (1.0.3)
> json (1.8.1)
> rack (1.5.2)
> rack-protection (1.5.1)
> rvm (1.11.3.8)
> sequel (4.3.0)
> sinatra (1.4.4)
> sqlite3 (1.3.8)
> thin (1.6.0)
> tilt (1.4.1)
>
> --
>   Best Wishes!
>  Dennis
>
>  *From:* Daniel Molina 
> *Date:* 2013-11-25 19:52
> *To:* caohf 
> *CC:* users@lists.opennebula.org 
> *Subject:* Re: [one-users] opennebula 4.4 rc sunstone server get 100% cpu
> use
>  Hi,
>
> What ruby version are you running? Could you send us the list of gems (gem
> list)
>
> Cheers
>
>
> On 25 November 2013 11:23, caohf  wrote:
>
>>  Dear All:
>> when i login the sunstone i find the sunstone process get 100% cpu use.
>>
>>   PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  COMMAND
>>
>> 22989 oneadmin  20   0  304m 209m 4080 R 99.5  0.9   6:04.00 ruby 
>> /usr/lib/one/sunstone/sunstone-server
>>
>> 25525 oneadmin  20   0  304m 209m 4080 S  0.3  0.9   0:00.69 ruby 
>> /usr/lib/one/sunstone/sunstone-server
>>
>> --
>>   Best Wishes!
>>  Dennis
>>
>> ___
>> Users mailing list
>> Users@lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>
>
> --
>  --
> Daniel Molina
> Project Engineer
> OpenNebula - Flexible Enterprise Cloud Made Simple
> www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula
>



-- 
--
Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] How do i know the cluster's datastore's capacity?

2013-11-26 Thread Kenneth
 

You can of course. But it is up to you to monitor. And using storage
on different hosts will cause the VMs to be copied via scp which is
pretty slow. 

Another way to have a large storage is to remove other
drives on the nodes (or use small drives in them) and then plug big
capacity drives on the main NFS node. I mean put everything on the host
A and let other have a small hard drive just enough for the OS itself.


--- 

Thanks,
Kenneth
Apollo Global Corp.

On 11/26/2013 04:48 PM, 曹海峰
wrote: 

> Thanks for replay! 
> But if I use a shared folder ,such as
/var/lib/datastore/1/ on host A and mount it on all hosts in a cluster.
the whole storage capacity is very small,Opennebula can't use other
hosts's disk space.? 
> 
> -
> 
> Best Wishes!

> Dennis 
> 
> FROM: users-boun...@lists.opennebula.org 
> DATE:
2013-11-26 16:27 
> TO: users@lists.opennebula.org 
> SUBJECT: Re:
[one-users] How do i know the cluster's datastore's capacity? 
> 
>
That's because you are not using a shared folder for all hosts. A better
way to do it is to make the /var/lib/datastore/1/ folder on the sunstone
as a NFS folder and then mount it all other hosts on the same location
/var/lib/datastore/1/. This will enable you to do live migrations and
very fast deployment of vms. 
> ---
> 
> Thanks,
> Kenneth
> Apollo
Global Corp.
> 
> On 11/26/2013 04:17 PM, caohf wrote: 
> 
>> Dear all:

>> How do i get the whole capacity for a cluster's datastores, 
>> I
have two hosts in a cluster, every host has 100GB space for
/var/lib/datastore. 
>> In sunstone i find the capacity of cluster only
display the capacity of host where the sunstone deployed. 
>> 
>>
-
>> 
>> Best Wishes! 
>> Dennis 
>> 
>>
___
>> Users mailing list
>>
Users@lists.opennebula.org
>>
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org [1]
> 
>
___
> Users mailing list
>
Users@lists.opennebula.org
>
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org [1]



Links:
--
[1]
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] How do i know the cluster's datastore's capacity?

2013-11-26 Thread 曹海峰
Thanks for replay!
But if I use a shared folder ,such as /var/lib/datastore/1/ on host A  and 
mount it on all hosts in a cluster. the whole storage capacity is very 
small,Opennebula can't use other hosts's disk space.?



 Best Wishes!
 Dennis

From: 
users-boun...@lists.opennebula.org
Date: 2013-11-26 16:27
To: users@lists.opennebula.org
Subject: Re: [one-users] How do i know the cluster's datastore's capacity?

That's because you are not using a shared folder for all hosts. A better way to 
do it is to make the /var/lib/datastore/1/ folder on the sunstone as a NFS 
folder and then mount it all other hosts on the same location 
/var/lib/datastore/1/. This will enable you to do live migrations and very fast 
deployment of vms.

---

Thanks,
Kenneth
Apollo Global Corp.

On 11/26/2013 04:17 PM, caohf wrote:

Dear all:
How do i get the whole capacity for a  cluster's datastores,
I have two hosts in a cluster, every host has 100GB space for 
/var/lib/datastore.
In sunstone i find the capacity of cluster only display the capacity of  host 
where the sunstone deployed.


 Best Wishes!
 Dennis


___
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] how could i move the exist vms to nebula?

2013-11-26 Thread André Monteiro
Mainly depends on the amount of VMs, but the simplest way is to import as
an Image, providing the VM disk filepath, and then build an adequate
template for it. Don't forget to make the image persistent if you want to
preserve changes.

--
André Monteiro
On Nov 26, 2013 8:01 AM, "hansz"  wrote:

> hi man,
> i have a question, how could i move the exist vms  on esxi5.1 to nebula
> control them? can i ? how ? thinks.
>
>
>
> ___
> 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] How do i know the cluster's datastore's capacity?

2013-11-26 Thread Kenneth
 

That's because you are not using a shared folder for all hosts. A
better way to do it is to make the /var/lib/datastore/1/ folder on the
sunstone as a NFS folder and then mount it all other hosts on the same
location /var/lib/datastore/1/. This will enable you to do live
migrations and very fast deployment of vms. 
---

Thanks,
Kenneth
Apollo
Global Corp.

On 11/26/2013 04:17 PM, caohf wrote: 

> Dear all: 
> How
do i get the whole capacity for a cluster's datastores, 
> I have two
hosts in a cluster, every host has 100GB space for /var/lib/datastore.

> In sunstone i find the capacity of cluster only display the capacity
of host where the sunstone deployed. 
> 
> -
>

> Best Wishes! 
> Dennis 
> 
>
___
> Users mailing list
>
Users@lists.opennebula.org
>
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org [1]



Links:
--
[1]
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


[one-users] How do i know the cluster's datastore's capacity?

2013-11-26 Thread caohf
Dear all:
How do i get the whole capacity for a  cluster's datastores,
I have two hosts in a cluster, every host has 100GB space for 
/var/lib/datastore.
In sunstone i find the capacity of cluster only display the capacity of  host 
where the sunstone deployed.




 Best Wishes!
 Dennis___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] how could i move the exist vms to nebula?

2013-11-26 Thread hansz
hi man,
i have a question, how could i move the exist vms  on esxi5.1 to nebula control 
them? can i ? how ? thinks.___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org