Sensu novaclient connection issues


Hi, I’m having issues with the Openstack featured plugins. I cannot connect to novaclient with my openstack credentials.
I’m using the check from here:

But I’m having issues with this line:

client = Client(NOVA_API_VERSION, args.user, args.password, args.tenant, args.auth_url, service_type=args.service_type)

I’ve run the check with the proper username, password, and tenant. I am using localhost:5000 as the authentication url and compute as the service type.

I confirmed that the username and password were correct by logging in to my horizon dashboard. I am also able to see the list of hypervisors from the dashboard, meaning that I have admin privileges. However, I’m still having trouble authenticating. When I run the check, nothing happens, and when I Ctrl+C, it interrupts with this message:

File “/etc/sensu/plugins/”, line 70, in


File “/etc/sensu/plugins/”, line 47, in main

if client.authenticate():

File “/usr/lib/python2.7/site-packages/novaclient/”, line 118, in wrapper

return f(self, *args, **kwargs)

File “/usr/lib/python2.7/site-packages/novaclient/v2/”, line 259, in authenticate


File “/usr/lib/python2.7/site-packages/novaclient/”, line 553, in authenticate

auth_url = self._v2_auth(auth_url)

File “/usr/lib/python2.7/site-packages/novaclient/”, line 644, in _v2_auth

return self._authenticate(url, body)

File “/usr/lib/python2.7/site-packages/novaclient/”, line 657, in _authenticate


File “/usr/lib/python2.7/site-packages/novaclient/”, line 393, in _time_request

resp, body = self.request(url, method, **kwargs)

File “/usr/lib/python2.7/site-packages/novaclient/”, line 364, in request


File “/usr/lib/python2.7/site-packages/requests/”, line 50, in request

response = session.request(method=method, url=url, **kwargs)

File “/usr/lib/python2.7/site-packages/requests/”, line 465, in request

resp = self.send(prep, **send_kwargs)

File “/usr/lib/python2.7/site-packages/requests/”, line 573, in send

r = adapter.send(request, **kwargs)

File “/usr/lib/python2.7/site-packages/requests/”, line 370, in send


File “/usr/lib/python2.7/site-packages/requests/packages/urllib3/”, line 544, in urlopen

body=body, headers=headers)

File “/usr/lib/python2.7/site-packages/requests/packages/urllib3/”, line 372, in _make_request

httplib_response = conn.getresponse(buffering=True)

File “/usr/lib64/python2.7/”, line 1051, in getresponse


File “/usr/lib64/python2.7/”, line 415, in begin

version, status, reason = self._read_status()

File “/usr/lib64/python2.7/”, line 371, in _read_status

line = self.fp.readline(_MAXLINE + 1)

File “/usr/lib64/python2.7/”, line 476, in readline

data = self._sock.recv(self._rbufsize)

I have added a line in my code just to make sure that it’s the authentication that is not working:

if client.authenticate():


and this does not work, leading me to believe that it simply can’t authenticate. I have no idea why. Does anyone have any ideas?

Thanks so much