Giter Site home page Giter Site logo

Comments (4)

ampedandwired avatar ampedandwired commented on June 16, 2024 1

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.

ampedandwired avatar ampedandwired commented on June 16, 2024

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.

Troyhy avatar Troyhy commented on June 16, 2024

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.

ampedandwired avatar ampedandwired commented on June 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.