-
Notifications
You must be signed in to change notification settings - Fork 202
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
CentOS reboot-required command support #77
Conversation
This has had some more testing and has rebooted a node running on Amazon Linux 2 correctly. |
@winjer EKS AMI? |
Yep, specifically amazon-eks-node-1.12-v20190614 (ami-0bc8d0262346bd65e) |
It's kind of hard to test, and I am not a CentOS expert, if you have things I should try I am very happy to try them. |
No, we are in the process to migrate to EKS, from our CoreOS based cluster (updated via CLUO). Was wondering is kured was working for EKS worker node. We will test your patch ;) |
Will test on CentOS 7.6 |
@winjer what command did you use to test this? I'm having issues getting it working with any variation of |
Using the stable kured chart, I had the values:
extraArgs:
reboot-sentinel-command: needs-restarting -r
And obviously an image built from this PR.
…On Fri, 21 Jun 2019 at 16:06, Gareth Luckett ***@***.***> wrote:
@winjer <https://github.com/winjer> what command did you use to test
this? I'm having issues getting it working with any variation of
needs-restarting commands
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#77>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABIVJU3E6XGSAD2UD2LBWTP3TVADANCNFSM4HYXI2NA>
.
--
Isotoma, software development and cloud consultancy
Web: https://www.isotoma.com/ Tel: 07879 423002 / 01904 313969
Postal Address: Swinegate Court East, Swinegate, York, YO1 8AJ, UK
Registered in England. Company No 05171172. VAT GB843570325.
Registered Office: Swinegate Court East, Swinegate, York, YO1 8AJ
|
@winjer I'm using this custom image, however that command returns the exit codes the opposite to what kured requires, I can see in the logs the command is running, but nothing is being flagged for reboot |
Yes, reading the code I think you are correct. I'll spin up the test system again and look at the logs to verify. I can think of a couple of approaches to solving this but they are all a bit ugly. I'd be interested in what you think.
do you have any better ideas? |
FWIW |
|
It is all to do with quoting I think.
is, i think, correct. I'll see how that can be accommodated. It's all pretty fugly :( |
So that works on the machine, but issues within kured, standard way of escaping doesnt seem to work, any ideas?
Does there need to be logic to clean up the command before we run it? |
ok so with that update, you can use:
in the stable chart. and that maybe works! the output looks ok anyhow. |
thanks for your help :) |
RHEL/CentOS 8 doesnt include |
I confirm it's working too, on AWS EKS (1.13). |
@laghoule can you include the OS and release details, as EKS can run different OS types |
|
@awh This works for us as well. Is there anything you would like me to do further to be able to merge this? |
Why does The code change looks plausible to me. |
Looking for this functionality too, will this get merged eventually? |
Needs rebase. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a duplicate of #43
@@ -101,9 +105,20 @@ func newCommand(name string, arg ...string) *exec.Cmd { | |||
return cmd | |||
} | |||
|
|||
func sentinelCommand() *exec.Cmd { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we really need this? Can't we just pass a sentinel command that's defaulting to the current systemctl command instead? We know the first part will always be nsenter -m /proc/1/ns/mnt , so the user could simply pass "systemctl reboot" as an argument?
Just a quick PSA from me:
We'd love to see you there. |
Could you add "Closes: #4 " in the commit/PR messages? That would allow us to clean up things. |
Hey what's the status of this? |
There are pending PRs which refactor the command used to reboot (or to not use a command at all, and directly the syscalls), so this is currently indirectly worked on. |
This PR was automatically considered stale due to lack of activity. Please refresh it and/or join our slack channels to highlight it, before it automatically closes (in 7 days). |
Still a good idea. |
This PR was automatically considered stale due to lack of activity. Please refresh it and/or join our slack channels to highlight it, before it automatically closes (in 7 days). |
|
Ok, keeping it open until a more flexible reboot command is out. |
You might be interested by this pr: #297 |
Sorry. Can you please retarget your branch to be merged into |
This has had minimal testing, but does appear to run at least. This is meant to address #4
I have this running in a test cluster now.