Skip to content

Instantly share code, notes, and snippets.

@bryfry
Created October 1, 2016 03:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bryfry/6bc1581efa066662e1780786c73549ca to your computer and use it in GitHub Desktop.
Save bryfry/6bc1581efa066662e1780786c73549ca to your computer and use it in GitHub Desktop.
failing launch (10 is not at least 4)
TASK [launch-instance : nginx - os - launch instance] **************************
task path: /home/ubuntu/git/services-ansible/roles/launch-instance/tasks/main.yml:32
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/core/cloud/openstack/os_server.py
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: ubuntu
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1475290735.9-140508241290004 `" && echo ansible-tmp-1475290735.9-140508241290004="` echo $HOME/.ansible/tmp/ansible-tmp-1475290735.9-140508241290004 `" ) && sleep 0'
<127.0.0.1> PUT /tmp/tmp6xrd2V TO /home/ubuntu/.ansible/tmp/ansible-tmp-1475290735.9-140508241290004/os_server.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/ubuntu/.ansible/tmp/ansible-tmp-1475290735.9-140508241290004/ /home/ubuntu/.ansible/tmp/ansible-tmp-1475290735.9-140508241290004/os_server.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python /home/ubuntu/.ansible/tmp/ansible-tmp-1475290735.9-140508241290004/os_server.py; rm -rf "/home/ubuntu/.ansible/tmp/ansible-tmp-1475290735.9-140508241290004/" > /dev/null 2>&1 && sleep 0'
fatal: [localhost]: FAILED! => {
"changed": false,
"extra_data": null,
"failed": true,
"invocation": {
"module_args": {
"api_timeout": null,
"auth": null,
"auth_type": null,
"auto_ip": true,
"availability_zone": "az0",
"boot_from_volume": false,
"boot_volume": null,
"cacert": null,
"cert": null,
"cloud": "services",
"config_drive": false,
"delete_fip": false,
"endpoint_type": "public",
"flavor": "m1.medium",
"flavor_include": null,
"flavor_ram": null,
"floating_ip_pools": null,
"floating_ips": null,
"image": "xenial",
"image_exclude": "(deprecated)",
"key": null,
"key_name": "a3s-key",
"meta": {
"bootstrapped": "false",
"type": "a3s-nginx"
},
"name": "nginx",
"network": null,
"nics": [
{
"port-name": "nginx-port"
}
],
"region_name": null,
"scheduler_hints": null,
"security_groups": [
"default"
],
"state": "present",
"terminate_volume": false,
"timeout": 180,
"userdata": null,
"verify": true,
"volume_size": false,
"volumes": [],
"wait": true
},
"module_name": "os_server"
},
"msg": "Error in creating instance (Inner Exception: create() takes at least 4 arguments (10 given))"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment