RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 723990 - Can not create replication package with ipa-replica-prepare
Summary: Can not create replication package with ipa-replica-prepare
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ipa
Version: 6.1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Rob Crittenden
QA Contact: Chandrasekar Kannan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-21 17:02 UTC by Jenny Severance
Modified: 2015-01-04 23:50 UTC (History)
3 users (show)

Fixed In Version: ipa-2.1.0-1.el6
Doc Type: Bug Fix
Doc Text:
Do not document
Clone Of:
Environment:
Last Closed: 2011-12-06 18:41:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:1533 0 normal SHIPPED_LIVE Moderate: ipa security and bug fix update 2011-12-06 01:23:31 UTC

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


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