Bug 1424812 - lorax fails to init nss when calling rpm
Summary: lorax fails to init nss when calling rpm
Keywords:
Status: CLOSED DUPLICATE of bug 1420523
Alias: None
Product: Fedora
Classification: Fedora
Component: nss
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: nss-nspr-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-02-19 15:48 UTC by Kevin Fenzi
Modified: 2017-02-21 17:25 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-02-21 17:25:56 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Kevin Fenzi 2017-02-19 15:48:12 UTC
Recent rawhide composes have been failing with: 

https://koji.fedoraproject.org/koji/taskinfo?taskID=17946301

https://kojipkgs.fedoraproject.org//work/tasks/6301/17946301/runroot.log

...
(734/734) iwl105-firmware-18.168.6.1-71.fc26.noarch
2017-02-19 06:55:24,122: Performing post-installation setup tasks
Performing post-installation setup tasks
Failed to connect to bus: No such file or directory
2017-02-19 06:56:26,382: writing .buildstamp file
writing .buildstamp file
2017-02-19 06:56:29,655: doing post-install configuration
doing post-install configuration
2017-02-19 06:56:29,679: running runtime-postinstall.tmpl
running runtime-postinstall.tmpl
2017-02-19 06:56:29,837: command output:
error: Failed to initialize NSS library

command output:
error: Failed to initialize NSS library

2017-02-19 06:56:29,837: command returned failure (1)
command returned failure (1)
2017-02-19 06:56:29,837: template command error in runtime-postinstall.tmpl:
template command error in runtime-postinstall.tmpl:
2017-02-19 06:56:29,837:   runcmd chroot /var/tmp/lorax.k8v4ygmq/installtree /bin/rpm -qa --pipe tee /root/lorax-packages.log
  runcmd chroot /var/tmp/lorax.k8v4ygmq/installtree /bin/rpm -qa --pipe tee /root/lorax-packages.log
2017-02-19 06:56:29,839:   subprocess.CalledProcessError: Command '['chroot', '/var/tmp/lorax.k8v4ygmq/installtree', '/bin/rpm', '-qa', '--pipe', 'tee /root/lorax-packages.log']' returned non-zero exit status 1.
  subprocess.CalledProcessError: Command '['chroot', '/var/tmp/lorax.k8v4ygmq/installtree', '/bin/rpm', '-qa', '--pipe', 'tee /root/lorax-packages.log']' returned non-zero exit status 1.
Traceback (most recent call last):
  File "/usr/sbin/lorax", line 273, in <module>
    main()
  File "/usr/sbin/lorax", line 133, in main
    remove_temp=True, verify=opts.verify)
  File "/usr/lib/python3.6/site-packages/pylorax/__init__.py", line 292, in run
    rb.postinstall()
  File "/usr/lib/python3.6/site-packages/pylorax/treebuilder.py", line 145, in postinstall
    self._runner.run("runtime-postinstall.tmpl", configdir=configdir_path)
  File "/usr/lib/python3.6/site-packages/pylorax/ltmpl.py", line 220, in run
    self._run(commands)
  File "/usr/lib/python3.6/site-packages/pylorax/ltmpl.py", line 239, in _run
    f(*args)
  File "/usr/lib/python3.6/site-packages/pylorax/ltmpl.py", line 515, in runcmd
    stdout = runcmd_output(cmd)
  File "/usr/lib/python3.6/site-packages/pylorax/executils.py", line 347, in runcmd_output
    return execWithCapture(cmd[0], cmd[1:], **kwargs)
  File "/usr/lib/python3.6/site-packages/pylorax/executils.py", line 249, in execWithCapture
    reset_handlers=reset_handlers, reset_lang=reset_lang)[1]
  File "/usr/lib/python3.6/site-packages/pylorax/executils.py", line 201, in _run_program
    raise subprocess.CalledProcessError(proc.returncode, argv, output)
subprocess.CalledProcessError: Command '['chroot', '/var/tmp/lorax.k8v4ygmq/installtree', '/bin/rpm', '-qa', '--pipe', 'tee /root/lorax-packages.log']' returned non-zero exit status 1.

Comment 1 Kevin Fenzi 2017-02-19 23:27:14 UTC
Looks like this happened with nss-3.29.0-3.fc26 (and related nss-util / nss-softokn) and they were untagged and things started working again. 

So, I have untagged nss-3.29.1-2.fc26 nss-util-3.29.1-2.fc26 nss-softokn-3.29.1-2.fc26 and we can see if rawhide composes tonight. 

This may however still be a rpm or lorax issue that they are initting nss incorrectly or whatever.

Comment 2 Adam Williamson 2017-02-20 02:22:22 UTC
Yeah, Dennis untagged nss 3.29 when we first started encountering this.

Comment 3 Kevin Fenzi 2017-02-20 16:29:50 UTC
This got us past the nss issue, and on to another one. ;( 

Fired another rawhide off a while ago.

I'm going to move this to nss for comment.

Comment 4 Kai Engert (:kaie) (inactive account) 2017-02-21 16:07:34 UTC
Should this be marked a duplicate of bug 1420523 ?

The issue is that /dev/urandom isn't available in the chroot environemnt that lorax uses. lorax should be changed to mount /dev

Comment 5 Kevin Fenzi 2017-02-21 17:25:56 UTC
Yep. It's the same issue...

*** This bug has been marked as a duplicate of bug 1420523 ***


Note You need to log in before you can comment on or make changes to this bug.