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

Whole /home/abuild tree owned by root under osc shell --vm-type=kvm #1014

Open
jirislaby opened this issue Jul 16, 2024 · 0 comments
Open

Whole /home/abuild tree owned by root under osc shell --vm-type=kvm #1014

jirislaby opened this issue Jul 16, 2024 · 0 comments

Comments

@jirislaby
Copy link

jirislaby commented Jul 16, 2024

Not sure if this is a rpmbuild bug, osc's, or obs'…

When I build something (e.g. network/dpdk) in a VM:

osc build --root=/dev/shm/jslaby/xxvm  --no-verify --download-api-only --disable-debug -x vim -x vim-data -x strace --release 100  --ccache  --no-service --vm-type kvm --vm-disk=30000 --alternative-project  Kernel:HEAD QA

it can fail for some reason. Then I want to debug the failure inside the VM using osc shell:

osc shell --root=/dev/shm/jslaby/xxvm  --no-verify --download-api-only --disable-debug -x vim -x vim-data -x strace --release 100  --ccache  --no-service --vm-type kvm --vm-disk=30000 --alternative-project  Kernel:HEAD QA

But the whole tree under /home/abuild is:

drwxr-xr-x 3 root root 4096 Jul 16 04:40 /home/abuild

owned by root, so the build failure cannot be actually investigated properly. This didn't use to be the case some months ago.

SUSE Linux Enterprise Server 15 SP6
osc-1.8.3-150600.415.1.noarch

It's still owned by 399/abuild after osc build according to debugfs /dev/shm/jslaby/xxvm/img:

 261634   40755 (2)    399    399    4096 16-Jul-2024 08:24 abuild

As soon as /usr/bin/qemu-kvm of osc shell starts, it is reowned...

Note this is run:

obs-build/build

Line 1830 in 439fcc3

chown -hR "$ABUILD_UID:$ABUILD_GID" "$BUILD_ROOT$TOPDIR"

But has no effect (it is overridden later):

CHOWN2 399:399 //home/abuild/rpmbuild
    455   40755 (2)      0      0    4096 16-Jul-2024 08:47 rpmbuild
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