Hi
Just installed ansible 1.9.4 and trying the dynamic inventory ec2.py example. My boto is version 2.38.0. I’m getting a BadStatusLine error from boto when I run $ ec2.py --list. $ ec2.py pretty bad gets the same error.
operators-chienlai:download clai$ ansible --version
ansible 1.9.4
configured module search path = None
operators-chienlai:download clai$ /etc/ansible/ec2.py --list
Traceback (most recent call last):
File “/etc/ansible/ec2.py”, line 1326, in
Ec2Inventory()
File “/etc/ansible/ec2.py”, line 175, in init
self.do_api_calls_update_cache()
File “/etc/ansible/ec2.py”, line 422, in do_api_calls_update_cache
self.get_instances_by_region(region)
File “/etc/ansible/ec2.py”, line 473, in get_instances_by_region
reservations = conn.get_all_instances()
File “/Library/Python/2.7/site-packages/boto/ec2/connection.py”, line 585, in get_all_instances
max_results=max_results)
File “/Library/Python/2.7/site-packages/boto/ec2/connection.py”, line 681, in get_all_reservations
[(‘item’, Reservation)], verb=‘POST’)
File “/Library/Python/2.7/site-packages/boto/connection.py”, line 1170, in get_list
response = self.make_request(action, params, path, verb)
File “/Library/Python/2.7/site-packages/boto/connection.py”, line 1116, in make_request
return self._mexe(http_request)
File “/Library/Python/2.7/site-packages/boto/connection.py”, line 913, in _mexe
self.is_secure)
File “/Library/Python/2.7/site-packages/boto/connection.py”, line 705, in get_http_connection
return self.new_http_connection(host, port, is_secure)
File “/Library/Python/2.7/site-packages/boto/connection.py”, line 747, in new_http_connection
connection = self.proxy_ssl(host, is_secure and 443 or 80)
File “/Library/Python/2.7/site-packages/boto/connection.py”, line 808, in proxy_ssl
resp.begin()
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py”, line 453, in begin
version, status, reason = self._read_status()
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py”, line 417, in _read_status
raise BadStatusLine(line)
httplib.BadStatusLine: ‘’
operators-chienlai:download clai$ /etc/ansible/ec2.py
Traceback (most recent call last):
File “/etc/ansible/ec2.py”, line 1326, in
Ec2Inventory()
File “/etc/ansible/ec2.py”, line 175, in init
self.do_api_calls_update_cache()
File “/etc/ansible/ec2.py”, line 422, in do_api_calls_update_cache
self.get_instances_by_region(region)
File “/etc/ansible/ec2.py”, line 473, in get_instances_by_region
reservations = conn.get_all_instances()
File “/Library/Python/2.7/site-packages/boto/ec2/connection.py”, line 585, in get_all_instances
max_results=max_results)
File “/Library/Python/2.7/site-packages/boto/ec2/connection.py”, line 681, in get_all_reservations
[(‘item’, Reservation)], verb=‘POST’)
File “/Library/Python/2.7/site-packages/boto/connection.py”, line 1170, in get_list
response = self.make_request(action, params, path, verb)
File “/Library/Python/2.7/site-packages/boto/connection.py”, line 1116, in make_request
return self._mexe(http_request)
File “/Library/Python/2.7/site-packages/boto/connection.py”, line 913, in _mexe
self.is_secure)
File “/Library/Python/2.7/site-packages/boto/connection.py”, line 705, in get_http_connection
return self.new_http_connection(host, port, is_secure)
File “/Library/Python/2.7/site-packages/boto/connection.py”, line 747, in new_http_connection
connection = self.proxy_ssl(host, is_secure and 443 or 80)
File “/Library/Python/2.7/site-packages/boto/connection.py”, line 808, in proxy_ssl
resp.begin()
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py”, line 453, in begin
version, status, reason = self._read_status()
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py”, line 417, in _read_status
raise BadStatusLine(line)
httplib.BadStatusLine: ‘’
operators-chienlai:download clai$