Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
pulpbot opened this issue Dec 22, 2021 · 2 comments

Comments

@pulpbot
Copy link
Member

pulpbot commented Dec 22, 2021

Author: @ipanova (ipanova@redhat.com)

Redmine Issue: 8331, https://pulp.plan.io/issues/8331


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.

@dralley
Copy link
Contributor

dralley commented Jan 5, 2022

@ipanova @dkliban @goosemania Any objections to closing this one? I don't think it has much hope of being fixed.

@goosemania
Copy link
Member

No objections, +1 to close as wontfix or whatever it is in the github world.

@dralley dralley closed this as completed Jan 17, 2022
@dralley dralley added Wontfix and removed New labels Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants