Actions
Issue #8331
closeddownloaded flag is not flipped after the policy is changed to immediate and repo is synced
Status:
CLOSED - DUPLICATE
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
Ticket moved to GitHub: "pulp/pulp_rpm/2267":https://github.com/pulp/pulp_rpm/issues/2267
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.
Updated by pulpbot over 2 years ago
- Description updated (diff)
- Status changed from NEW to CLOSED - DUPLICATE
Actions