Re: [one-users] Econe EC2 Interface: User not authorized

2011-02-07 Thread Paolo Smiraglia
> $ econe-describe-instances -K mkeller -S mkeller
> econe-describe-instances: User not authorized

Have you try to use also -U options (url specification). Your command will be

   $> econe-describe-instances -K mkeller -S mkeller -U http://example.com:4567

> (2) What did we do wrong? How can we solve it?

Probably we have the same problem. I solved it by editing the file

   $ONE_LOCATION/lib/ruby/cloud/econe/EC2QueryClient.rb:144

In particular, I changed the digest algorithm from HmacSHA1 to HmacSHA256.

You can get many infos here:

   http://www.mail-archive.com/users@lists.opennebula.org/msg01451.html

Best

   PAOLO





-- 
PAOLO SMIRAGLIA
http://portale.isf.polito.it/paolo-smiraglia
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Econe EC2 Interface: User not authorized

2011-02-07 Thread Matthias Keller
Dear all,

now we did spend a lot of time for tracking down our issue including several 
runs through the instruction on how to install econe-server.

issue:
- authorization failed for econe-* clis.
- correct authorization for one* clis.
$ econe-describe-instances
$ econe-describe-instances: User not authorized
$ onevm list
   ID USER NAME STAT CPU MEMHOSTNAMETIME
5 oneadmin vm-examp runn   0  0K192.168.7.30 27 04:28:22

$ cat /home/mkeller/.one/one_auth
mkeller:mkeller

(tried with and without this env-key)
$ echo $ONE_AUTH
/home/mkeller/.one/one_auth

(tried with and without this env-key)
$ echo $AWSAccessKeyId $AWSSecretAccessKey 
mkeller mkeller

(at least)
$ econe-describe-instances -K mkeller -S mkeller
econe-describe-instances: User not authorized

Configs and logs are attached below.

(1) Is there any possibility to get more verbose logs, especially from 
econe-server?
(2) What did we do wrong? How can we solve it? 
(3) Is there a mess up with the library versions, e.g. the 
client-/server-ruby-scripts
(3b) Should we ignore econe* clis and use other ec2 clis?

Thanks a lot in advance, we would really like to get some help on that.

Best regards,
Matthias Keller


configs:
$ oneuser list
  ID USERPASSWORD 
...
   3 mkeller 64cae02b62d816c530b49644907159196085793d 
...

$ gem list

*** LOCAL GEMS ***

amazon-ec2 (0.9.17)
curb (0.7.10, 0.7.9)
daemons (1.1.0)
eventmachine (0.12.10)
macaddr (1.0.0)
mkrf (0.2.3)
rack (1.2.1)
sequel (3.19.0)
sinatra (1.1.2)
sqlite3 (1.3.3)
sqlite3-ruby (1.3.3)
thin (1.2.7)
tilt (1.2.2)
uuid (2.3.1)
xml-simple (1.0.12)

$ cat etc/econe.conf 
# OpenNebula sever contact information
ONE_XMLRPC=http://localhost:2633/RPC2

# Host and port where econe server will run
SERVER=opennebula
PORT=4567

# SSL proxy that serves the API (set if is being used)
#SSL_SERVER=fqdm.of.the.server
#SSL_SERVER=opennebula

# VM types allowed and its template file (inside templates directory)
VM_TYPE=[NAME=m1.large, TEMPLATE=m1.large.erb]
VM_TYPE=[NAME=m1.small, TEMPLATE=m1.small.erb]

logs:
$ tail var/econe-server.log
127.0.0.1 - - [07/Feb/2011 19:31:20] "POST / HTTP/1.1" 400 139 0.0111
127.0.0.1 - - [07/Feb/2011 20:04:03] "POST / HTTP/1.1" 400 139 0.0117
127.0.0.1 - - [07/Feb/2011 20:12:13] "POST / HTTP/1.1" 400 139 0.0116
127.0.0.1 - - [07/Feb/2011 20:14:02] "POST / HTTP/1.1" 400 139 0.0113
127.0.0.1 - - [07/Feb/2011 20:14:37] "POST / HTTP/1.1" 400 139 0.0448
127.0.0.1 - - [07/Feb/2011 20:14:38] "POST / HTTP/1.1" 400 139 0.0132
127.0.0.1 - - [07/Feb/2011 20:14:39] "POST / HTTP/1.1" 400 139 0.0129
127.0.0.1 - - [07/Feb/2011 20:14:39] "POST / HTTP/1.1" 400 139 0.0126
127.0.0.1 - - [07/Feb/2011 20:14:39] "POST / HTTP/1.1" 400 139 0.0121
127.0.0.1 - - [07/Feb/2011 20:14:39] "POST / HTTP/1.1" 400 139 0.0116

$ tail var/oned.log -n 30
Mon Feb  7 20:10:59 2011 [ReM][D]: HostPoolInfo method invoked
Mon Feb  7 20:10:59 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
Mon Feb  7 20:11:28 2011 [InM][I]: Monitoring host 192.168.7.30 (0)
Mon Feb  7 20:11:28 2011 [InM][D]: Host 0 successfully monitored.
Mon Feb  7 20:11:29 2011 [ReM][D]: HostPoolInfo method invoked
Mon Feb  7 20:11:29 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
Mon Feb  7 20:11:59 2011 [ReM][D]: HostPoolInfo method invoked
Mon Feb  7 20:11:59 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
Mon Feb  7 20:12:13 2011 [ReM][D]: UserPoolInfo method invoked
Mon Feb  7 20:12:29 2011 [ReM][D]: HostPoolInfo method invoked
Mon Feb  7 20:12:29 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
Mon Feb  7 20:12:59 2011 [ReM][D]: HostPoolInfo method invoked
Mon Feb  7 20:12:59 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
Mon Feb  7 20:13:29 2011 [ReM][D]: HostPoolInfo method invoked
Mon Feb  7 20:13:29 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
Mon Feb  7 20:13:59 2011 [ReM][D]: HostPoolInfo method invoked
Mon Feb  7 20:13:59 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
Mon Feb  7 20:14:02 2011 [ReM][D]: UserPoolInfo method invoked
Mon Feb  7 20:14:29 2011 [ReM][D]: HostPoolInfo method invoked
Mon Feb  7 20:14:29 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
Mon Feb  7 20:14:37 2011 [ReM][D]: UserPoolInfo method invoked
Mon Feb  7 20:14:38 2011 [ReM][D]: UserPoolInfo method invoked
Mon Feb  7 20:14:39 2011 [ReM][D]: UserPoolInfo method invoked
Mon Feb  7 20:14:39 2011 [ReM][D]: UserPoolInfo method invoked
Mon Feb  7 20:14:39 2011 [ReM][D]: UserPoolInfo method invoked
Mon Feb  7 20:14:39 2011 [ReM][D]: UserPoolInfo method invoked
Mon Feb  7 20:14:59 2011 [ReM][D]: HostPoolInfo method invoked
Mon Feb  7 20:14:59 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
Mon Feb  7 20:15:29 2011 [ReM][D]: HostPoolInfo method invoked
Mon Feb  7 20:15:29 2011 [ReM][D]: VirtualMachinePoolInfo method invoked

$ tail var/one_xmlrpc.log -n 20
127.0.0.1:6802 - no_user - [07/Feb/2011:20:13:29 -0100] "POST" 200 468
127.0.0.1:68