oslo.messaging/oslo_messaging
Michal Arbet 5369e1ed7e Fix queue_manager in a containerized environment
This patch fixes the operation of queue_manager in a
containerized environment by adding an additional check
on the start_time in ticks since boot.
This way, we can detect a restart even when the PID remains
unchanged as it is ussual in containers, but the start_time is
different.

[1] https://www.man7.org/linux/man-pages//man5/proc_pid_stat.5.html

From man page above:

(22) starttime  %llu
    The time the process started after system boot.
    Before Linux 2.6, this value was expressed in
    jiffies.  Since Linux 2.6, the value is expressed
    in clock ticks (divide by sysconf(_SC_CLK_TCK)).

Closes-Bug: #2078935
Change-Id: I9e22433ec039ad6783593d9cb7fbe22c9090534e
(cherry picked from commit 6790f702fa)
(cherry picked from commit 09f808f538)
2024-10-15 01:36:40 +00:00
..
_drivers Fix queue_manager in a containerized environment 2024-10-15 01:36:40 +00:00
_metrics Bump bandit and make oslo.messaging compatible with latest rules 2023-05-17 11:06:34 +02:00
hacking Bump hacking (again) 2024-01-26 01:10:57 +09:00
notify Utilize the new RequestContext redacted_copy method 2024-01-16 12:08:20 -08:00
rpc Support overriding class for get_rpc_* helper functions 2023-01-23 08:40:37 +00:00
tests kafka: Fix invalid hostaddr format for IPv6 address 2024-03-27 15:08:40 +00:00
__init__.py Remove deprecated localcontext 2016-05-18 09:28:15 +02:00
_utils.py Disable greenthreads for RabbitDriver "listen" connections 2023-03-03 11:24:27 +01:00
conffixture.py Add Support For oslo.metrics 2021-06-08 22:22:37 +08:00
dispatcher.py Remove six usage 2020-05-11 10:21:58 +02:00
exceptions.py Add a new option to enforce the OpenSSL FIPS mode 2021-11-08 15:05:30 +01:00
opts.py Add a ping endpoint to RPC dispatcher 2020-08-18 15:09:29 +02:00
serializer.py Remove six usage 2020-05-11 10:21:58 +02:00
server.py Remove six usage 2020-05-11 10:21:58 +02:00
target.py Fixups to the inline documentation 2016-09-12 09:49:00 -04:00
transport.py Remove six usage 2020-05-11 10:21:58 +02:00
version.py pbr.version.VersionInfo needs package name (oslo.xyz and not oslo_xyz) 2017-02-06 12:49:23 -05:00