#4058 Could not spawn new VM from copr-fe-dev.cloud.fedoraproject.org
Closed: Fixed None Opened 10 years ago by msuchy.

I could not spawn new VM from copr-be-dev.cloud.fedoraproject.org:

When I do:
{{{
su - copr
. /srv/copr-work/copr/cloud/ec2rc.sh
ansible-playbook -vv /srv/copr-work/provision/builderpb.yml
}}}
on copr-be, then it works. When I do the same thing in copr-be-dev (the path are there little bit different):
{{{
su - copr
. /home/copr/cloud/ec2rc.sh
ansible-playbook -vvv /home/copr/provision/builderpb.yml
}}}
it does not work. Result is:
{{{
-bash-4.2$ ansible-playbook -vvv /home/copr/provision/builderpb.yml

PLAY [check/create instance] ********

TASK: [spin it up] ************
<127.0.0.1> EXEC ['/bin/sh', '-c', 'mkdir -p $HOME/.ansible/tmp/ansible-1381369940.89-71183081092196 && chmod a+rx $HOME/.ansible/tmp/ansible-1381369940.89-71183081092196 && echo $HOME/.ansible/tmp/ansible-1381369940.89-71183081092196']
<127.0.0.1> REMOTE_MODULE ec2 keypair=buildsys image=ami-0000000e type=m1.builder wait=true group=builder
<127.0.0.1> PUT /tmp/tmp0I97Bw TO /home/copr/.ansible/tmp/ansible-1381369940.89-71183081092196/ec2
<127.0.0.1> EXEC ['/bin/sh', '-c', '/usr/bin/python /home/copr/.ansible/tmp/ansible-1381369940.89-71183081092196/ec2; rm -rf /home/copr/.ansible/tmp/ansible-1381369940.89-71183081092196/ >/dev/null 2>&1']
failed: [localhost] => {"failed": true, "parsed": false}
invalid output was: Traceback (most recent call last):
File "/home/copr/.ansible/tmp/ansible-1381369940.89-71183081092196/ec2", line 1549, in <module>
main()
File "/home/copr/.ansible/tmp/ansible-1381369940.89-71183081092196/ec2", line 612, in main
(instance_dict_array, new_instance_ids, changed) = create_instances(module, ec2)
File "/home/copr/.ansible/tmp/ansible-1381369940.89-71183081092196/ec2", line 377, in create_instances
grp_details = ec2.get_all_security_groups()
File "/usr/lib/python2.7/site-packages/boto/ec2/connection.py", line 2742, in get_all_security_groups
[('item', SecurityGroup)], verb='POST')
File "/usr/lib/python2.7/site-packages/boto/connection.py", line 1068, in get_list
response = self.make_request(action, params, path, verb)
File "/usr/lib/python2.7/site-packages/boto/connection.py", line 1014, in make_request
return self._mexe(http_request)
File "/usr/lib/python2.7/site-packages/boto/connection.py", line 930, in _mexe
raise e
socket.gaierror: [Errno -2] Name or service not known

FATAL: all hosts have already failed -- aborting
}}}

I tried to debug it. But all files and certificates seems to be equal. I have no idea what can be the cause and I would welcome some assistance.


https://bugzilla.redhat.com/show_bug.cgi?id=1003105

If I create ~copr/.boto with:
{{{
[Boto]
https_validate_certificates = False
}}}
It will proceed.

Login to comment on this ticket.

Metadata