gravitational / teleport

The easiest, and most secure way to access and protect all of your infrastructure.
https://goteleport.com
GNU Affero General Public License v3.0
17.33k stars 1.74k forks source link

`TestBot_Run_CARotation` flakiness #14471

Open nklaassen opened 2 years ago

nklaassen commented 2 years ago

Failure

Link(s) to logs

Relevant snippet

=== CONT  TestBot_Run_CARotation
    tbot_test.go:86: teleport process did not instantiate in 10 seconds
2022-07-14T14:59:15Z INFO             Shutting down long running test processes.. tbot/tbot_test.go:140
2022-07-14T14:59:15Z INFO [AUDIT]     role.created cluster_name:02b75d1401d6 code:T9000I ei:0 event:role.created expires:0001-01-01T00:00:00Z name:db-role time:2022-07-14T14:59:15.484Z uid:5080872e-24e8-45de-b50b-0e92a1c142df user:273f7c04-d92b-4a3a-a3c9-3ba85dba808d.02b75d1401d6 events/emitter.go:263
2022-07-14T14:59:15Z WARN [PROC:4]    Failed to write Admin identity: disk I/O error. pid:53002.4 service/connect.go:648
    tbot_test.go:80: 
            Error Trace:    tbot_test.go:80
                                        asm_amd64.s:1571
            Error:          Received unexpected error:
                            initialization failed
                                database is in readonly mode
            Test:           TestBot_Run_CARotation
--- FAIL: TestBot_Run_CARotation (10.06s)
strideynet commented 2 years ago

Oerr thanks for raising this. I'll try and take a look tonight or tomorrow.

ibeckermayer commented 1 year ago

A new error on this one:

            Test:           TestBot_Run_CARotation
                            can only switch to phase update_clients from init, current phase is 
            Error:          Received unexpected error:
                                        /workspace/lib/tbot/tbot_test.go:177
            Error Trace:    /workspace/lib/tbot/tbot_test.go:59
GavinFrazar commented 1 year ago

A new error on this one:

          Test:           TestBot_Run_CARotation
                          can only switch to phase update_clients from init, current phase is 
          Error:          Received unexpected error:
                                      /workspace/lib/tbot/tbot_test.go:177
          Error Trace:    /workspace/lib/tbot/tbot_test.go:59

Got the same failure today

zmb3 commented 1 year ago

https://console.cloud.google.com/cloud-build/builds;region=global/d9879abe-a8a5-4089-be03-8bd29b254ef9;step=0?project=ci-account

ibeckermayer commented 1 year ago

https://console.cloud.google.com/cloud-build/builds/887d9ac4-3204-40fd-b340-b61500c5739c?project=ci-account

ibeckermayer commented 1 year ago

https://console.cloud.google.com/cloud-build/builds/82df7966-5310-4c28-ac60-8d1afe20abd3?project=ci-account

r0mant commented 1 year ago

@jakule Was fix test fixed? Just hit it on v11: https://github.com/gravitational/teleport/actions/runs/3989701570/jobs/6842456228. If we disabled it in master/v12, should we disable it in v11 as well until we can get a proper fix in?