Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestCluster_Bootstrap and TestCluster_RenameNode are flaky #14455

Open
gibmat opened this issue Nov 13, 2024 · 0 comments
Open

TestCluster_Bootstrap and TestCluster_RenameNode are flaky #14455

gibmat opened this issue Nov 13, 2024 · 0 comments

Comments

@gibmat
Copy link
Contributor

gibmat commented Nov 13, 2024

Required information

  • Distribution: Debian
  • Distribution version: sid
  • Versions:
    • Kernel version: 6.11.5-1
    • LXC version: 6.0.2-1
    • LXD version: 5.0.2+git20231211.1364ae4-7
    • dqlite version: 1.18.0-1
    • golang-github-canonical-go-dqlite version: 2.0.0-1

Issue description

The tests TestCluster_Bootstrap and TestCluster_RenameNode have become flaky and fail with somewhat regular frequency. Nothing's changed in the LXD source, since Debian's packaging has been frozen on an older LTS snapshot. However, looking at git history for the tests, nothing has really changed in several years.

Failures are easiest to see in the reproducible build logs at https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/lxd.html.

The failures were also seen with older versions of dqlite/go-dqlite, for example in this build: https://people.debian.org/~sanvila/build-logs/ftbfs-future/lxd_5.0.2+git20231211.1364ae4-5_amd64-20240812T181239.605Z.

=== RUN   TestCluster_Bootstrap
    api_cluster_test.go:34: 
        	Error Trace:	/build/reproducible-path/lxd-5.0.2+git20231211.1364ae4/_build/src/github.com/canonical/lxd/lxd/api_cluster_test.go:34
        	Error:      	Received unexpected error:
        	            	Cluster database initialization failed: Failed to begin transaction: failed to create dqlite connection: no available dqlite leader server found
        	Test:       	TestCluster_Bootstrap
--- FAIL: TestCluster_Bootstrap (11.39s)
=== RUN   TestCluster_Get
--- PASS: TestCluster_Get (0.48s)
=== RUN   TestCluster_RenameNode
    api_cluster_test.go:71: 
        	Error Trace:	/build/reproducible-path/lxd-5.0.2+git20231211.1364ae4/_build/src/github.com/canonical/lxd/lxd/api_cluster_test.go:71
        	Error:      	Received unexpected error:
        	            	Cluster database initialization failed: Failed to begin transaction: failed to create dqlite connection: no available dqlite leader server found
        	Test:       	TestCluster_RenameNode
--- FAIL: TestCluster_RenameNode (11.50s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant