Project

Profile

Help

Issue #3682

closed

'on_demand' download policy not working for SUSE repos

Added by dkliban@redhat.com almost 6 years ago. Updated about 5 years ago.

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

Description

A pulp-smash that tests errata for SUSE repos tries to sync a repository using the 'on_demand' policy[0]. However, it seems like this is not working[1] and all the packages are being downloaded during the test.

[0] https://github.com/PulpQE/pulp-smash/blob/master/pulp_smash/tests/pulp2/rpm/api_v2/test_updateinfo.py#L609
[1] https://github.com/pulp/pulp_rpm/pull/1107#pullrequestreview-121264455

Actions #1

Updated by dkliban@redhat.com almost 6 years ago

  • Project changed from Pulp to RPM Support
Actions #2

Updated by Ichimonji10 almost 6 years ago

I can provision a Pulp 2.16 nightly host and successfully execute python -m unittest pulp_smash.tests.pulp2.rpm.api_v2.test_updateinfo.OpenSuseErrataTestCase. Can some additional information be provided? Does this test fail only when Pulp is installed from source? The test does take quite a while to execute (e.g. 838 seconds), but under normal circumstances, that's due to intense CPU usage. Here's some system info:

[root@fedora-26-pulp-2-16-nightly ~]# rpm -qa | grep pulp | sort
pulp-admin-client-2.16.1-1.fc26.noarch
pulp-deb-admin-extensions-1.7.0-1.fc26.noarch
pulp-deb-plugins-1.7.0-1.fc26.noarch
pulp-docker-admin-extensions-3.1.3-1.fc26.noarch
pulp-docker-plugins-3.1.3-1.fc26.noarch
pulp-ostree-admin-extensions-1.3.0-1.fc26.noarch
pulp-ostree-plugins-1.3.0-1.fc26.noarch
pulp-puppet-admin-extensions-2.16.1-1.fc26.noarch
pulp-puppet-plugins-2.16.1-1.fc26.noarch
pulp-puppet-tools-2.16.1-1.fc26.noarch
pulp-python-admin-extensions-2.0.2-1.fc26.noarch
pulp-python-plugins-2.0.2-1.fc26.noarch
pulp-rpm-admin-extensions-2.16.1-1.fc26.noarch
pulp-rpm-plugins-2.16.1-1.fc26.noarch
pulp-selinux-2.16.1-1.fc26.noarch
pulp-server-2.16.1-1.fc26.noarch
python-pulp-bindings-2.16.1-1.fc26.noarch
python-pulp-client-lib-2.16.1-1.fc26.noarch
python-pulp-common-2.16.1-1.fc26.noarch
python-pulp-deb-common-1.7.0-1.fc26.noarch
python-pulp-docker-common-3.1.3-1.fc26.noarch
python-pulp-oid_validation-2.16.1-1.fc26.noarch
python-pulp-ostree-common-1.3.0-1.fc26.noarch
python-pulp-puppet-common-2.16.1-1.fc26.noarch
python-pulp-python-common-2.0.2-1.fc26.noarch
python-pulp-repoauth-2.16.1-1.fc26.noarch
python-pulp-rpm-common-2.16.1-1.fc26.noarch
python-pulp-streamer-2.16.1-1.fc26.noarch
[root@fedora-26-pulp-2-16-nightly ~]# df -h
Filesystem               Size  Used Avail Use% Mounted on
devtmpfs                 984M     0  984M   0% /dev
tmpfs                    997M   60K  997M   1% /dev/shm
tmpfs                    997M  980K  996M   1% /run
tmpfs                    997M     0  997M   0% /sys/fs/cgroup
/dev/mapper/fedora-root   15G  2.8G   13G  19% /
/dev/vda1                976M  185M  724M  21% /boot
tmpfs                    997M  4.0K  997M   1% /tmp
tmpfs                    200M     0  200M   0% /run/user/0
Actions #3

Updated by dkliban@redhat.com almost 6 years ago

  • Status changed from NEW to CLOSED - WORKSFORME

I was mistaken. The on_demand download policy works.

Actions #4

Updated by Ichimonji10 almost 6 years ago

Thank you for double checking.

Actions #5

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF