Bug 1152201 - setting --serve-http at repo create only publishes repository to http and not https
Summary: setting --serve-http at repo create only publishes repository to http and not...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Pulp
Classification: Retired
Component: rpm-support
Version: 2.5
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: pulp-bugs
QA Contact: pulp-qe-list
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-13 14:53 UTC by Preethi Thomas
Modified: 2015-02-28 22:39 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-28 22:39:34 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Pulp Redmine 577 0 None None None Never

Description Preethi Thomas 2014-10-13 14:53:10 UTC
Description of problem:

If you set --serve-http to true at repo create, then the repo is only published over http and not https

Version-Release number of selected component (if applicable):

[root@cloud-qe-15 ~]# rpm -qa pulp-server
pulp-server-2.5.0-0.7.beta.el7.noarch
[root@cloud-qe-15 ~]# 

How reproducible:


Steps to Reproduce:
1.create a repo with --serve-http
2.run repo sync 
3.check in https & http ( See the files are only published under http)

Actual results:


[root@cloud-qe-15 ~]# pulp-admin rpm repo create --repo-id pulp --feed https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/pulp_unittest/ --serve-http true
Successfully created repository [pulp]

[root@cloud-qe-15 ~]# 
[root@cloud-qe-15 ~]# 

[root@cloud-qe-15 ~]# 
[root@cloud-qe-15 ~]# pulp-admin rpm repo sync run --repo-id pulp
+----------------------------------------------------------------------+
                    Synchronizing Repository [pulp]
+----------------------------------------------------------------------+

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


Downloading metadata...
[|]
... completed

Downloading repository content...
[==================================================] 100%
RPMs:       3/3 items
Delta RPMs: 0/0 items

... completed

Downloading distribution files...
[==================================================] 100%
Distributions: 3/3 items
... completed

Importing errata...
[\]
... completed

Importing package groups/categories...
[-]
... completed


Task Succeeded



Initializing repo metadata
[-]
... completed

Publishing Distribution files
[-]
... completed

Publishing RPMs
[==================================================] 100%
3 of 3 items
... completed

Publishing Delta RPMs
... skipped

Publishing Errata
[==================================================] 100%
52 of 52 items
... completed

Publishing Comps file
[==================================================] 100%
5 of 5 items
... completed

Publishing Metadata.
[-]
... completed

Closing repo metadata
[-]
... completed

Generating sqlite files
... skipped

Publishing files to web
[-]
... completed

Writing Listings File
[-]
... completed


Task Succeeded

[root@cloud-qe-15 ~]# ls -l /var/lib/pulp/published/yum/https/repos/repos/pulp/pulp/demo_repos/
total 4
-rw-r--r--. 1 apache apache  3 Oct  8 09:48 listing
lrwxrwxrwx. 1 apache apache 68 Oct  8 09:48 zoo -> /var/lib/pulp/published/yum/master/yum_distributor/zoo/1412776107.85
[root@cloud-qe-15 ~]# 
[root@cloud-qe-15 ~]# 
[root@cloud-qe-15 ~]# ls -l /var/lib/pulp/published/yum/http/repos/repos/pulp/pulp/demo_repos/
total 4
-rw-r--r--. 1 apache apache 13 Oct 13 10:08 listing
lrwxrwxrwx. 1 apache apache 69 Oct 13 10:08 pulp_unittest -> /var/lib/pulp/published/yum/master/yum_distributor/pulp/1413209296.27
[root@cloud-qe-15 ~]# 




Expected results:


Additional info:

Comment 1 Arnold Bechtoldt 2015-02-19 12:36:21 UTC
Is --serve-https=true going to be deprecated?

Comment 2 Brian Bouterse 2015-02-28 22:39:34 UTC
Moved to https://pulp.plan.io/issues/577


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