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

set-ssh-password fails when building using container image built using custom base image (Photon) #1657

Open
sriramandev opened this issue Dec 16, 2024 · 1 comment
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@sriramandev
Copy link
Contributor

Environment

  • Make target: make build-node-ova-vsphere-photon-5
  • **Run using container image? (Y/N): Yes

What steps did you take and what happened?

Create a custom Dockerfile(with base docker image as Photon-5 which packages IB code(this is similar to Dockerfile present in the repo with difference in base image and addition of custom playbook roles).
When running the build, generation of random password will fail. This is because Photon uses toybox grep rather than GNU grep. Options like -P and -o are not available in OS like Photon (which uses toybox toolkit), Alpine Linux (which I guess uses busybox toolkit) and even Mac(does not have -P).

What did you expect to happen?

Successful build

Relevant log output

Log Output
+ IB_OVFTOOL=1
+ ANSIBLE_TIMEOUT=180
+ IB_OVFTOOL_ARGS=--allowExtraConfig
+ make build-node-ova-vsphere-photon-5
grep: Unknown option 'Po' (see "grep --help")
make: *** [Makefile:192: set-ssh-password] Error 2

/kind bug

@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Dec 16, 2024
@sriramandev
Copy link
Contributor Author

/assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants