Bug #10018
opendeleting hosts in the aws compute provider doesnt always execute termination on AWS
Description
when deleting multiple hosts simultaneously hosts are removed from foreman but not AWS.
in 1.7.1
Updated by Brian Galura about 10 years ago
Im adding a hook to work around this:
case "$HOOK_EVENT" in
create)
echolog no action for create
;;
destroy)
echolog waiting for instance to be terminated
while [ ! aws ec2 describe-instances --instance-ids $instanceid| grep -q terminated ]
do
echolog waiting for $instanceid to terminate
sleep 10
echolog retrying termination
echolog running aws ec2 terminate-instances --instance-ids $instanceid
aws ec2 terminate-instances --instance-ids $instanceid
done
echolog instance $instanceid now shows as terminated
;;
update)
echolog no action for update
;;
*)
echo "Usage: run_hooks {create|destroy|update}"
exit 1
;;
esac
Updated by Dominic Cleal almost 10 years ago
- Category set to Compute resources - EC2
- Translation missing: en.field_release deleted (
40)
By simultaneously, do you mean using the tickboxes and select action dropdown, or with multiple tabs/windows?
Updated by Brian Galura almost 10 years ago
Dominic Cleal wrote:
By simultaneously, do you mean using the tickboxes and select action dropdown, or with multiple tabs/windows?
I have been using api v2.