Bug 710088

Summary: Required package for nss-db-gen script; should be installed with pulp/rhui-tools
Product: Red Hat Update Infrastructure for Cloud Providers Reporter: Sachin Ghai <sghai>
Component: ToolsAssignee: Jay Dobies <jason.dobies>
Status: CLOSED CURRENTRELEASE QA Contact: wes hayutin <whayutin>
Severity: high Docs Contact:
Priority: unspecified    
Version: 2.0CC: kbidarka, sghai, tsanders
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-31 12:53:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 711223    

Description Sachin Ghai 2011-06-02 12:40:11 UTC
Description of problem:
nss-db-gen script using certutil command internally to generate certs. And for certutil command, nss-tools-3.12.9-9.el6.x86_64 package is required.

So this package should be installed either with "pulp" packages or "rh-rhui-tools" packages. 

Version-Release number of selected component (if applicable):
pulp 0.185
rh-rhui-tools 2.0.26

How reproducible:
always

Steps to Reproduce:
1. Run nss-db-gen script after installing rhui build.

  
Actual results:
Creating BROKER certificate:
/usr/bin/nss-db-gen: line 107: certutil: command not found
/usr/bin/nss-db-gen: line 110: certutil: command not found
/usr/bin/nss-db-gen: line 113: certutil: command not found
Broker certificate created.
/usr/bin/nss-db-gen: line 123: certutil: command not found

Creating CLIENT certificate:
/usr/bin/nss-db-gen: line 129: certutil: command not found
/usr/bin/nss-db-gen: line 132: certutil: command not found
/usr/bin/nss-db-gen: line 135: certutil: command not found


Expected results:
script should not throw any error

Additional info:

[root@dhcp201-225 certs]# nss-db-gen 

Working in: /tmp/tmp12299


Please specify a directory into which the created NSS database
and associated certificates will be installed.

Enter a directory [/tmp/rhua/qpid]:/root/certs
/root/certs

Enter NSS database password:

Password file created.
/usr/bin/nss-db-gen: line 79: certutil: command not found

Database created.

Creating CA certificate:
/usr/bin/nss-db-gen: line 92: certutil: command not found
/usr/bin/nss-db-gen: line 95: certutil: command not found
CA created

Creating BROKER certificate:
/usr/bin/nss-db-gen: line 107: certutil: command not found
/usr/bin/nss-db-gen: line 110: certutil: command not found
/usr/bin/nss-db-gen: line 113: certutil: command not found
Broker certificate created.
/usr/bin/nss-db-gen: line 123: certutil: command not found

Creating CLIENT certificate:
/usr/bin/nss-db-gen: line 129: certutil: command not found
/usr/bin/nss-db-gen: line 132: certutil: command not found
/usr/bin/nss-db-gen: line 135: certutil: command not found
Client certificate created.
/usr/bin/nss-db-gen: line 139: pk12util: command not found
Error opening input file client.p12
client.p12: No such file or directory
Client key & certficate exported
cp: cannot stat `/tmp/tmp12299/*.crt': No such file or directory
cp: cannot stat `/tmp/tmp12299/*.db': No such file or directory

Artifacts copied to: /root/certs.

Comment 1 Jay Dobies 2011-06-02 12:53:06 UTC
commit 950ae73d0cccd3d2d19529c72f95a7b83b13055b
Author: Jay Dobies <jason.dobies>
Date:   Thu Jun 2 08:52:02 2011 -0400

    Added nss-tools as a requirement for the nss-db-gen script

rhui-2.0/tools/rh-rhui-tools.spec

Comment 2 wes hayutin 2011-06-06 21:15:33 UTC
added to rhui-20 tracker

Comment 3 Sachin Ghai 2011-06-15 14:55:59 UTC
Verified in rhui build 2.0.30. This nss-tools package is installed as a dependency. So moving this to verified.


-------------------------------------
Installed:
  rh-rhui-tools.noarch 0:2.0.30-1.el6                                                                                                                                                                          

Dependency Installed:
  elfutils.x86_64 0:0.152-1.el6                        elfutils-libs.x86_64 0:0.152-1.el6                               file.x86_64 0:5.04-6.el6                 gdb.x86_64 0:7.2-48.el6                    
  gofer.noarch 0:0.39-1.el6                            nss-tools.x86_64 0:3.12.9-9.el6                                  patch.x86_64 0:2.6-6.el6                 pkgconfig.x86_64 1:0.23-9.1.el6            
  pulp-client.noarch 0:0.0.190-1.el6                   pulp-common.noarch 0:0.0.190-1.el6                               python-gofer.noarch 0:0.39-1.el6         python-isodate.noarch 0:0.4.4-2.el6        
  python-qpid.noarch 0:0.10-1.el6                      python-simplejson.x86_64 0:2.0.9-3.1.el6                         rpm-build.x86_64 0:4.8.0-16.el6          unzip.x86_64 0:6.0-1.el6                   
  xz.x86_64 0:4.999.9-0.3.beta.20091007git.el6         xz-lzma-compat.x86_64 0:4.999.9-0.3.beta.20091007git.el6        

Updated:
  curl.x86_64 0:7.19.7-26.el6                                                                                                                                                                                  

Dependency Updated:
  elfutils-libelf.x86_64 0:0.152-1.el6      file-libs.x86_64 0:5.04-6.el6      libcurl.x86_64 0:7.19.7-26.el6  nspr.x86_64 0:4.8.7-1.el6  nss.x86_64 0:3.12.9-9.el6       nss-softokn.x86_64 0:3.12.9-3.el6 
  nss-softokn-freebl.x86_64 0:3.12.9-3.el6  nss-sysinit.x86_64 0:3.12.9-9.el6  nss-util.x86_64 0:3.12.9-1.el6  rpm.x86_64 0:4.8.0-16.el6  rpm-libs.x86_64 0:4.8.0-16.el6  rpm-python.x86_64 0:4.8.0-16.el6  

Complete!

Comment 4 wes hayutin 2011-08-01 21:39:28 UTC
moving to release pending

Comment 5 wes hayutin 2012-05-31 12:53:58 UTC
closing out, product released