Bug 696170 - repo access getting denied for all repos including non pulp repos when the pulp.repo has wrong certs
Summary: repo access getting denied for all repos including non pulp repos when the pu...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Jay Dobies
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-13 13:22 UTC by Preethi Thomas
Modified: 2011-07-15 19:37 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-13 17:05:18 UTC


Attachments (Terms of Use)
pulp.repo (1.19 KB, text/plain)
2011-04-13 13:45 UTC, Preethi Thomas
no flags Details

Description Preethi Thomas 2011-04-13 13:22:40 UTC
Description of problem:
If I have a repo with global_repo_auth  enabled and have the wrong certs in the client pulp.repo, I f I do a yum repolist I see that all the repos are denied access including the non pulp repo.

Here is the result of my yum commands when I have the wrong cert in  pulp.repo

[root@10 ~]# yum clean all
Cleaning repos: f13 f14 fedora testing-fedora-pulp updates
Cleaning up Everything
[root@10 ~]# yum repolist
https://preethi.usersys.redhat.com/pulp/repos/repos/pulp/pulp/testing/fedora-13/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 401 : https://preethi.usersys.redhat.com/pulp/repos/repos/pulp/pulp/testing/fedora-13/x86_64/repodata/repomd.xml 
Trying other mirror.
repo id                         repo name                                 status
f13                             f13                                       0
f14                             f14                                       0
fedora                          Fedora 14 - x86_64                        0
testing-fedora-pulp             Pulp Testing Builds                       0
updates                         Fedora 14 - x86_64 - Updates              0
repolist: 0
[root@10 ~]# yum update
https://preethi.usersys.redhat.com/pulp/repos/repos/pulp/pulp/testing/fedora-13/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 401 : https://preethi.usersys.redhat.com/pulp/repos/repos/pulp/pulp/testing/fedora-13/x86_64/repodata/repomd.xml 
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: f13. Please verify its path and try again

When I have the right cert

[root@10 ~]# yum clean all
Cleaning repos: f13 f14 fedora testing-fedora-pulp updates
Cleaning up Everything
[root@10 ~]# yum repolist
f13                                                      | 1.3 kB     00:00     
f13/primary                                              | 2.9 kB     00:00     
f13                                                                       10/10
f14                                                      | 1.3 kB     00:00     
f14/primary                                              | 2.8 kB     00:00     
f14                                                                       10/10
fedora/metalink                                          |  21 kB     00:00     
fedora                                                   | 4.3 kB     00:00     
fedora/primary_db                                        |  14 MB     00:04     
testing-fedora-pulp                                      | 1.3 kB     00:00     
testing-fedora-pulp/primary                              | 2.9 kB     00:00     
testing-fedora-pulp                                                       10/10
updates/metalink                                         |  17 kB     00:00     
updates                                                  | 4.7 kB     00:00     
updates/primary_db                                       | 5.3 MB     00:02     
repo id                         repo name                                 status
f13                             f13                                           10
f14                             f14                                           10
fedora                          Fedora 14 - x86_64                        22,161
testing-fedora-pulp             Pulp Testing Builds                           10
updates                         Fedora 14 - x86_64 - Updates               7,736
repolist: 29,927
[root@10 ~]#

Comment 1 Jay Dobies 2011-04-13 13:29:33 UTC
That's weird. There aren't any errors from the other repos. Did you try installing something that would be in one of them?

If anything, I think this is a yum bug rather than a pulp one.

Comment 2 Preethi Thomas 2011-04-13 13:42:07 UTC
Here is what i am seeing

[root@10 ~]# yum repolist
https://preethi.usersys.redhat.com/pulp/repos/repos/pulp/pulp/testing/fedora-13/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 401 : https://preethi.usersys.redhat.com/pulp/repos/repos/pulp/pulp/testing/fedora-13/x86_64/repodata/repomd.xml 
Trying other mirror.
repo id                         repo name                                 status
f13                             f13                                       0
f14                             f14                                       0
fedora                          Fedora 14 - x86_64                        0
testing-fedora-pulp             Pulp Testing Builds                       0
updates                         Fedora 14 - x86_64 - Updates              0
repolist: 0


[root@10 ~]# yum install zsh
https://preethi.usersys.redhat.com/pulp/repos/repos/pulp/pulp/testing/fedora-13/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 401 : https://preethi.usersys.redhat.com/pulp/repos/repos/pulp/pulp/testing/fedora-13/x86_64/repodata/repomd.xml 
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: f13. Please verify its path and try again




[root@10 ~]# yum install zsh --disablerepo=* --enablerepo=fedora
fedora/metalink                                          |  21 kB     00:00     
fedora                                                   | 4.3 kB     00:00     
fedora/primary_db                                        |  14 MB     00:05     
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package zsh.x86_64 0:4.3.10-5.fc14 set to be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package       Arch             Version                  Repository        Size
================================================================================
Installing:
 zsh           x86_64           4.3.10-5.fc14            fedora           2.1 M

Transaction Summary
================================================================================
Install       1 Package(s)

Total download size: 2.1 M
Installed size: 4.8 M
Is this ok [y/N]: N
Exiting on user Command
Complete!

Comment 3 Preethi Thomas 2011-04-13 13:45:20 UTC
Created attachment 491768 [details]
pulp.repo

Comment 4 Pradeep Kilambi 2011-04-13 14:18:19 UTC
Evidently, this is a known issue in urlgrabber/curl and how the certs are handled. 

Reference bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=695747 
https://bugzilla.redhat.com/show_bug.cgi?id=694294

Comment 5 Preethi Thomas 2011-04-13 17:05:18 UTC
Closing for pulp as per the above comment.


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