[one-users] Ruby version

2014-07-25 Thread Anandharaj Subramaniam
Hi All,

What is the recommended / minimum version for Ruby?

After I upgrade my OpenNebula to version 4.8 (beta) and run 
/usr/share/one/install_gems, I got errors for some ruby libraries.

gem install --no-ri --no-rdoc nokogiri --version  1.6.0
Building native extensions.  This could take a while...
Successfully installed nokogiri-1.5.11
1 gem installed
gem install --no-ri --no-rdoc softlayer_api configparser azure
ERROR:  Error installing softlayer_api:
softlayer_api requires Ruby version = 1.9.2.
Successfully installed configparser-0.1.3
Building native extensions.  This could take a while...
ERROR:  Error installing azure:
azure requires Ruby version = 1.9.3.
1 gem installed
Error executing gem install --no-ri --no-rdoc softlayer_api configparser azure


[oneadmin@opennebula ~]$ ruby -v
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]

[oneadmin@opennebula ~]$ more /etc/redhat-release
CentOS release 6.5 (Final)

--
Regards,
Anandharaj



DISCLAIMER:


This e-mail (including any attachments) is for the addressee(s) only and may be 
confidential, especially as regards personal data. If you are not the intended 
recipient, please note that any dealing, review, distribution, printing, 
copying or use of this e-mail is strictly prohibited. If you have received this 
email in error, please notify the sender immediately and delete the original 
message (including any attachments).


MIMOS Berhad is a research and development institution under the purview of the 
Malaysian Ministry of Science, Technology and Innovation. Opinions, conclusions 
and other information in this e-mail that do not relate to the official 
business of MIMOS Berhad and/or its subsidiaries shall be understood as neither 
given nor endorsed by MIMOS Berhad and/or its subsidiaries and neither MIMOS 
Berhad nor its subsidiaries accepts responsibility for the same. All liability 
arising from or in connection with computer viruses and/or corrupted e-mails is 
excluded to the fullest extent permitted by law.


--
-
-
DISCLAIMER:

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

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


Re: [one-users] Upgrade 4.6 to 4.8 (beta) - onedb fsck report an error

2014-07-25 Thread Carlos Martín Sánchez
Hi Anandharaj,

Can you please try the onedb command again, with the debug flag?

ruby -d `which onedb` fsck 

Thank you.



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


On Fri, Jul 25, 2014 at 4:47 AM, Anandharaj Subramaniam 
anandharaj.man...@mimos.my wrote:

  Hi,



 I have followed the documentation to upgrade my test OpenNebula from 4.6.2
 to the 4.8 (beta 1).  When I run the onedb fsck, I got an error.



 [oneadmin@opennebula ~]$ onedb upgrade -v -u oneadmin -d opennebula

 MySQL Password:

 Version read:

 Shared tables 4.6.0 : OpenNebula 4.6.2 daemon bootstrap

 Local tables  4.5.80 : OpenNebula 4.6.2 daemon bootstrap



 MySQL dump stored in /var/lib/one/mysql_localhost_opennebula.sql

 Use 'onedb restore' or restore the DB using the mysql command:

 mysql -u user -h server -P port db_name  backup_file





  Running migrators for shared tables

 Database already uses version 4.6.0



  Running migrators for local tables

Running migrator /usr/lib/one/ruby/onedb/local/4.5.80_to_4.7.80.rb

Done in 0.27s



 Database migrated from 4.5.80 to 4.7.80 (OpenNebula 4.7.80) by onedb
 command.



 Total time: 0.27s





 [oneadmin@opennebula ~]$ onedb fsck -S localhost -u oneadmin  -d
 opennebula

 MySQL dump stored in /var/lib/one/mysql_localhost_opennebula.sql

 Use 'onedb restore' or restore the DB using the mysql command:

 mysql -u user -h server -P port db_name  backup_file





 *undefined method `[]' for nil:NilClass*

 Error running fsck version 4.6.0

 The database will be restored

 MySQL DB opennebula at localhost restored.





 --

 Regards,

 Anandharaj



 --
  *DISCLAIMER:*

  This e-mail (including any attachments) is for the addressee(s) only and
 may be confidential, especially as regards personal data. If you are not
 the intended recipient, please note that any dealing, review, distribution,
 printing, copying or use of this e-mail is strictly prohibited. If you have
 received this email in error, please notify the sender immediately and
 delete the original message (including any attachments).

  MIMOS Berhad is a research and development institution under the purview
 of the Malaysian Ministry of Science, Technology and Innovation. Opinions,
 conclusions and other information in this e-mail that do not relate to the
 official business of MIMOS Berhad and/or its subsidiaries shall be
 understood as neither given nor endorsed by MIMOS Berhad and/or its
 subsidiaries and neither MIMOS Berhad nor its subsidiaries accepts
 responsibility for the same. All liability arising from or in connection
 with computer viruses and/or corrupted e-mails is excluded to the fullest
 extent permitted by law.

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


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


Re: [one-users] Ruby version

2014-07-25 Thread Giovanni Toraldo
Hi,

On Fri, Jul 25, 2014 at 9:27 AM, Anandharaj Subramaniam
anandharaj.man...@mimos.my wrote:
 What is the recommended / minimum version for Ruby?

You should upgrade to Ruby 1.9.3 as the warning are saying, Ruby 1.8.7
is no more supported by upstream:
https://www.ruby-lang.org/en/news/2013/06/30/we-retire-1-8-7/

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


[one-users] Opennebula 4.6.2 debian - AUTOMATIC_REQUIREMENTS

2014-07-25 Thread Robert Tanase
Hi,

I am trying to deploy VM's in a specific CLUSTER and I am facing a strange
behavior regarding AUTOMATIC_REQUIREMENTS.

By default one assigns the value CLUSTER_ID = 101 and PUBLIC_CLOUD.

I am passing in template SCHED_REQUIREMENTS = CLUSTER_ID = 102 and
SCHED_DS_REQUIREMENTS = CLUSTER_ID =102 .

The scheduler - on deploy step is using  and between automatic and user
defined conditions.

The result of this action is - VM always in PENDING state and a warning
message that the scheduler condition:

 CLUSTER_ID = 101  PUBLIC_CLOUD  CLUSTER_ID = 102

is not satisfied.

First I was using the default 1 value in sched.conf and than tried value 3
for both policy in DEFAULT_SCHED and DEFAULT_DS_SCHED with same result.

DEFAULT_SCHED = [
policy = 3
]

DEFAULT_DS_SCHED = [
   policy = 3
]


Any ideea please? Is there any issue in my conf files?

Thank you,



*Robert TANASESoftware Developer - Appnor MSP S.A.*
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Ruby version

2014-07-25 Thread Javier Fontan
That whould be the best way to go but there is not an easy path in
CentOS 6. For the final version we will support CentOS 6 with stock
ruby (1.8.7) but azure and softlayer hybrid drivers won't work in it.
We have modified install_gems so it detects the ruby versions and does
not try to install some gems. This change did not make to the beta.

To be able to use install_gems in the beta you can execute it with this command:

# ./install_gems quota sustone auth_ldap oneflow oca

On Fri, Jul 25, 2014 at 11:53 AM, Giovanni Toraldo m...@gionn.net wrote:
 Hi,

 On Fri, Jul 25, 2014 at 9:27 AM, Anandharaj Subramaniam
 anandharaj.man...@mimos.my wrote:
 What is the recommended / minimum version for Ruby?

 You should upgrade to Ruby 1.9.3 as the warning are saying, Ruby 1.8.7
 is no more supported by upstream:
 https://www.ruby-lang.org/en/news/2013/06/30/we-retire-1-8-7/

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



-- 
Javier Fontán Muiños
Developer
OpenNebula - Flexible Enterprise Cloud Made Simple
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] workflow to install a vm from cdrom

2014-07-25 Thread Thomas Stein
Hello.

Is there a howto on how to create a new vm from a cdrom? My problem is
when i installed the new vm and hit the save button in the user
webinterface i save the cdrom not the fresh installed image. How am i
supposed to save the disk image?

thanks and best regards
t.
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] workflow to install a vm from cdrom

2014-07-25 Thread Steffen Claus
Why don't you simply detach the ISO before saving?

- Ursprüngliche Mail -
 Hello.
 
 Is there a howto on how to create a new vm from a cdrom? My problem
 is
 when i installed the new vm and hit the save button in the user
 webinterface i save the cdrom not the fresh installed image. How am i
 supposed to save the disk image?
 
 thanks and best regards
 t.
 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
 

-- 
Steffen Claus

Fraunhofer-Institut für Algorithmen und Wissenschaftliches Rechnen (SCAI)
Schloss Birlinghoven
D-53754 Sankt Augustin
Tel: +49 2241 14-2511
steffen.cl...@scai.fraunhofer.de
http://www.scai.fraunhofer.de 
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] How use $UNAME

2014-07-25 Thread Steven Timm
We have been initializing Kerberos logins using opennebula 
contextualizaton on FermiCloud since the beginning.



The UNAME field automatically defined but not automatically passed to
contextualization scripts inside the VMs.

Here is a snippet of code that we use to do just that.

(The username is encoded as part of the context string in
base-64 so you have to parse it out).

  SUFFIX=@FNAL.GOV
if [ $(which xpath) ] || yum install -y perl-XML-XPath; then
  USERNAME1=$(echo $CTX_USER | base64 -d | /usr/bin/xpath 
'/USER/NAME/text()')

else
  echo This script ($0) needs xpath and YUM failed to install it via the 
perl-X

ML-XPath RPM
  USERNAME1='MissingBINARYxpath'
fi

USERNAME2='gerard1'
mv /root/.k5login /root/k5login.old
echo $USERNAME1$SUFFIX  /root/.k5login
echo $USERNAME2$SUFFIX  /root/.k5login

---

We pass this script as a contextualization file to
be used by the one-context rpm.

Also you have to add in the CONTEXT section of the template

  CTX_USER=$USER[TEMPLATE],


Steve


On Thu, 24 Jul 2014, Alexandr Baranov wrote:



Hi,

I'm trying to setup kerberos login to log into VMs with kerberos username
matching ONE username. I'm going to use UNAME variable and ONE documentation
states it as pre-defined. So the question is: do I need to manually specify
UNAME inside the VM template, or is it automatically defined and passed to
contextualization scripts?





--
Steven C. Timm, Ph.D  (630) 840-8525
t...@fnal.gov  http://home.fnal.gov/~timm/
Fermilab Scientific Computing Division, Scientific Computing Services Quad.
Grid and Cloud Services Dept., Associate Dept. Head for Cloud Computing
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] workflow to install a vm from cdrom

2014-07-25 Thread Daniel Molina
Hi Thomas,

What OpenNebula version are you running and what view is currently using
the regular user?

Cheers


On 25 July 2014 17:10, Thomas Stein himbe...@meine-oma.de wrote:

 Am 25.07.14 13:08, schrieb Steffen Claus:
  Why don't you simply detach the ISO before saving?

 What works to is onevm disk-snapshot 9 1 centos7. But this is not
 available for the user too.

 cheers
 t.

  - Ursprüngliche Mail -
  Hello.
 
  Is there a howto on how to create a new vm from a cdrom? My problem
  is
  when i installed the new vm and hit the save button in the user
  webinterface i save the cdrom not the fresh installed image. How am i
  supposed to save the disk image?
 
  thanks and best regards
  t.
  ___
  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




-- 
--
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] workflow to install a vm from cdrom

2014-07-25 Thread Thomas Stein
On 25. Juli 2014 17:16:58 MESZ, Daniel Molina dmol...@opennebula.org wrote:
Hi Thomas,

Hi Daniel.


What OpenNebula version are you

4.6.

 running and what view is currently
using
the regular user?

What do you mean? Are there more views? I'm talking about the user webinterface.

thanks 
t.


Cheers


On 25 July 2014 17:10, Thomas Stein himbe...@meine-oma.de wrote:

 Am 25.07.14 13:08, schrieb Steffen Claus:
  Why don't you simply detach the ISO before saving?

 What works to is onevm disk-snapshot 9 1 centos7. But this is not
 available for the user too.

 cheers
 t.

  - Ursprüngliche Mail -
  Hello.
 
  Is there a howto on how to create a new vm from a cdrom? My
problem
  is
  when i installed the new vm and hit the save button in the user
  webinterface i save the cdrom not the fresh installed image. How
am i
  supposed to save the disk image?
 
  thanks and best regards
  t.
  ___
  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



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


[one-users] Run bash script in vm on spin-up

2014-07-25 Thread kerryhall .
Hi folks,

I am trying to run a bash script on a vm as it gets spun up. I've read:
http://docs.opennebula.org/4.6/user/virtual_machine_setup/cong.html

but there isn't too much to go on there.

I have created test.sh and put it into the files datastore on the head
node.

The issue I am having is that the syntax in the Defining Context section
of http://docs.opennebula.org/4.6/user/virtual_machine_setup/cong.html is
ambiguous, specifically the files_ds section. I have tried:

FILES_DS=$FILE[\test.sh\]

and
FILES_DS=/var/lib/one/datastores/2/test.sh

As a first step, I'm just trying to get this file included in my vm at all.

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