<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi,<br><br>I will answer my own question, because I find the solution.<br>The problem was that I was using the fqdn instead of the IP address, for the EC2_URL. <br>I had a look at the EC2CloudAuth.rb, and what was happening was the following:<br><br>- The signature_v1 function requires the host to be stripped from the params.<br>- The current implementation only deletes the host name that matches the :host: parameter from econe.conf (params.delete('econe_host'). )<br>- So, signature_v1 would consider the host for the calculation when I was using the fqdn != :host:<br><br>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.<br>But then, http://<ip>:<econe port> stops working.<br><br>Regards,<br>Ricardo<br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">From: rjtd21@hotmail.com<br>To: users@lists.opennebula.org<br>Date: Mon, 1 Apr 2013 22:48:25 +0000<br>Subject: [one-users] econe auth not working (4.0 and 3.8.3) ?<br><br>

<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
<div dir="ltr">Hi there,<br><br>On both 3.8.3 and 4.0 I'm getting the following error when trying to use the EC2 API:<br><br>- AuthFailure: The username or password is not correct<br><br>I'm using ACCESS_KEY = username, and EC2_SECRET_KEY= <sha1 password, shown with oneuser show <id> . <br>I'm pointing EC2_URL to http://<one controller>:<econe port>.<br>My ec2_auth has the correct serveradmin credential.<br>My users are using Core as the auth driver, and were created with Sunstone.<br>Oned.log shows "Message received: AUTHENTICATE SUCCESS 1731 -".<br><br>Any idea of what can be the problem?<br><br>Thanks,<br>Ricardo<br>                                        </div>
<br>_______________________________________________
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</div>                                         </div></body>
</html>