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

docker buildx inspect --bootstrap can return inactive nodes #1935

Open
jedevc opened this issue Jul 12, 2023 · 0 comments
Open

docker buildx inspect --bootstrap can return inactive nodes #1935

jedevc opened this issue Jul 12, 2023 · 0 comments

Comments

@jedevc
Copy link
Collaborator

jedevc commented Jul 12, 2023

Found while working on #1934.

Version: github.com/docker/buildx 0.11.0 687feca9e8dcd1534ac4c026bc4db5a49de0dd6e

Reproducer:

$ docker buildx create --driver=remote --name dev tcp://localhost:1234
$ docker buildx inspect dev --bootstrap # then start a buildkit server on localhost:1234 in another terminal
[+] Building 0.0s (0/0)                                                                                                                                              
Name:          dev
Driver:        remote
Last Activity: 2023-07-05 09:56:56 +0000 UTC

Nodes:
Name:      dev0
Endpoint:  tcp://localhost:1234
Status:    inactive
Platforms: 

The expected output is instead:

$ docker buildx inspect dev --bootstrap
Name:          dev
Driver:        remote
Last Activity: 2023-07-05 09:56:56 +0000 UTC

Nodes:
Name:      dev0
Endpoint:  tcp://localhost:1234
Status:    running
Buildkit:  v0.12.0-rc1-4-g66a4b9421.m
Platforms: linux/amd64, linux/amd64/v2, linux/amd64/v3, linux/arm64, linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/mips64le, linux/mips64, linux/arm/v7, linux/arm/v6
Labels:
 org.mobyproject.buildkit.worker.executor:         oci
 org.mobyproject.buildkit.worker.hostname:         dc141ad6e142

The node is correctly bootstrapped (by waiting for it to be ready), but the output is incorrect and shows the builder as inactive.

This does appear to be slightly racy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant