Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ec2_vol volume_size parameter #86

Merged
merged 1 commit into from
Mar 10, 2021
Merged

Conversation

flfernandez
Copy link
Contributor

In newer Ansible versions (i.e. 2.10.6) the ec2_vol module does not accept an empty volume_size var if attaching an existing volume. Volume_size param should not exist in this case. This issue has been observed while redeploying (scheme _scheme_rmvm_keepdisk_rollback):

TASK [create/aws | Attach (or create) volumes where 'src' is present (e.g. inserted as part of _scheme_rmvm_keepdisk_rollback scheme)]
fatal: [localhost]: FAILED! => changed=false
msg: 'argument volume_size is of type <class ''str''> and we were unable to convert to int: <class ''str''> cannot be converted to an int'

The change has been successfully tested in creation (cluster.yml) and redeploy (redeploy.yml) playbooks.

@dseeley-sky dseeley-sky merged commit 18c48f6 into master Mar 10, 2021
dseeley pushed a commit to dseeley/clusterverse that referenced this pull request Mar 16, 2021
* master:
  Fix ec2_vol volume_size parameter (sky-uk#86)
@dseeley-sky dseeley-sky deleted the fix_ec2_vol_volume_size branch April 19, 2021 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants