We had ec2 spot instnaces working previously.
Today we started getting the following stack trace.
We monitored ec2 instances UI in amazon and as soon as the ec2 instance
being created status went from pending to active ansible returned with the
error.

Removing the spot instance price fixed the problem.
Can anyone else reproduce?

ansible-cloud errors with spot instance


failed: [localhost] => (item={'count': u'1', 'Name': u'sid-test-master',
'volumes': [{'volume_size': 100, 'delete_on_termination': True,
'device_type': 'gp2', 'device_name': '/dev/sda1'}, {'volume_size': 300,
'delete_on_termination': True, 'device_type': 'gp2', 'device_name':
'/dev/sdb'}, {'volume_size': 300, 'delete_on_termination': True,
'device_type': 'gp2', 'device_name': '/dev/sdc'}, {'volume_size': 300,
'delete_on_termination': True, 'device_type': 'gp2', 'device_name':
'/dev/sdd'}, {'volume_size': 300, 'delete_on_termination': True,
'device_type': 'gp2', 'device_name': '/dev/sde'}], 'tags': {'role':
'mesos_master,hdfs_namenode,consul_bootstrap,zk', 'Name':
u'sid-test-master', 'galaxy': u'sid-test'}}) => {"failed": true, "item":
{"Name": "sid-test-master", "count": "1", "tags": {"Name":
"sid-test-master", "galaxy": "sid-test", "role":
"mesos_master,hdfs_namenode,consul_bootstrap,zk"}, "volumes":
[{"delete_on_termination": true, "device_name": "/dev/sda1", "device_type":
"gp2", "volume_size": 100}, {"delete_on_termination": true, "device_name":
"/dev/sdb", "device_type": "gp2", "volume_size": 300},
{"delete_on_termination": true, "device_name": "/dev/sdc", "device_type":
"gp2", "volume_size": 300}, {"delete_on_termination": true, "device_name":
"/dev/sdd", "device_type": "gp2", "volume_size": 300},
{"delete_on_termination": true, "device_name": "/dev/sde", "device_type":
"gp2", "volume_size": 300}]}, "parsed": false}

Traceback (most recent call last):

 File
"/Users/wtsidney/.ansible/tmp/ansible-tmp-1446741090.74-68720537801589/ec2",
line 2962, in <module>

   main()

 File
"/Users/wtsidney/.ansible/tmp/ansible-tmp-1446741090.74-68720537801589/ec2",
line 1194, in main

   (instance_dict_array, new_instance_ids, changed) =
create_instances(module, ec2)

 File
"/Users/wtsidney/.ansible/tmp/ansible-tmp-1446741090.74-68720537801589/ec2",
line 932, in create_instances

   terminated_instances = [ str(instance.id) for instance in res.instances

AttributeError: 'ResultSet' object has no attribute 'instances'

Kesten Broughton
512 701 4209

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAO2fFsXSk7b76xE6jCDh-dk29fMwshNKkcyecrymTz46zbtMqg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to