Bug 1020007

Summary: RFE: ISO Importer needs global proxy configuration
Product: [Retired] Pulp Reporter: Justin Sherrill <jsherril>
Component: iso-supportAssignee: Mike McCune <mmccune>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: high    
Version: MasterCC: mmccune, pthomas, skarmark
Target Milestone: ---Keywords: FutureFeature, Triaged
Target Release: 2.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-09 06:54:40 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:

Description Justin Sherrill 2013-10-16 18:53:14 UTC
Description of problem:

Just like the yum importer, the iso importer needs a global proxy configuration.

Comment 1 Jason Connor 2013-11-01 17:01:47 UTC
Added the loading of an iso_import.json configuration file to the entry point.

PR is here: https://github.com/pulp/pulp_rpm/pull/372

Referenced previous bug for solution here: https://bugzilla.redhat.com/show_bug.cgi?id=878548

Comment 3 Jeff Ortel 2014-04-03 13:35:49 UTC
build: 2.4.0-0.7.beta

Comment 4 Preethi Thomas 2014-04-16 15:23:58 UTC
verified

[root@pulp-24-server ~]# rpm -qa pulp-server
pulp-server-2.4.0-0.9.beta.el6.noarch
[root@pulp-24-server ~]# 

[root@pulp-24-server ~]# pulp-admin iso repo create --repo-id file-repo --feed http://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/test_file_repo/ --proxy-host http://pulp-proxy.usersys.redhat.com  --proxy-port 8080  --proxy-user admin --proxy-pass admin
Successfully created repository [file-repo]

[root@pulp-24-server ~]# 
[root@pulp-24-server ~]# 
[root@pulp-24-server ~]# 
[root@pulp-24-server ~]# pulp-admin iso repo sync run --repo-id file-repo
+----------------------------------------------------------------------+
                  Synchronizing Repository [file-repo]
+----------------------------------------------------------------------+

This command may be exited via ctrl+c without affecting the request.


The Pulp Manifest was downloaded successfully.

Downloading 3 ISOs...
[==================================================] 100%
ISOs: 3/3	Data: 10.2 MB/10.2 MB	Avg: 1.0 MB/s


Successfully downloaded 3 ISOs.


Task Succeeded



The repository was successfully published.


Task Succeeded


[root@pulp-24-server ~]#

Comment 5 Preethi Thomas 2014-04-16 15:59:34 UTC
It needs to be tested with global proxy

Comment 6 Preethi Thomas 2014-05-09 16:58:22 UTC
verified

[root@pulp-24-server ~]# rpm -qa pulp-server
pulp-server-2.4.0-0.13.beta.el6.noarch
[root@pulp-24-server ~]# 


[root@pulp-24-server ~]# cat /etc/pulp/server/plugins.conf.d/iso_importer.json 
{
    "num_threads" : 4,
    "proxy_host" : "http://pulp-proxy.usersys.redhat.com",
    "proxy_port" : 8080,
    "proxy_username": "admin",
    "proxy_password": "admin"
}

[root@pulp-24-server ~]# 


[root@pulp-24-server ~]# pulp-admin iso repo create --repo-id file-repo --feed http://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/test_file_repo/
Successfully created repository [file-repo]

[root@pulp-24-server ~]# 
[root@pulp-24-server ~]# 
[root@pulp-24-server ~]# pulp-admin iso repo sync run --repo-id file-repo+----------------------------------------------------------------------+
                  Synchronizing Repository [file-repo]
+----------------------------------------------------------------------+

This command may be exited via ctrl+c without affecting the request.


The Pulp Manifest was downloaded successfully.

Downloading 3 ISOs...
[==================================================] 100%
ISOs: 3/3	Data: 10.2 MB/10.2 MB	Avg: 2.0 MB/s


Successfully downloaded 3 ISOs.


Task Succeeded



The repository was successfully published.


Task Succeeded



From the squid/access.log

Comment 7 Randy Barlow 2014-08-09 06:54:40 UTC
This has been fixed in Pulp 2.4.0-1.