rancher / rke2

https://docs.rke2.io/
Apache License 2.0
1.55k stars 267 forks source link

[Release-1.27] - `rke2 server` process shows up as `rke2 agent` in process list #6444

Closed brandond closed 2 months ago

brandond commented 2 months ago

Backport fix for rke2 server process shows up as rke2 agent in process list

endawkins commented 2 months ago

Validated on release-1.27 with b6cf44f / v1.27

Environment Details

Infrastructure

Node(s) CPU architecture, OS, and Version:

Linux ip-172-31-2-84 5.14.21-150500.55.44-default #1 SMP PREEMPT_DYNAMIC Mon Jan 15 10:03:40 UTC 2024 (cc7d8b6) x86_64 x86_64 x86_64 GNU/Linux
NAME="SLES"
VERSION="15-SP5"
VERSION_ID="15.5"
PRETTY_NAME="SUSE Linux Enterprise Server 15 SP5"
ID="sles"
ID_LIKE="suse"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles:15:sp5"
DOCUMENTATION_URL="https://documentation.suse.com/"

Cluster Configuration:

1 server

Config.yaml:

N/A

Additional files

N/A

Testing Steps

  1. Copy config.yaml
    $ sudo mkdir -p /etc/rancher/rke2 && sudo cp config.yaml /etc/rancher/rke2
  2. Install RKE2
  3. ps auxfww | grep /bin/rke2

Replication Results:

ps auxfww | grep /bin/rke2
ec2-user  8376  0.0  0.0   8212   808 pts/0    S+   23:06   0:00              \_ grep --color=auto /bin/rke2
root      2642  6.4  3.6 1530872 143584 ?      Ssl  22:40   1:40 /usr/local/bin/rke2 agent

Validation Results:

ps auxfww | grep /bin/rke2
ec2-user 12888  0.0  0.0   8212   784 pts/0    S+   23:12   0:00              \_ grep --color=auto /bin/rke2
root      2533  5.7  3.7 1529900 146484 ?      Ssl  22:42   1:44 /usr/local/bin/rke2 server

Additional context / logs:

N/A