[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


[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


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


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 hanshizhun...@126.com 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 曹海峰
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.orgmailto:users-boun...@lists.opennebula.org
Date: 2013-11-26 16:27
To: users@lists.opennebula.orgmailto: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.orgmailto: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
 

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] 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 ca...@wedogame.com 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 dmol...@opennebula.org
 *Date:* 2013-11-25 19:52
 *To:* caohf ca...@wedogame.com
 *CC:* users@lists.opennebula.org 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 ca...@wedogame.com 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 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 ca...@wedogame.com 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 ca...@wedogame.com 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] 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 naza1...@gmail.com wrote:

 Thanks for the patch.

 Regards,
 Naza


 On Tue, Nov 26, 2013 at 1:39 AM, Daniel Molina dmol...@opennebula.orgwrote:

 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 naza1...@gmail.com 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
 main'
 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 `main'

 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] 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
gdefilip...@ltbl.itwrote:



 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] 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 |
@OpenNebulahttp://twitter.com/opennebulacmar...@opennebula.org


On Mon, Nov 25, 2013 at 12:13 PM, 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] 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 dmol...@opennebula.org
To: Stefan Kooman ste...@bit.nl
Cc: users@lists.opennebula.org users@lists.opennebula.org
Subject: Re: [one-users] Unable to login to sunstone as user
Message-ID:
capvywey5tondbegpkx92jbmq6_nmnx7xnl7ptjoospa5lue...@mail.gmail.com
Content-Type: text/plain; charset=iso-8859-1

On 25 November 2013 15:24, Stefan Kooman ste...@bit.nl wrote:

 Quoting Daniel Molina (dmol...@opennebula.org):
  On 25 November 2013 14:28, Stefan Kooman ste...@bit.nl 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 jfon...@opennebula.org
To: Giancarlo De Filippis gdefilip...@ltbl.it
Cc: users@lists.opennebula.org users@lists.opennebula.org
Subject: Re: [one-users] Contex script
Message-ID:
CAK+uMM_w_ByGZ6aE=au+JukDY+t0dr=pxehzodyohehqky-...@mail.gmail.com
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
gdefilip...@ltbl.itwrote:



 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

[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 arvind.chaturv...@atos.net
To: users@lists.opennebula.org 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 dmol...@opennebula.org
To: Stefan Kooman ste...@bit.nl
Cc: users@lists.opennebula.org users@lists.opennebula.org
Subject: Re: [one-users] Unable to login to sunstone as user
Message-ID:
capvywey5tondbegpkx92jbmq6_nmnx7xnl7ptjoospa5lue...@mail.gmail.com
Content-Type: text/plain; charset=iso-8859-1

On 25 November 2013 15:24, Stefan Kooman ste...@bit.nl wrote:

 Quoting Daniel Molina (dmol...@opennebula.org):
  On 25 November 2013 14:28, Stefan Kooman ste...@bit.nl 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

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 |
@OpenNebulahttp://twitter.com/opennebulacmar...@opennebula.org


On Tue, Nov 26, 2013 at 8:41 AM, Olivier Sallou olivier.sal...@irisa.frwrote:

  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


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 http://www.OpenNebula.org |
 cmar...@opennebula.org mailto:cmar...@opennebula.org | @OpenNebula
 http://twitter.com/opennebula


 On Tue, Nov 26, 2013 at 8:41 AM, Olivier Sallou
 olivier.sal...@irisa.fr 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 mailto: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: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 http://www.OpenNebula.org |
 cmar...@opennebula.org mailto:cmar...@opennebula.org | @OpenNebula
 http://twitter.com/opennebula


 On Tue, Nov 26, 2013 at 8:41 AM, Olivier Sallou
 olivier.sal...@irisa.fr 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 mailto: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] 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 |
@OpenNebulahttp://twitter.com/opennebulacmar...@opennebula.org


On Tue, Nov 19, 2013 at 11:51 AM, Qiubo Su (David Su) qiub...@gmail.comwrote:

 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] 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 ste...@bit.nl wrote:
 
  Quoting Daniel Molina (dmol...@opennebula.org):
   On 25 November 2013 14:28, Stefan Kooman ste...@bit.nl 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] 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 http://www.OpenNebula.org |
cmar...@opennebula.org mailto:cmar...@opennebula.org | @OpenNebula
http://twitter.com/opennebula


On Tue, Nov 26, 2013 at 8:41 AM, Olivier Sallou
olivier.sal...@irisa.fr 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 mailto: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] 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 g...@isgsoftware.net 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 g...@isgsoftware.net
 To: Users OpenNebula users@lists.opennebula.org
 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 g...@isgsoftware.net 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] 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 http://www.OpenNebula.org | cmar...@opennebula.org 
mailto:cmar...@opennebula.org | @OpenNebula http://twitter.com/opennebula



On Mon, Nov 25, 2013 at 12:13 PM, kna...@gmail.com 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 mailto: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 (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 http://www.OpenNebula.org |
 cmar...@opennebula.org mailto:cmar...@opennebula.org | @OpenNebula
 http://twitter.com/opennebula


 On Tue, Nov 26, 2013 at 8:41 AM, Olivier Sallou
 olivier.sal...@irisa.fr 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 mailto: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


[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


[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


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 olivier.sal...@irisa.frwrote:


 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


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
 olivier.sal...@irisa.fr 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


[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 = devicescontroller type='scsi' index='0'
model='lsilogic'//devices]

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] 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 jfon...@opennebula.org

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 g...@isgsoftware.net 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 g...@isgsoftware.net
 To: Users OpenNebula users@lists.opennebula.org
 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 g...@isgsoftware.net 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] 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 | 
 @OpenNebulahttp://twitter.com/opennebulacmar...@opennebula.org


 On Tue, Nov 19, 2013 at 11:51 AM, Qiubo Su (David Su) 
 qiub...@gmail.comwrote:

 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