[one-users] listing images and its vms

2014-02-05 Thread João Pagaime

Hello all

I'm trying to put together a very simple ruby script that outputs 
opennebula's images and its vms


as far as listing opennebula's images, everything is fine, but I get an 
error when trying, for each image, to lists its vms


acording to the 4.2 API documentation the  image class should have a 
vms list/array member, but I get an error when I try to instantiate that


where's the script. The offending statement in red. Any help would be 
appreciated


thanks
joão

-- (snatched from openneb examples and then 
adapted...)


#!/usr/bin/env ruby

##
# Environment Configuration
##
ONE_LOCATION=ENV[ONE_LOCATION]

if !ONE_LOCATION
RUBY_LIB_LOCATION=/usr/lib/one/ruby
else
RUBY_LIB_LOCATION=ONE_LOCATION+/lib/ruby
end

$:  RUBY_LIB_LOCATION

##
# Required libraries
##
require 'opennebula'

include OpenNebula

# OpenNebula credentials
CREDENTIALS = oneadmin:(REMOVED)
# XML_RPC endpoint where OpenNebula is listening
ENDPOINT=http://localhost:2633/RPC2;

client = Client.new(CREDENTIALS, ENDPOINT)

img_pool = ImagePool.new(client, -1)

rc2 = img_pool.info
if OpenNebula.is_error?(rc2)
 puts rc2.message
 exit -1
end

img_pool.each do|img|
   puts img id=#{img.id},#{img.name}
   img.vms.each do|vm|
   end
end


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


[one-users] ldap auth without automatic user creation

2014-02-05 Thread Nicolas Bélan
Hello,

I tried successfully the LDAP auth using one 4.4, with the 'default'
auth engine.

So, I am able to log on Sunstone with a user in the right LDAP group, if
it is not created on the one user DB.

But, I am trying to answer this use case, and I can't achieve it:

1) create a user through sunstone and set it a LDAP scheme auth.
2) assign VM to this user (let's say uid 2)
3) create a correct CN in LDAP DB, and assign it to the right group
4) auth with sunstone GUI

I creates a user 3, without any VM (same filter id ...)

I would like to (pre)create user in sunstone, and give them accesses
later through LDAP auth.
Is it possible ?

Thank you
Best regards,
Nicolas.

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


Re: [one-users] (no subject)

2014-02-05 Thread Carlos Martín Sánchez
Hi,


On Tue, Feb 4, 2014 at 6:09 PM, Deepak Upadhyay syssolution...@gmail.com
 wrote:

 Hi,

 I am new to Opennebula and Linux based virtualization in general so please
 bear with me.

 I was able to successfully follow the the instructions and install
 Opennebula and create a VM as instructed in the quick start guide. However,
 when I shutdown the VM for a while, it disappeared. How do I get it back?


Because of legacy reasons, the shutdown command is really a
shutdown+destroy. To shutdown and later boot a VM, you need to use the
'poweroff' or the 'undeploy' commands [1].

Poweroff will leave the VM in the host, so the next *boot* will be
immediate. Undeploy will move the VM back to the system datastore, and can
be *resumed* later to any of the hosts.

Regards

[1]
http://docs.opennebula.org/stable/user/virtual_resource_management/vm_guide_2.html#terminating-vm-instances

--
Carlos Martín, MSc
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | cmar...@opennebula.org |
@OpenNebulahttp://twitter.com/opennebulacmar...@opennebula.org
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Contextualization of a VM with Centos 5.X

2014-02-05 Thread Fernando Felix-Redondo
Dear all,

I need to deploy a bunch of VMs with CentOS 5.9 on my ONE
infrastructure but I'm facing the problem that I'm not able to install
the opennebula-context package because is built for the CentOS 6.X and
the system complaints about the rpmlib versions.

Is there anywhere an opennebula-context package suitable for CentOS
5.X or any alternative to install the contextualization tools, please?

Regards
Fernando
--
Fernando Felix-Redondo  [ISDEFE, S.A.]  | fernando.fe...@esa.int  |
Phone: +34 91 813 1368
SMOS DPGS Operations
Computer Systems and Reliability Engineer
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] OpenNebula 4.4.1 Released!

2014-02-05 Thread Tino Vazquez
Dear OpenNebula users,

The OpenNebula project is proud to announce the general availability
of OpenNebula 4.4.1 [1]. This is a maintenance release that fixes bugs
reported by the community after 4.4 Retina was released. This release
only includes bug fixes and it is a recommended update for everyone
running any 3.x. or 4.x version of OpenNebula.

Check out the OpenNebula 4.4 Retina release notes [2] for the release
highlights and a summary of the new features incorporated in
OpenNebula 4.4.

Best,

Tino, on behalf The OpenNebula Project

[1] http://docs.opennebula.org/stable/release_notes441/index.html
[2] http://docs.opennebula.org/stable/release_notes44/index.html

--
OpenNebula - Flexible Enterprise Cloud Made Simple

--
Constantino Vázquez Blanco, PhD, MSc
Senior Infrastructure Architect at C12G Labs
www.c12g.com | @C12G | es.linkedin.com/in/tinova

--
Confidentiality Warning: The information contained in this e-mail and
any accompanying documents, unless otherwise expressly indicated, is
confidential and privileged, and is intended solely for the person
and/or entity to whom it is addressed (i.e. those identified in the
To and cc box). They are the property of C12G Labs S.L..
Unauthorized distribution, review, use, disclosure, or copying of this
communication, or any part thereof, is strictly prohibited and may be
unlawful. If you have received this e-mail in error, please notify us
immediately by e-mail at ab...@c12g.com and delete the e-mail and
attachments and any copy from your system. C12G thanks you for your
cooperation.
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] AppMarket 2.0 Beta (1.9.80) release

2014-02-05 Thread Daniel Molina
Hi Daniel,


On 4 February 2014 19:15, Daniel Dehennin daniel.dehen...@baby-gnu.orgwrote:

 Jaime Melis jme...@opennebula.org writes:

  Dear community,

 Hello,

  we are pleased to announce the release of AppMarket 2.0 Beta:
  http://opennebula.org/appmarket-2-0-beta-1-9-80/

 I discuss with some colleagues used to some very expensive proprietary
 software, I gather their needs to study the opportunity to switch part
 of their infrastructure to ONE.

 What they call catalogue is very important to them and they have a
 use-flow based on it, I'm preparing some redmine requests but I take the
 opportunity of this thread to ask some questions.


Feedback is always more than welcome. Feature requests for the AppMarket
are handled through the Github issues.
https://github.com/OpenNebula/addon-appmarket/issues?state=open


 NB: I do not setup an AppMarket yet.

  This release brings many new goodies to the AppMarket:
 
  AppMarket
 
  - Multi-image Appliances: AppMarket Appliances can now have multiple
 disks,
  which creates new possibilities to upload and register more complex and
  feature complete Appliances.

 Does this mean we can store and distribute a complete OneFlow service?


Currently OneFlow services are not supported, but it wouldn't be difficult
to add this option. Currently, multi-image support means you can provide
more than one image/datablock/cdrom for a given VM (1 VM Template -
Multiple Disks) and the relationship is defined in the opennebula_template
attribute. We could include an opennebula_service_template attribute also.


 Is there a way to clearly identify and group appliances by version, like:

 - one entry per appliance
 - one sub-entry per appliance version, with some sorting newest
   first/last


Appliances currently have an attribute version, you can update the
appliances and increment this value, but the original appliances will
disappear. Why do you want to keep old versions of the appliance?


 I'm wondering about storage size, does AppMarket use the same storage as
 ONE or the disks are copied from ONE to AppMarket?

 I do not see clearly what is the storage requirement and how things get
 together between AppMarket/ONE/Sunstone.


By default AppMarket does not store any image, just the metadata of the
appliance, therefore the url is just a reference to the file and it could
be stored in a third party server. This is how the OpenNebula Marketplace
works [1]. When you import an appliance from the AppMarket to OpenNebula, a
new image is create an the path attribute contains the url of the file;
this file will be downloaded to the specified datastore by the DS driver.

In AppMarket 2.0 a new component was included, AppMarket Worker. This
component allows you to create appliances from an OVA file. The OVA file is
provided as an url and the worker will download, unpack and store the
images and will update the appliance with the new urls for the files. The
storage used by this component is not related to OpenNebula.

So you can create appliances in two different ways:
1. Providing the urls of the files and the opennebula_template. In this
case the Worker will not do anything.
2. Providing an OVA file. In this case the Worker will unpack and store the
files and will generate the opennebula_template and files section of the
appliance.




  - Sunstone Import: users will be able to import registered Appliances to
  OpenNebula via Sunstone by using pre-filled Image and Template creation
  forms.
 
  - Sunstone Views: two new Sunstone views: an AppMarket *admin* view, that
  allows full control of the AppMarket, and a *user* view, that allows end
  users to import registered appliances.

 In the documentation Create an Appliance[1], we must provide the URLs
 of the files and the OpenNebula template in the Appliance creation
 form.

 Is there a way to push appliances from ONE/Sunstone, I read From
 AppMarket 2.0 creating an appliance can be also done through the
 AppMarket tab in Sunstone.

 Providing a new VM/OneFlow action Store in AppMarket could be
 great ;-)


Currently, this is not supported but it would be a nifty feature, Export
VM/Service, a step forward in terms of portability

Thank you for your feedback

[1] http://marketplace.c12g.com/appliance


-- 
--
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] Contextualization of a VM with Centos 5.X

2014-02-05 Thread Javier Fontan
One way you can do this is creating the packages in that version of
the distribution. The source of the context packages come with the
source code, in directory share/scripts/context-packages. There you
can find information on how to build them in the README file [1] and
some more information in the documentation page [2].

To create the packages for CentOS the command will be:

$ PACKAGE_TYPE=rpm ./generate.sh


[1] 
https://github.com/OpenNebula/one/blob/master/share/scripts/context-packages/README.md
[2] 
http://docs.opennebula.org/stable/user/virtual_machine_setup/cong.html#generating-custom-contextualization-packages

On Wed, Feb 5, 2014 at 11:30 AM, Fernando Felix-Redondo
fernando.fe...@esa.int wrote:
 Dear all,

 I need to deploy a bunch of VMs with CentOS 5.9 on my ONE
 infrastructure but I'm facing the problem that I'm not able to install
 the opennebula-context package because is built for the CentOS 6.X and
 the system complaints about the rpmlib versions.

 Is there anywhere an opennebula-context package suitable for CentOS
 5.X or any alternative to install the contextualization tools, please?

 Regards
 Fernando
 --
 Fernando Felix-Redondo  [ISDEFE, S.A.]  | fernando.fe...@esa.int  |
 Phone: +34 91 813 1368
 SMOS DPGS Operations
 Computer Systems and Reliability Engineer
 ___
 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] listing images and its vms

2014-02-05 Thread Javier Fontan
img does not have a method called vms. You can get the IDs of the
VMs using the retrieve_elements method [1]:

vm_ids=img.retrieve_elements(VMS/ID)

As an example you can check the code for oneimage show [2].

[1] 
http://docs.opennebula.org/doc/4.4/oca/ruby/OpenNebula/XMLElement.html#retrieve_elements-instance_method
[2] 
https://github.com/OpenNebula/one/blob/one-4.4/src/cli/one_helper/oneimage_helper.rb#L301


On Wed, Feb 5, 2014 at 9:44 AM, João Pagaime joao.paga...@gmail.com wrote:
 Hello all

 I'm trying to put together a very simple ruby script that outputs
 opennebula's images and its vms

 as far as listing opennebula's images, everything is fine, but I get an
 error when trying, for each image, to lists its vms

 acording to the 4.2 API documentation the  image class should have a vms
 list/array member, but I get an error when I try to instantiate that

 where's the script. The offending statement in red. Any help would be
 appreciated

 thanks
 joão

 -- (snatched from openneb examples and then
 adapted...)

 #!/usr/bin/env ruby

 ##
 # Environment Configuration
 ##
 ONE_LOCATION=ENV[ONE_LOCATION]

 if !ONE_LOCATION
 RUBY_LIB_LOCATION=/usr/lib/one/ruby
 else
 RUBY_LIB_LOCATION=ONE_LOCATION+/lib/ruby
 end

 $:  RUBY_LIB_LOCATION

 ##
 # Required libraries
 ##
 require 'opennebula'

 include OpenNebula

 # OpenNebula credentials
 CREDENTIALS = oneadmin:(REMOVED)
 # XML_RPC endpoint where OpenNebula is listening
 ENDPOINT= http://localhost:2633/RPC2;

 client = Client.new(CREDENTIALS, ENDPOINT)

 img_pool = ImagePool.new(client, -1)

 rc2 = img_pool.info
 if OpenNebula.is_error?(rc2)
  puts rc2.message
  exit -1
 end

 img_pool.each do |img|
puts img id=#{img.id},#{img.name}
img.vms.each do |vm|
end
 end


 ---

 ___
 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] econe-describe-images command in ON 4.4

2014-02-05 Thread Hyun Woo Kim
Hi,

I have recently deployed ON 4.4 and have been testing EC2 (econe-) commands.

First I could do econe-upload successfully.
The new image can be seen with oneimage list command,
but econe-describe-images just shows an empty list.
(This command is working in our ON 3.2 EC2 system).

What has changed? Or am I missing a configuration step?

Thanks very much
Hyunwoo
FermiCloud Project

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


Re: [one-users] Contextualization of a VM with Centos 5.X

2014-02-05 Thread Fernando Felix-Redondo
Hello Javier,

Unfortunately, this mechanism needs Ruby = 1.8.7 and that version is
not available in Centos 5 unless I install it manually...

Regards
Fernando
--
Fernando Felix-Redondo  [ISDEFE, S.A.]  | fernando.fe...@esa.int  |
Phone: +34 91 813 1368
SMOS DPGS Operations
Computer Systems and Reliability Engineer


2014-02-05 Javier Fontan jfon...@opennebula.org:
 One way you can do this is creating the packages in that version of
 the distribution. The source of the context packages come with the
 source code, in directory share/scripts/context-packages. There you
 can find information on how to build them in the README file [1] and
 some more information in the documentation page [2].

 To create the packages for CentOS the command will be:

 $ PACKAGE_TYPE=rpm ./generate.sh


 [1] 
 https://github.com/OpenNebula/one/blob/master/share/scripts/context-packages/README.md
 [2] 
 http://docs.opennebula.org/stable/user/virtual_machine_setup/cong.html#generating-custom-contextualization-packages

 On Wed, Feb 5, 2014 at 11:30 AM, Fernando Felix-Redondo
 fernando.fe...@esa.int wrote:
 Dear all,

 I need to deploy a bunch of VMs with CentOS 5.9 on my ONE
 infrastructure but I'm facing the problem that I'm not able to install
 the opennebula-context package because is built for the CentOS 6.X and
 the system complaints about the rpmlib versions.

 Is there anywhere an opennebula-context package suitable for CentOS
 5.X or any alternative to install the contextualization tools, please?

 Regards
 Fernando
 --
 Fernando Felix-Redondo  [ISDEFE, S.A.]  | fernando.fe...@esa.int  |
 Phone: +34 91 813 1368
 SMOS DPGS Operations
 Computer Systems and Reliability Engineer
 ___
 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

 This message and any attachments are intended for the use of the addressee or 
 addressees only.
 The unauthorised disclosure, use, dissemination or copying (either in whole 
 or in part) of its
 content is not permitted.
 If you received this message in error, please notify the sender and delete it 
 from your system.
 Emails can be altered and their integrity cannot be guaranteed by the sender.

 Please consider the environment before printing this email.

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


Re: [one-users] AppMarket 2.0 Beta (1.9.80) release

2014-02-05 Thread Daniel Dehennin
Daniel Molina dmol...@opennebula.org writes:


[...]

 Feedback is always more than welcome. Feature requests for the AppMarket
 are handled through the Github issues.
 https://github.com/OpenNebula/addon-appmarket/issues?state=open

Thanks, noted.

[...]

 Currently OneFlow services are not supported, but it wouldn't be difficult
 to add this option. Currently, multi-image support means you can provide
 more than one image/datablock/cdrom for a given VM (1 VM Template -
 Multiple Disks) and the relationship is defined in the opennebula_template
 attribute. We could include an opennebula_service_template attribute
 also.

I'll add a Github request for this.


[...]

 Appliances currently have an attribute version, you can update the
 appliances and increment this value, but the original appliances will
 disappear. Why do you want to keep old versions of the appliance?

This would permit to manage different states for an application:

- old-stable
- stable
- next

[...]

 By default AppMarket does not store any image, just the metadata of the
 appliance, therefore the url is just a reference to the file and it could
 be stored in a third party server. This is how the OpenNebula Marketplace
 works [1]. When you import an appliance from the AppMarket to OpenNebula, a
 new image is create an the path attribute contains the url of the file;
 this file will be downloaded to the specified datastore by the DS driver.

 In AppMarket 2.0 a new component was included, AppMarket Worker. This
 component allows you to create appliances from an OVA file. The OVA file is
 provided as an url and the worker will download, unpack and store the
 images and will update the appliance with the new urls for the files. The
 storage used by this component is not related to OpenNebula.

 So you can create appliances in two different ways:
 1. Providing the urls of the files and the opennebula_template. In this
 case the Worker will not do anything.
 2. Providing an OVA file. In this case the Worker will unpack and store the
 files and will generate the opennebula_template and files section of the
 appliance.

Thanks for the clarification.

[...]

 Is there a way to push appliances from ONE/Sunstone, I read From
 AppMarket 2.0 creating an appliance can be also done through the
 AppMarket tab in Sunstone.

 Providing a new VM/OneFlow action Store in AppMarket could be
 great ;-)


 Currently, this is not supported but it would be a nifty feature, Export
 VM/Service, a step forward in terms of portability

To avoid duplicating images, it could be interesting that ONE provides
public URLs for images usable as AppMarket URL.

Thanks.

-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x7A6FE2DF


pgpwRsroiNFcG.pgp
Description: PGP signature
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Contextualization of a VM with Centos 5.X

2014-02-05 Thread Hamada, Ondrej
The customization rpm is quite simple - you can always extract the scripts, 
modify them and then deploy them according to spec file. It won't be so 
comfortable as installing rpm, but still, it is quite easy.

-Original Message-
From: users-boun...@lists.opennebula.org 
[mailto:users-boun...@lists.opennebula.org] On Behalf Of Fernando Felix-Redondo
Sent: Wednesday, February 05, 2014 1:26 PM
To: users@lists.opennebula.org
Subject: Re: [one-users] Contextualization of a VM with Centos 5.X

Hello Javier,

Unfortunately, this mechanism needs Ruby = 1.8.7 and that version is not 
available in Centos 5 unless I install it manually...

Regards
Fernando
--
Fernando Felix-Redondo  [ISDEFE, S.A.]  | fernando.fe...@esa.int  |
Phone: +34 91 813 1368
SMOS DPGS Operations
Computer Systems and Reliability Engineer


2014-02-05 Javier Fontan jfon...@opennebula.org:
 One way you can do this is creating the packages in that version of
 the distribution. The source of the context packages come with the
 source code, in directory share/scripts/context-packages. There you
 can find information on how to build them in the README file [1] and
 some more information in the documentation page [2].

 To create the packages for CentOS the command will be:

 $ PACKAGE_TYPE=rpm ./generate.sh


 [1]
 https://github.com/OpenNebula/one/blob/master/share/scripts/context-pa
 ckages/README.md [2]
 http://docs.opennebula.org/stable/user/virtual_machine_setup/cong.html
 #generating-custom-contextualization-packages

 On Wed, Feb 5, 2014 at 11:30 AM, Fernando Felix-Redondo
 fernando.fe...@esa.int wrote:
 Dear all,

 I need to deploy a bunch of VMs with CentOS 5.9 on my ONE
 infrastructure but I'm facing the problem that I'm not able to
 install the opennebula-context package because is built for the
 CentOS 6.X and the system complaints about the rpmlib versions.

 Is there anywhere an opennebula-context package suitable for CentOS
 5.X or any alternative to install the contextualization tools, please?

 Regards
 Fernando
 --
 Fernando Felix-Redondo  [ISDEFE, S.A.]  | fernando.fe...@esa.int  |
 Phone: +34 91 813 1368
 SMOS DPGS Operations
 Computer Systems and Reliability Engineer
 ___
 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

 This message and any attachments are intended for the use of the addressee or 
 addressees only.
 The unauthorised disclosure, use, dissemination or copying (either in
 whole or in part) of its content is not permitted.
 If you received this message in error, please notify the sender and delete it 
 from your system.
 Emails can be altered and their integrity cannot be guaranteed by the sender.

 Please consider the environment before printing this email.

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


This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you for understanding.


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


Re: [one-users] Contextualization of a VM with Centos 5.X

2014-02-05 Thread Javier Fontan
You only need that ruby version to create the package. The package
itself is shell script.

On Wed, Feb 5, 2014 at 1:26 PM, Fernando Felix-Redondo
fernando.fe...@esa.int wrote:
 Hello Javier,

 Unfortunately, this mechanism needs Ruby = 1.8.7 and that version is
 not available in Centos 5 unless I install it manually...

 Regards
 Fernando
 --
 Fernando Felix-Redondo  [ISDEFE, S.A.]  | fernando.fe...@esa.int  |
 Phone: +34 91 813 1368
 SMOS DPGS Operations
 Computer Systems and Reliability Engineer


 2014-02-05 Javier Fontan jfon...@opennebula.org:
 One way you can do this is creating the packages in that version of
 the distribution. The source of the context packages come with the
 source code, in directory share/scripts/context-packages. There you
 can find information on how to build them in the README file [1] and
 some more information in the documentation page [2].

 To create the packages for CentOS the command will be:

 $ PACKAGE_TYPE=rpm ./generate.sh


 [1] 
 https://github.com/OpenNebula/one/blob/master/share/scripts/context-packages/README.md
 [2] 
 http://docs.opennebula.org/stable/user/virtual_machine_setup/cong.html#generating-custom-contextualization-packages

 On Wed, Feb 5, 2014 at 11:30 AM, Fernando Felix-Redondo
 fernando.fe...@esa.int wrote:
 Dear all,

 I need to deploy a bunch of VMs with CentOS 5.9 on my ONE
 infrastructure but I'm facing the problem that I'm not able to install
 the opennebula-context package because is built for the CentOS 6.X and
 the system complaints about the rpmlib versions.

 Is there anywhere an opennebula-context package suitable for CentOS
 5.X or any alternative to install the contextualization tools, please?

 Regards
 Fernando
 --
 Fernando Felix-Redondo  [ISDEFE, S.A.]  | fernando.fe...@esa.int  |
 Phone: +34 91 813 1368
 SMOS DPGS Operations
 Computer Systems and Reliability Engineer
 ___
 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

 This message and any attachments are intended for the use of the addressee 
 or addressees only.
 The unauthorised disclosure, use, dissemination or copying (either in whole 
 or in part) of its
 content is not permitted.
 If you received this message in error, please notify the sender and delete 
 it from your system.
 Emails can be altered and their integrity cannot be guaranteed by the sender.

 Please consider the environment before printing this email.

 ___
 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] listing images and its vms

2014-02-05 Thread João Pagaime

thanks, you answer was very useful!

--joão

Em 05-02-2014 11:38, Javier Fontan escreveu:

img does not have a method called vms. You can get the IDs of the
VMs using the retrieve_elements method [1]:

vm_ids=img.retrieve_elements(VMS/ID)

As an example you can check the code for oneimage show [2].

[1] 
http://docs.opennebula.org/doc/4.4/oca/ruby/OpenNebula/XMLElement.html#retrieve_elements-instance_method
[2] 
https://github.com/OpenNebula/one/blob/one-4.4/src/cli/one_helper/oneimage_helper.rb#L301


On Wed, Feb 5, 2014 at 9:44 AM, João Pagaime joao.paga...@gmail.com wrote:

Hello all

I'm trying to put together a very simple ruby script that outputs
opennebula's images and its vms

as far as listing opennebula's images, everything is fine, but I get an
error when trying, for each image, to lists its vms

acording to the 4.2 API documentation the  image class should have a vms
list/array member, but I get an error when I try to instantiate that

where's the script. The offending statement in red. Any help would be
appreciated

thanks
joão

-- (snatched from openneb examples and then
adapted...)

#!/usr/bin/env ruby

##
# Environment Configuration
##
ONE_LOCATION=ENV[ONE_LOCATION]

if !ONE_LOCATION
 RUBY_LIB_LOCATION=/usr/lib/one/ruby
else
 RUBY_LIB_LOCATION=ONE_LOCATION+/lib/ruby
end

$:  RUBY_LIB_LOCATION

##
# Required libraries
##
require 'opennebula'

include OpenNebula

# OpenNebula credentials
CREDENTIALS = oneadmin:(REMOVED)
# XML_RPC endpoint where OpenNebula is listening
ENDPOINT= http://localhost:2633/RPC2;

client = Client.new(CREDENTIALS, ENDPOINT)

img_pool = ImagePool.new(client, -1)

rc2 = img_pool.info
if OpenNebula.is_error?(rc2)
  puts rc2.message
  exit -1
end

img_pool.each do |img|
puts img id=#{img.id},#{img.name}
img.vms.each do |vm|
end
end


---

___
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] V4.4: Bridge Configuration/physical device attach in VLAN driver on existing bridge

2014-02-05 Thread Jaime Melis
Hi Michael,

I've closed the ticket I created for your contribution:
http://dev.opennebula.org/issues/2574

I've explained my reasoning there, I basically think there's something you
might be overlooking and that the patch is not required. Could you please
take a look and let me know what you think?

cheers,
Jaime


On Wed, Dec 18, 2013 at 4:14 PM, Jaime Melis jme...@c12g.com wrote:

 Hi Michael,

 thanks for the contribution!

 I've just create a ticket to evaluate it for OpenNebula 4.6:
 http://dev.opennebula.org/issues/2574

 Cheers,
 Jaime


 On Fri, Dec 13, 2013 at 11:02 AM, Michael Kutzner 
 michael.kutz...@virtion.de wrote:

 Hello,

 we had some problems in the past deploying VMs when a bridge interface was
 already existing (static configuration e.g.) using a different interface
 as
 physical than defined in the virtual network in ON.

 Example:
 - A bridge br10 was existing with a local interface eth0 attached.
 - The virtual network in opennebula was configured to use eth1.
   (due to some historical or physical reasons eth0 was used on that host
   and the bridge was preconfigured)

 The ON driver (opennebula-4.4.0/src/vnm_mad/remotes/802.1Q/HostManaged.rb)
 now checks the following:
 - bridge exists: no, create bridge
   This works fine as the bridge is already existing
 - device is attached?
   No, attach it (so we have eth0 and eth1 attached to the bridge
 interface afterwards)
   This leads to some small (or bigger) problems (e.g. creating a loop on
 the switches and making
   the network practically unusable).

 Attached you find a small patch which does the following:
 - bridge exists?
   Yes, do nothing
 - no: create bridge, add interface

 This will also cover the scenario that you can change the physical device
 in the virtual
 network definition after having deployed certain VMs.

 Hopefully I did it right and made the changes in the right place.

 I dont know, if anybody else had that problem, but I wanted to share this
 information.

 Best, Michael


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




 --
 Jaime Melis
 C12G Labs - Flexible Enterprise Cloud Made Simple
 http://www.c12g.com | jme...@c12g.com

 --

 Confidentiality Warning: The information contained in this e-mail and
 any accompanying documents, unless otherwise expressly indicated, is
 confidential and privileged, and is intended solely for the person
 and/or entity to whom it is addressed (i.e. those identified in the
 To and cc box). They are the property of C12G Labs S.L..
 Unauthorized distribution, review, use, disclosure, or copying of this
 communication, or any part thereof, is strictly prohibited and may be
 unlawful. If you have received this e-mail in error, please notify us
 immediately by e-mail at ab...@c12g.com and delete the e-mail and
 attachments and any copy from your system. C12G's thanks you for your
 cooperation.




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


Re: [one-users] Contextualization of a VM with Centos 5.X

2014-02-05 Thread Fernando Felix-Redondo
Ok. You are right. It was quite easy

Thank you very much
Fernando
Fernando Felix-Redondo  [ISDEFE, S.A.]  | fernando.fe...@esa.int  |
Phone: +34 91 813 1368
SMOS DPGS Operations
Computer Systems and Reliability Engineer


2014-02-05 Hamada, Ondrej ondrej.ham...@acision.com:
 The customization rpm is quite simple - you can always extract the scripts, 
 modify them and then deploy them according to spec file. It won't be so 
 comfortable as installing rpm, but still, it is quite easy.

 -Original Message-
 From: users-boun...@lists.opennebula.org 
 [mailto:users-boun...@lists.opennebula.org] On Behalf Of Fernando 
 Felix-Redondo
 Sent: Wednesday, February 05, 2014 1:26 PM
 To: users@lists.opennebula.org
 Subject: Re: [one-users] Contextualization of a VM with Centos 5.X

 Hello Javier,

 Unfortunately, this mechanism needs Ruby = 1.8.7 and that version is not 
 available in Centos 5 unless I install it manually...

 Regards
 Fernando
 --
 Fernando Felix-Redondo  [ISDEFE, S.A.]  | fernando.fe...@esa.int  |
 Phone: +34 91 813 1368
 SMOS DPGS Operations
 Computer Systems and Reliability Engineer


 2014-02-05 Javier Fontan jfon...@opennebula.org:
 One way you can do this is creating the packages in that version of
 the distribution. The source of the context packages come with the
 source code, in directory share/scripts/context-packages. There you
 can find information on how to build them in the README file [1] and
 some more information in the documentation page [2].

 To create the packages for CentOS the command will be:

 $ PACKAGE_TYPE=rpm ./generate.sh


 [1]
 https://github.com/OpenNebula/one/blob/master/share/scripts/context-pa
 ckages/README.md [2]
 http://docs.opennebula.org/stable/user/virtual_machine_setup/cong.html
 #generating-custom-contextualization-packages

 On Wed, Feb 5, 2014 at 11:30 AM, Fernando Felix-Redondo
 fernando.fe...@esa.int wrote:
 Dear all,

 I need to deploy a bunch of VMs with CentOS 5.9 on my ONE
 infrastructure but I'm facing the problem that I'm not able to
 install the opennebula-context package because is built for the
 CentOS 6.X and the system complaints about the rpmlib versions.

 Is there anywhere an opennebula-context package suitable for CentOS
 5.X or any alternative to install the contextualization tools, please?

 Regards
 Fernando
 --
 Fernando Felix-Redondo  [ISDEFE, S.A.]  | fernando.fe...@esa.int  |
 Phone: +34 91 813 1368
 SMOS DPGS Operations
 Computer Systems and Reliability Engineer
 ___
 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

 This message and any attachments are intended for the use of the addressee 
 or addressees only.
 The unauthorised disclosure, use, dissemination or copying (either in
 whole or in part) of its content is not permitted.
 If you received this message in error, please notify the sender and delete 
 it from your system.
 Emails can be altered and their integrity cannot be guaranteed by the sender.

 Please consider the environment before printing this email.

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


 This e-mail and any attachment is for authorised use by the intended 
 recipient(s) only. It may contain proprietary material, confidential 
 information and/or be subject to legal privilege. It should not be copied, 
 disclosed to, retained or used by, any other party. If you are not an 
 intended recipient then please promptly delete this e-mail and any attachment 
 and all copies and inform the sender. Thank you for understanding.



 This message and any attachments are intended for the use of the addressee or 
 addressees only.
 The unauthorised disclosure, use, dissemination or copying (either in whole 
 or in part) of its
 content is not permitted.
 If you received this message in error, please notify the sender and delete it 
 from your system.
 Emails can be altered and their integrity cannot be guaranteed by the sender.

 Please consider the environment before printing this email.

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


Re: [one-users] device onebrxxxx alreay exists can't create bridge with the same name

2014-02-05 Thread Jaime Melis
Hi,

I've just applied a patch to fix that. It will be available in OpenNebula
4.6.
http://dev.opennebula.org/issues/2573

cheers,
Jaime


On Wed, Dec 18, 2013 at 3:53 PM, Jaime Melis jme...@c12g.com wrote:

 Hi,

 I think you are right. I've created a new ticket to fix this for
 OpenNebula 4.6:
 http://dev.opennebula.org/issues/2573

 cheers,
 Jaime



 On Thu, Dec 12, 2013 at 5:30 PM, cmcc.dylan dx10ye...@126.com wrote:


 Hi.
   I don't use = 4.0. But I think the code has a little problem, that is,
 we should add a lock for get_interfaces not for create_bridge.




 At 2013-12-12 17:05:03,Jaime Melis jme...@c12g.com wrote:

 Hi,

 not sure I follow, but given that the rules are idempotent if the bridge
 doesn't exist it will be created, and if it does, it won't.

 Have you tried this with ONE = 4.0 and still fails?

 regards,
 Jaime


 On Thu, Dec 12, 2013 at 4:32 AM, cmcc.dylan dx10ye...@126.com wrote:

 Hi,Jainme.

   I think curruent codes don't have solved the bug complelely. The key
 problems the the following snippets are executed  parallel.
 class OpenNebulaHM  OpenNebulaNetwork
 XPATH_FILTER = TEMPLATE/NIC[VLAN='YES']
 def initialize(vm, deploy_id = nil, hypervisor = nil)
 super(vm,XPATH_FILTER,deploy_id,hypervisor)
 @bridges = get_interfaces
 end

 so bridges variable maybe have the same name bridge. because bridge is a
 ruby instance variable,not a ruby class variable.



 At 2013-12-12 01:53:18,Jaime Melis jme...@c12g.com wrote:

 Hi,

 yes, this is a known bug which is already solved in OpenNebula = 4.0 by
 implementing locking mechanisms.
 http://dev.opennebula.org/issues/1722

 cheers,
 Jaime




 On Wed, Dec 11, 2013 at 9:46 AM, cmcc.dylan dx10ye...@126.com wrote:

  Hi everyone!

I find a problem when we create two or more instances on one host at
 the same time,we meet the error device onebr alreay exists can't
 create bridge with the same name.
The reason is that instances all try to create their bridge,although
 they check whether or not their birdge is existed. because it's at the same
 time, they all get a result that their bridge is not existed, and then they
 create it.
But when they really create, the same bridge has already been
 created by other instances.

 Has the problem been fixed now? I use opennebula-3.8.1.

Look forward your answers!

dylan.



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




 --
 Jaime Melis
 C12G Labs - Flexible Enterprise Cloud Made Simple
 http://www.c12g.com | jme...@c12g.com

 --

 Confidentiality Warning: The information contained in this e-mail and
 any accompanying documents, unless otherwise expressly indicated, is
 confidential and privileged, and is intended solely for the person
 and/or entity to whom it is addressed (i.e. those identified in the
 To and cc box). They are the property of C12G Labs S.L..
 Unauthorized distribution, review, use, disclosure, or copying of this
 communication, or any part thereof, is strictly prohibited and may be
 unlawful. If you have received this e-mail in error, please notify us
 immediately by e-mail at ab...@c12g.com and delete the e-mail and
 attachments and any copy from your system. C12G's thanks you for your
 cooperation.






 --
 Jaime Melis
 C12G Labs - Flexible Enterprise Cloud Made Simple
 http://www.c12g.com | jme...@c12g.com

 --

 Confidentiality Warning: The information contained in this e-mail and
 any accompanying documents, unless otherwise expressly indicated, is
 confidential and privileged, and is intended solely for the person
 and/or entity to whom it is addressed (i.e. those identified in the
 To and cc box). They are the property of C12G Labs S.L..
 Unauthorized distribution, review, use, disclosure, or copying of this
 communication, or any part thereof, is strictly prohibited and may be
 unlawful. If you have received this e-mail in error, please notify us
 immediately by e-mail at ab...@c12g.com and delete the e-mail and
 attachments and any copy from your system. C12G's thanks you for your
 cooperation.






 --
 Jaime Melis
 C12G Labs - Flexible Enterprise Cloud Made Simple
 http://www.c12g.com | jme...@c12g.com

 --

 Confidentiality Warning: The information contained in this e-mail and
 any accompanying documents, unless otherwise expressly indicated, is
 confidential and privileged, and is intended solely for the person
 and/or entity to whom it is addressed (i.e. those identified in the
 To and cc box). They are the property of C12G Labs S.L..
 Unauthorized distribution, review, use, disclosure, or copying of this
 communication, or any part thereof, is strictly prohibited and may be
 unlawful. If you have received this e-mail in error, please notify us
 immediately by e-mail at ab...@c12g.com and delete the e-mail and
 attachments and any copy from your system. C12G's thanks you for your
 cooperation.


Re: [one-users] econe-describe-images command in ON 4.4

2014-02-05 Thread Daniel Molina
Hi Hyunwoo,


On 5 February 2014 13:20, Hyun Woo Kim hyun...@fnal.gov wrote:

  Hi,

  I have recently deployed ON 4.4 and have been testing EC2 (econe-)
 commands.

  First I could do econe-upload successfully.
 The new image can be seen with oneimage list command,
 but econe-describe-images just shows an empty list.
 (This command is working in our ON 3.2 EC2 system).

  What has changed? Or am I missing a configuration step?


In one 4.4, after using econe-upload or just to make an OpenNebula image
available through econe, the econe-register is necessary. This command will
include the EC2_AMI=YES tag in the template and then it will be listed in
the describe-images command and you will be able to use it through the ec2
api.

More information on the one-4.4 changes can be found here:
http://docs.opennebula.org/stable/release_notes44/compatibility.html#ec2-server

Cheers



  Thanks very much
 Hyunwoo
 FermiCloud Project


 ___
 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] onevnet policy violation?

2014-02-05 Thread Stefan Kooman
Quoting Carlos Martín Sánchez (cmar...@opennebula.org):
 
 You can create vnets directly in a cluster, using the --cluster option [1],
 but not with the CLUSTER attribute [2].
 I agree that since the new vnet is defined with a template, it is more
 intuitive to set the cluster also there, so I've opened a ticket for this
 [3].

Thanks.
 
 
 This is a bit hard to explain easily in the docs, but the key is this
 paragraph [4]:
 
 Virtual Machines using resources from Datastores or Virtual Networks in the
 Cluster 'none' can be deployed in any Host, which must be properly
 configured.
 
 That is, your vnet is not in any cluster (or cluster 'none'), which means
 that all hosts (either in cluster none or any other cluster) will be able
 to deploy the VM.
 The core sees that you are requesting something specific to cluster
 kvm_cluster and a vnet that is configured to be used by any Host, including
 those in kvm_cluster.
 
 If you try to create a VM using resources from two different clusters, the
 core will complain on creation, it won't wait for the scheduler to notice.
 
 
 This may be a bit convoluted, but the other option we had was to force you
 to put everything in a cluster. That would mean that you can't configure a
 network to be used by both xen and kvm hosts.

It makes perfect sense.

 In future versions, we may change this and allow to select more than one
 cluster for each host/vnet/ds...

I thought this was already possible but I must be mistaken with sharing
resources between VDC / oZones. Did Ruben create #2591 for this [1]?

Thanks for your explanation.

Gr. Stefan

[1]: http://dev.opennebula.org/issues/2591

-- 
| BIT BV  http://www.bit.nl/Kamer van Koophandel 09090351
| GPG: 0xD14839C6   +31 318 648 688 / i...@bit.nl
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] econe-describe-images command in ON 4.4

2014-02-05 Thread Mark Gergely
Dear All,

i suggest that there should be a configuration variable in the 
econe-server.conf file which influences this behavior. We really got used to 
the way it worked previously, that every image could be listed or started 
through the EC2 server regardless of the image upload method or tags.
i propose that if the describe_only_ec2_images variable is true, then it should 
work like in 4.4.1, if it is false, then it should list every image which is 
not a snapshot or an ebs volume.
Tell me what you think, if it looks fine for you, then i can prepare a patch.

All the best,
Mark Gergely
MTA SZTAKI LPDS

On 05 Feb 2014, at 15:08, Daniel Molina dmol...@opennebula.org wrote:

 Hi Hyunwoo,
 
 
 On 5 February 2014 13:20, Hyun Woo Kim hyun...@fnal.gov wrote:
 Hi, 
 
 I have recently deployed ON 4.4 and have been testing EC2 (econe-) commands.
 
 First I could do econe-upload successfully.
 The new image can be seen with oneimage list command,
 but econe-describe-images just shows an empty list.
 (This command is working in our ON 3.2 EC2 system).
 
 What has changed? Or am I missing a configuration step?
 
 In one 4.4, after using econe-upload or just to make an OpenNebula image 
 available through econe, the econe-register is necessary. This command will 
 include the EC2_AMI=YES tag in the template and then it will be listed in the 
 describe-images command and you will be able to use it through the ec2 api.
 
 More information on the one-4.4 changes can be found here:
 http://docs.opennebula.org/stable/release_notes44/compatibility.html#ec2-server
 
 Cheers
  
 
 Thanks very much
 Hyunwoo 
 FermiCloud Project
 
 
 ___
 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

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


Re: [one-users] econe-describe-images command in ON 4.4

2014-02-05 Thread Hyun Woo Kim
Hi Daniel,
Thanks very much for a quick response, I appreciate it.

Yes, I was also looking for a similar solution in
http://docs.opennebula.org/stable/advanced_administration/public_cloud/ec2qug.html

I remember prior versions used to explicitly show how to use econe-register 
command.
(although I didn't have to use it).

Any way, thanks again!

Hyunwoo

From: Daniel Molina dmol...@opennebula.orgmailto:dmol...@opennebula.org
Date: Wednesday, February 5, 2014 8:08 AM
To: Hyunwoo Kim hyun...@fnal.govmailto:hyun...@fnal.gov
Cc: users@lists.opennebula.orgmailto:users@lists.opennebula.org 
users@lists.opennebula.orgmailto:users@lists.opennebula.org
Subject: Re: [one-users] econe-describe-images command in ON 4.4

Hi Hyunwoo,


On 5 February 2014 13:20, Hyun Woo Kim 
hyun...@fnal.govmailto:hyun...@fnal.gov wrote:
Hi,

I have recently deployed ON 4.4 and have been testing EC2 (econe-) commands.

First I could do econe-upload successfully.
The new image can be seen with oneimage list command,
but econe-describe-images just shows an empty list.
(This command is working in our ON 3.2 EC2 system).

What has changed? Or am I missing a configuration step?

In one 4.4, after using econe-upload or just to make an OpenNebula image 
available through econe, the econe-register is necessary. This command will 
include the EC2_AMI=YES tag in the template and then it will be listed in the 
describe-images command and you will be able to use it through the ec2 api.

More information on the one-4.4 changes can be found here:
http://docs.opennebula.org/stable/release_notes44/compatibility.html#ec2-server

Cheers


Thanks very much
Hyunwoo
FermiCloud Project


___
Users mailing list
Users@lists.opennebula.orgmailto: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.orghttp://www.OpenNebula.org | 
dmol...@opennebula.orgmailto:dmol...@opennebula.org | @OpenNebula
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] describe terminated instances with econe server

2014-02-05 Thread Mark Gergely
Dear All,

I believe that there is a bug with handling of the 
:describe_with_terminated_instances: econe server configuration variable. The 
variable gets evaluated in the include_terminated_instances? method 
(instance.rb file). The method works like this: 
@config[:describe_with_terminated_instances] || 
DESCRIBE_WITH_TERMINATED_INSTANCES, but the second constant is always true, 
therefore the config parameter won’t affect the return value, it will always be 
true.
I think that the second constant is useless and it should be removed.
also there is a spare equal mark in the default config file: 
:describe_with_terminated_instances: = true

All the best,
Mark Gergely
MTA SZTAKI LPDS___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Sunstone noVNC with WSS support

2014-02-05 Thread ML mail
Hello,

I would like to use noVNC in Sunstone over an encrypted channel (WSS). 
Therefore I have generated my own SSL key and certificate which I have added to 
the sunstone-server.conf configuration. The problem is that this does not work, 
when I start VNC from the Sunstone web interface I get the following error 
message in novnc.log:

SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca

Does this mean I need an official SSL certificate?

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


Re: [one-users] describe terminated instances with econe server

2014-02-05 Thread Daniel Molina
Hi Mark,


On 5 February 2014 16:45, Mark Gergely gergely.m...@sztaki.mta.hu wrote:

 Dear All,

 I believe that there is a bug with handling of the
 :describe_with_terminated_instances: econe server configuration variable.
 The variable gets evaluated in the include_terminated_instances? method
 (instance.rb file). The method works like
 this: @config[:describe_with_terminated_instances] ||
 DESCRIBE_WITH_TERMINATED_INSTANCES, but the second constant is always true,
 therefore the config parameter won't affect the return value, it will
 always be true.
 I think that the second constant is useless and it should be removed.
 also there is a spare equal mark in the default config
 file: :describe_with_terminated_instances: *=* true


You are right it is a bug. The constant is there in case you are using an
old conf file, to be included by default. It should look like this:

diff --git a/src/cloud/ec2/etc/econe.conf b/src/cloud/ec2/etc/econe.conf
index d9c2e59..1114d09 100644
--- a/src/cloud/ec2/etc/econe.conf
+++ b/src/cloud/ec2/etc/econe.conf
@@ -65,7 +65,7 @@
 #:datastore_id:

 # Include terminated instances in the describe_instances xml
-:describe_with_terminated_instances: = true
+:describe_with_terminated_instances: true
 # Terminated VMs will be included in the list
 #  till the termination date + TERMINATED_INSTANCES_EXPIRATION_TIME is
reached
 :terminated_instances_expiration_time: 900
diff --git a/src/cloud/ec2/lib/instance.rb b/src/cloud/ec2/lib/instance.rb
index 179616d..1d069a8 100644
--- a/src/cloud/ec2/lib/instance.rb
+++ b/src/cloud/ec2/lib/instance.rb
@@ -340,7 +340,11 @@ module Instance
 end

 def include_terminated_instances?
-@config[:describe_with_terminated_instances] ||
DESCRIBE_WITH_TERMINATED_INSTANCES
+if @config[:describe_with_terminated_instances].nil?
+DESCRIBE_WITH_TERMINATED_INSTANCES
+else
+@config[:describe_with_terminated_instances]
+end
 end

Thank you for your feedback


 All the best,
 Mark Gergely
 MTA SZTAKI LPDS

 ___
 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] econe-describe-images command in ON 4.4

2014-02-05 Thread Daniel Molina
On 5 February 2014 16:13, Mark Gergely gergely.m...@sztaki.mta.hu wrote:

 Dear All,

 i suggest that there should be a configuration variable in the
 econe-server.conf file which influences this behavior. We really got used
 to the way it worked previously, that every image could be listed or
 started through the EC2 server regardless of the image upload method or
 tags.
 i propose that if the describe_only_ec2_images variable is true, then it
 should work like in 4.4.1, if it is false, then it should list every image
 which is not a snapshot or an ebs volume.
 Tell me what you think, if it looks fine for you, then i can prepare a
 patch.


I have created a ticket to add this option in future releases:
http://dev.opennebula.org/issues/2710

Thank you for your feedback


 All the best,
 Mark Gergely
 MTA SZTAKI LPDS

 On 05 Feb 2014, at 15:08, Daniel Molina dmol...@opennebula.org wrote:

 Hi Hyunwoo,


 On 5 February 2014 13:20, Hyun Woo Kim hyun...@fnal.gov wrote:

  Hi,

  I have recently deployed ON 4.4 and have been testing EC2 (econe-)
 commands.

  First I could do econe-upload successfully.
 The new image can be seen with oneimage list command,
 but econe-describe-images just shows an empty list.
 (This command is working in our ON 3.2 EC2 system).

  What has changed? Or am I missing a configuration step?


 In one 4.4, after using econe-upload or just to make an OpenNebula image
 available through econe, the econe-register is necessary. This command will
 include the EC2_AMI=YES tag in the template and then it will be listed in
 the describe-images command and you will be able to use it through the ec2
 api.

 More information on the one-4.4 changes can be found here:

 http://docs.opennebula.org/stable/release_notes44/compatibility.html#ec2-server

 Cheers



  Thanks very much
 Hyunwoo
 FermiCloud Project


 ___
 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 http://www.opennebula.org/ | dmol...@opennebula.org| 
 @OpenNebula
  ___
 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] econe-describe-images command in ON 4.4

2014-02-05 Thread Daniel Molina
On 5 February 2014 16:37, Hyun Woo Kim hyun...@fnal.gov wrote:

  Hi Daniel,
 Thanks very much for a quick response, I appreciate it.

  Yes, I was also looking for a similar solution in

 http://docs.opennebula.org/stable/advanced_administration/public_cloud/ec2qug.html


  I remember prior versions used to explicitly show how to use
 econe-register command.
 (although I didn't have to use it).


Yes, the command is missing in the docs and it shouldn't, we will fix it:
http://dev.opennebula.org/issues/2711

Thank you for your feedback



  Any way, thanks again!

  Hyunwoo

   From: Daniel Molina dmol...@opennebula.org
 Date: Wednesday, February 5, 2014 8:08 AM
 To: Hyunwoo Kim hyun...@fnal.gov
 Cc: users@lists.opennebula.org users@lists.opennebula.org
 Subject: Re: [one-users] econe-describe-images command in ON 4.4

   Hi Hyunwoo,


 On 5 February 2014 13:20, Hyun Woo Kim hyun...@fnal.gov wrote:

  Hi,

  I have recently deployed ON 4.4 and have been testing EC2 (econe-)
 commands.

  First I could do econe-upload successfully.
 The new image can be seen with oneimage list command,
 but econe-describe-images just shows an empty list.
 (This command is working in our ON 3.2 EC2 system).

  What has changed? Or am I missing a configuration step?


  In one 4.4, after using econe-upload or just to make an OpenNebula image
 available through econe, the econe-register is necessary. This command will
 include the EC2_AMI=YES tag in the template and then it will be listed in
 the describe-images command and you will be able to use it through the ec2
 api.

  More information on the one-4.4 changes can be found here:

 http://docs.opennebula.org/stable/release_notes44/compatibility.html#ec2-server

  Cheers



  Thanks very much
 Hyunwoo
 FermiCloud Project


 ___
 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


[one-users] distributed frontend with raft consensus algorithm

2014-02-05 Thread Sharuzzaman Ahmat Raslan
Hi all,

My last interaction with Opennebula is with the version 3.8

In that version, the frontend can only be running by a single node. To have
a redundancy, it was advised to have the frontend to be configured using HA
tools, such as Red Hat cluster suite. See
http://archives.opennebula.org/documentation:archives:rel4.2:oneha

I believe that kind of setup is not optimal, as you have to bolt in another
subsystem, that could potentially become another head ache to maintain.

As alternative to external clustering system, I would like to highlight to
the developers the availability of Raft Consensus Algorithm. See
http://raftconsensus.github.io/

This algorithm can help to maintain the availability of the frontend, in a
fault-tolerant distributed system. With this algorithm, frontend can be run
on the VM nodes itself, where at any given time, one of the nodes will act
as a frontend for the whole cluster. If that leader node goes down, any
other node will step up to become the next leader, and maintaining the
availability of the frontend

This can help simplify deployment, and reduce the requirement to have a
dedicated frontend machine, with another failover machine in standby

I hope this idea could be discussed futher, and implemented on the future
release of Opennebula.

thanks.

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


Re: [one-users] econe-describe-images command in ON 4.4

2014-02-05 Thread Hyun Woo Kim
Let me ask further questions.

When I do the following command,
econe-register  ami-0008   -U http://fermicloud122.fnal.gov:4567/ 
-K hwkim -S 5baa61e…

I am getting an error message
--
Command econe-register requires 2 parameters to run.
Command 'econe-register' not found
## SYNOPSIS
econe-register [OPTIONS] IMAGE-ID
## OPTIONS
 -K, --access-key id   The username of the user
 -S, --secret-key key  The sha1 hashed password of the user
 -U, --url url Set url as the web service url to use
public_ip instance_id
--
The last line seems to suggest that I should give an IP address as well,
so I tried again

econe-register 192.168.1.1   ami-0008   -U 
http://fermicloud122.fnal.gov:4567/ -K hwkim -S 5baa61e…

And now I am getting a new error message;
econe-register: [ImageInfo] Error getting image [192].

I can not figure out what is wrong with my configuration.

Thanks,
Hyunwoo


From: Daniel Molina dmol...@opennebula.orgmailto:dmol...@opennebula.org
Date: Wednesday, February 5, 2014 10:13 AM
To: Hyunwoo Kim hyun...@fnal.govmailto:hyun...@fnal.gov
Cc: users@lists.opennebula.orgmailto:users@lists.opennebula.org 
users@lists.opennebula.orgmailto:users@lists.opennebula.org
Subject: Re: [one-users] econe-describe-images command in ON 4.4




On 5 February 2014 16:37, Hyun Woo Kim 
hyun...@fnal.govmailto:hyun...@fnal.gov wrote:
Hi Daniel,
Thanks very much for a quick response, I appreciate it.

Yes, I was also looking for a similar solution in
http://docs.opennebula.org/stable/advanced_administration/public_cloud/ec2qug.html

I remember prior versions used to explicitly show how to use econe-register 
command.
(although I didn't have to use it).

Yes, the command is missing in the docs and it shouldn't, we will fix it:
http://dev.opennebula.org/issues/2711

Thank you for your feedback


Any way, thanks again!

Hyunwoo

From: Daniel Molina dmol...@opennebula.orgmailto:dmol...@opennebula.org
Date: Wednesday, February 5, 2014 8:08 AM
To: Hyunwoo Kim hyun...@fnal.govmailto:hyun...@fnal.gov
Cc: users@lists.opennebula.orgmailto:users@lists.opennebula.org 
users@lists.opennebula.orgmailto:users@lists.opennebula.org
Subject: Re: [one-users] econe-describe-images command in ON 4.4

Hi Hyunwoo,


On 5 February 2014 13:20, Hyun Woo Kim 
hyun...@fnal.govmailto:hyun...@fnal.gov wrote:
Hi,

I have recently deployed ON 4.4 and have been testing EC2 (econe-) commands.

First I could do econe-upload successfully.
The new image can be seen with oneimage list command,
but econe-describe-images just shows an empty list.
(This command is working in our ON 3.2 EC2 system).

What has changed? Or am I missing a configuration step?

In one 4.4, after using econe-upload or just to make an OpenNebula image 
available through econe, the econe-register is necessary. This command will 
include the EC2_AMI=YES tag in the template and then it will be listed in the 
describe-images command and you will be able to use it through the ec2 api.

More information on the one-4.4 changes can be found here:
http://docs.opennebula.org/stable/release_notes44/compatibility.html#ec2-server

Cheers


Thanks very much
Hyunwoo
FermiCloud Project


___
Users mailing list
Users@lists.opennebula.orgmailto: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.orghttp://www.OpenNebula.org | 
dmol...@opennebula.orgmailto:dmol...@opennebula.org | @OpenNebula



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


Re: [one-users] econe-describe-images command in ON 4.4

2014-02-05 Thread Daniel Molina
On 5 February 2014 19:08, Hyun Woo Kim hyun...@fnal.gov wrote:

  Let me ask further questions.

  When I do the following command,
 econe-register  ami-0008   -U
 http://fermicloud122.fnal.gov:4567/ -K hwkim -S 5baa61e...

  I am getting an error message
  --
 Command econe-register requires 2 parameters to run.
 Command 'econe-register' not found
 ## SYNOPSIS
 econe-register [OPTIONS] IMAGE-ID
 ## OPTIONS
  -K, --access-key id   The username of the user
  -S, --secret-key key  The sha1 hashed password of the user
  -U, --url url Set url as the web service url to use
 public_ip instance_id
 --
  The last line seems to suggest that I should give an IP address as well,
 so I tried again

  econe-register 192.168.1.1   ami-0008   -U
 http://fermicloud122.fnal.gov:4567/ -K hwkim -S 5baa61e...

  And now I am getting a new error message;
 econe-register: [ImageInfo] Error getting image [192].

  I can not figure out what is wrong with my configuration.


There is a bug in the econe-register command (that is already deprecated),
to fix it apply the following patch

diff --git a/src/cloud/ec2/bin/econe-register
b/src/cloud/ec2/bin/econe-register
index 8556e3d..871b21f 100755
--- a/src/cloud/ec2/bin/econe-register
+++ b/src/cloud/ec2/bin/econe-register
@@ -50,7 +50,7 @@ EOT
 EC2QueryClient::URL
 ]

-main :public_ip, :instance_id do
+main :instance_id do
 begin
 ec2_client = EC2QueryClient::Client.new(
 options[:access_key],

econe-register 8   -U http://fermicloud122.fnal.gov:4567/ -K hwkim -S
5baa61e...

or just provide the ID the image as first parameter. Note that you have to
provide just the ID, since it's not an ami yet

econe-register 8  whatever   -U http://fermicloud122.fnal.gov:4567/ -K
hwkim -S 5baa61e...



  Thanks,
 Hyunwoo


   From: Daniel Molina dmol...@opennebula.org
 Date: Wednesday, February 5, 2014 10:13 AM

 To: Hyunwoo Kim hyun...@fnal.gov
 Cc: users@lists.opennebula.org users@lists.opennebula.org
 Subject: Re: [one-users] econe-describe-images command in ON 4.4




 On 5 February 2014 16:37, Hyun Woo Kim hyun...@fnal.gov wrote:

  Hi Daniel,
 Thanks very much for a quick response, I appreciate it.

  Yes, I was also looking for a similar solution in

 http://docs.opennebula.org/stable/advanced_administration/public_cloud/ec2qug.html


  I remember prior versions used to explicitly show how to use
 econe-register command.
 (although I didn't have to use it).


  Yes, the command is missing in the docs and it shouldn't, we will fix it:
 http://dev.opennebula.org/issues/2711

  Thank you for your feedback



  Any way, thanks again!

  Hyunwoo

   From: Daniel Molina dmol...@opennebula.org
 Date: Wednesday, February 5, 2014 8:08 AM
 To: Hyunwoo Kim hyun...@fnal.gov
 Cc: users@lists.opennebula.org users@lists.opennebula.org
 Subject: Re: [one-users] econe-describe-images command in ON 4.4

   Hi Hyunwoo,


 On 5 February 2014 13:20, Hyun Woo Kim hyun...@fnal.gov wrote:

  Hi,

  I have recently deployed ON 4.4 and have been testing EC2 (econe-)
 commands.

  First I could do econe-upload successfully.
 The new image can be seen with oneimage list command,
 but econe-describe-images just shows an empty list.
 (This command is working in our ON 3.2 EC2 system).

  What has changed? Or am I missing a configuration step?


  In one 4.4, after using econe-upload or just to make an OpenNebula
 image available through econe, the econe-register is necessary. This
 command will include the EC2_AMI=YES tag in the template and then it will
 be listed in the describe-images command and you will be able to use it
 through the ec2 api.

  More information on the one-4.4 changes can be found here:

 http://docs.opennebula.org/stable/release_notes44/compatibility.html#ec2-server

  Cheers



  Thanks very much
 Hyunwoo
 FermiCloud Project


 ___
 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




-- 
--
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] econe-describe-images command in ON 4.4

2014-02-05 Thread Hyun Woo Kim
This patch solved my problem.
Thanks again!

Hyunwoo

From: Daniel Molina dmol...@opennebula.orgmailto:dmol...@opennebula.org
Date: Wednesday, February 5, 2014 12:14 PM
To: Hyunwoo Kim hyun...@fnal.govmailto:hyun...@fnal.gov
Cc: users@lists.opennebula.orgmailto:users@lists.opennebula.org 
users@lists.opennebula.orgmailto:users@lists.opennebula.org
Subject: Re: [one-users] econe-describe-images command in ON 4.4




On 5 February 2014 19:08, Hyun Woo Kim 
hyun...@fnal.govmailto:hyun...@fnal.gov wrote:
Let me ask further questions.

When I do the following command,
econe-register  ami-0008   -U http://fermicloud122.fnal.gov:4567/ 
-K hwkim -S 5baa61e…

I am getting an error message
--
Command econe-register requires 2 parameters to run.
Command 'econe-register' not found
## SYNOPSIS
econe-register [OPTIONS] IMAGE-ID
## OPTIONS
 -K, --access-key id   The username of the user
 -S, --secret-key key  The sha1 hashed password of the user
 -U, --url url Set url as the web service url to use
public_ip instance_id
--
The last line seems to suggest that I should give an IP address as well,
so I tried again

econe-register 192.168.1.1   ami-0008   -U 
http://fermicloud122.fnal.gov:4567/ -K hwkim -S 5baa61e…

And now I am getting a new error message;
econe-register: [ImageInfo] Error getting image [192].

I can not figure out what is wrong with my configuration.

There is a bug in the econe-register command (that is already deprecated), to 
fix it apply the following patch

diff --git a/src/cloud/ec2/bin/econe-register b/src/cloud/ec2/bin/econe-register
index 8556e3d..871b21f 100755
--- a/src/cloud/ec2/bin/econe-register
+++ b/src/cloud/ec2/bin/econe-register
@@ -50,7 +50,7 @@ EOT
 EC2QueryClient::URL
 ]

-main :public_ip, :instance_id do
+main :instance_id do
 begin
 ec2_client = EC2QueryClient::Client.new(
 options[:access_key],

econe-register 8   -U http://fermicloud122.fnal.gov:4567/ -K hwkim -S 5baa61e…

or just provide the ID the image as first parameter. Note that you have to 
provide just the ID, since it's not an ami yet

econe-register 8  whatever   -U http://fermicloud122.fnal.gov:4567/ -K hwkim -S 
5baa61e…


Thanks,
Hyunwoo


From: Daniel Molina dmol...@opennebula.orgmailto:dmol...@opennebula.org
Date: Wednesday, February 5, 2014 10:13 AM

To: Hyunwoo Kim hyun...@fnal.govmailto:hyun...@fnal.gov
Cc: users@lists.opennebula.orgmailto:users@lists.opennebula.org 
users@lists.opennebula.orgmailto:users@lists.opennebula.org
Subject: Re: [one-users] econe-describe-images command in ON 4.4




On 5 February 2014 16:37, Hyun Woo Kim 
hyun...@fnal.govmailto:hyun...@fnal.gov wrote:
Hi Daniel,
Thanks very much for a quick response, I appreciate it.

Yes, I was also looking for a similar solution in
http://docs.opennebula.org/stable/advanced_administration/public_cloud/ec2qug.html

I remember prior versions used to explicitly show how to use econe-register 
command.
(although I didn't have to use it).

Yes, the command is missing in the docs and it shouldn't, we will fix it:
http://dev.opennebula.org/issues/2711

Thank you for your feedback


Any way, thanks again!

Hyunwoo

From: Daniel Molina dmol...@opennebula.orgmailto:dmol...@opennebula.org
Date: Wednesday, February 5, 2014 8:08 AM
To: Hyunwoo Kim hyun...@fnal.govmailto:hyun...@fnal.gov
Cc: users@lists.opennebula.orgmailto:users@lists.opennebula.org 
users@lists.opennebula.orgmailto:users@lists.opennebula.org
Subject: Re: [one-users] econe-describe-images command in ON 4.4

Hi Hyunwoo,


On 5 February 2014 13:20, Hyun Woo Kim 
hyun...@fnal.govmailto:hyun...@fnal.gov wrote:
Hi,

I have recently deployed ON 4.4 and have been testing EC2 (econe-) commands.

First I could do econe-upload successfully.
The new image can be seen with oneimage list command,
but econe-describe-images just shows an empty list.
(This command is working in our ON 3.2 EC2 system).

What has changed? Or am I missing a configuration step?

In one 4.4, after using econe-upload or just to make an OpenNebula image 
available through econe, the econe-register is necessary. This command will 
include the EC2_AMI=YES tag in the template and then it will be listed in the 
describe-images command and you will be able to use it through the ec2 api.

More information on the one-4.4 changes can be found here:
http://docs.opennebula.org/stable/release_notes44/compatibility.html#ec2-server

Cheers


Thanks very much
Hyunwoo
FermiCloud Project


___
Users mailing list
Users@lists.opennebula.orgmailto: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.orghttp://www.OpenNebula.org | 

Re: [one-users] VM Opennebula with OpenVZ

2014-02-05 Thread Catalina Quinde
Hi Simon,

Thanks for reply, I used Opennebula version 4.2 and OpenVZ version
2.6.32-042stab083.2, the vm log file is below, the mv runs correctly but
when I put it on STOP has errors:

alexopn@ubuntuOpNeb:~$ cat /var/log/one/14.log
Wed Dec 18 15:46:10 2013 [DiM][I]: New VM state is ACTIVE.
Wed Dec 18 15:46:10 2013 [LCM][I]: New VM state is PROLOG.
Wed Dec 18 15:46:10 2013 [VM][I]: Virtual Machine has no context
Wed Dec 18 15:46:48 2013 [LCM][I]: New VM state is BOOT
Wed Dec 18 15:46:48 2013 [VMM][I]: Generating deployment file:
/var/lib/one/vms/14/deployment.0
Wed Dec 18 15:46:48 2013 [VMM][I]: ExitCode: 0
Wed Dec 18 15:46:48 2013 [VMM][I]: Successfully execute network driver
operation: pre.
Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Executed /usr/bin/sudo mv
/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz
/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz.1387399618 2
/dev/null; true.
Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Executed /usr/bin/sudo ln -sf
/vz/one/datastores/0/14/disk.0
/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz.
Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Executed /usr/bin/sudo
/usr/sbin/vzctl create 1014 --layout ploop --ostemplate debian-7.0-x86_64
--private /vz/one/datastores/0/14/private --root
/vz/one/datastores/0/14/root.
Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Executed /usr/bin/sudo
/usr/sbin/vzctl set 1014 --diskspace 2G:2.2G --save.
Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Executed /usr/bin/sudo tar -cf
/vz/one/datastores/0/14/disk.0 --gzip -Sp -C
/vz/one/datastores/0/14/private . --ignore-failed-read.
Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Executed /usr/bin/sudo rm -f
/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz.
Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Executed /usr/bin/sudo mv
/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz.1387399618
/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz 2 /dev/null; true.
Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Executed /usr/bin/sudo cp
/vz/one/datastores/0/14/vm_conf /etc/vz/conf/1014.conf.
Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Not performing
contextualization, no context given.
Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Executed /usr/bin/sudo chown
1001:1001 -R /vz/one/datastores/0/14/private.
Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Executed /usr/bin/sudo
/usr/sbin/vzctl start 1014.
Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Executed /usr/bin/sudo chown
1001:1001 /vz/one/datastores/0/14/root.
Wed Dec 18 15:47:54 2013 [VMM][I]: ExitCode: 0
Wed Dec 18 15:47:54 2013 [VMM][I]: Successfully execute virtualization
driver operation: deploy.
Wed Dec 18 15:47:54 2013 [VMM][I]: ExitCode: 0
Wed Dec 18 15:47:54 2013 [VMM][I]: Successfully execute network driver
operation: post.
Wed Dec 18 15:47:54 2013 [LCM][I]: New VM state is RUNNING
Wed Dec 18 16:13:40 2013 [LCM][I]: New VM state is SAVE_STOP
Wed Dec 18 16:13:56 2013 [VMM][I]: save: Executed /usr/bin/sudo
/usr/sbin/vzctl chkpnt 1014 --dumpfile /vz/one/datastores/0/14/checkpoint.
Wed Dec 18 16:13:56 2013 [VMM][I]: save: Executed /usr/bin/sudo chown
oneadmin:oneadmin /vz/one/datastores/0/14/checkpoint.
Wed Dec 18 16:13:56 2013 [VMM][I]: ExitCode: 0
Wed Dec 18 16:13:56 2013 [VMM][I]: Successfully execute virtualization
driver operation: save.
Wed Dec 18 16:13:56 2013 [VMM][I]: ExitCode: 0
Wed Dec 18 16:13:56 2013 [VMM][I]: Successfully execute network driver
operation: clean.
Wed Dec 18 16:13:56 2013 [LCM][I]: New VM state is EPILOG_STOP
Wed Dec 18 16:14:02 2013 [TM][I]: Command execution fail:
/var/lib/one/remotes/tm/ssh/mv ubuntu:/vz/one/datastores/0/14
ubuntuOpNeb:/vz/one/datastores/0/14 14 0
Wed Dec 18 16:14:02 2013 [TM][I]: mv: Moving ubuntu:/vz/one/datastores/0/14
to ubuntuOpNeb:/vz/one/datastores/0/14
Wed Dec 18 16:14:02 2013 [TM][E]: mv: Command eval ssh ubuntu 'tar -C
/vz/one/datastores/0 -cf - 14' | ssh ubuntuOpNeb 'tar -C
/vz/one/datastores/0 -xf -' failed: tar: /vz/one/datastores/0: No se puede
open: No existe el archivo o el directorio
Wed Dec 18 16:14:02 2013 [TM][I]: tar: Error is not recoverable: exiting now
Wed Dec 18 16:14:02 2013 [TM][E]: Error copying disk directory to target
host
Wed Dec 18 16:14:02 2013 [TM][I]: ExitCode: 2
Wed Dec 18 16:14:02 2013 [TM][E]: Error executing image transfer script:
Error copying disk directory to target host
Wed Dec 18 16:14:02 2013 [DiM][I]: New VM state is FAILED
Wed Dec 18 16:15:30 2013 [DiM][I]: New VM state is DONE.
alexopn@ubuntuOpNeb:~$



2014-02-03 Simon Boulet si...@nostalgeek.com:

 Hi Caty,


 On Mon, Feb 3, 2014 at 3:05 PM, Catalina Quinde
 catalinaqui...@gmail.com wrote:
 
  I'm using opennebula with openvz, the state the vm is running in
 opennebula,
  but when I make a stop the machine status is failed, why is this
 happening?
  and how I can fix?
 

 What OpenVZ driver are you using? and what version of OpenNebula?

 I don't think there is any official OpenVZ driver yet. Its possible
 you are using an old driver with a recent version of OpenNebula.

 Have you looked at the log files?

 

Re: [one-users] VM Opennebula with OpenVZ

2014-02-05 Thread Catalina Quinde
Hi Nikolay,

Thanks for reply, I used Opennebula version 4.2 and OpenVZ version
2.6.32-042stab083.2, the vm log file is below, the mv runs correctly but
when I put it on STOP has errors:

alexopn@ubuntuOpNeb:~$ cat /var/log/one/14.log
Wed Dec 18 15:46:10 2013 [DiM][I]: New VM state is ACTIVE.
Wed Dec 18 15:46:10 2013 [LCM][I]: New VM state is PROLOG.
Wed Dec 18 15:46:10 2013 [VM][I]: Virtual Machine has no context
Wed Dec 18 15:46:48 2013 [LCM][I]: New VM state is BOOT
Wed Dec 18 15:46:48 2013 [VMM][I]: Generating deployment file:
/var/lib/one/vms/14/deployment.0
Wed Dec 18 15:46:48 2013 [VMM][I]: ExitCode: 0
Wed Dec 18 15:46:48 2013 [VMM][I]: Successfully execute network driver
operation: pre.
Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Executed /usr/bin/sudo mv
/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz
/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz.1387399618 2
/dev/null; true.
Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Executed /usr/bin/sudo ln -sf
/vz/one/datastores/0/14/disk.0
/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz.
Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Executed /usr/bin/sudo
/usr/sbin/vzctl create 1014 --layout ploop --ostemplate debian-7.0-x86_64
--private /vz/one/datastores/0/14/private --root
/vz/one/datastores/0/14/root.
Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Executed /usr/bin/sudo
/usr/sbin/vzctl set 1014 --diskspace 2G:2.2G --save.
Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Executed /usr/bin/sudo tar -cf
/vz/one/datastores/0/14/disk.0 --gzip -Sp -C
/vz/one/datastores/0/14/private . --ignore-failed-read.
Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Executed /usr/bin/sudo rm -f
/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz.
Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Executed /usr/bin/sudo mv
/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz.1387399618
/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz 2 /dev/null; true.
Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Executed /usr/bin/sudo cp
/vz/one/datastores/0/14/vm_conf /etc/vz/conf/1014.conf.
Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Not performing
contextualization, no context given.
Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Executed /usr/bin/sudo chown
1001:1001 -R /vz/one/datastores/0/14/private.
Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Executed /usr/bin/sudo
/usr/sbin/vzctl start 1014.
Wed Dec 18 15:47:54 2013 [VMM][I]: deploy: Executed /usr/bin/sudo chown
1001:1001 /vz/one/datastores/0/14/root.
Wed Dec 18 15:47:54 2013 [VMM][I]: ExitCode: 0
Wed Dec 18 15:47:54 2013 [VMM][I]: Successfully execute virtualization
driver operation: deploy.
Wed Dec 18 15:47:54 2013 [VMM][I]: ExitCode: 0
Wed Dec 18 15:47:54 2013 [VMM][I]: Successfully execute network driver
operation: post.
Wed Dec 18 15:47:54 2013 [LCM][I]: New VM state is RUNNING
Wed Dec 18 16:13:40 2013 [LCM][I]: New VM state is SAVE_STOP
Wed Dec 18 16:13:56 2013 [VMM][I]: save: Executed /usr/bin/sudo
/usr/sbin/vzctl chkpnt 1014 --dumpfile /vz/one/datastores/0/14/checkpoint.
Wed Dec 18 16:13:56 2013 [VMM][I]: save: Executed /usr/bin/sudo chown
oneadmin:oneadmin /vz/one/datastores/0/14/checkpoint.
Wed Dec 18 16:13:56 2013 [VMM][I]: ExitCode: 0
Wed Dec 18 16:13:56 2013 [VMM][I]: Successfully execute virtualization
driver operation: save.
Wed Dec 18 16:13:56 2013 [VMM][I]: ExitCode: 0
Wed Dec 18 16:13:56 2013 [VMM][I]: Successfully execute network driver
operation: clean.
Wed Dec 18 16:13:56 2013 [LCM][I]: New VM state is EPILOG_STOP
Wed Dec 18 16:14:02 2013 [TM][I]: Command execution fail:
/var/lib/one/remotes/tm/ssh/mv ubuntu:/vz/one/datastores/0/14
ubuntuOpNeb:/vz/one/datastores/0/14 14 0
Wed Dec 18 16:14:02 2013 [TM][I]: mv: Moving ubuntu:/vz/one/datastores/0/14
to ubuntuOpNeb:/vz/one/datastores/0/14
Wed Dec 18 16:14:02 2013 [TM][E]: mv: Command eval ssh ubuntu 'tar -C
/vz/one/datastores/0 -cf - 14' | ssh ubuntuOpNeb 'tar -C
/vz/one/datastores/0 -xf -' failed: tar: /vz/one/datastores/0: No se puede
open: No existe el archivo o el directorio
Wed Dec 18 16:14:02 2013 [TM][I]: tar: Error is not recoverable: exiting now
Wed Dec 18 16:14:02 2013 [TM][E]: Error copying disk directory to target
host
Wed Dec 18 16:14:02 2013 [TM][I]: ExitCode: 2
Wed Dec 18 16:14:02 2013 [TM][E]: Error executing image transfer script:
Error copying disk directory to target host
Wed Dec 18 16:14:02 2013 [DiM][I]: New VM state is FAILED
Wed Dec 18 16:15:30 2013 [DiM][I]: New VM state is DONE.
alexopn@ubuntuOpNeb:~$

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


[one-users] Error installing opennebula

2014-02-05 Thread Meduri Jagadeesh
Iam trying to install opennebula in our college lab iam getting this error.

What is the reason ? solution ?

apt-get install opennebula opennebula-sunstone nfs-kernel-server




Reading package lists... Done
Building dependency tree   
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 opennebula : Depends: opennebula-tools (= 3.2.1-2) but 4.4.1-1 is to be 
installed
E: Unable to correct problems, you have held broken packages.

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


[one-users] error installing sunstone

2014-02-05 Thread Meduri Jagadeesh
got error while installing cmd :sudo apt-get install opennebula-sunstone.any 
solution?

error:

Setting up opennebula-sunstone (4.4.1-1) ...
Error executing econe-server.
Check /var/log/one/econe-server.error and /var/log/one/econe-server.log for 
more information
Error executing occi-server.
Check /var/log/one/occi-server.error and /var/log/one/occi-server.log for more 
information

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


[one-users] TCP/IP error: VNC connection to hypervisor host got refused or disconnected

2014-02-05 Thread Neelaya Dhatchayani
Hi

I am gettin the following error while trying to launch a VM that I have
created in opennebula with xen hypervisor.

TCP/IP error: VNC connection to hypervisor host got refused or disconnected

Can anyone help me one this

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