crash during startup when using GRsec kernel

Bug #2089921 reported by Damien RANNOU
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo.messaging
New
Undecided
Unassigned

Bug Description

After updating oslo_messaging (release 2024.1) we discover an issue linked to patch #2078935

During startup, oslo_messaging is now opening /prox/../stat file
On our deployment it's crashing with the stack trace

│ File "/var/lib/kolla/venv/lib/python3.10/site-packages/oslo_messaging/_drivers/impl_rabbit.py", line 1741, in __init__ │
│ super(RabbitDriver, self).__init__( │
│ File "/var/lib/kolla/venv/lib/python3.10/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 684, in __init__ │
│ self._q_manager = QManager( │
│ File "/var/lib/kolla/venv/lib/python3.10/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 73, in __init__ │
│ with open(f'/proc/{self.pg}/stat', 'r') as f: │
│ FileNotFoundError: [Errno 2] No such file or directory: '/proc/1/stat'

This is linked to the fact that we are using GRsec kernel, that is limiting the visibility to non root use to proc list

()[root@nova-api-696c6fbd46-x5zx4 /]# cat /proc/1/stat
1 (bash) S 0 1 1 0 -1 4194560 1189 117 0 0 0 2 0 0 20 0 1 0 657312 7688192 930 18446744073709551615 94252618788864 94252619702125 140735019266624 0 0 0 65536 4 65538 0 0 0 17 21 0 0 0 0 0 94252619946640 94252619994704 94253076189184 140735019268136 140735019268164 140735019268164 140735019274218 0
()[root@nova-api-696c6fbd46-x5zx4 /]# su - nova --sh /bin/bash
()[nova@nova-api-696c6fbd46-x5zx4 ~]$ cat /proc/1/stat
cat: /proc/1/stat: No such file or directory

description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.