elasticache module doesn't work

55 views
Skip to first unread message

Giovanni Albero

unread,
Jun 4, 2015, 11:32:59 AM6/4/15
to ansible...@googlegroups.com
Hi,
  I've tried to create an instance of elasticache, and when I've executed the script ansible has returned this

failed: [localhost] => {"failed": true}
msg: Use of cache security groups is not permitted in this API version for your account.
FATAL: all hosts have already failed -- aborting

The last script that I've executed is 

- name: Create ElastiCache
  elasticache:
    name: "test-please-delete"
    state: present
    engine: memcached
    cache_engine_version: 1.4.14
    node_type: cache.m1.small
    num_nodes: 1
    cache_port: 11211
#    cache_security_groups: cicciopasticcio
    security_group_ids: ["{{sg_memcached}}"]
    region: eu-west-1 
 
I've tried several combination of this script (also the example of ansible documentation).
I've the ansible 1.9.1 and run on Mac OSX.

Thank you

Brian Coca

unread,
Jun 4, 2015, 11:39:29 AM6/4/15
to ansible...@googlegroups.com
This does not seem to be a code issue, you are trying to use a feature that is not available to the AWS account you are using.
--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d07fce0e-e96c-4b49-88bc-4f7244db3303%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Brian Coca

Giovanni Albero

unread,
Jun 4, 2015, 11:59:55 AM6/4/15
to ansible...@googlegroups.com

Using the same credentials with "cache_subnet_group" and a branch of "ansible 2.0" everithing work fine.

This mean that it's a code issue and not from our AWS account.

do  you have some more infos to solve the problem with the actual stable version (1.9.1) ?

To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.


--
Brian Coca

Brian Coca

unread,
Jun 4, 2015, 12:04:05 PM6/4/15
to ansible...@googlegroups.com
only info I had was the error message:

>msg: Use of cache security groups is not permitted in this API version for your account.
>FATAL: all hosts have already failed -- aborting

but that seems to be wrong from what you are saying, probably a bug in the module that has since then been fixed, I'll look at the history later to confirm

---------
Brian Coca


--
Brian Coca

Giovanni Albero

unread,
Jun 4, 2015, 12:07:11 PM6/4/15
to ansible...@googlegroups.com
Thank you so much, I'll attend which confirm.

benno joy

unread,
Jun 4, 2015, 12:46:35 PM6/4/15
to ansible...@googlegroups.com

i think this commit 64a2077787904f144f77839660071f35f25d181f fixes your issue, where the code is changed to  connect to the exact region for the vpc connection. earlier the vpc connection woudl be to region where your account might not have rights to vpc's
for now i think you can create a directory "library" in the same level as your playbook and place the latest module code there https://github.com/ansible/ansible-modules-core/blob/devel/cloud/amazon/elasticache.py  and that should fix you up till 2.0 is released.



--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/6071cb5d-3528-4e0d-87e0-ca1ff94fd883%40googlegroups.com.

Giovanni Albero

unread,
Jun 5, 2015, 5:20:23 AM6/5/15
to ansible...@googlegroups.com
Great! It works! Thank you so much for the support :)

A last question, when will the new version come out?

Thanks!
Reply all
Reply to author
Forward
0 new messages