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

Desried state for schedule “xyz "was stopped . Last desired state was stopped. Actual state is running. #55

Closed
prateek121 opened this issue Nov 7, 2018 · 7 comments

Comments

@prateek121
Copy link

How can I avoid the scheduler seeing the last desired from stateTable ...
I see lots of instances being skipped either stopping/starting .

As well looks to me stateTable is not updated correctly. As I run the scheduler much before the actual schedule time so that it gets updated with right state for comparison.

@arieleeuw
Copy link

arieleeuw commented Nov 8, 2018 via email

@prateek121
Copy link
Author

prateek121 commented Nov 8, 2018

Here's what I see in the logs where no action is taken to start the instance for few instances
.Im not sure where am I not getting it.

DEBUG : [running] Time 07:00:33 is within 07:00:00-23:30:00, returned state is running
DEBUG : Active period in schedule "ExtendedHoursX7": "startAt7AMstopAtMidnight"
DEBUG : Desired state for instance from schedule "ExtendedHoursX7" is running, last desired state was running, actual state is stopped

The above same happens in case of stopping the instances. Where it ignores taking action

@arieleeuw
Copy link

arieleeuw commented Nov 8, 2018 via email

@prateek121
Copy link
Author

There's no encryption in root volumes.
Though I see the problem in only one of our accounts , rest works perfectly fine.
Right now,Ive deleted the item from stateTable to see the difference over the weekend and Monday.
Will update you...

@prateek121
Copy link
Author

So far I havent seen issues with accounts post deleting the item from stateTable for that account.
Thanks a lot @arieleeuw .
What happens in case of spot-instance included in the list of instance-ids ? For instances it couldn't stop for whatever reason.

@arieleeuw
Copy link

If we don't see an instance anymore that we keep track off in the table we automatically remove in a cleanup action we automatically run twice a day.
This keeps the items in the table compact and the table maintenance free.

Good to hear things are working now, thanks for your effort and patience!

@shsenior
Copy link
Contributor

Closing due to time elapsed since last correspondence. Please re-open this if you are still having an issue.

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

No branches or pull requests

3 participants