-
Notifications
You must be signed in to change notification settings - Fork 18k
x/build/cmd/gomote: ssh to linux-ppc64 buildlets uses wrong username #34739
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
Comments
/cc @bradfitz |
An easy fix is to adjust the SSHUsername field from "debian" to "root", but the bigger problem is these machines are ancient (Debian jessie) and don't use Docker to give users a fresh environment per build, so giving "root" to everybody means they can mess up machines. I'll do the quick fix for now, but we should update these to from jessie to buster (via stretch) and use x/build/cmd/rundockerbuildlet on them. /cc @toothrot |
Change https://golang.org/cl/200377 mentions this issue: |
Updates golang/go#34739 Change-Id: I9e9bcf66a4e3939a68178b344672a1bab2698bb4 Reviewed-on: https://go-review.googlesource.com/c/build/+/200377 Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Deployed. |
And verified it works. I'll close this for now and open a new bug about rundockerbuildlet. |
@bradfitz do I need to change the username for the POWER9 builder too? |
Looks like it. The buildlet on the power9 one is running as root. |
OK, I'll submit a CL. |
Change https://golang.org/cl/200398 mentions this issue: |
Updates golang/go#34739 Change-Id: I6499ff6a0e1885fad3a5f5ba7c1fa4e0113e716c Reviewed-on: https://go-review.googlesource.com/c/build/+/200398 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Updates golang/go#34739 Change-Id: I9e9bcf66a4e3939a68178b344672a1bab2698bb4 Reviewed-on: https://go-review.googlesource.com/c/build/+/200377 Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Updates golang/go#34739 Change-Id: I6499ff6a0e1885fad3a5f5ba7c1fa4e0113e716c Reviewed-on: https://go-review.googlesource.com/c/build/+/200398 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Created a linux-pp64-buildlet gomote, pushed my ROOT, and tried to build. Build failed with:
go install _/tmp/workdir-host-linux-ppc64-osu/go/src/cmd/dist: open cmd/dist/dist: permission denied
Investigating, the owner of WORDIR/go was
root
, notdebian
which is who gomote ssh apparently logs you in as.The text was updated successfully, but these errors were encountered: