Comments (4)
BTW, in the current implementation if the instance can't be found in the AWS API, it does not get deleted in Rancher. I figured it best to err on the side of caution in cases where it is not definitively clear that the instance has terminated.
If you feel it is useful though, I could add a flag to force deletion in cases like this?
from rancher-reaper.
Thanks for the bug report. The code currently handles an Aws::EC2::Errors::InvalidInstanceIDNotFound
exception, which is what I expected would be thrown if the instance has been purged from AWS. Looks like there might be another scenario though. I'll have a look into it.
from rancher-reaper.
I have same situation. I have staging environment that is only active from 8-16. In the morning when staging environment goes up, amazon has already purged all info about machine that was serving last afternoon and I get this error. Environment consist only one machine at the moment so reaping cannot happen 16:00 when environment goes down.
It would be helpful to add flag to reap host in this situation.
from rancher-reaper.
The original issue is actually due to a bug in the AWS SDK: aws/aws-sdk-ruby#1449 - this should be fixed in 0.4.0.
Also, after giving this some thought, I have updated the way rancher-reaper determines if a host is terminated. It now assumes that if the host was not returned by the AWS API, then it is terminated. This should solve the use case mentioned by @Troyhy.
from rancher-reaper.
Related Issues (11)
- https CATTLE_URL not working? HOT 4
- Make labels configurable?
- aws_sdk bug prevents rancher-reaper from removing hosts HOT 1
- eu-west-2 (London) availability zones being treated as invalid HOT 1
- AWS keys should be optional
- ERROR undefined method `request_uri'
- Doesn't handle malformed aws.availability_zone labels HOT 3
- One-shot mode to allow scheduling with cron
- RancherOS compatibility HOT 3
- Missing region error while reaping terminated host HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rancher-reaper.