[one-users] EC2 API authentication error :- User not authorized

Bharat Bagai bagai_bharat at hotmail.com
Mon Oct 24 23:47:04 PDT 2011


Hi All

I am using EC2 API for user authentication but it gives me an error: USER NOT AUTHORIZED. I am working on this error for last 5 days but donno able to understand what is the exact cause.

[oneadmin at frontend etc]$ econe-describe-instances -K oneadmin -S <password> -U http://localhost:4567
econe-describe-instances: User not authorized

The following are the configuration of econe.conf

-----------------------------------------------------------------------------------
:one_xmlrpc: http://localhost:2633/RPC2

# Host and port where econe server will run
:server: localhost
:port: 4567
:auth: ec2

:instance_types:
  :m1.small:
    :template: m1.small.erb
--------------------------------------------------------------------------------------

When i change the localhost to hostname or IP Address, error still remains same.

econe.log

---------------------------------------------------------------------------------------------------------
 :port=>4567,
 :template_location=>"/var/lib/one/etc/ec2query_templates",
 :instance_types=>{:"m1.small"=>{:template=>"m1.small.erb"}},
 :views=>"/var/lib/one/lib/ruby/cloud/econe/views",
 :one_xmlrpc=>"http://localhost:2633/RPC2"}
== Sinatra/1.3.1 has taken the stage on 4567 for development with backup from Th
in
<IP ADDRESS> - - [20/Oct/2011 19:22:03] "POST / HTTP/1.1" 500 139 0.0106
<IP ADDRESS> - - [20/Oct/2011 19:22:05] "POST / HTTP/1.1" 500 139 0.0074
<IP ADDRESS> - - [20/Oct/2011 19:22:06] "POST / HTTP/1.1" 500 139 0.0078
<IP ADDRESS> - - [20/Oct/2011 19:22:07] "POST / HTTP/1.1" 500 139 0.0076
<IP ADDRESS> - - [20/Oct/2011 19:25:39] "POST / HTTP/1.1" 500 139 0.0088
<IP ADDRESS> - - [20/Oct/2011 19:25:41] "POST / HTTP/1.1" 500 139 0.0070
<IP ADDRESS> - - [20/Oct/2011 19:25:42] "POST / HTTP/1.1" 500 139 0.0076
<IP ADDRESS> - - [20/Oct/2011 19:25:42] "POST / HTTP/1.1" 500 139 0.0072
<IP ADDRESS> - - [20/Oct/2011 19:25:43] "POST / HTTP/1.1" 500 139 0.0083
<IP ADDRESS> - - [20/Oct/2011 19:25:59] "POST / HTTP/1.1" 500 139 0.0080
<IP ADDRESS> - - [20/Oct/2011 19:26:00] "POST / HTTP/1.1" 500 139 0.0087
<IP ADDRESS> - - [20/Oct/2011 19:26:01] "POST / HTTP/1.1" 500 139 0.0073
127.0.0.1 - - [20/Oct/2011 19:42:45] "POST / HTTP/1.1" 400 139 0.0107
<IP ADDRESS> - - [20/Oct/2011 19:43:06] "POST / HTTP/1.1" 400 139 0.0076
<IP ADDRESS> - - [25/Oct/2011 12:04:44] "POST / HTTP/1.1" 400 139 0.0113
127.0.0.1 - - [25/Oct/2011 12:05:01] "POST / HTTP/1.1" 400 139 0.0098
--------------------------------------------------------------------------------------------------------------


m1.small.erb
-----------------------------------------------------------------------------------
NAME   = eco-vm
#Adjust Capacity for this instance type
CPU    = 0.2
MEMORY = 256
# Put here specific OS configurations for the cloud hypervisors
#OS = [ kernel     = /vmlinuz,
#       initrd     = /initrd.img,
#       root       = sda1,
#       kernel_cmd = "ro xencons=tty console=tty1"]

DISK = [ IMAGE_ID   = <%= erb_vm_info[:img_id] %> ]

# Put here the ID of the VNET with the IPs for the EC2 VMs
NIC=[NETWORK_ID= 4]

IMAGE_ID = <%= erb_vm_info[:ec2_img_id] %>
INSTANCE_TYPE = <%= erb_vm_info[:instance_type ]%>

<% if erb_vm_info[:user_data] %>
#CONTEXT = [
#       EC2_USER_DATA="<%= erb_vm_info[:user_data] %>",
#       TARGET="hdc"
#       ]
<% end %>
------------------------------------------------------------------------------------------


Thanks in Advance


(Bharat Bagai)


 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20111025/ab6b4d1c/attachment-0002.htm>


More information about the Users mailing list