Actions
Issue #4250
closedWhen attach and publishing a new yum_distributor, other yum_distributors break
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