
There are exceptions in nova pods looking like ERROR oslo_messaging.rpc.server [-] Exception during message handling: oslo_messaging.rpc.dispatcher.UnsupportedVersion: Endpoint does not support RPC version 1.0. Attempted method: pod_health_probe_method_ignore_errors ERROR oslo_messaging.rpc.server Traceback (most recent call last): ERROR oslo_messaging.rpc.server File "/var/lib/openstack/lib/python3.6/site-packages/oslo_messaging/rpc/server.py", line 163, in _process_incoming ERROR oslo_messaging.rpc.server res = self.dispatcher.dispatch(message) ERROR oslo_messaging.rpc.server File "/var/lib/openstack/lib/python3.6/site-packages/oslo_messaging/rpc/dispatcher.py", line 276, in dispatch ERROR oslo_messaging.rpc.server raise UnsupportedVersion(version, method=method) ERROR oslo_messaging.rpc.server oslo_messaging.rpc.dispatcher.UnsupportedVersion: Endpoint does not support RPC version 1.0. Attempted method: pod_health_probe_method_ignore_errors Merged fix from openstack-helm community Change-Id: Ic1ce9fb30424beb78ed604d9ae340fe838815bb5 Closes-Bug: 1829793 Signed-off-by: Martin, Chen <haochuan.z.chen@intel.com>
71 lines
2.3 KiB
Diff
71 lines
2.3 KiB
Diff
From a0e8c7e3764b168eaaa82d17d965f62d34766573 Mon Sep 17 00:00:00 2001
|
|
From: Chris Friesen <chris.friesen@windriver.com>
|
|
Date: Wed, 28 Nov 2018 01:33:39 -0500
|
|
Subject: [PATCH 03/11] Remove stale Apache2 service pids when a POD starts.
|
|
|
|
Stale Apache2 pids will prevent Apache2 from starting and will leave
|
|
the POD in a crashed state.
|
|
|
|
Note: the pid file is somewhat confusingly called
|
|
/var/run/httpd/httpd.pid and /var/run/apache2 is just a symlink to
|
|
/var/run/httpd.
|
|
|
|
This is loosely based off the in-review upstream commit at
|
|
https://review.openstack.org/#/c/619747
|
|
|
|
Signed-off-by: Robert Church <robert.church@windriver.com>
|
|
---
|
|
ceilometer/templates/bin/_ceilometer-api.sh.tpl | 3 +++
|
|
keystone/templates/bin/_keystone-api.sh.tpl | 6 ++----
|
|
nova/templates/bin/_nova-placement-api.sh.tpl | 3 +++
|
|
3 files changed, 8 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/ceilometer/templates/bin/_ceilometer-api.sh.tpl b/ceilometer/templates/bin/_ceilometer-api.sh.tpl
|
|
index cdb02f79..392873c7 100644
|
|
--- a/ceilometer/templates/bin/_ceilometer-api.sh.tpl
|
|
+++ b/ceilometer/templates/bin/_ceilometer-api.sh.tpl
|
|
@@ -25,6 +25,9 @@ function start () {
|
|
source /etc/apache2/envvars
|
|
fi
|
|
|
|
+ # Get rid of stale pid file if present.
|
|
+ rm -f /var/run/apache2/*.pid
|
|
+
|
|
# Start Apache2
|
|
exec apache2 -DFOREGROUND
|
|
}
|
|
diff --git a/keystone/templates/bin/_keystone-api.sh.tpl b/keystone/templates/bin/_keystone-api.sh.tpl
|
|
index 2f127b94..11726809 100644
|
|
--- a/keystone/templates/bin/_keystone-api.sh.tpl
|
|
+++ b/keystone/templates/bin/_keystone-api.sh.tpl
|
|
@@ -31,10 +31,8 @@ function start () {
|
|
source /etc/apache2/envvars
|
|
fi
|
|
|
|
- if [ -f /var/run/apache2/apache2.pid ]; then
|
|
- # Remove the stale pid for debian/ubuntu images
|
|
- rm -f /var/run/apache2/apache2.pid
|
|
- fi
|
|
+ # Get rid of stale pid, shared memory segment and wsgi sock files if present.
|
|
+ rm -f /var/run/apache2/*
|
|
|
|
# Start Apache2
|
|
exec apache2 -DFOREGROUND
|
|
diff --git a/nova/templates/bin/_nova-placement-api.sh.tpl b/nova/templates/bin/_nova-placement-api.sh.tpl
|
|
index f9c8d7c5..b4bcf178 100644
|
|
--- a/nova/templates/bin/_nova-placement-api.sh.tpl
|
|
+++ b/nova/templates/bin/_nova-placement-api.sh.tpl
|
|
@@ -28,6 +28,9 @@ function start () {
|
|
source /etc/apache2/envvars
|
|
fi
|
|
|
|
+ # Get rid of stale pid file if present.
|
|
+ rm -f /var/run/apache2/*.pid
|
|
+
|
|
# Start Apache2
|
|
exec apache2 -DFOREGROUND
|
|
}
|
|
--
|
|
2.16.5
|
|
|