From d3a4eedb8a14b4e6ef10ad0b3f802a43f81541e9 Mon Sep 17 00:00:00 2001 From: Arnaud Morin Date: Mon, 3 Feb 2025 15:30:14 +0100 Subject: [PATCH] Fixed: use self.start_time in QManager shm In a previous patch, start_time was introduced to take care of containerized services. Unfortunately, a bug has been introduced during this change. The start_time written in /dev/shm was using the previous start_time written in the file instead of the new one computed at boot of the service. Change-Id: I8a31c0c38b42f333bba92159332e7b3b79d70854 Signed-off-by: Arnaud Morin --- oslo_messaging/_drivers/amqpdriver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oslo_messaging/_drivers/amqpdriver.py b/oslo_messaging/_drivers/amqpdriver.py index 44d97a99b..c91e5db90 100644 --- a/oslo_messaging/_drivers/amqpdriver.py +++ b/oslo_messaging/_drivers/amqpdriver.py @@ -104,7 +104,7 @@ class QManager: # Write the new counter with open(self.file_name, 'w') as f: f.write(str(self.pg) + ':' + str(counter) + ':' + - str(start_time)) + str(self.start_time)) return counter counter = read_from_shm()