Project

Profile

Help

Issue #4957

closed

Ubuntu Bionic unable to use Pulp repos

Added by signed8bit over 5 years ago. Updated over 4 years ago.

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

Description

In our Pulp 2.19.0 install we are syncing both the upstream Ubuntu Xenial and Bionic repositories. When performing operations with apt-get on Xenial, everything works as expected. Bionic on the other hand fails.

cat /etc/apt/sources.list
deb [trusted=yes arch=amd64] https://pulp.server/pulp/deb/upstream/ubuntu-bionic/2019-04-09-123215 bionic main restricted
deb [trusted=yes arch=amd64] https://pulp.server/pulp/deb/upstream/ubuntu-bionic-updates/2019-04-09-123215 bionic main restricted
deb [trusted=yes arch=amd64] https://pulp.server/pulp/deb/upstream/ubuntu-bionic-security/2019-04-09-123215 bionic main restricted
apt-get update
Err:1 https://pulp.server/pulp/deb/upstream/ubuntu-bionic/2019-04-09-123215 bionic InRelease
  Connection failed [IP: 172.29.54.23 443]
Err:2 https://pulp.server/pulp/deb/upstream/ubuntu-bionic-updates/2019-04-09-123215 bionic InRelease
  Connection failed [IP: 172.29.54.23 443]
Err:3 https://pulp.server/pulp/deb/upstream/ubuntu-bionic-security/2019-04-09-123215 bionic InRelease
  Connection failed [IP: 172.29.54.23 443]
Reading package lists... Done
W: Failed to fetch https://pulp.server/pulp/deb/upstream/ubuntu-bionic/2019-04-09-123215/dists/bionic/InRelease  Connection failed [IP: 172.29.54.23 443]
W: Failed to fetch https://pulp.server/pulp/deb/upstream/ubuntu-bionic-updates/2019-04-09-123215/dists/bionic/InRelease  Connection failed [IP: 172.29.54.23 443]
W: Failed to fetch https://pulp.server/pulp/deb/upstream/ubuntu-bionic-security/2019-04-09-123215/dists/bionic/InRelease  Connection failed [IP: 172.29.54.23 443]
W: Some index files failed to download. They have been ignored, or old ones used instead.

No other deb repo we have published includes an InRelease file which I believe is expected. This file itself returns an HTTP 404 when accessed directly.

curl -I https://pulp.server/pulp/deb/upstream/ubuntu-bionic/2019-04-09-123215/dists/bionic/InRelease
HTTP/1.1 404 Not Found
Date: Tue, 11 Jun 2019 20:56:35 GMT
Server: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.2k-fips mod_wsgi/3.4 Python/2.7.5
Content-Length: 224
Content-Type: text/html; charset=utf-8

When I compare across Xenial and Bionic the difference is the "Connection failed [IP: 172.29.54.23 443]" error. Again, Xenial works fine. As a workaround we have created an alternate endpoint that maps to the published repository content using nginx. This poses no issues for Bionic.

cat /etc/apt/sources.list
deb [trusted=yes arch=amd64] https://pulp.server:8443/pulp/deb/upstream/ubuntu-bionic/2019-04-09-123215 bionic main restricted
deb [trusted=yes arch=amd64] https://pulp.server:8443/pulp/deb/upstream/ubuntu-bionic-updates/2019-04-09-123215 bionic main restricted
deb [trusted=yes arch=amd64] https://pulp.server:8443/pulp/deb/upstream/ubuntu-bionic-security/2019-04-09-123215 bionic main restricted
apt-get update
Ign:1 https://pulp.server:8443/pulp/deb/upstream/ubuntu-bionic/2019-04-09-123215 bionic InRelease
Ign:2 https://pulp.server:8443/pulp/deb/upstream/ubuntu-bionic-updates/2019-04-09-123215 bionic InRelease
Ign:3 https://pulp.server:8443/pulp/deb/upstream/ubuntu-bionic-security/2019-04-09-123215 bionic InRelease
Hit:4 https://pulp.server:8443/pulp/deb/upstream/ubuntu-bionic/2019-04-09-123215 bionic Release
Hit:5 https://pulp.server:8443/pulp/deb/upstream/ubuntu-bionic-updates/2019-04-09-123215 bionic Release
Hit:6 https://pulp.server:8443/pulp/deb/upstream/ubuntu-bionic-security/2019-04-09-123215 bionic Release
Get:7 https://pulp.server:8443/pulp/deb/upstream/ubuntu-bionic/2019-04-09-123215 bionic Release.gpg [836 B]
Get:8 https://pulp.server:8443/pulp/deb/upstream/ubuntu-bionic-updates/2019-04-09-123215 bionic Release.gpg [836 B]
Get:9 https://pulp.server:8443/pulp/deb/upstream/ubuntu-bionic-security/2019-04-09-123215 bionic Release.gpg [836 B]
Ign:7 https://pulp.server:8443/pulp/deb/upstream/ubuntu-bionic/2019-04-09-123215 bionic Release.gpg
Ign:8 https://pulp.server:8443/pulp/deb/upstream/ubuntu-bionic-updates/2019-04-09-123215 bionic Release.gpg
Ign:9 https://pulp.server:8443/pulp/deb/upstream/ubuntu-bionic-security/2019-04-09-123215 bionic Release.gpg
Fetched 2508 B in 0s (11.1 kB/s)
Reading package lists... Done

So far I have not been able to determine why this is failing on Bionic.

For reference, here are the repository details.

pulp-admin deb repo list --repo-id upstream_ubuntu-bionic_2019-04-09-123215 --details
+----------------------------------------------------------------------+
                          Debian Repositories
+----------------------------------------------------------------------+

Id:                   upstream_ubuntu-bionic_2019-04-09-123215
Display Name:         None
Description:          None
Content Unit Counts:  
  Deb:           60037
  Deb Component: 3
  Deb Release:   1
Notes:                
Scratchpad:           
Importers:            
  Config:               
    Architectures: amd64
    Components:    main,restricted,universe
    Releases:      bionic
  Id:                   deb_importer
  Importer Type Id:     deb_importer
  Last Override Config: 
  Last Sync:            None
  Last Updated:         2019-04-09T17:36:03Z
  Repo Id:              upstream_ubuntu-bionic_2019-04-09-123215
  Scratchpad:           None
Distributors:         
  Auto Publish:         True
  Config:               
    Http:         False
    Https:        True
    Relative URL: upstream/ubuntu-bionic/2019-04-09-123215
  Distributor Type Id:  deb_distributor
  Id:                   deb_distributor
  Last Override Config: 
  Last Publish:         2019-04-09T19:10:08Z
  Last Updated:         2019-04-09T17:36:03Z
  Repo Id:              upstream_ubuntu-bionic_2019-04-09-123215
  Scratchpad:           

Also available in: Atom PDF