ec2 volume creation breaks with older boto in v2 #1773
Comments
the code does this to prevent old versions from breaking:
can you check that this expression works on your loaded boto library? |
I can't test directly, I'm afraid. I had the Debian python-boto 2.25 package installed, and when I understood the problem above, I did "sudo pip install -U boto" because I needed to get it working. I haven't uninstalled 2.25, but I don't know how to use it (or even if the more recent version overwrote some of the packaged files). If someone can give me instructions on how to do it, I'm willing to test. |
I have the same issue on Centos 7.2 with ansible 2.1.0.0 and python-boto 2.25.0-2.el7. The stack trace is:
The version check mentionned in the comment from @bcoca is present in ec2_vol module, but not on ec2 module, when setting directly a device block mapping. |
@ansible, ping. This issue is still waiting on your response. |
@ansible, ping. This issue is still waiting on your response. |
@ansible, ping. This issue is still waiting on your response. |
1 similar comment
@ansible, ping. This issue is still waiting on your response. |
i got the same issue, and i tried to upgrade boto using below command and i fixed it pip install boto --upgraderoot@ansible:/etc/ansible# pip install boto --upgrade |
@vuninh I understand that upgrading boto will make the problem go away, but this module is supposed to detect which boto version is present and gracefully handle it. This bug is about a specific case not being handled properly. |
@ansible, ping. This issue is still waiting on your response. |
…le#1773) Fix issue which prevents creating ec2 instance with extra volumes when using a older version of boto not supporting volume encryption. Fix issue ansible#1173
@ansible, ping. This issue is still waiting on your response. |
This repository has been locked. All new issues and pull requests should be filed in https://github.com/ansible/ansible Please read through the repomerge page in the dev guide. The guide contains links to tools which automatically move your issue or pull request to the ansible/ansible repo. |
This issue was moved to ansible/ansible#19724 |
Issue type: Bug report
Ansible version: devel
Ansible configuration: NA
Environment: boto 2.25
Summary:
Creating an EC2 instance using the task below fails with a traceback: "TypeError: init() got an unexpected keyword argument 'encrypted".
Support for encrypted volumes seems to have been added in boto 2.33, and I have 2.25. Can this be handled more gracefully somehow? Or make the module require the appropriate version?
Steps to reproduce:
Expected results:
That the instance is created correctly (which it is, with stable-1.9; 1.9 supports volumes: but not 'encrypted'). Note that I'm not trying to create an encrypted volume.
Actual results:
The text was updated successfully, but these errors were encountered: