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

[Release-1.26] [Windows] Stop-Service rke2 does not stops all rke2 services #5290

Closed
HarrisonWAffel opened this issue Jan 17, 2024 · 1 comment

Comments

@HarrisonWAffel
Copy link
Contributor

Backport fix for [Windows] Stop-Service rke2 does not stops all rke2 services

@fmoral2
Copy link
Contributor

fmoral2 commented Feb 16, 2024

Validated on Version:

-$  rke2.exe version v1.26.14-rc1+rke2r1 (84264b99c14cf8626ee34120fac158e64b58b7e8)



Environment Details

Infrastructure
Cloud EC2 instance

Node(s) CPU architecture, OS, and Version:
SUSE Linux Enterprise Server 15 SP4

Cluster Configuration:
1 server node
1 agent
1 windows

Steps to validate the fix

  1. Install rke2 with windows agent node
  2. Validate that after Stop-Service rke2 no services are running

Reproduction Issue:

 
rke2 -v
rke2.exe version v1.27.11-rc1+rke2r1 (de74ade94562b108e8a189b296c4d8d86894d288)
go version go1.21.7


PS C:\Users\Administrator> Stop-Service rke2


PS C:\Users\Administrator> Get-Process -Name containerd,kubelet,kube-proxy,rke2,calico-node

 

Handles  NPM(K)    PM(K)      WS(K)     CPU(s)     Id  SI ProcessName
-------  ------    -----      -----     ------     --  -- -----------
    355      18    31696      39412       3.45   1188   0 calico-node
    187      15    34768      35884      10.72   7292   0 containerd
    364      23    51152      70420       9.05   6316   0 kubelet
    196      17    30848      36504       0.33   4948   0 kube-proxy
    484      37    51372      82324      18.20   3944   0 rke2

 

Validation Results:

       

rke2 -v
rke2.exe version v1.26.14-rc1+rke2r1 (84264b99c14cf8626ee34120fac158e64b58b7e8)
go version go1.21.7

PS C:\Users\Administrator> Stop-Service rke2



PS C:\Users\Administrator>  Get-Process -Name containerd,kubelet,kube-proxy,rke2,calico-node


Get-Process : Cannot find a process with the name "containerd". Verify the process name and call the cmdlet again.
At line:1 char:2
+  Get-Process -Name containerd,kubelet,kube-proxy,rke2,calico-node
+  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (containerd:String) [Get-Process], ProcessCommandException
    + FullyQualifiedErrorId : NoProcessFoundForGivenName,Microsoft.PowerShell.Commands.GetProcessCommand

Get-Process : Cannot find a process with the name "kubelet". Verify the process name and call the cmdlet again.
At line:1 char:2
+  Get-Process -Name containerd,kubelet,kube-proxy,rke2,calico-node
+  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (kubelet:String) [Get-Process], ProcessCommandException
    + FullyQualifiedErrorId : NoProcessFoundForGivenName,Microsoft.PowerShell.Commands.GetProcessCommand

Get-Process : Cannot find a process with the name "kube-proxy". Verify the process name and call the cmdlet again.
At line:1 char:2
+  Get-Process -Name containerd,kubelet,kube-proxy,rke2,calico-node
+  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (kube-proxy:String) [Get-Process], ProcessCommandException
    + FullyQualifiedErrorId : NoProcessFoundForGivenName,Microsoft.PowerShell.Commands.GetProcessCommand

Get-Process : Cannot find a process with the name "rke2". Verify the process name and call the cmdlet again.
At line:1 char:2
+  Get-Process -Name containerd,kubelet,kube-proxy,rke2,calico-node
+  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (rke2:String) [Get-Process], ProcessCommandException
    + FullyQualifiedErrorId : NoProcessFoundForGivenName,Microsoft.PowerShell.Commands.GetProcessCommand

Get-Process : Cannot find a process with the name "calico-node". Verify the process name and call the cmdlet again.
At line:1 char:2
+  Get-Process -Name containerd,kubelet,kube-proxy,rke2,calico-node
+  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (calico-node:String) [Get-Process], ProcessCommandException
    + FullyQualifiedErrorId : NoProcessFoundForGivenName,Microsoft.PowerShell.Commands.GetProcessCommand

@fmoral2 fmoral2 closed this as completed Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants