Status of cluster is not updated correctly

Description

Hi,

I can see strange behaviour in our PXC operator in case of HaProxy deployment.  It can't set correct status:

❯ kubectl get pxc NAME ENDPOINT STATUS PXC PROXYSQL HAPROXY AGE haproxy haproxy-haproxy.haproxy-19743 initializing 3 3 9m24s

Everything is ok with cluster but we see  'initializing' state. The root of the issue is that in haproxy test we test a lot of different cases  e.g. kill current primary to be sure that all haproxy pods will forward traffic to a new one.  And it seems from time to time the connection to DB from operator hangs and the status can't be updated. So, we need to set timeout for such connections to fix it.

 

Environment

None

Smart Checklist

Activity

Show:

Slava Sarzhan November 18, 2021 at 7:56 AM

The issue was fixed.

Done

Details

Assignee

Reporter

Fix versions

Affects versions

Priority

Smart Checklist

Created November 16, 2021 at 1:58 PM
Updated March 5, 2024 at 5:43 PM
Resolved November 24, 2021 at 4:24 PM

Flag notifications