EC2 cloud connection app - unknown exception?

Hi, have been playing with a couple of UCS core versions in a test lab and am having issues with the UVMM EC2 cloud connection app.

I installed UVMM on a proxmox KVM DC backup (Not worried about nested KVM with UVMM KVM just wanted to test AWS cloud connection) along with the EC2 app. After install, I can go to the UVMM section on the DC backup and configure my AWS credentials (triple checked the keys and they’re all accurate) in the EC2 cloud connection form.

However, after this step, when the UVMM list is refreshed the interface just hangs and says after about 30sec: “An error occurred while connecting to the server, please try again later.”

All I’ve been able to find in the logs is a couple of errors under /var/log/univention/virtual-machine-manager-daemon.log

2016-01-08 16:05:01,369 - uvmmd.cloudconnection - INFO - Added connection to AWS Sydney 2016-01-08 16:05:01,369 - uvmmd.cloudconnection - INFO - Starting update thread for AWS Sydney: EC2_AP_SOUTHEAST 2016-01-08 16:06:25,743 - uvmmd.ec2connection - ERROR - Unknown exception AWS Sydney with unknown errno -2: EC2_AP_SOUTHEAST Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/univention/uvmm/ec2cloud.py", line 476, in _exec_libcloud return func() File "/usr/lib/pymodules/python2.7/univention/uvmm/cloudconnection.py", line 159, in <lambda> self._instances = self._exec_libcloud(lambda: self.driver.list_nodes()) File "/usr/lib/python2.7/dist-packages/libcloud/compute/drivers/ec2.py", line 2001, in list_nodes elem = self.connection.request(self.path, params=params).object File "/usr/lib/python2.7/dist-packages/libcloud/common/base.py", line 721, in request headers=headers) File "/usr/lib/python2.7/httplib.py", line 962, in request self._send_request(method, url, body, headers) File "/usr/lib/python2.7/httplib.py", line 996, in _send_request self.endheaders(body) File "/usr/lib/python2.7/httplib.py", line 958, in endheaders self._send_output(message_body) File "/usr/lib/python2.7/httplib.py", line 818, in _send_output self.send(msg) File "/usr/lib/python2.7/httplib.py", line 780, in send self.connect() File "/usr/lib/python2.7/dist-packages/libcloud/httplib_ssl.py", line 264, in connect self.timeout) File "/usr/lib/python2.7/socket.py", line 553, in create_connection for res in getaddrinfo(host, port, 0, SOCK_STREAM): gaierror: [Errno -2] Name or service not known 2016-01-08 16:06:25,763 - uvmmd.cloudconnection - ERROR - Exception in update() for connection AWS Sydney; Endpoint: EC2_AP_SOUTHEAST 2016-01-08 16:09:03,056 - uvmmd.ec2connection - ERROR - Unknown exception AWS Sydney with unknown errno 110: EC2_AP_SOUTHEAST Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/univention/uvmm/ec2cloud.py", line 476, in _exec_libcloud return func() File "/usr/lib/pymodules/python2.7/univention/uvmm/cloudconnection.py", line 159, in <lambda> self._instances = self._exec_libcloud(lambda: self.driver.list_nodes()) File "/usr/lib/python2.7/dist-packages/libcloud/compute/drivers/ec2.py", line 2001, in list_nodes elem = self.connection.request(self.path, params=params).object File "/usr/lib/python2.7/dist-packages/libcloud/common/base.py", line 721, in request headers=headers) File "/usr/lib/python2.7/httplib.py", line 962, in request self._send_request(method, url, body, headers) File "/usr/lib/python2.7/httplib.py", line 996, in _send_request self.endheaders(body) File "/usr/lib/python2.7/httplib.py", line 958, in endheaders self._send_output(message_body) File "/usr/lib/python2.7/httplib.py", line 818, in _send_output self.send(msg) File "/usr/lib/python2.7/httplib.py", line 780, in send self.connect() File "/usr/lib/python2.7/dist-packages/libcloud/httplib_ssl.py", line 264, in connect self.timeout) File "/usr/lib/python2.7/socket.py", line 571, in create_connection raise err error: [Errno 110] Connection timed out 2016-01-08 16:09:03,057 - uvmmd.cloudconnection - ERROR - Exception in update() for connection AWS Sydney; Endpoint: EC2_AP_SOUTHEAST

Any ideas on what to look at next?

Thanks in advance,
Mark.

Hey,

the EC2 connection module contains a couple of debug output statements whose output may be interesting. Please increase the debug level for the UVMM, restart the UVMM and try the EC2 connection again. Then please post the output of the debug log file again.

Here’s how to increase the debug level:

ucr set uvmm/debug=DEBUG service univention-virtual-machine-manager-daemon restart

Thanks.

Kind regards,
mosu

Hello Mosu, thanks for your reply and apologies for not getting back, I got sidetracked and forgot about this post until I came back to check on another issue.

I’ll try an update to the latest version first, but if the issue is still there I will increase the debug levels, try out your advice and get back here.

Thanks again.

Mastodon