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

chroot, rpm -qa error: Failed to initialize NSS library #4959

Closed
markprez opened this issue Mar 16, 2018 · 5 comments
Closed

chroot, rpm -qa error: Failed to initialize NSS library #4959

markprez opened this issue Mar 16, 2018 · 5 comments

Comments

@markprez
Copy link

markprez commented Mar 16, 2018

Version 2.13.11 (git commit feaa153, built Fri Mar 9 06:15:49 EST 2018)

I started seeing the following message when running rpm commands in a diskless rootimg built with Pegas 1.1 around snapshot4 and the latest xcat.

[root@csm01 ~]# chroot /install/netboot/rhels7.5-alternate/ppc64le/rhels7.5-RC2.396.06.MOFEDGA.1811c.IST.DL/rootimg
[root@csm01 /]# rpm -qa
error: Failed to initialize NSS library

Now on csm01 (c685f1n02) I have a new xcat setup and a Pegas1.1 4.14.0-46.el7a.ppc64le kernel, genimage completes successfully but rpm in chroot fails. This worked on earlier levels of xcat and pegas.

To get the rpm info on the root image you can run:

rpm --root /install/netboot/rhels7.5-alternate/ppc64le/rhels7.5-RC2.396.06.MOFEDGA.1811c.IST.DL/rootimg  -qa  

Also, rpm commands work on the booted image.

@immarvin
Copy link
Contributor

seems there is due to no /dev/urandom in the chrooted env, we are looking for the way to fix

@immarvin
Copy link
Contributor

fixed in #4967

@immarvin
Copy link
Contributor

hi @markprez , the fix has been pushed into master branch, you can get the latest development build and try

immarvin added a commit to immarvin/xcat-core that referenced this issue Mar 26, 2018
robin2008 pushed a commit that referenced this issue Mar 26, 2018
… (#5011)

* move use_devurandom before package instllation:fix issue #4959
@zet809 zet809 added the sprint2 label Mar 26, 2018
@robin2008
Copy link
Member

@hu-weihua could you help to verify it, it is the same issue as the one you find.

@hu-weihua
Copy link

Have been verified in automation environment. thanks @immarvin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants