Project

Profile

Help

Issue #1778

closed

Switching a repository to immediate from on_demand doesn't download its packages

Added by daviddavis over 8 years ago. Updated over 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.8.0
Platform Release:
2.8.3
OS:
CentOS 7
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

If you have create an on_demand repo, sync it, then switch its download_policy to immediate or background, then its packages don't get downloaded:

$ pulp-admin rpm repo create --repo-id zoolander --download-policy on_demand --feed https://davidd.fedorapeople.org/repos/zoo-lander/
Successfully created repository [zoolander]

$ pulp-admin rpm repo sync run --repo-id zoolander                                                                                                                                                                       
...

$ pulp-admin rpm repo update --repo-id zoolander --download-policy immediate
Repository [zoolander] successfully updated

$ pulp-admin rpm repo list --repo-id zoolander --details

## confirmed its download policy is immediate

$ pulp-admin rpm repo sync run --repo-id zoolander                                                                                                                                                                       
...                                                                                                                                                                                

$ tree /var/lib/pulp/content
                                                                                                                                                                                                                                                                                                                                                                /var/lib/pulp/content

                                                                                                                                                                                                                                                                                                                                                                0 directories, 0 files

Related issues

Related to RPM Support - Issue #1775: Content removed from a repository never returnsCLOSED - CURRENTRELEASEttereshcActions
Actions #1

Updated by mhrivnak over 8 years ago

  • Project changed from Pulp to RPM Support
  • Platform Release set to 2.8.1
Actions #2

Updated by mhrivnak over 8 years ago

  • Version changed from Master to 2.8.0
Actions #3

Updated by daviddavis over 8 years ago

  • Subject changed from Switching a repository to immediate or background from on_demand doesn't download its packages to Switching a repository to immediate from on_demand doesn't download its packages

Looks like it only happens with immediate (and not background). Updating subject.

Actions #4

Updated by ipanova@redhat.com over 8 years ago

  • Related to Issue #1775: Content removed from a repository never returns added
Actions #5

Updated by mhrivnak over 8 years ago

  • Priority changed from Normal to High
  • Triaged changed from No to Yes
Actions #8

Updated by ipanova@redhat.com over 8 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to ipanova@redhat.com
Actions #9

Updated by semyers over 8 years ago

  • Platform Release changed from 2.8.1 to 2.8.2
Actions #11

Updated by ipanova@redhat.com over 8 years ago

  • Status changed from ASSIGNED to POST

Added by ipanova@redhat.com over 8 years ago

Revision 81137bbe | View on GitHub

Handle correctly the download policy switch.

closes #1778 https://pulp.plan.io/issues/1778

Actions #12

Updated by ipanova@redhat.com over 8 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #13

Updated by semyers over 8 years ago

  • Platform Release changed from 2.8.2 to 2.8.3
Actions #15

Updated by pthomas@redhat.com over 8 years ago

verified

[root@qe-blade-03 ~]# rpm -qa pulp-server
pulp-server-2.8.3-0.1.beta.git.44.70215c3.el7.noarch
[root@qe-blade-03 ~]# 

[root@qe-blade-03 ~]# pulp-admin rpm repo create --repo-id zoolander --download-policy on_demand --feed https://davidd.fedorapeople.org/repos/zoo-lander/
Successfully created repository [zoolander]

[root@qe-blade-03 ~]# pulp-admin rpm repo sync run --repo-id zoolander   
+----------------------------------------------------------------------+
                  Synchronizing Repository [zoolander]
+----------------------------------------------------------------------+

This command may be exited via ctrl+c without affecting the request.

Downloading metadata...
[/]
... completed

Downloading repository content...
[==================================================] 100%
RPMs:       1/1 items
Delta RPMs: 0/0 items

... completed

Downloading distribution files...
[==================================================] 100%
Distributions: 0/0 items
... completed

Importing errata...
[-]
... completed

Importing package groups/categories...
[-]
... completed

Cleaning duplicate packages...
[\]
... completed

Task Succeeded

Initializing repo metadata
[-]
... completed

Publishing Distribution files
[-]
... completed

Publishing RPMs
[==================================================] 100%
32 of 32 items
... completed

Publishing Delta RPMs
... skipped

Publishing Errata
[==================================================] 100%
4 of 4 items
... completed

Publishing Comps file
[==================================================] 100%
2 of 2 items
... completed

Publishing Metadata.
[-]
... completed

Closing repo metadata
[-]
... completed

Generating sqlite files
... skipped

Publishing files to web
[-]
... completed

Writing Listings File
[-]
... completed

Task Succeeded

[root@qe-blade-03 ~]# pulp-admin rpm repo update --repo-id zoolander --download-policy immediate
Repository [zoolander] successfully updated

[root@qe-blade-03 ~]# pulp-admin rpm repo update --repo-id zoolander --download-policy immediate
Repository [zoolander] successfully updated

[root@qe-blade-03 ~]# pulp-admin rpm repo list --repo-id zoolander --details
+----------------------------------------------------------------------+
                            RPM Repositories
+----------------------------------------------------------------------+

Id:                   zoolander
Display Name:         None
Description:          None
Content Unit Counts:  
  Erratum:       4
  Package Group: 2
  Rpm:           32
Notes:                
Scratchpad:           
  Checksum Type: sha256
Importers:            
  Config:           
    Download Policy: immediate
    Feed:            https://davidd.fedorapeople.org/repos/zoo-lander/
  Id:               yum_importer
  Importer Type Id: yum_importer
  Last Sync:        2016-04-14T14:19:08Z
  Repo Id:          zoolander
  Scratchpad:       
    Previous Skip List: 
    Repomd Revision:    1364852077
Distributors:         
  Auto Publish:        True
  Config:              
    Checksum Type: sha256
    Http:          False
    Https:         True
    Relative URL:  repos/zoo-lander/
  Distributor Type Id: yum_distributor
  Id:                  yum_distributor
  Last Publish:        2016-04-14T14:19:09Z
  Repo Id:             zoolander
  Scratchpad:          
  Auto Publish:        False
  Config:              
    Http:         False
    Https:        True
    Relative URL: repos/zoo-lander/
  Distributor Type Id: export_distributor
  Id:                  export_distributor
  Last Publish:        None
  Repo Id:             zoolander
  Scratchpad:          

[root@qe-blade-03 ~]# tree /var/lib/pulp/content/
/var/lib/pulp/content/
└── units
    └── rpm
        ├── 02
        │   └── 4d46c52813635d9322f078df4309081c46e5bb2426d3be8ad4666afb695fee
        │       └── trout-0.12-1.noarch.rpm
        ├── 13
        │   └── 92f6860c436ac3b59645d14950bb6003d0d85d86465308a4e61cd73cbf7e91
        │       └── horse-0.22-2.noarch.rpm
        ├── 17
        │   └── 46c567d72a0efd86854fcdf1bdd323eb5fcda31bcaccbb25ae9ca5b10e1736
        │       └── dog-4.23-1.noarch.rpm
        ├── 1a
        │   ├── 527cb53a1f78d586b7267ba891d7ff5fa701643707efd05a82d000786f4d26
        │   │   └── walrus-0.71-1.noarch.rpm
        │   └── 88d93d4a0a48c54d34d8964a7121f2ace7354b8715a57449da03b0c562834e
        │       └── stork-0.12-2.noarch.rpm
        ├── 26
        │   └── fb397d0d1335dc6f72e55e05a625eab848aeadbf24289e763a0c26a4ca49d5
        │       └── wolf-9.4-2.noarch.rpm
        ├── 31
        │   └── 284d1b93fa418d23dc3d47239983dbf571fa2da087d6e7ae6cd21c7c6dffae
        │       └── cockateel-3.1-1.noarch.rpm
        ├── 38
        │   └── 0ef86bf1d303febdd2b990fe971611ee49ab9b267077568f23d81babe96dfc
        │       └── zebra-0.1-2.noarch.rpm
        ├── 41
        │   └── b650e4f1780e67eeb83357d552cc0aacde317f7305b610cbd2ac01b3c6ab4b
        │       └── pike-2.2-1.noarch.rpm
        ├── 42
        │   └── 8e6589fc9c819206662a6c2ed5df944fcdbfe698987301a38855f5a082d6a2
        │       └── lion-0.4-1.noarch.rpm
        ├── 60
        │   └── 37b88ebb2cc696521aa94ca879654ceb80efce7493dea1d797a2d528e4926d
        │       └── cheetah-1.25.3-5.noarch.rpm
        ├── 62
        │   └── 36bfaa2300e84166db60286cabc3813a44a21683f532c6b253c000064b3f78
        │       └── giraffe-0.67-2.noarch.rpm
        ├── 72
        │   └── 64dbebd0f8a17cca36d672174028e12919fa8e06d2bd80ae20f7da9c38254e
        │       └── kangaroo-0.2-1.noarch.rpm
        ├── 76
        │   └── 78177c241777af22235092f21c3932dd4f0664e1624e5a2c77a201ec70f930
        │       └── bear-4.1-1.noarch.rpm
        ├── 77
        │   └── 17fd26f4f352d19bdeaa21b1fa16a3053fa9a7d0b5f69f88577108f8044120
        │       └── camel-0.1-1.noarch.rpm
        ├── 7c
        │   └── 7f3c40265fa28723b10824f2c97cadc573d8eab4e0a95288cb438175953f90
        │       └── frog-0.1-1.noarch.rpm
        ├── 81
        │   └── 56c30a4fbfb9d95cb740f0deaa773122e689118f26349092fc3771d0310e60
        │       └── elephant-8.3-1.noarch.rpm
        ├── 9a
        │   ├── 5dfc0e2999a45e12a72cf125290052d462207d22fb5544af889c038e0072df
        │   │   └── shark-0.1-1.noarch.rpm
        │   └── f5588032a98f9fca7f3f6c0db7174b044beb914f9b71efa8af514ad0e81d0a
        │       └── cat-1.0-1.noarch.rpm
        ├── a4
        │   └── b484f63a4e3d9660d6908a50921e4414867dd820d829e3798918d2ad77e862
        │       └── mouse-0.1.12-1.noarch.rpm
        ├── b8
        │   └── 00902d00a73d85eb28e446ea2d44fa2f97f36e815f94c614f585716a816729
        │       └── whale-0.2-1.noarch.rpm
        ├── bb
        │   └── a187163c14f7e124009157c58e615cccf9eda81a8c09949bf4de2398a53bbe
        │       └── penguin-0.9.1-1.noarch.rpm
        ├── c6
        │   ├── 015e7456e430efd48d698c77da319655874adfee4362256ee2e0012abbec3a
        │   │   └── fox-1.1-2.noarch.rpm
        │   └── 94277c7a87fc0c5ecfa4cc92641ca2175c14d6ce95939a87288282958478b1
        │       └── dolphin-3.10.232-1.noarch.rpm
        ├── c9
        │   └── efb113ebdfa14d755a812ce02fbd6a569906d12d93584ba8eca1dfbb718724
        │       └── gorilla-0.62-1.noarch.rpm
        ├── cc
        │   └── 02ad35f4c44fe999cd8a9804808b94ad2d41a7481ee322cbb611c86e06c7d2
        │       └── squirrel-0.1-1.noarch.rpm
        ├── cf
        │   └── a9bb6ac796b5732019a4e2bb68ce26e8703154289bbe5635079dcfaac0373b
        │       └── walrus-5.21-1.noarch.rpm
        ├── db
        │   └── 488c4cbd15b050a09009c67af90236bd90f9bed7333acae9bcbb879e75fb61
        │       └── crow-0.8-1.noarch.rpm
        ├── dd
        │   └── 5c8f16cebf54ded74052a68a5c6e2f1aec36fa4d69b7b6c3c00f4b5ba1facd
        │       └── cow-2.2-3.noarch.rpm
        ├── f5
        │   └── 9c66767b6dc94fb49dd3d707ea1761c69e54571e93a13fbfb3ea6b7a2a991a
        │       └── duck-0.6-1.noarch.rpm
        ├── fc
        │   └── ff1d9831c3ab0abdebf916280066ad4516e0e487266cd0b0a80fc2e059d9c8
        │       └── chimpanzee-0.21-1.noarch.rpm
        └── ff
            └── 05c2e1eaf70f44b42c1275fc01b5d0d2b9fa66c848ef77d9b9a4e17020b214
                └── tiger-1.0-4.noarch.rpm
Actions #16

Updated by semyers over 8 years ago

  • Status changed from MODIFIED to 5
Actions #17

Updated by pthomas@redhat.com over 8 years ago

  • Status changed from 5 to 6
Actions #18

Updated by semyers over 8 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE
Actions #20

Updated by bmbouter over 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF