Project

Profile

Help

Story #2764

closed

Ability to publish more than one dist+component combination

Added by mihai.ibanescu@gmail.com almost 7 years ago. Updated about 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Sprint/Milestone:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
2.16.0
Target Release - Debian:
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

As a user, I should be able to upload debian packages and specify the dist/component they are supposed to go in.

The published repository should place the debian package in the dist and component specified by the user.

Right now, we are only creating the "stable" dist, with a "main" component.

Actions #1

Updated by mihai.ibanescu@gmail.com almost 7 years ago

  • Tracker changed from Issue to Story
  • % Done set to 0
Actions #2

Updated by beattidp almost 7 years ago

My first exercise with pulp_deb, after installing on CentOS 7:
( https://gist.github.com/beattidp/103a4528a67c37095a720b33c7a542e6 )
Try to create Ubuntu 14 (Trusty) Security repo only.

$ pulp-admin deb repo create \
  --repo-id=ubuntu-trusty-SECURITY-main-binary-amd64  \
  --relative-url=ubuntu/dists/trusty-security/main/binary-amd64 \
  --feed=http://security.ubuntu.com/ubuntu/dists/trusty-security/main/binary-amd64/ \
  --serve-http=true
$ pulp-admin deb repo sync run \
  --repo-id=ubuntu-trusty-SECURITY-main-binary-amd64
+----------------------------------------------------------------------+
  Synchronizing Repository [ubuntu-trusty-SECURITY-main-binary-amd64]
+----------------------------------------------------------------------+

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

Task Failed

[Errno 2] No such file or directory:
u'/var/cache/pulp/reserved_resource_worker-3@linuxrepo01.machine.local/f065f24b
-cd79-4a74-969e-02b2c8120326/Release'

What's this?! 'dists/stable' appended to my feed URL?

[itserv@linuxrepo01 ~]$ sudo grep "pulp: nectar" /var/log/messages | tail -n1
Jun  8 22:25:49 linuxrepo01 pulp: nectar.downloaders.threaded:INFO: Download failed:
Download of
  http://security.ubuntu.com/ubuntu/dists/trusty-security/main/binary-amd64/dists/stable/Release
failed with code 404: Not Found

Yes, the 'Release' file is there, and retrievable.

[itserv@linuxrepo01 ~]$ curl \
  http://security.ubuntu.com/ubuntu/dists/trusty-security/main/binary-amd64/Release
Archive: trusty-security
Version: 14.04
Component: main
Origin: Ubuntu
Label: Ubuntu
Architecture: amd64

So, then I discovered pulp.plan.io and reading the sources ( plugins/pulp_deb/plugins/importers/sync.py ) mentions issue 2765, which refers to this (2764), which seems the relevant issue for my question:

What in theory happens if we don't force an appended 'dists/stable' on there, assuming the 'Release' file is present at the default feed URL? I don't know all the interactions of other code, but I wonder if a way to evaluate this (while leaving existing 'dists/stable' appended) might be to first check for existence of a './Release' file at the default feed URL.

Actions #3

Updated by mihai.ibanescu@gmail.com over 6 years ago

  • Status changed from NEW to MODIFIED
  • % Done changed from 0 to 100
Actions #4

Updated by ttereshc about 6 years ago

  • Platform Release set to 2.16.0
Actions #5

Updated by bmbouter about 6 years ago

  • Status changed from MODIFIED to 5
Actions #6

Updated by bmbouter about 6 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE
Actions #7

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF