verified
Followed the steps from #10
[root@mgmt5 ~]# pulp-admin rpm repo create --repo-id zoo-copy\
Successfully created repository [zoo-copy]
[root@mgmt5 ~]# pulp-admin rpm repo copy all -f zoo -t zoo-copy
This command may be exited via ctrl+c without affecting the request.
[\]
Running...
Copied:
erratum:
RHEA-2012:0001
RHEA-2012:0002
RHEA-2012:0003
RHEA-2012:0004
package_category:
all
package_group:
birds
mammals
rpm:
bear-4.1-1-noarch
camel-0.1-1-noarch
cat-1.0-1-noarch
cheetah-1.25.3-5-noarch
chimpanzee-0.21-1-noarch
cockateel-3.1-1-noarch
cow-2.2-3-noarch
crow-0.8-1-noarch
dog-4.23-1-noarch
dolphin-3.10.232-1-noarch
duck-0.6-1-noarch
elephant-8.3-1-noarch
fox-1.1-2-noarch
frog-0.1-1-noarch
giraffe-0.67-2-noarch
gorilla-0.62-1-noarch
horse-0.22-2-noarch
kangaroo-0.2-1-noarch
lion-0.4-1-noarch
mouse-0.1.12-1-noarch
penguin-0.9.1-1-noarch
pike-2.2-1-noarch
shark-0.1-1-noarch
squirrel-0.1-1-noarch
stork-0.12-2-noarch
tiger-1.0-4-noarch
trout-0.12-1-noarch
walrus-0.71-1-noarch
walrus-5.21-1-noarch
whale-0.2-1-noarch
wolf-9.4-2-noarch
zebra-0.1-2-noarch
[root@mgmt5 ~]#
[root@mgmt5 ~]# pulp-admin rpm repo content group --repo-id zoo-copy
Conditional Package Names:
Default Package Names:
Id: birds
Mandatory Package Names: cockateel, duck, penguin, stork
Name: birds
Optional Package Names:
User Visible: True
Conditional Package Names:
Default Package Names:
Id: mammals
Mandatory Package Names: bear, camel, cat, cheetah, chimpanzee, cow, dog,
dolphin, elephant, fox, giraffe, gorilla, horse,
kangaroo, lion, mouse, squirrel, tiger, walrus,
whale, wolf, zebra
Name: mammals
Optional Package Names:
User Visible: True
[root@mgmt5 ~]#
[root@mgmt5 ~]#
[root@mgmt5 ~]# pulp-admin rpm repo delete --repo-id zoo
This command may be exited via ctrl+c without affecting the request.
[\]
Running...
Repository [zoo] successfully deleted
[root@mgmt5 ~]# pulp-admin rpm repo delete --repo-id zoo-copy
This command may be exited via ctrl+c without affecting the request.
[\]
Running...
Repository [zoo-copy] successfully deleted
[root@mgmt5 ~]#
[root@mgmt5 ~]#
[root@mgmt5 ~]# pulp-admin rpm repo create --repo-id zoo --feed https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/
Successfully created repository [zoo]
[root@mgmt5 ~]# pulp-admin rpm repo sync run --repo-id zoo
--------------------------------------------------------------------
Synchronizing Repository [zoo]
--------------------------------------------------------------------
This command may be exited via ctrl+c without affecting the request.
Downloading metadata...
[|]
... completed
Downloading repository content...
[-]
[==================================================] 100%
RPMs: 0/0 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%
3 of 3 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@mgmt5 ~]# pulp-admin rpm repo content group --repo-id zoo
Conditional Package Names:
Default Package Names:
Id: mammals
Mandatory Package Names: bear, camel, cat, cheetah, chimpanzee, cow, dog,
dolphin, elephant, fox, giraffe, gorilla, horse,
kangaroo, lion, mouse, squirrel, tiger, walrus,
whale, wolf, zebra
Name: mammals
Optional Package Names:
User Visible: True
Conditional Package Names:
Default Package Names:
Id: birds
Mandatory Package Names: cockateel, duck, penguin, stork
Name: birds
Optional Package Names:
User Visible: True
[root@mgmt5 ~]# pulp-admin rpm repo create --repo-id zoo-copy
Successfully created repository [zoo-copy]
[root@mgmt5 ~]# pulp-admin rpm repo copy all -f zoo -t zoo-copy
This command may be exited via ctrl+c without affecting the request.
[\]
Running...
Copied:
erratum:
RHEA-2012:0001
RHEA-2012:0002
RHEA-2012:0003
RHEA-2012:0004
package_category:
all
package_group:
birds
mammals
rpm:
bear-4.1-1-noarch
camel-0.1-1-noarch
cat-1.0-1-noarch
cheetah-1.25.3-5-noarch
chimpanzee-0.21-1-noarch
cockateel-3.1-1-noarch
cow-2.2-3-noarch
crow-0.8-1-noarch
dog-4.23-1-noarch
dolphin-3.10.232-1-noarch
duck-0.6-1-noarch
elephant-8.3-1-noarch
fox-1.1-2-noarch
frog-0.1-1-noarch
giraffe-0.67-2-noarch
gorilla-0.62-1-noarch
horse-0.22-2-noarch
kangaroo-0.2-1-noarch
lion-0.4-1-noarch
mouse-0.1.12-1-noarch
penguin-0.9.1-1-noarch
pike-2.2-1-noarch
shark-0.1-1-noarch
squirrel-0.1-1-noarch
stork-0.12-2-noarch
tiger-1.0-4-noarch
trout-0.12-1-noarch
walrus-0.71-1-noarch
walrus-5.21-1-noarch
whale-0.2-1-noarch
wolf-9.4-2-noarch
zebra-0.1-2-noarch
[root@mgmt5 ~]# pulp-admin rpm repo content group --repo-id zoo-copy
Conditional Package Names:
Default Package Names:
Id: mammals
Mandatory Package Names: bear, camel, cat, cheetah, chimpanzee, cow, dog,
dolphin, elephant, fox, giraffe, gorilla, horse,
kangaroo, lion, mouse, squirrel, tiger, walrus,
whale, wolf, zebra
Name: mammals
Optional Package Names:
User Visible: True
Conditional Package Names:
Default Package Names:
Id: birds
Mandatory Package Names: cockateel, duck, penguin, stork
Name: birds
Optional Package Names:
User Visible: True
[root@mgmt5 ~]#
existing group and category units get associated correctly during sync
Previously in 2.8 development code, when a group or category existed as an orphan, the sync would incorrectly create the association so that the unit_id was not unit_id of the existing unit in the DB. This caused search to break for those units in that repo, which in turn caused copy to break.
https://pulp.plan.io/issues/1489 fixes #1489