Project

Profile

Help

Issue #4250

closed

When attach and publishing a new yum_distributor, other yum_distributors break

Added by wibbit over 5 years ago. Updated about 5 years ago.

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

Description

I am trying to associate multiple yum_distributors to a repository, and have all of them presented and working at the same time, from the documentation I believe this should work.

All of these repositories/distributors/publish requests are done via the API.

We are using pulp 2.17

It's probably worth noting, that when I attach the Distributor, I ONLY request that new distributor to be published, I do not request ALL distributors attached to the repo to be published.

Below is an example repository and the data within the published directory, both master and non master.

Let me know if any more information is required.

+----------------------------------------------------------------------+
                              Repositories
+----------------------------------------------------------------------+

Id:                   1976-01_rhel7_bats
Display Name:         bats
Description:          None
Content Unit Counts:  
Notes:                
  Parent:   None
  Platform: rhel7
  Release:  1976-01
Scratchpad:           
Importers:            
  Config:               
    Num Retries: 1
    Validate:    False
  Id:                   yum_importer
  Importer Type Id:     yum_importer
  Last Override Config: 
  Last Sync:            None
  Last Updated:         2018-12-10T13:42:54Z
  Repo Id:              1976-01_rhel7_bats
  Scratchpad:           None
Distributors:         
  Auto Publish:         True
  Config:               
    Generate Sqlite: True
    Http:            True
    Https:           True
    Relative URL:    rhel7/1976-01/rhel7_bats/
    Repoview:        True
  Distributor Type Id:  yum_distributor
  Id:                   1976-01
  Last Override Config: 
  Last Publish:         2018-12-10T13:47:32Z
  Last Updated:         2018-12-10T13:42:54Z
  Repo Id:              1976-01_rhel7_bats
  Scratchpad:  

[root@pulp-master ~]# ls -lh /var/lib/pulp/published/yum/master/yum_distributor/1976-01_rhel7_bats
total 4.0K
drwxr-xr-x 4 apache apache 4.0K Dec 10 08:47 1544449651.75

[root@pulp-master ~]# ls -lh /var/lib/pulp/published/yum/http/repos/rhel7/1976-01/rhel7_bats
lrwxrwxrwx 1 apache apache 83 Dec 10 08:47 /var/lib/pulp/published/yum/http/repos/rhel7/1976-01/rhel7_bats -> /var/lib/pulp/published/yum/master/yum_distributor/1976-01_rhel7_bats/1544449651.75

[root@pulp-master ~]# pulp-admin repo list --details --repo-id=1976-01_rhel7_bats
+----------------------------------------------------------------------+
                              Repositories
+----------------------------------------------------------------------+

Id:                   1976-01_rhel7_bats
Display Name:         bats
Description:          None
Content Unit Counts:  
Notes:                
  Parent:   None
  Platform: rhel7
  Release:  1976-01
Scratchpad:           
Importers:            
  Config:               
    Num Retries: 1
    Validate:    False
  Id:                   yum_importer
  Importer Type Id:     yum_importer
  Last Override Config: 
  Last Sync:            None
  Last Updated:         2018-12-10T13:42:54Z
  Repo Id:              1976-01_rhel7_bats
  Scratchpad:           None
Distributors:         
  Auto Publish:         True
  Config:               
    Generate Sqlite: True
    Http:            True
    Https:           True
    Relative URL:    rhel7/latest/rhel7_bats/
    Repoview:        True
  Distributor Type Id:  yum_distributor
  Id:                   latest
  Last Override Config: 
  Last Publish:         2018-12-10T13:59:18Z
  Last Updated:         2018-12-10T13:59:16Z
  Repo Id:              1976-01_rhel7_bats
  Scratchpad:           
  Auto Publish:         True
  Config:               
    Generate Sqlite: True
    Http:            True
    Https:           True
    Relative URL:    rhel7/1976-01/rhel7_bats/
    Repoview:        True
  Distributor Type Id:  yum_distributor
  Id:                   1976-01
  Last Override Config: 
  Last Publish:         2018-12-10T13:47:32Z
  Last Updated:         2018-12-10T13:42:54Z
  Repo Id:              1976-01_rhel7_bats
  Scratchpad:  

[root@pulp-master ~]# ls -lh /var/lib/pulp/published/yum/master/yum_distributor/1976-01_rhel7_bats
total 4.0K
drwxr-xr-x 4 apache apache 4.0K Dec 10 08:59 1544450358.11
[root@pulp-master ~]# ls -lh /var/lib/pulp/published/yum/http/repos/rhel7/1976-01/rhel7_bats
lrwxrwxrwx 1 apache apache 83 Dec 10 08:47 /var/lib/pulp/published/yum/http/repos/rhel7/1976-01/rhel7_bats -> /var/lib/pulp/published/yum/master/yum_distributor/1976-01_rhel7_bats/1544449651.75 <---------------------- This link is now broken.
[root@pulp-master ~]# ls -lh /var/lib/pulp/published/yum/http/repos/rhel7/latest/rhel7_bats
lrwxrwxrwx 1 apache apache 83 Dec 10 08:59 /var/lib/pulp/published/yum/http/repos/rhel7/latest/rhel7_bats -> /var/lib/pulp/published/yum/master/yum_distributor/1976-01_rhel7_bats/1544450358.11 <----------------------- This works

[root@pulp-master ~]# pulp-admin repo list --details --repo-id=1976-01_rhel7_bats
+----------------------------------------------------------------------+
                              Repositories
+----------------------------------------------------------------------+

Id:                   1976-01_rhel7_bats
Display Name:         bats
Description:          None
Content Unit Counts:  
Notes:                
  Parent:   None
  Platform: rhel7
  Release:  1976-01
Scratchpad:           
Importers:            
  Config:               
    Num Retries: 1
    Validate:    False
  Id:                   yum_importer
  Importer Type Id:     yum_importer
  Last Override Config: 
  Last Sync:            None
  Last Updated:         2018-12-10T13:42:54Z
  Repo Id:              1976-01_rhel7_bats
  Scratchpad:           None
Distributors:         
  Auto Publish:         True
  Config:               
    Generate Sqlite: True
    Http:            True
    Https:           True
    Relative URL:    rhel7/latest/rhel7_bats/
    Repoview:        True
  Distributor Type Id:  yum_distributor
  Id:                   latest
  Last Override Config: 
  Last Publish:         2018-12-10T13:59:18Z
  Last Updated:         2018-12-10T13:59:16Z
  Repo Id:              1976-01_rhel7_bats
  Scratchpad:           
  Auto Publish:         True
  Config:               
    Generate Sqlite: True
    Http:            True
    Https:           True
    Relative URL:    rhel7/even-later/rhel7_bats/
    Repoview:        True
  Distributor Type Id:  yum_distributor
  Id:                   even-later
  Last Override Config: 
  Last Publish:         2018-12-10T14:02:54Z
  Last Updated:         2018-12-10T14:02:52Z
  Repo Id:              1976-01_rhel7_bats
  Scratchpad:           
  Auto Publish:         True
  Config:               
    Generate Sqlite: True
    Http:            True
    Https:           True
    Relative URL:    rhel7/1976-01/rhel7_bats/
    Repoview:        True
  Distributor Type Id:  yum_distributor
  Id:                   1976-01
  Last Override Config: 
  Last Publish:         2018-12-10T13:47:32Z
  Last Updated:         2018-12-10T13:42:54Z
  Repo Id:              1976-01_rhel7_bats
  Scratchpad:           

[root@pulp-master ~]# ls -lh /var/lib/pulp/published/yum/master/yum_distributor/1976-01_rhel7_bats
total 4.0K
drwxr-xr-x 4 apache apache 4.0K Dec 10 09:02 1544450574.11
[root@pulp-master ~]# ls -lh /var/lib/pulp/published/yum/http/repos/rhel7/1976-01/rhel7_bats
lrwxrwxrwx 1 apache apache 83 Dec 10 08:47 /var/lib/pulp/published/yum/http/repos/rhel7/1976-01/rhel7_bats -> /var/lib/pulp/published/yum/master/yum_distributor/1976-01_rhel7_bats/1544449651.75 <------------------------- Broken link
[root@pulp-master ~]# ls -lh /var/lib/pulp/published/yum/http/repos/rhel7/latest/rhel7_bats
lrwxrwxrwx 1 apache apache 83 Dec 10 08:59 /var/lib/pulp/published/yum/http/repos/rhel7/latest/rhel7_bats -> /var/lib/pulp/published/yum/master/yum_distributor/1976-01_rhel7_bats/1544450358.11 <------------------------- Broken link
[root@pulp-master ~]# ls -lh /var/lib/pulp/published/yum/http/repos/rhel7/even-later/rhel7_bats
lrwxrwxrwx 1 apache apache 83 Dec 10 09:02 /var/lib/pulp/published/yum/http/repos/rhel7/even-later/rhel7_bats -> /var/lib/pulp/published/yum/master/yum_distributor/1976-01_rhel7_bats/1544450574.11 <----------------------------- Works
Actions #1

Updated by dkliban@redhat.com over 5 years ago

  • Description updated (diff)
Actions #2

Updated by dkliban@redhat.com over 5 years ago

  • Project changed from 31 to RPM Support
  • Tags Documentation added

I took a look at both pulp and pulp_rpm. It looks like there is a built in assumption in Pulp that each repository can only be published by a single distributor of each type. So a repository that has 2 or more yum_distributors will always be published by the yum_distributor that published it last.

We need to make this clear in the documentation.

Actions #3

Updated by CodeHeeler over 5 years ago

  • Triaged changed from No to Yes
Actions #4

Updated by bmbouter about 5 years ago

  • Status changed from NEW to CLOSED - WONTFIX

Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.

Actions #5

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF