You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've bumped into another AWS race condition associated with creating the vpc and related resources (train -vk). This is in vpc.py create_iam_profile()
I added a 5 second sleep between each operation and it solved the issue.
I will work up a better approach and eventual PR but just wanted to pass this along.
The error looks like this:
dtoppintest1-dtoppintest1:us-east-1:~$ train -vk
Creating AWS VPC ...
Creating IAM Profile: dtoppintest1-dtoppintest1 ...
Traceback (most recent call last):
File "/home/train/bin/train", line 111, in <module>
process()
File "/home/train/bin/train", line 74, in process
vpc.create_vpc()
File "/home/train/train/vpc/vpc.py", line 462, in create_vpc
create_iam_profile()
File "/home/train/train/vpc/vpc.py", line 265, in create_iam_profile
instance_profile = conn.create_instance_profile(IAM_PROFILE)
File "/usr/local/lib/python2.7/site-packages/boto/iam/connection.py", line 1103,
in create_instance_profile
return self.get_response('CreateInstanceProfile', params)
File "/usr/local/lib/python2.7/site-packages/boto/iam/connection.py", line 85, in get_response
response = self.make_request(action, params, path, verb)
File "/usr/local/lib/python2.7/site-packages/boto/connection.py", line 1116, in make_request
return self._mexe(http_request)
File "/usr/local/lib/python2.7/site-packages/boto/connection.py", line 1030, in _mexe
raise ex
socket.gaierror: [Errno -2] Name or service not known
The text was updated successfully, but these errors were encountered:
I've bumped into another AWS race condition associated with creating the vpc and related resources (train -vk). This is in vpc.py create_iam_profile()
I added a 5 second sleep between each operation and it solved the issue.
I will work up a better approach and eventual PR but just wanted to pass this along.
The error looks like this:
The text was updated successfully, but these errors were encountered: