Bug 1204896

Summary: [doc] incorrect steps for Procedure 11.4. Updating Client Certificates
Product: Red Hat Satellite 5 Reporter: Pavel Studeník <pstudeni>
Component: Docs Installation GuideAssignee: Dan Macpherson <dmacpher>
Status: CLOSED CURRENTRELEASE QA Contact: Dan Macpherson <dmacpher>
Severity: unspecified Docs Contact:
Priority: high    
Version: 570CC: pstudeni
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-21 02:02:36 UTC Type: Bug
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: 1018166    

Description Pavel Studeník 2015-03-23 17:24:29 UTC
Description of problem:
look at web page https://access.redhat.com/documentation/en-US/Red_Hat_Satellite/5.7/html/Installation_Guide/ch11s03.html

title: Procedure 11.4. Updating Client Certificates

Actual results:
# ORG_ID=1
# for system in $(awk -F, "NR>1 { if (\$3 == $ORG_ID) print \$1 }" system-md5-certificates.csv); do systems="$systems $system"; done
# spacewalk-fips-tool -i -c -u admin -d 2014-12-01 14:00:00 -o /tmp/scheduled-installations.csv $systems

# spacewalk-fips-tool -i -c -u admin -d 2014-12-01 14:00:00 -o /tmp/scheduled-installations.csv $systems
-i and -c switches are mutually exclusive.
# echo $? 
1

and missing quotation marks for date 

 2014-12-01 14:00:00 -> "2014-12-01 14:00:00"

Expected results:
1. You need to run on satellite this script ( parametr -i )

# for system in $(awk -F, "NR>1 { if (\$3 == $ORG_ID) print \$1 }" system-md5-certificates.csv); do systems="$systems $system"; done
# spacewalk-fips-tool -i -u admin -d "2014-12-01 14:00:00" -o /tmp/scheduled-installations.csv $systems

2. On clients rhn_check -v (or wait when osad pick up event)

3. And finally  you run on satellite following command ( parametr -c )

# for system in $(awk -F, "NR>1 { if (\$3 == $ORG_ID) print \$1 }" system-md5-certificates.csv); do systems="$systems $system"; done
# spacewalk-fips-tool -c -u admin -d "2014-12-01 14:00:00" -o /tmp/scheduled-installations.csv $systems

Comment 2 Dan Macpherson 2015-08-13 05:23:42 UTC
Updated FIPS procedure:

https://access.redhat.com/documentation/en-US/Red_Hat_Satellite/5.7/html/Installation_Guide/ch11s03.html

Pavel, how do the instructions read now? Did I get the process correct? Is there anything else I should mention?

Comment 3 Pavel Studeník 2015-08-13 11:51:36 UTC
Hi, I checked it and it looks correct. Commands run without traceback and description of them is understandable.