Project

Profile

Help

Issue #1609

RPM and OSTree content not available over https after publishing

Added by placko over 5 years ago. Updated over 2 years ago.

Status:
CLOSED - WORKSFORME
Priority:
Normal
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - OSTree:
Platform Release:
Target Release - OSTree:
OS:
RHEL 7
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Steps to reproduce:

* create rpm or ostree repository
* publish
* files should be available on https://server.com/pulp/repos or https://server.com/pulp/ostree respectively

On pulp 2.8 only, works fine for 2.7.

History

#1 Updated by jortel@redhat.com over 5 years ago

Using 2.8, I created an ostree repository:

[jortel@f23d pulp]$ pulp-admin ostree repo create --repo-id=fed --feed=https://dl.fedoraproject.org/pub/fedora/linux/atomic/22/ -b fedora-atomic/f22/x86_64/docker-host
Repository [fed] successfully created

[jortel@f23d pulp]$ pulp-admin ostree repo sync run --repo-id=fed 
+----------------------------------------------------------------------+
                     Synchronizing Repository [fed]
+----------------------------------------------------------------------+

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

Create Local Repository
[-]
... completed

Update Summary
[|]
... completed

Pull Remote Branches
[/]
... completed

Add Content Units
[-]
... completed

Clean
[-]
... completed

Task Succeeded

Publish Trees
[-]
... completed

Making files available via web.
[-]
... completed

Task Succeeded

And finding the content published at: https://f23d.redhat.com/pulp/ostree/web/pub/fedora/linux/atomic/22/.

#2 Updated by jortel@redhat.com over 5 years ago

  • Platform Release deleted (2.8.0)

Unable to reproduce. placko can you provide more information? Thanks!

#3 Updated by placko over 5 years ago

Pulp 2.7:

$ pulp-admin ostree repo create --repo-id=fed --feed=https://dl.fedoraproject.org/pub/fedora/linux/atomic/22/ -b fedora-atomic/f22/x86_64/docker-host
Repository [fed] successfully created

$ pulp-admin ostree repo sync run --repo-id=fed
+----------------------------------------------------------------------+
                     Synchronizing Repository [fed]
+----------------------------------------------------------------------+

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

Create Local Repository
[-]
... completed

Pull Remote Branches
[\]
... completed

Add Content Units
[-]
... completed

Clean
[-]
... completed

Task Succeeded

Publish Trees
[-]
... completed

Making files available via web.
[/]
... completed

Task Succeeded

$ curl -X GET -kI https://<pulp-2.7-hostname>/pulp/ostree/web/pub/fedora/linux/atomic/22/
HTTP/1.1 200 OK
Date: Fri, 05 Feb 2016 09:17:23 GMT
Server: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips mod_wsgi/3.4 Python/2.7.5
Content-Length: 2276
Content-Type: text/html;charset=ISO-8859-1

$ pulp-admin status
+----------------------------------------------------------------------+
                          Status of the server
+----------------------------------------------------------------------+

Api Version:           2
Database Connection:
  Connected: True
Known Workers:
  _id:            scheduler@address.internal
  _ns:            workers
  Last Heartbeat: 2016-02-05T09:28:53Z
  _id:            resource_manager@address.internal
  _ns:            workers
  Last Heartbeat: 2016-02-05T09:29:54Z
  _id:            reserved_resource_worker-0@address.internal
  _ns:            workers
  Last Heartbeat: 2016-02-05T09:29:54Z
  _id:            reserved_resource_worker-1@address.internal
  _ns:            workers
  Last Heartbeat: 2016-02-05T09:29:58Z
Messaging Connection:
  Connected: True
Versions:
  Platform Version: 2.7.1

Pulp 2.8:

$ pulp-admin ostree repo create --repo-id=fed --feed=https://dl.fedoraproject.org/pub/fedora/linux/atomic/22/ -b fedora-atomic/f22/x86_64/docker-host
Repository [fed] successfully created

$ pulp-admin ostree repo sync run --repo-id=fed
+----------------------------------------------------------------------+
                     Synchronizing Repository [fed]
+----------------------------------------------------------------------+

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

Create Local Repository
[-]
... completed

Update Summary
[-]
... completed

Pull Remote Branches
[|]
... completed

Add Content Units
[-]
... completed

Clean
[-]
... completed

Task Succeeded

Publish Trees
[-]
... completed

Making files available via web.
[-]
... completed

Task Succeeded

$ curl -X GET -kI https://<pulp-2.8-hostname>/pulp/ostree/web/pub/fedora/linux/atomic/22/
HTTP/1.1 403 Forbidden
Date: Fri, 05 Feb 2016 09:18:04 GMT
Server: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips mod_wsgi/3.4 Python/2.7.5
Content-Length: 245
Content-Type: text/html; charset=iso-8859-1

$ pulp-admin status
+----------------------------------------------------------------------+
                          Status of the server
+----------------------------------------------------------------------+

Api Version:           2
Database Connection:
  Connected: True
Known Workers:
  _id:            scheduler@address.internal
  _ns:            workers
  Last Heartbeat: 2016-02-05T09:29:03Z
  _id:            reserved_resource_worker-0@address.internal
  _ns:            workers
  Last Heartbeat: 2016-02-05T09:29:35Z
  _id:            reserved_resource_worker-1@address.internal
  _ns:            workers
  Last Heartbeat: 2016-02-05T09:29:36Z
  _id:            resource_manager@address.internal
  _ns:            workers
  Last Heartbeat: 2016-02-05T09:29:36Z
Messaging Connection:
  Connected: True
Versions:
  Platform Version: 2.8.0b5

Both installed on Red Hat Enterprise Linux Server release 7.2 (Maipo). Isn't there some specific apache configuration for 2.8 that I missed? Though I can access published puppet and docker units.

#4 Updated by jortel@redhat.com over 5 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to jortel@redhat.com
  • Platform Release set to 2.8.0
  • Triaged changed from No to Yes

#5 Updated by dkliban@redhat.com over 5 years ago

The OSTree tests are currently turned off[0]. However, when you remove that line of code, you get a failure.

[0] https://github.com/PulpQE/pulp-smash/blob/master/pulp_smash/tests/ostree/api_v2/test_sync_publish.py#L48

#6 Updated by jortel@redhat.com over 5 years ago

  • Project changed from Pulp to OSTree Support

#7 Updated by jortel@redhat.com over 5 years ago

Trying this on installed beta.

#8 Updated by jortel@redhat.com over 5 years ago

Worked for me on RPM installed 2.8.0 B5 from nightly repository on f23:

[root@localhost tmp]# rpm -qa|grep pulp|sort
pulp-admin-client-2.8.0-0.5.beta.git.125.1d7e5c5.fc23.noarch
pulp-docker-plugins-2.0.0-0.5.beta.git.30.8fbfb2e.fc23.noarch
pulp-ostree-admin-extensions-1.1.0-0.5.beta.git.5.59218a9.fc23.noarch
pulp-ostree-plugins-1.1.0-0.5.beta.git.5.59218a9.fc23.noarch
pulp-puppet-plugins-2.8.0-0.5.beta.git.6.5894bd0.fc23.noarch
pulp-rpm-plugins-2.8.0-0.5.beta.git.50.28185d2.fc23.noarch
pulp-selinux-2.8.0-0.5.beta.git.125.1d7e5c5.fc23.noarch
pulp-server-2.8.0-0.5.beta.git.125.1d7e5c5.fc23.noarch
python-kombu-3.0.33-2.pulp.fc23.noarch
python-pulp-bindings-2.8.0-0.5.beta.git.125.1d7e5c5.fc23.noarch
python-pulp-client-lib-2.8.0-0.5.beta.git.125.1d7e5c5.fc23.noarch
python-pulp-common-2.8.0-0.5.beta.git.125.1d7e5c5.fc23.noarch
python-pulp-docker-common-2.0.0-0.5.beta.git.30.8fbfb2e.fc23.noarch
python-pulp-oid_validation-2.8.0-0.5.beta.git.125.1d7e5c5.fc23.noarch
python-pulp-ostree-common-1.1.0-0.5.beta.git.5.59218a9.fc23.noarch
python-pulp-puppet-common-2.8.0-0.5.beta.git.6.5894bd0.fc23.noarch
python-pulp-repoauth-2.8.0-0.5.beta.git.125.1d7e5c5.fc23.noarch
python-pulp-rpm-common-2.8.0-0.5.beta.git.50.28185d2.fc23.noarch
[root@localhost tmp]# curl -X GET -kI https://localhost/pulp/ostree/web/pub/fedora/linux/atomic/22/
HTTP/1.1 200 OK
Date: Tue, 16 Feb 2016 22:48:11 GMT
Server: Apache/2.4.18 (Fedora) OpenSSL/1.0.2f-fips mod_wsgi/4.4.8 Python/2.7.10
Content-Length: 2276
Content-Type: text/html;charset=ISO-8859-1

Will try next on EL7.

#9 Updated by jortel@redhat.com over 5 years ago

  • Status changed from ASSIGNED to CLOSED - WORKSFORME

placko has reported that it works with latest nightly build on EL7

#10 Updated by bmbouter over 2 years ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF