Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 677444

Summary: pkiremove throws error
Product: Red Hat Enterprise Linux 6 Reporter: Chandrasekar Kannan <ckannan>
Component: pki-coreAssignee: Matthew Harmsen <mharmsen>
Status: CLOSED WORKSFORME QA Contact: Chandrasekar Kannan <ckannan>
Severity: unspecified Docs Contact:
Priority: high    
Version: 6.1CC: benl, jgalipea, shaines
Target Milestone: beta   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-17 22:05:13 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 Chandrasekar Kannan 2011-02-14 20:02:25 UTC
I'm trying to run the CA acceptance tests on a RHEL 6.1 machine.  And I noticed there that I cannot run pkiremove to remove a CA instance. 

details here - http://pastehtml.com/view/1d8ics1.rtxt

Comment 1 Chandrasekar Kannan 2011-02-14 20:06:09 UTC
my repo files point at

[root@apollo ~]# cat /etc/yum.repos.d/pki-x86_64.repo /etc/yum.repos.d/rhel61-nightly.repo 
[cs9-x86_64]
name=cs9-x86_64
baseurl=http://mickey.dsdev.sjc.redhat.com/repos/pki/ipa/devel/rhel6/devel_x86_64/x86_64/
enabled=1
gpgcheck=0


[cs9-noarch]
name=cs9-noarch
baseurl=http://mickey.dsdev.sjc.redhat.com/repos/pki/ipa/devel/rhel6/devel_x86_64/noarch/
enabled=1
gpgcheck=0

[rhel61-nightly]
name=rhel61-nightly
baseurl=http://download.devel.redhat.com/nightly/latest-RHEL6.1/6.1/Server/x86_64/os/
enabled=1
gpgcheck=0

Comment 4 Matthew Harmsen 2011-02-16 21:03:11 UTC
On February 15, 2011, Parag Nemade wrote:

Hi Matt,
    This is a well known problem with RHEL6. Most people forgot to add optional repository on their system. I always suggest developers to make sure they also have optional repository added so that -devel or less required dependency packages will also get pulled.
    Real problem is that pki-setup needs "perl-XML-LibXML" to be pulled automatically which is happening correctly but "perl-XML-LibXML" needs "perl-XML-SAX" which is not found in the available repositories. I will suggest to ask rel-eng to move this "perl-XML-SAX" from optional to base repository.
    And yes its still recommended that yum should pull dependencies automatically. If rpm unable to extract dependencies while building a new package then only you need to add it explicitly in spec file.

Parag.



On 02/16/2011 04:48 AM, Matthew Harmsen wrote:
> Parag,
>
> This is a question in regards to "Bugzilla Bug #677444 - pkiremove throws error" on RHEL 6.1.
>
> We believe that this occurred since "perl-XML-SAX" was not pulled in as a requirement.
>
> It is true that our spec files did not include this module (nor virtually any other Perl module)
> explicitly because of the original Fedora Review in late 2009/early 2010 in which you explained
> that there was an automated mechanism which pulled in Perl modules, (although I believe that
> I did need to explicitly include a Perl module on Fedora in the past).
>
> My question to you, is this -- is this automated means of pulling in Perl modules present in
> RHEL 6.1?
>
> Obviously, if the answer is no, we simply need to add explicit calls to all Perl modules using the
> "%if 0%{rhel}" test to our spec files.
>
> If the answer is yes, could it somehow mean that this is only for build-time Perl modules rather than
> run-time Perl modules, but if this is the case, why have we not encountered this issue in Fedora?
>
> Also, if the answer is yes, could you tell us what this automated Perl module requirement inclusion
> component is called?
>
> Thanks in advance,
> -- Matt

Comment 5 Chandrasekar Kannan 2011-02-16 21:58:57 UTC
(In reply to comment #4)
> On February 15, 2011, Parag Nemade wrote:
> 
> Hi Matt,
>     This is a well known problem with RHEL6. Most people forgot to add optional
> repository on their system. 

I tested by adding the optional repo to the system. No luck. 
Results here - http://pastehtml.com/view/1d9kwsx.rtxt

Comment 7 Matthew Harmsen 2011-02-17 21:39:45 UTC
Chandra wrote the following:

<ckannan> So I re-installed the machine with RHEL 6.1 again. and I have subscribed to all the repos. 
<ckannan> At this time, I don't see any rpm issues.
<ckannan> And at this time, pkiremove works fine too. 
<ckannan> and for example, I see - http://download.lab.bos.redhat.com/nightly/latest-RHEL6.1/6.1/Server/x86_64/os/Packages/perl-XML-SAX-0.96-7.el6.noarch.rpm is the Base server repo.

Comment 8 Matthew Harmsen 2011-02-17 22:05:13 UTC
Since it was discovered that the package called 'perl-XML-SAX' is currently in the base repo, double checking this per Comment #6 (after disabling the optional repo):

<ckannan> ok. I removed about 64 rpms that got installed as part of DS and pki packages. cleaned up all instances. disabled optional repo. and tried again. It installs just fine. 
<ckannan> So I would as well say everything that we need is in the base repo. optional is not required.