Project

Profile

Help

Issue #1489

closed

Unit copy not copying package groups or categories

Added by paji@redhat.com over 8 years ago. Updated about 5 years ago.

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

Description

I have not been able to reproduce all the steps via pulp-admin but seems to readily happen in the API when called in runcible.

1) Checkout -> https://github.com/Katello/runcible, we need the contents of https://github.com/Katello/runcible/tree/master/test/fixtures/repositories/zoo5 and below in some directory. Steps below will assume file:///var/www/repositories/zoo5 is the destination

2) Create a repo
RestClient.post "https://<PULP>/pulp/api/v2/repositories/", "{\"id\":\"integration_test_id\",\"importer_type_id\":\"yum_importer\",\"importer_config\":{\"feed\":\"file:///var/www/repositories/zoo5\"}}", "Accept"=>"*/*; q=0.5, application/xml", "Accept-Encoding"=>"gzip, deflate", "Content-Length"=>"125", "accept"=>"application/json", "content_type"=>"application/json"

3) Sync as follows
RestClient.post "https://katello-pulp-nightly.example.com/pulp/api/v2/repositories/integration_test_id/actions/sync/", "{}", "Accept"=>"*/*; q=0.5, application/xml", "Accept-Encoding"=>"gzip, deflate", "Content-Length"=>"2", "accept"=>"application/json", "content_type"=>"application/json"
\n# => 202 Accepted | application/json 172 bytes

4) Next create a new repo
RestClient.post "https://katello-pulp-nightly.example.com/pulp/api/v2/repositories/", "{\"id\":\"integration_test_id_clone\",\"importer_type_id\":\"yum_importer\",\"importer_config\":{}}", "Accept"=>"*/*; q=0.5, application/xml", "Accept-Encoding"=>"gzip, deflate", "Content-Length"=>"89", "accept"=>"application/json", "content_type"=>"application/json"

5) Copy contents of integration_test_id_to integration_test_id_clone

 DEBUG -- : RestClient.post "https://katello-pulp-nightly.example.com/pulp/api/v2/repositories/integration_test_id_clone/actions/associate/", "{\"source_repo_id\":\"integration_test_id\"}", "Accept"=>"*/*; q=0.5, application/xml", "Accept-Encoding"=>"gzip, deflate", "Content-Length"=>"40", "accept"=>"application/json", "content_type"=>"application/json"

Notice that package groups and package categories do not get copied. Infact you can try this part with pulp-admin also and the see the same behaviour

pulp-admin rpm repo create --repo-id=recontextualize
pulp-admin rpm repo copy all --from-repo-id=integration_test_id --to-repo-id=recontextualize

The package groups are not copied over.

Also available in: Atom PDF