Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
In the ubi8/ndoejs-12 container the following works:
npm install git+https://github.com/nodeshift/kube-service-bindings.git
In the ubi8/nodejs-14 container
Version-Release number of selected component (if applicable):
ubi8/nodejs-14
How reproducible: 100%
Steps to Reproduce:
1. podman run -i -t ubi8/nodejs-14 /bin/bash
2. npm install git+https://github.com/nodeshift/kube-service-bindings.git3.
Actual results:
ash-4.4$ npm install git+https://github.com/nodeshift/kube-service-bindings.git
npm WARN saveError ENOENT: no such file or directory, open '/opt/app-root/src/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/opt/app-root/src/package.json'
npm WARN src No description
npm WARN src No repository field.
npm WARN src No README data
npm WARN src No license field.
+ kube-service-bindings.1
updated 1 package and audited 1 package in 1.615s
found 0 vulnerabilities
bash-4.4$ exit
exit
[midawson@midawson ~]$ podman run -i -t ubi8/nodejs-14 /bin/bash
bash-4.4$ npm install git+https://github.com/nodeshift/kube-service-bindings.git
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno -2
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t https://github.com/nodeshift/kube-service-bindings.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /opt/app-root/src/.npm/_logs/2021-04-14T20_55_27_381Z-debug.log
Expected results:
package is installed successfully
Additional info:
Related to layering the ubi8/nodejs-14 on top of ubi8/s2i-core instead of ubi8/s2i-base - the `git` rpm package is not getting installed now and npm seems to be using it when building from a git repository.
Not sure if I should open another Bug or we can re-use this one. I think I've found another similar issue due to packages that were removed.
The OpenSSL headers no longer seem to be present so node-rdkafka still compiles, however when you run there is an error if you try to use an option that requires SSL. This will quite typically be the case for real-world usage.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (updated Application Stream container images), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2021:2621