Project

Profile

Help

Issue #5359

treeinfo files in deferred-download repos don't see feed updates

Added by ggainey about 2 months ago. Updated 6 days ago.

Status:
ASSIGNED
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Severity:
2. Medium
Version:
2.20.0
Platform Release:
Blocks Release:
OS:
Backwards Incompatible:
No
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:
Sprint 60

Description

Set up and sync a deferred-download repo. Update its feed and re-sync. Access a kickstart/treeinfo-related file. Look in the logs, and note that said file is downloaded from the original feed-url, not the newly-updated one.

Update: forcing a full-sync fixes the issue.

From comment in BZ#1744225 , investigation of which led to this issue:

"Start with a repo pulling on-demand from a Centos7 mirror, switch feeds, and then ask for an RPM - RPM is pulled from new-location as expected:

#### CREATE, SYNC, REQUEST, CHECK
# pulp-admin rpm repo create --repo-id centos-7-x86_64 --feed http://mirror.fileplanet.com/centos/7/os/x86_64/ --download-policy on_demand
# pulp-admin rpm repo sync run --repo-id centos-7-x86_64
# wget --no-check-certificate https://<pulp-machine>/pulp/repos/centos/7/os/x86_64/Packages/e/ElectricFence-2.2.2-39.el7.x86_64.rpm
# pjournal | grep Electric
Aug 26 19:00:47 pulp2.dev pulp_streamer[27677]: pulp.streamer.server:INFO: Trying URL: http://mirror.fileplanet.com/centos/7/os/x86_64/Packages/ElectricFence-2.2.2-39.el7.x86_64.rpm
#
### UPDATE, SYNC, REQUEST, CHECK
# pulp-admin rpm repo update --repo-id centos-7-x86_64 --feed http://mirror.linux.duke.edu/pub/centos/7/os/x86_64/
# pulp-admin rpm repo sync run --repo-id centos-7-x86_64
# wget --no-check-certificate https://<pulp-machine>/pulp/repos/centos/7/os/x86_64/e/elfutils-0.172-2.el7.x86_64.rpm
# pjournal | grep elfutils
Aug 26 20:14:53 pulp2.dev pulp_streamer[27677]: pulp.streamer.server:INFO: Trying URL: http://mirror.linux.duke.edu/pub/centos/7/os/x86_64/Packages/elfutils-0.172-2.el7.x86_64.rpm

Ask for a treeinfo-related file, note that it continues to pull from old-repo:
# wget --no-check-certificate https://<pulp-machine>/pulp/repos/centos/7/os/x86_64/images/pxeboot/initrd.img
# pjournal | grep  initrd
Aug 26 20:15:41 pulp2.dev pulp_streamer[27677]: pulp.streamer.server:INFO: Trying URL: http://mirror.fileplanet.com/centos/7/os/x86_64/images/pxeboot/initrd.img

The PR submitted for issue #4265 does NOT appear to fix this behavior - feels like 'update' doesn't touch treeinfo-related files, just repomd-related ones.

Update from a final test - "--force-full" resync appears to work around the issue:

### Full sync and pull another treeinfo file
# pulp-admin rpm repo sync run --repo-id centos-7-x86_64 --force-full
# wget --no-check-certificate https://192.168.122.124/pulp/repos/centos/7/os/x86_64/images/pxeboot/vmlinuz
# pjournal | grep vmlinuz
Aug 27 12:48:17 pulp2.dev pulp_streamer[22861]: pulp.streamer.server:INFO: Trying URL: http://mirror.linux.duke.edu/pub/centos/7/os/x86_64/images/pxeboot/vmlinuz

History

#1 Updated by ggainey about 2 months ago

RE "The PR submitted for issue #4265 " - should be #4524 , sorry

#2 Updated by amacdona@redhat.com about 2 months ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 58

#3 Updated by rchan about 1 month ago

  • Sprint changed from Sprint 58 to Sprint 59

#4 Updated by rchan 24 days ago

  • Sprint changed from Sprint 59 to Sprint 60

#5 Updated by ggainey 6 days ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to ggainey

Please register to edit this issue

Also available in: Atom PDF