Project

Profile

Help

Issue #8331

downloaded flag is not flipped after the policy is changed to immediate and repo is synced

Added by ipanova@redhat.com 5 months ago. Updated 5 months ago.

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

Description

sync a file repo with on_demand policy https://fixtures.pulpproject.org/file2/

> db.units_iso.find({'_id':'6ba4ab8f-23fc-41bb-bc33-0aa9a7e0d5fa'})[0]
{
	"_id" : "6ba4ab8f-23fc-41bb-bc33-0aa9a7e0d5fa",
	"pulp_user_metadata" : {
		
	},
	"_last_updated" : 1614789447,
	"_storage_path" : "/var/lib/pulp/content/units/iso/8e/70eee79a97f7ed85f1d020dfcfb520b5b08fb0605f6a51b88645f6bee37e2f",
	"downloaded" : false,
	"name" : "2.iso",
	"checksum" : "ef1845a0afeb51fb147d41c2494044e15db09c13d3ba096713b0ef1ee5896b29",
	"size" : 1024,
	"_ns" : "units_iso",
	"_content_type_id" : "iso"
}
> ^C
bye
(pulp) [vagrant@pulp2-nightly-pulp3-source-centos7 ~]$ less /var/lib/pulp/content/units/iso/8e/70eee79a97f7ed85f1d020dfcfb520b5b08fb0605f6a51b88645f6bee37e2f
/var/lib/pulp/content/units/iso/8e/70eee79a97f7ed85f1d020dfcfb520b5b08fb0605f6a51b88645f6bee37e2f: No such file or directory

Change importer's policy to immediate and sync repo

Downloaded flag is still set to false but bits were downloaded

> db.units_iso.find({'_id':'6ba4ab8f-23fc-41bb-bc33-0aa9a7e0d5fa'})[0]
{
	"_id" : "6ba4ab8f-23fc-41bb-bc33-0aa9a7e0d5fa",
	"pulp_user_metadata" : {
		
	},
	"_last_updated" : 1614789447,
	"_storage_path" : "/var/lib/pulp/content/units/iso/8e/70eee79a97f7ed85f1d020dfcfb520b5b08fb0605f6a51b88645f6bee37e2f",
	"downloaded" : false,
	"name" : "2.iso",
	"checksum" : "ef1845a0afeb51fb147d41c2494044e15db09c13d3ba096713b0ef1ee5896b29",
	"size" : 1024,
	"_ns" : "units_iso",
	"_content_type_id" : "iso"
}
> 

(pulp) [vagrant@pulp2-nightly-pulp3-source-centos7 ~]$ ll /var/lib/pulp/content/units/iso/8e/70eee79a97f7ed85f1d020dfcfb520b5b08fb0605f6a51b88645f6bee37e2f
-rw-rw-r--. 1 apache apache 1024 Mar  3 16:48 /var/lib/pulp/content/units/iso/8e/70eee79a97f7ed85f1d020dfcfb520b5b08fb0605f6a51b88645f6bee37e2f
(pulp) [vagrant@pulp2-nightly-pulp3-source-centos7 ~]$

NOTE rpm plugin works fine, flag is flipped correctly.

History

#1 Updated by ipanova@redhat.com 5 months ago

  • Tags Pulp 2 added

#2 Updated by ipanova@redhat.com 5 months ago

  • Description updated (diff)

#3 Updated by ipanova@redhat.com 5 months ago

  • Description updated (diff)

#4 Updated by dalley 5 months ago

  • Triaged changed from No to Yes

Please register to edit this issue

Also available in: Atom PDF