[one-users] econe auth not working (4.0 and 3.8.3) ?
Ricardo Duarte
rjtd21 at hotmail.com
Mon Apr 1 16:25:02 PDT 2013
Hi,
I will answer my own question, because I find the solution.
The problem was that I was using the fqdn instead of the IP address, for the EC2_URL.
I had a look at the EC2CloudAuth.rb, and what was happening was the following:
- The signature_v1 function requires the host to be stripped from the params.
- The current implementation only deletes the host name that matches the :host: parameter from econe.conf (params.delete('econe_host'). )
- So, signature_v1 would consider the host for the calculation when I was using the fqdn != :host:
I had the IP as the :host: parameter. As soon as I changed it to the fqdn, I could use http://fqdn:<econe port> as the ec2 endpoint.
But then, http://<ip>:<econe port> stops working.
Regards,
Ricardo
From: rjtd21 at hotmail.com
To: users at lists.opennebula.org
Date: Mon, 1 Apr 2013 22:48:25 +0000
Subject: [one-users] econe auth not working (4.0 and 3.8.3) ?
Hi there,
On both 3.8.3 and 4.0 I'm getting the following error when trying to use the EC2 API:
- AuthFailure: The username or password is not correct
I'm using ACCESS_KEY = username, and EC2_SECRET_KEY= <sha1 password, shown with oneuser show <id> .
I'm pointing EC2_URL to http://<one controller>:<econe port>.
My ec2_auth has the correct serveradmin credential.
My users are using Core as the auth driver, and were created with Sunstone.
Oned.log shows "Message received: AUTHENTICATE SUCCESS 1731 -".
Any idea of what can be the problem?
Thanks,
Ricardo
_______________________________________________
Users mailing list
Users at lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130401/6336a423/attachment-0002.htm>
More information about the Users
mailing list