Problem adding Openstack as cloud provider


#1

I have searched but not found a concrete solution.

When adding Openstack as cloud provider, and using it’s admin credentials, it will not validate,

fog.log says…

[----] E, [2015-05-30T00:02:13.007766 #6113:d8700c] ERROR -- : excon.error     #<Excon::Errors::Forbidden: Expected([200, 204]) <=> Actual(403 Forbidden)
  response => #<Excon::Response:0x0000000ae53440 @data={:body=>"{\"error\": {\"message\": \"You are not authorized to perform the requested action, admin_required.\", \"code\": 403, \"title\": \"Forbidden\"}}", :headers=>{"Vary"=>"X-Auth-Token", "Content-Type"=>"application/json", "Content-Length"=>"132", "Date"=>"Sat, 30 May 2015 00:02:12 GMT"}, :status=>403, :remote_ip=>"10.106.1.1"}, @body="{\"error\": {\"message\": \"You are not authorized to perform the requested action, admin_required.\", \"code\": 403, \"title\": \"Forbidden\"}}", @headers={"Vary"=>"X-Auth-Token", "Content-Type"=>"application/json", "Content-Length"=>"132", "Date"=>"Sat, 30 May 2015 00:02:12 GMT"}, @status=403, @remote_ip="10.106.1.1">>

I also noticed this entry

 response => #<Excon::Response:0x0000000a7cbd48 @data={:body=>"{\"error\": {\"message\": \"The request you have made requires authentication.\", \"code\": 401, \"title\": \"Unauthorized\"}}", :headers=>{"Www-Authenticate"=>"Keystone uri=\"http://10.106.1.1:5000\"", "Vary"=>"X-Auth-Token", "Content-Type"=>"application/json", "Content-Length"=>"114", "Date"=>"Fri, 29 May 2015 23:58:36 GMT"}, :status=>401, :remote_ip=>"10.106.1.1"}, @body="{\"error\": {\"message\": \"The request you have made requires authentication.\", \"code\": 401, \"title\": \"Unauthorized\"}}", @headers={"Www-Authenticate"=>"Keystone uri=\"http://10.106.1.1:5000\"", "Vary"=>"X-Auth-Token", "Content-Type"=>"application/json", "Content-Length"=>"114", "Date"=>"Fri, 29 May 2015 23:58:36 GMT"}, @status=401, @remote_ip="10.106.1.1">>

the keystone url is http://10.106.1.1:5000, mine is with /v2.0, could that be the cause, if so, how do we go about it?


#2

I don’t think that the problem is in version v2.0.

Your admin credentials are identical to those used for dashboard (horizon) sign-in on https://10.106.1.1? Do you successfully sign-in in dashboard?


#3

yup, same credentials as my dashboard, and I can login to Openstack dashboard just fine.


#4

Can you change level_fog: info to level_fog: debug in the EVM Server Main Configuration file? Attempt a login again and post the output.


#5

All is working now on Botvinnik release, I can add an Openstack provider as well as see all the needed statistics :slight_smile: