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

Bug: stacker check does not tell which missing os packages to install #621

Open
raharper opened this issue May 14, 2024 · 0 comments
Open
Labels

Comments

@raharper
Copy link
Contributor

stacker version

v1.0.0-rc14

Describe the bug

running stacker check on an Jammy azure instance doesn't tell me what packages to install.

After the initial sudo apt -y install lxc-dev which covers lxc packages we need, check then fails like so:

$ stacker --debug check
stacker version v1.0.0-rc14-d3f8ebd
usernsexec-ing [u 0 1000 1 1 100001 65535 g 0 1000 1 1 100001 65535 -- /usr/local/bin/stacker --internal-userns --debug check]
bad exit status from child: 1
child read(): No error information
error: exit status 1
stackerbuild.io/stacker/pkg/container.MaybeRunInNamespace
        /stacker-tree/pkg/container/userns.go:102
main.main.func3
        /stacker-tree/cmd/stacker/main.go:324
github.com/urfave/cli/v2.(*Command).Run
        /stacker-tree/.build/gopath/pkg/mod/github.com/urfave/cli/[email protected]/command.go:213
github.com/urfave/cli/v2.(*App).RunContext
        /stacker-tree/.build/gopath/pkg/mod/github.com/urfave/cli/[email protected]/app.go:332
github.com/urfave/cli/v2.(*App).Run
        /stacker-tree/.build/gopath/pkg/mod/github.com/urfave/cli/[email protected]/app.go:309
main.main
        /stacker-tree/cmd/stacker/main.go:329
runtime.main
        /usr/lib/go/src/runtime/proc.go:267
runtime.goexit
        /usr/lib/go/src/runtime/asm_amd64.s:1650

Only after looking at the stacker check code, do I see the next check is for the newuidmap binary
Once I installed newuidmap binary from the uidmap package, all is well.

Definitely should make this more obvious at least on Ubuntu/Debian

To reproduce

  1. launch a jammy ubuntu server instance (vm, cloud, etc)
  2. download stacker v1.0.0-rc14
  3. run stacker check

Expected behavior

stacker check should report the packages that need to be installed when they are missing

Screenshots

No response

Additional context

No response

@raharper raharper added the bug label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant