-
Notifications
You must be signed in to change notification settings - Fork 342
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
AWS: Cancelling EC2 Spot Request #1360
Labels
bug
This issue/PR relates to a bug
python3
waiting_on_contributor
Needs help. Feel free to engage to get things unblocked
Comments
Files identified in the description: If these files are inaccurate, please update the |
jillr
added
waiting_on_contributor
Needs help. Feel free to engage to get things unblocked
and removed
needs_triage
labels
Feb 21, 2023
softwarefactory-project-zuul bot
pushed a commit
that referenced
this issue
Mar 8, 2023
… when cancelling request (#1402) ec2_spot_instance: add parameter to enable terminating spot instances when cancelling request SUMMARY This PR adds a new parameter terminate_instances (true | false) to enable terminating spot instances when cancelling request. Can be used only when state=absent. Fixes #1360 ISSUE TYPE Feature Pull Request COMPONENT NAME ec2_spot_instance ADDITIONAL INFORMATION Reviewed-by: Bikouo Aubin Reviewed-by: Mandar Kulkarni <[email protected]> Reviewed-by: Alina Buzachis Reviewed-by: Mark Chappell
patchback bot
pushed a commit
that referenced
this issue
Mar 8, 2023
… when cancelling request (#1402) ec2_spot_instance: add parameter to enable terminating spot instances when cancelling request SUMMARY This PR adds a new parameter terminate_instances (true | false) to enable terminating spot instances when cancelling request. Can be used only when state=absent. Fixes #1360 ISSUE TYPE Feature Pull Request COMPONENT NAME ec2_spot_instance ADDITIONAL INFORMATION Reviewed-by: Bikouo Aubin Reviewed-by: Mandar Kulkarni <[email protected]> Reviewed-by: Alina Buzachis Reviewed-by: Mark Chappell (cherry picked from commit aa86240)
softwarefactory-project-zuul bot
pushed a commit
that referenced
this issue
Mar 17, 2023
… when cancelling request (#1402) (#1418) [PR #1402/aa86240d backport][stable-5] ec2_spot_instance: add parameter to enable terminating spot instances when cancelling request This is a backport of PR #1402 as merged into main (aa86240). SUMMARY This PR adds a new parameter terminate_instances (true | false) to enable terminating spot instances when cancelling request. Can be used only when state=absent. Fixes #1360 ISSUE TYPE Feature Pull Request COMPONENT NAME ec2_spot_instance ADDITIONAL INFORMATION Reviewed-by: Mark Chappell
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
This issue/PR relates to a bug
python3
waiting_on_contributor
Needs help. Feel free to engage to get things unblocked
Summary
When submitting spot cancellation request through module amazon.aws.ec2_spot_instance module, only the spot request is cancelled. The EC2 instance provisioned by the spot instance continues to run. No option in the module to terminate the spot instance.
Issue Type
Bug Report
Component Name
Ansible AWS module
Ansible Version
Collection Versions
AWS SDK versions
Configuration
OS / Environment
[ centos@workstation ~/ansible ]$ cat /etc/release
CentOS Linux release 7.9.2009 (Core)
Derived from Red Hat Enterprise Linux 7.8 (Source)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
CentOS Linux release 7.9.2009 (Core)
CentOS Linux release 7.9.2009 (Core)
cpe:/o:centos:centos:7
[ centos@workstation ~/ansible ]$ uname -a
Linux ip-172-31-66-217.ec2.internal 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
[ centos@workstation ~/ansible ]$
Steps to Reproduce
Expected Results
Cancelling the spot request should terminate the instance created by the spot request.
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: