Create GCE instances msg: Unexpected response: {}

159 views
Skip to first unread message

Faisal Rabbani

unread,
Jan 24, 2015, 2:59:50 PM1/24/15
to ansible...@googlegroups.com
Hi,
I am trying to create new instance via ansible gce module but getting this message:

PLAY [localhost] **************************************************************

TASK: [Launch instances] ******************************************************
failed: [localhost -> 127.0.0.1] => {"changed": false, "failed": true}
msg: Unexpected response: {}

FATAL: all hosts have already failed -- aborting
This is my playbook:
  local_action:
            module: gce
            name: test-instance
            zone: us-central1-a
            machine_type: f1.micro
            image: ubuntu-14-10
            service_account_email: ####################@developer.gserviceaccount.com
            pem_file: /root/.ssh/key
            project_id: 234sda
        register: gce

Anatoliy Kovalenko

unread,
Oct 9, 2015, 9:19:25 AM10/9/15
to Ansible Project
I have the same issue. I use a gce_module of ansible which uses apache-libcloud. When I try to run a google instance, I get an error - failed: [localhost] => {"changed": false, "failed": true} msg: Unexpected response: {} 

What can possibly cause it?

Anatoliy Kovalenko

unread,
Oct 13, 2015, 3:02:34 PM10/13/15
to Ansible Project
Any ideas or help would be very much appreciated! can't resolve it by ourselves

de...@wepay.com

unread,
Dec 15, 2015, 5:46:17 PM12/15/15
to Ansible Project
Has anyone resolved this issue? I am experiencing the same thing but cannot find the cause of the error.
Reply all
Reply to author
Forward
0 new messages