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

v0.8.1 does not run under bare ubi8/ubi #220

Closed
2 tasks done
Nuru opened this issue Feb 21, 2022 · 1 comment · Fixed by #221
Closed
2 tasks done

v0.8.1 does not run under bare ubi8/ubi #220

Nuru opened this issue Feb 21, 2022 · 1 comment · Fixed by #221
Assignees
Labels
bug Something isn't working

Comments

@Nuru
Copy link

Nuru commented Feb 21, 2022

What happened?

Running in Docker container registry.access.redhat.com/ubi8/ubi (described here):

$ ls -l /usr/bin/rbac-lookup 
-rwxr-xr-x 1 root root 29999104 Feb 21 03:38 /usr/bin/rbac-lookup
$ /usr/bin/rbac-lookup
bash: /usr/bin/rbac-lookup: No such file or directory

This is almost certainly caused by enabing CGO in #213

What did you expect to happen?

$ rbac-lookup 
Error getting Kubernetes config: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable

How can we reproduce this?

$ docker run --rm -it registry.access.redhat.com/ubi8/ubi bash
[root@758dbf441bb8 /]# curl -sSL https://github.com/FairwindsOps/rbac-lookup/releases/download/v0.8.1/rbac-lookup_0.8.1_Linux_x86_64.tar.gz | tar -xz
[root@758dbf441bb8 /]# ls -l ./rbac-lookup 
-rwxr-xr-x 1 root root 29999104 Feb 10 20:12 ./rbac-lookup
[root@758dbf441bb8 /]# ./rbac-lookup 
bash: ./rbac-lookup: No such file or directory
[root@758dbf441bb8 /]# 

version

0.8.1

Search

  • I did search for other open and closed issues before opening this.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Additional context

CGO=enabled requires dependent libraries to already be installed on the target machine. Obviously some library is missing in Red Hat.

Note that CGO was enabled in #213 to fix #206 but it did not, in fact, fix #206

@Nuru Nuru added bug Something isn't working triage This bug needs triage labels Feb 21, 2022
@sudermanjr sudermanjr removed the triage This bug needs triage label Feb 21, 2022
@sudermanjr
Copy link
Member

I was able to reproduce this, and I can validate that re-enabling CGO does in fact fix the issue. I think reverting that change might be the correct solution until we have further info on #206 and how to fix the DNS issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants