Commit a764f6b
committed
fix: prevent hypervisor socket deletion during CAA rolling restart
During a rolling update, the old and new CAA pods share the same hostPath
(/run/peerpod/). When the old pod's ttrpc.Shutdown() calls listener.Close(),
it unlinks the socket file that the new pod already created, leaving the
shim unable to connect.
Set SetUnlinkOnClose(false) on the Unix listener so the old pod's shutdown
does not remove the socket inode. The new pod's startup already handles
cleanup via os.RemoveAll before creating a fresh socket.
Signed-off-by: Thejas N <thn@redhat.com>1 parent 10f23af commit a764f6b
2 files changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
178 | | - | |
| 177 | + | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
0 commit comments