Rpms not downloaded to foreman server after an apparently successful synchronization

Hello,

We are installing Foreman 1.15 with Katello 3.4 and we have found a very
strange issue. When synchronizing the repositories the rpms are not
actually downloaded to the server even though synchronization status is
successful.

This is the configuration of our repository:

ID: 12
Name: CentOS 7.3 base repo
Label: CentOS_7_3_base_repo
Organization: pRED
Red Hat Repository: no
Content Type: yum
Checksum Type: sha256
Mirror on Sync: no
URL: http://mirror.centos.org/centos/7.3.1611/os/x86_64/
Publish Via HTTP: yes
Published At:
http://rmavmrsoe7112.mrd.roche.com/pulp/repos/pRED/Library/custom/CSOE7/CentOS_7_3_base_repo/
Relative Path: pRED/Library/custom/CSOE7/CentOS_7_3_base_repo
Download Policy: on_demand
Product:
ID: 4
Name: CSOE7
GPG Key:

Sync:
Status: Success
Last Sync Date: 8 minutes
Created: 2017/06/19 09:50:05
Updated: 2017/06/19 09:59:54
Content Counts:
Packages: 9363
Package Groups: 82
Errata: 0

After a successful synchronization of the repo, we have the usual links in
this directory:

/var/lib/pulp/published/yum/master/yum_distributor/a7f65246-8e76-43d2-8162-623dc080cc0f/1497866073.49/Packages

such as:
lrwxrwxrwx 1 apache apache 136 Jun 19 11:56
zziplib-devel-0.13.62-5.el7.x86_64.rpm ->
/var/lib/pulp/content/units/rpm/6d/33f3bba50a90a99aa622d421d9ebdfe6e81c2059d409114077226ef0d25453/zziplib-devel-0.13.62-5.el7.x86_64.rpm
lrwxrwxrwx 1 apache apache 136 Jun 19 11:56
zziplib-utils-0.13.62-5.el7.x86_64.rpm ->
/var/lib/pulp/content/units/rpm/61/f17cb0fbdef335f671c36db5e15391b9a023e531b3ff057823c05162038551/zziplib-utils-0.13.62-5.el7.x86_64.rpm

But the rpms are not where they should:
[root@rmavmrsoe7112 Packages]# ls -l /var/lib/pulp/content/units/rpm/
ls: cannot access /var/lib/pulp/content/units/rpm/: No such file or
directory

Actually they are not found anywhere in the server apart from the symlinks
under /var/lib/pulp/published/yum/master/yum_distributor/:
[root@rmavmrsoe7112 units]# locate zziplib-utils-0.13.62-5.el7.x86_64.rpm
/var/lib/pulp/published/yum/master/yum_distributor/3-CSOE73_CV-Library-a7f65246-8e76-43d2-8162-623dc080cc0f/1497867996.01/Packages/zziplib-utils-0.13.62-5.el7.x86_64.rpm
/var/lib/pulp/published/yum/master/yum_distributor/3-CSOE73_CV-Library-a7f65246-8e76-43d2-8162-623dc080cc0f/1497867996.01/Packages/z/zziplib-utils-0.13.62-5.el7.x86_64.rpm
/var/lib/pulp/published/yum/master/yum_distributor/3-CSOE73_CV-v1_0-a7f65246-8e76-43d2-8162-623dc080cc0f/1497867952.03/Packages/zziplib-utils-0.13.62-5.el7.x86_64.rpm
/var/lib/pulp/published/yum/master/yum_distributor/3-CSOE73_CV-v1_0-a7f65246-8e76-43d2-8162-623dc080cc0f/1497867952.03/Packages/z/zziplib-utils-0.13.62-5.el7.x86_64.rpm
/var/lib/pulp/published/yum/master/yum_distributor/a7f65246-8e76-43d2-8162-623dc080cc0f/1497866073.49/Packages/zziplib-utils-0.13.62-5.el7.x86_64.rpm
/var/lib/pulp/published/yum/master/yum_distributor/a7f65246-8e76-43d2-8162-623dc080cc0f/1497866073.49/Packages/z/zziplib-utils-0.13.62-5.el7.x86_64.rpm

Has anyone found something similar?

Thanks!

Hello,
according to the pulp docs[1] on-demand download policy (which you're
obviously using for that repository) means: "A download policy that only
saves a content unit locally after a client has requested that content
unit.". So it seems you don't have any rpms locally because they were not
requested by any client yet. If you want to download all the content you
can try setting that repository's download policy to immediate.

[1] - https://docs.pulpproject.org/user-guide/glossary.html#
term-download-policy

Adam

Ups, my old Foreman was 1.9 and it didn't have that option =S Thanks a lot!

··· El lunes, 19 de junio de 2017, 13:32:20 (UTC+2), Adam Ruzicka escribió: > > Hello, > according to the pulp docs[1] on-demand download policy (which you're > obviously using for that repository) means: "A download policy that only > saves a content unit locally after a client has requested that content > unit.". So it seems you don't have any rpms locally because they were not > requested by any client yet. If you want to download all the content you > can try setting that repository's download policy to immediate. > > [1] - > https://docs.pulpproject.org/user-guide/glossary.html#term-download-policy > > Adam >