Bug #270

EC2 Server: AuthFailure, account different from oneadmin

Added by Daniel Molina over 8 years ago. Updated over 8 years ago.

Status:ClosedStart date:06/29/2010
Priority:NormalDue date:
Assignee:Tino Vázquez% Done:

20%

Category:-
Target version:Release 2.0
Resolution: Pull request:
Affected Versions:

Description

AuthFailure, if you try to connect to OpenNebula through the EC2 Service using an account different from oneadmin.

Associated revisions

Revision 54134bd1
Added by Tino Vázquez over 8 years ago

Fix for bug #270, now the CloudServer uses by default the oneadmin account (if ran by oneadmin)

Revision d6d7341f
Added by Abel Coronado almost 2 years ago

F #4913 Solved bug in OpenNebula contextualization (#270)

History

#1 Updated by Daniel Molina over 8 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

The account in the econe.conf have to be the oneadmin account as shown in the documentation [1]. In the client side any account registered in OpenNebula can be used.

[1] http://www.opennebula.org/documentation:rel1.4:ec2qcg

#2 Updated by Jaime Melis over 8 years ago

  • Status changed from Closed to Assigned

#3 Updated by Daniel Molina over 8 years ago

Change CloudServer to get the oneadmin account from the ONE_AUTH file instead of the econe.conf file.
EC2 running with the change.
Check OCCI and other cloud services.

diff --git a/src/cloud/common/CloudServer.rb b/src/cloud/common/CloudServer.rb
index f4d4ea3..a76a6a5 100755
--- a/src/cloud/common/CloudServer.rb
+++ b/src/cloud/common/CloudServer.rb
@ -44,7 +44,6 @ class CloudServer # --- Load the Cloud Server configuration file ---

@config = Configuration.new(config_file)
- @auth = "#{@config[:user]}:#{@config[:password]}"
@instance_types = Hash.new

@ -63,7 +62,7 @ class CloudServer

  1. --- Start an OpenNebula Session ---

- @one_client = Client.new(@auth)
+ @one_client = Client.new()
@user_pool = UserPool.new(@one_client)
end

#4 Updated by Ruben S. Montero over 8 years ago

  • Assignee changed from Daniel Molina to Tino Vázquez
  • Target version set to Release 2.0
  • % Done changed from 100 to 20

Should be applied in master

#5 Updated by Ruben S. Montero over 8 years ago

  • Status changed from Assigned to Closed

Also available in: Atom PDF