question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Check (warn) if instance has a pending reboot due to changed configuration

See original GitHub issue

Currently, if modifying the configuration of an instance via gnt-modify ... the user is told that, for the change to have any effect, the instance needs to be rebooted. Probably, we should introduce a check for this in gnt-cluster verify, to be able to find instances with pending reboots due to changed configurations.

Probably, this is as easy as comparing mtime and start_time:

if
   mtime > start_time
then
   warn
endif

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
zen2commented, Dec 6, 2019

I think that will be a real good feature because here for our usage it’s something really needed. Sometimes we rebalanced CPU/RAM for lot of VM but we will reboot them later to don’t impact their usage. And very often we forget one or two VMs to reboot because there is no centralized way to know it. I’ve even a script based on gnt-list that do a diff about current running parameters against definition parameters to check if some VM need to be rebooted. So to have this feature natively would be great.

0reactions
iustincommented, Dec 8, 2019

Thinking some more, I think restart with custom parameters should have it’s own warning, and should not affect timestamp change (related to modification).

So the semantics I’m proposing:

  • if not started (standard) since last modify, warn
  • if started with custom parameters (unrelated to modifications), show a warning or info

Thoughts?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Check for a Pending Reboot in the Registry (Windows)
A pending reboot is defined in many places. Scroll right to see the values and conditions. A Windows computer is pending a reboot...
Read more >
Status checks for your instances - AWS Documentation
Monitor instances with status checks to determine whether Amazon EC2 has detected any problems with your instances.
Read more >
Reboot - Pending File Rename Operations check returns true ...
On running choco upgrade all -y (as Administrator), I always get a validation error as follows: PS C:\WINDOWS\system32> choco upgrade all -y ...
Read more >
Determine Pending Reboot Status—PowerShell Style! Part 2
Microsoft Scripting Guy, Ed Wilson, is here. Today we have the conclusion to Brian Wilhite's guest blog series about detecting pending reboots ......
Read more >
Error: A computer restart is required... or Reboot pending ...
This issue can occur if their is an orphaned key remaining in the Windows® Registry that didn't properly clear after restarting the computer, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found