mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 14:10:49 -05:00
* fix(rds): keep the control plane working with no Docker daemon CreateDBInstance and CreateDBCluster write the record and reach available when no Docker daemon is reachable, instead of failing with a raw socket error. The backing container is retried by reboot and the RDS Data API, so it starts once a daemon appears. Delete no longer touches Docker for a record that never had a container, and restore keeps such records available on their recorded proxy ports. Ported from lex00/floci#38, the RDS half left out of #2975. * fix(rds): keep created-container identities and roll back a failed proxy start on retry The retry updated the record before the auth proxy was up, so a proxy failure left it pointing at a container nothing listened on and later retries returned early. The proxy now starts from the handle first and the record is written only after both halves are up. A proxy failure stops the container. tryStart no longer drops a retained cleanup identity that names a created container. The next retry cleans it up before starting once the daemon is back. Only an identity carrying the fixed container name, from a start that failed before Docker created anything, is dropped while the daemon is unreachable. * fix(rds): retry a container cleanup that failed before the runtime starts again A stop that failed after the auth proxy did not start left the live handle and the runtime claim retained, and nothing retried that cleanup, so the next start for the runtime failed on the claim. The container manager now remembers a runtime whose cleanup failed, from a failed start or a failed stop alike, and cleans it up before that runtime starts again. A live handle with no pending cleanup is left alone, so a concurrent duplicate start is still rejected.