oslo.messaging/oslo_messaging/_drivers
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
..
amqp1_driver amqp1: fix race when reconnecting 2021-11-09 15:59:54 -05:00
kafka_driver Add support for kafka SSL autentication 2020-01-16 23:26:53 +01:00
__init__.py Fixed a couple of pep8 errors/warnings 2016-01-25 15:00:49 +08:00
amqp.py Adding support for rabbitmq quorum queues 2022-02-05 07:12:49 +00:00
amqpdriver.py Fix queue_manager in a containerized environment 2024-10-15 01:36:40 +00:00
base.py add min of 1 to rpc_conn_pool_size 2020-10-13 12:44:30 +01:00
common.py [rabbit] use retry parameters during notification sending 2022-01-12 12:22:55 +01:00
impl_amqp1.py Deprecate the amqp1 driver and Remove qpid functional tests 2022-10-18 11:27:46 +02:00
impl_fake.py Fix clearing of the fake RPC Exchange 2023-11-15 12:26:47 +01:00
impl_kafka.py kafka: Fix invalid hostaddr format for IPv6 address 2024-03-27 15:08:40 +00:00
impl_rabbit.py Reduce log level to DEBUG for new messages 2024-09-27 14:07:45 +09:00
pool.py [rabbit] use retry parameters during notification sending 2022-01-12 12:22:55 +01:00