Bug 723990

Summary: Can not create replication package with ipa-replica-prepare
Product: Red Hat Enterprise Linux 6 Reporter: Jenny Severance <jgalipea>
Component: ipaAssignee: Rob Crittenden <rcritten>
Status: CLOSED ERRATA QA Contact: Chandrasekar Kannan <ckannan>
Severity: high Docs Contact:
Priority: high    
Version: 6.1CC: benl, dpal, nsoman
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-2.1.0-1.el6 Doc Type: Bug Fix
Doc Text:
Do not document
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 18:41:47 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:

Description Jenny Severance 2011-07-21 17:02:45 UTC
Description of problem:
# ipa-replica-prepare -p MYSECRET --ip-address=10.16.64.133 dell-pe2950-01.qe.lab.ipa
preparation of replica failed: local variable 'options' referenced before assignment
local variable 'options' referenced before assignment
  File "/usr/sbin/ipa-replica-prepare", line 460, in <module>
    main()

  File "/usr/sbin/ipa-replica-prepare", line 235, in main
    options, args = parse_options()

  File "/usr/sbin/ipa-replica-prepare", line 62, in parse_options
    options.setup_pkinit = False


# ipa-replica-prepare 
preparation of replica failed: local variable 'options' referenced before assignment
local variable 'options' referenced before assignment
  File "/usr/sbin/ipa-replica-prepare", line 460, in <module>
    main()

  File "/usr/sbin/ipa-replica-prepare", line 235, in main
    options, args = parse_options()

  File "/usr/sbin/ipa-replica-prepare", line 62, in parse_options
    options.setup_pkinit = False


Version-Release number of selected component (if applicable):
Name        : ipa-server                   Relocations: (not relocatable)
Version     : 2.0.99                            Vendor: (none)
Release     : 3.20110721T0516zgit8e8ad51.el6   Build Date: Thu 21 Jul 2011 01:29:18 AM EDT
Install Date: Thu 21 Jul 2011 12:43:27 PM EDT      Build Host: goofy-vm16.dsdev.sjc.redhat.com
Group       : System Environment/Base       Source RPM: ipa-2.0.99-3.20110721T0516zgit8e8ad51.el6.src.rpm
Size        : 3314423                          License: GPLv3+
Signature   : (none)
URL         : http://www.freeipa.org/
Summary     : The IPA authentication server
Description :
IPA is an integrated solution to provide centrally managed Identity (machine,
user, virtual machines, groups, authentication credentials), Policy
(configuration settings, access control information) and Audit (events,
logs, analysis thereof). If you are installing an IPA server you need
to install this package (in other words, most people should NOT install
this package).


How reproducible:


Steps to Reproduce:
1. ipa-replica-prepare -p MYSECRET --ip-address=10.10.10.10 hostname.domain
2.
3.
  
Actual results:


Expected results:
Success replica package creation

Additional info:

Comment 1 Jenny Severance 2011-07-21 17:03:35 UTC
Today's multi server install test

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: Create Replica Package(s)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [02:05:28] ::  IP of server dell-pe800-01.rhts.eng.bos.redhat.com is resolving as 10.16.64.57, using short hostname of dell-pe800-01
:: [02:05:28] ::  Running: ipa-replica-prepare -p Secret123 --ip-address=10.16.64.57 dell-pe800-01.testrelm
preparation of replica failed: local variable 'options' referenced before assignment
local variable 'options' referenced before assignment
  File "/usr/sbin/ipa-replica-prepare", line 460, in <module>
    main()

  File "/usr/sbin/ipa-replica-prepare", line 235, in main
    options, args = parse_options()

  File "/usr/sbin/ipa-replica-prepare", line 62, in parse_options
    options.setup_pkinit = False

Comment 3 Rob Crittenden 2011-07-21 21:24:22 UTC
Problem was a bad rebase of hide-pkinit.patch. Should work ok now.

Fixed in private branch

Checking in hide-pkinit.patch;
/cvs/dist/rpms/ipa/RHEL-6/hide-pkinit.patch,v  <--  hide-pkinit.patch
new revision: 1.1.2.7; previous revision: 1.1.2.6
done

Comment 6 Namita Soman 2011-09-22 01:27:27 UTC
Verified using ipa-server-2.1.1-3.el6.x86_64. Can generate replica package.

Comment 7 Rob Crittenden 2011-10-31 21:08:53 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Do not document

Comment 8 errata-xmlrpc 2011-12-06 18:41:47 UTC
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, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2011-1533.html