[one-users] Not much documention on EC2+ Elasticfox + VMware + OpenNebula
Daniel Molina
dmolina at opennebula.org
Fri Oct 28 07:24:43 PDT 2011
On 28 October 2011 08:45, Bharat Bagai <bagai_bharat at hotmail.com> wrote:
> Hi All
>
> At present I am using VMWARE with Opennebula & its working fine on a private
> cloud. Now, i am going to integrate private cloud with Public Cloud and want
> to create an environment Elasticfox +EC2+OpenNebula+Vmware. Cloud Users got
> authentication with Elasticfox through Browser.
>
> My Elastic fox give authentication error---> "User not authorized"
>
There was a bug in the signature version 1 generation of the
econe-server. Would you mind to change the method signature_v1 in the
EC2CloudAuth.rb as follows:
diff --git a/src/cloud/common/CloudAuth/EC2CloudAuth.rb
b/src/cloud/common/CloudAuth/EC2Cl
index fe8321f..27e9bf6 100644
--- a/src/cloud/common/CloudAuth/EC2CloudAuth.rb
+++ b/src/cloud/common/CloudAuth/EC2CloudAuth.rb
@@ -46,6 +46,8 @@ module EC2CloudAuth
# Calculates signature version 1
def signature_v1(params, secret_key, digest='sha1')
params.delete('Signature')
+ params.delete(:econe_host)
+ params.delete(:econe_port)
req_desc = params.sort {|x,y| x[0].downcase <=> y[0].downcase}.to_s
digest_generator = OpenSSL::Digest::Digest.new(digest)
This change has been committed to the master branch and will be
included in the next release.
FYI, You can also use HybridFox in order to interact with OpenNebula:
http://code.google.com/p/hybridfox/
http://www.opennebula.org/documentation:rel3.0:ec2qec
> Credentials for login into Elastic fox, i am using
>
> AWS Access Key--------> Oneadmin
> AWS Secret Access Key ---> <sha1password> of oneadmin
>
> When i using this with command mode into CLI mode, its working fine------>
> #econe-describe-instances -K oneadmin -S <sha1password> -U
> http://localhost:4567 -H but its not working with Elasticfox.
>
> Also, when i tried to upload vmdk file to EC2, its will display a long html
> file that i captured into a text file, i am attaching this text file also.
>
> command i used ---> #econe-upload
> /var/lib/one/var/images/minicentos/cent/ttylinux-flat.vmdk
>
If you open the attached file using a browser you can see the
following error message:
No space left on device - /tmp/RackMultipart20111028-15523-1nzdu3h-0
Maybe the econe-server should handle this kind of exceptions.
Hope this helps.
> econe.conf
> ----------------------------------------------------------------------------------------------
> :one_xmlrpc: http://localhost:2633/RPC2
>
> # Host and port where econe server will run
> :server: localhost
> :port: 4567
>
> # SSL proxy that serves the API (set if is being used)
> #:ssl_server: fqdm.of.the.server
>
> # Authentication protocol for the econe server:
> # ec2, default Acess key and Secret key scheme
> # x509, for x509 certificates based authentication
> :auth: ec2
>
> # VM types allowed and its template file (inside templates directory)
> :instance_types:
> :m1.small:
> :template: m1.small.erb
> ---------------------------------------------------------------------------------------------------------------------
>
> There is not any more documentation available on VMWARE +EC2+ OpenNebula on
> website. Will anyone help me out. how i configure my Elasticfox with EC2 &
> Opennebula with vmware ?
>
> Thanks in advance
>
> (Bharat Bagai)
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
--
Daniel Molina
Project Engineer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | dmolina at opennebula.org | @OpenNebula
More information about the Users
mailing list