|
|
a5ceae |
From 85638d1238ba9ab0c77138133ab1b7c7069e3821 Mon Sep 17 00:00:00 2001
|
|
|
a5ceae |
From: Vitaly Kuznetsov <vkuznets@redhat.com>
|
|
|
a5ceae |
Date: Tue, 21 Feb 2023 10:29:52 +0100
|
|
|
a5ceae |
Subject: [PATCH 2/2] Use platform-python in waagent.service
|
|
|
a5ceae |
|
|
|
a5ceae |
RH-Author: Vitaly Kuznetsov <vkuznets@redhat.com>
|
|
|
a5ceae |
RH-MergeRequest: 16: Use platform-python in waagent.service
|
|
|
a5ceae |
RH-Bugzilla: 2170104
|
|
|
a5ceae |
RH-Acked-by: Mohamed Gamal Morsy <mmorsy@redhat.com>
|
|
|
a5ceae |
RH-Acked-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
|
|
|
a5ceae |
RH-Commit: [2/2] e548a4d37bd89e6e2eb471b5193b76f1f9f9529b
|
|
|
a5ceae |
|
|
|
a5ceae |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2170104
|
|
|
a5ceae |
Upstream: RHEL only
|
|
|
a5ceae |
|
|
|
a5ceae |
WALinuxAgent in RHEL8 uses platform-python, which is python3.6.
|
|
|
a5ceae |
'waagent.service', however, overrides this by calling
|
|
|
a5ceae |
'/usr/bin/python3' directly and in case this point to a newer
|
|
|
a5ceae |
AppStream Python (e.g. Python3.9) WALinuxAgent breaks as it can't
|
|
|
a5ceae |
find its files.
|
|
|
a5ceae |
|
|
|
a5ceae |
See also: https://github.com/Azure/WALinuxAgent/issues/2728
|
|
|
a5ceae |
See also: https://github.com/Azure/WALinuxAgent/pull/2729
|
|
|
a5ceae |
|
|
|
a5ceae |
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
|
|
|
a5ceae |
---
|
|
|
a5ceae |
init/redhat/waagent.service | 2 +-
|
|
|
a5ceae |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
a5ceae |
|
|
|
a5ceae |
diff --git a/init/redhat/waagent.service b/init/redhat/waagent.service
|
|
|
a5ceae |
index dc11fbb1..29056395 100644
|
|
|
a5ceae |
--- a/init/redhat/waagent.service
|
|
|
a5ceae |
+++ b/init/redhat/waagent.service
|
|
|
a5ceae |
@@ -8,7 +8,7 @@ ConditionPathExists=/etc/waagent.conf
|
|
|
a5ceae |
|
|
|
a5ceae |
[Service]
|
|
|
a5ceae |
Type=simple
|
|
|
a5ceae |
-ExecStart=/usr/bin/python3 -u /usr/sbin/waagent -daemon
|
|
|
a5ceae |
+ExecStart=/usr/sbin/waagent -daemon
|
|
|
a5ceae |
Restart=always
|
|
|
a5ceae |
RestartSec=5
|
|
|
a5ceae |
Slice=azure.slice
|
|
|
a5ceae |
--
|
|
|
a5ceae |
2.37.3
|
|
|
a5ceae |
|