Issue #6693
Updated by dkliban@redhat.com over 4 years ago
Here's an example of a session where the same source repo version (populated with content) is used to copy content into another repo using the dest base version of 0. The first copy successfully copied all content units. The second copy specified a single unit (that exists in the source repo) but the copy task completes with no crreated resources (no new repo version). Here's a trace output pulled from application logs: <pre> ~~ 2020-05-08T14:49:25 [D|kat|] Calling API: RpmCopyApi.copy_content ... 2020-05-08T14:49:25 [D|kat|] HTTP request body param ~BEGIN~ | {"config":[{"source_repo_version":"/pulp/api/v3/repositories/rpm/rpm/0c72a809-e5b5-43c0-b687-8049f8005753/versions/1/","dest_repo":"/pulp/api/v3/repositories/rpm/rpm/d0326c7c-8767-4951-80be-595b54aca32f/","dest_base_version":0,"content":["/pulp/api/v3/content/rpm/packages/1141b0e0-c20a-4c8f-acb8-08eda489433e/","/pulp/api/v3/content/rpm/packages/202c8513-cddd-47e5-9004-a7e00cf9a03f/","/pulp/api/v3/content/rpm/packages/23e532c7-b2bc-4cb7-b91c-51a9846dc09d/","/pulp/api/v3/content/rpm/packages/23f99068-2fa4-4fd6-a277-303d3b53713a/","/pulp/api/v3/content/rpm/packages/2ae2a30a-bb8d-4a50-90d3-dc28805a8e23/","/pulp/api/v3/content/rpm/packages/2c5add2b-c599-4bdf-adbf-790164e88ca5/","/pulp/api/v3/content/rpm/packages/317005b2-34b5-4e19-bb48-2f34b4e7a1a8/","/pulp/api/v3/content/rpm/packages/4650ba2c-a141-4720-b509-b9477adc2348/","/pulp/api/v3/content/rpm/packages/47f4047e-ad17-47de-9683-74622bfa67f6/","/pulp/api/v3/content/rpm/packages/56c938cd-1c82-42d4-bea1-ce24e828217b/","/pulp/api/v3/content/rpm/packages/5dfb1bf0-0373-4421-92ad-7bef1fa90078/","/pulp/api/v3/content/rpm/packages/5ef359e1-7ec9-4a95-9fff-1ac05ba39440/","/pulp/api/v3/content/rpm/packages/6af8994c-f6d8-4088-b2e5-fd8e08c7e62a/","/pulp/api/v3/content/rpm/packages/6b2fbf72-dbd7-4393-980e-c0585ded7ffd/","/pulp/api/v3/content/rpm/packages/6d328de6-2542-410b-b1c2-fd1666c5903d/","/pulp/api/v3/content/rpm/packages/70a8b050-6ac4-435d-b30f-946a3f91b760/","/pulp/api/v3/content/rpm/packages/7219bd2d-e380-4a6f-a2ae-11553cbeec51/","/pulp/api/v3/content/rpm/packages/7ba12c51-951e-44c5-bb58-8feace81431d/","/pulp/api/v3/content/rpm/packages/89160b1c-9f0c-461b-ad92-4e9d1f49d02d/","/pulp/api/v3/content/rpm/packages/8b3ca359-2631-42dc-a1fd-4d31cd2e3ea7/","/pulp/api/v3/content/rpm/packages/98fb6079-11b3-4ec4-9fb6-13e466cc8e5e/","/pulp/api/v3/content/rpm/packages/a1951362-3f81-412d-a129-6da89711a836/","/pulp/api/v3/content/rpm/packages/a562ba07-8080-4ed7-9be9-21a4cf01a9ae/","/pulp/api/v3/content/rpm/packages/a708d1cf-9e20-46d4-abfc-07950a8e352c/","/pulp/api/v3/content/rpm/packages/ae344a41-baf1-41f2-b93a-83f67324ff13/","/pulp/api/v3/content/rpm/packages/aee67379-d66b-44e7-a6c4-a2b7ab254a63/","/pulp/api/v3/content/rpm/packages/bb3f3588-db36-4aeb-89d5-70329bc01b90/","/pulp/api/v3/content/rpm/packages/bda56f12-9114-42c6-aa61-21c1c75dd741/","/pulp/api/v3/content/rpm/packages/cf6314f9-c4ed-44fd-8a00-c74f28203c4a/","/pulp/api/v3/content/rpm/packages/d4ab21ee-6c1f-4304-abe5-40e292556706/","/pulp/api/v3/content/rpm/packages/d5943c51-be60-48e2-b090-5a81feafb548/","/pulp/api/v3/content/rpm/packages/f4408e80-0096-4e39-b7cd-5730e4f01157/","/pulp/api/v3/content/rpm/advisories/937fc1d0-a227-4691-a05b-e55a01b6ab3f/","/pulp/api/v3/content/rpm/advisories/52bd7427-7f95-4b7b-af17-46677ea08077/","/pulp/api/v3/content/rpm/advisories/73694a78-178b-4c1d-98ee-0755e62e4ce3/","/pulp/api/v3/content/rpm/advisories/149d10f7-818a-4c44-8de1-7a2c61011d86/"]}],"dependency_solving":false} | ~END~ | 2020-05-08T14:49:25 [D|kat|] HTTP response body ~BEGIN~ | {"task":"/pulp/api/v3/tasks/703f6300-57d1-4de5-a721-822543c2e9e5/"} | ~END~ | | Data: #<PulpcoreClient::Task:0x0000000020470ed0 @pulp_href="/pulp/api/v3/tasks/703f6300-57d1-4de5-a721-822543c2e9e5/", @pulp_created=Fri, 08 May 2020 14:49:25 +0000, @state="completed", @name="pulp_rpm.app.tasks.copy.copy_content", @started_at=Fri, 08 May 2020 14:49:25 +0000, @worker="/pulp/api/v3/workers/76579f7d-4a62-4429-8e28-8a4738beb253/", @progress_reports=[], @created_resources=["/pulp/api/v3/repositories/rpm/rpm/d0326c7c-8767-4951-80be-595b54aca32f/versions/1/"], @reserved_resources_record=["/pulp/api/v3/repositories/rpm/rpm/0c72a809-e5b5-43c0-b687-8049f8005753/", "/pulp/api/v3/repositories/rpm/rpm/d0326c7c-8767-4951-80be-595b54aca32f/"], @finished_at=Fri, 08 May 2020 14:49:26 +0000> 2020-05-08T14:49:27 [D|kat|] Calling API: RpmCopyApi.copy_content ... 2020-05-08T14:49:27 [D|kat|] HTTP request body param ~BEGIN~ | {"config":[{"source_repo_version":"/pulp/api/v3/repositories/rpm/rpm/0c72a809-e5b5-43c0-b687-8049f8005753/versions/1/","dest_repo":"/pulp/api/v3/repositories/rpm/rpm/d0326c7c-8767-4951-80be-595b54aca32f/","dest_base_version":0,"content":["/pulp/api/v3/content/rpm/packages/56c938cd-1c82-42d4-bea1-ce24e828217b/"]}],"dependency_solving":false} | ~END~ | 2020-05-08T14:49:27 [D|kat|] HTTP response body ~BEGIN~ | {"task":"/pulp/api/v3/tasks/b872eb19-6a93-4183-b196-c7de76586f05/"} | ~END~ | | Data: #<PulpcoreClient::Task:0x0000000022e0f4d0 @pulp_href="/pulp/api/v3/tasks/b872eb19-6a93-4183-b196-c7de76586f05/", @pulp_created=Fri, 08 May 2020 14:49:27 +0000, @state="completed", @name="pulp_rpm.app.tasks.copy.copy_content", @started_at=Fri, 08 May 2020 14:49:27 +0000, @worker="/pulp/api/v3/workers/76579f7d-4a62-4429-8e28-8a4738beb253/", @progress_reports=[], @created_resources=[], @reserved_resources_record=["/pulp/api/v3/repositories/rpm/rpm/0c72a809-e5b5-43c0-b687-8049f8005753/", "/pulp/api/v3/repositories/rpm/rpm/d0326c7c-8767-4951-80be-595b54aca32f/"], @finished_at=Fri, 08 May 2020 14:49:27 +0000> Reply to "Untitled" Author Title Language Your paste - Paste your paste here 2020-05-08T14:49:25 [D|kat|] Calling API: RpmCopyApi.copy_content ... 2020-05-08T14:49:25 [D|kat|] HTTP request body param ~BEGIN~ | {"config":[{"source_repo_version":"/pulp/api/v3/repositories/rpm/rpm/0c72a809-e5b5-43c0-b687-8049f8005753/versions/1/","dest_repo":"/pulp/api/v3/repositories/rpm/rpm/d0326c7c-8767-4951-80be-595b54aca32f/","dest_base_version":0,"content":["/pulp/api/v3/content/rpm/packages/1141b0e0-c20a-4c8f-acb8-08eda489433e/","/pulp/api/v3/content/rpm/packages/202c8513-cddd-47e5-9004-a7e00cf9a03f/","/pulp/api/v3/content/rpm/packages/23e532c7-b2bc-4cb7-b91c-51a9846dc09d/","/pulp/api/v3/content/rpm/packages/23f99068-2fa4-4fd6-a277-303d3b53713a/","/pulp/api/v3/content/rpm/packages/2ae2a30a-bb8d-4a50-90d3-dc28805a8e23/","/pulp/api/v3/content/rpm/packages/2c5add2b-c599-4bdf-adbf-790164e88ca5/","/pulp/api/v3/content/rpm/packages/317005b2-34b5-4e19-bb48-2f34b4e7a1a8/","/pulp/api/v3/content/rpm/packages/4650ba2c-a141-4720-b509-b9477adc2348/","/pulp/api/v3/content/rpm/packages/47f4047e-ad17-47de-9683-74622bfa67f6/","/pulp/api/v3/content/rpm/packages/56c938cd-1c82-42d4-bea1-ce24e828217b/","/pulp/api/v3/content/rpm/packages/5dfb1bf0-0373-4421-92ad-7bef1fa90078/","/pulp/api/v3/content/rpm/packages/5ef359e1-7ec9-4a95-9fff-1ac05ba39440/","/pulp/api/v3/content/rpm/packages/6af8994c-f6d8-4088-b2e5-fd8e08c7e62a/","/pulp/api/v3/content/rpm/packages/6b2fbf72-dbd7-4393-980e-c0585ded7ffd/","/pulp/api/v3/content/rpm/packages/6d328de6-2542-410b-b1c2-fd1666c5903d/","/pulp/api/v3/content/rpm/packages/70a8b050-6ac4-435d-b30f-946a3f91b760/","/pulp/api/v3/content/rpm/packages/7219bd2d-e380-4a6f-a2ae-11553cbeec51/","/pulp/api/v3/content/rpm/packages/7ba12c51-951e-44c5-bb58-8feace81431d/","/pulp/api/v3/content/rpm/packages/89160b1c-9f0c-461b-ad92-4e9d1f49d02d/","/pulp/api/v3/content/rpm/packages/8b3ca359-2631-42dc-a1fd-4d31cd2e3ea7/","/pulp/api/v3/content/rpm/packages/98fb6079-11b3-4ec4-9fb6-13e466cc8e5e/","/pulp/api/v3/content/rpm/packages/a1951362-3f81-412d-a129-6da89711a836/","/pulp/api/v3/content/rpm/packages/a562ba07-8080-4ed7-9be9-21a4cf01a9ae/","/pulp/api/v3/content/rpm/packages/a708d1cf-9e20-46d4-abfc-07950a8e352c/","/pulp/api/v3/content/rpm/packages/ae344a41-baf1-41f2-b93a-83f67324ff13/","/pulp/api/v3/content/rpm/packages/aee67379-d66b-44e7-a6c4-a2b7ab254a63/","/pulp/api/v3/content/rpm/packages/bb3f3588-db36-4aeb-89d5-70329bc01b90/","/pulp/api/v3/content/rpm/packages/bda56f12-9114-42c6-aa61-21c1c75dd741/","/pulp/api/v3/content/rpm/packages/cf6314f9-c4ed-44fd-8a00-c74f28203c4a/","/pulp/api/v3/content/rpm/packages/d4ab21ee-6c1f-4304-abe5-40e292556706/","/pulp/api/v3/content/rpm/packages/d5943c51-be60-48e2-b090-5a81feafb548/","/pulp/api/v3/content/rpm/packages/f4408e80-0096-4e39-b7cd-5730e4f01157/","/pulp/api/v3/content/rpm/advisories/937fc1d0-a227-4691-a05b-e55a01b6ab3f/","/pulp/api/v3/content/rpm/advisories/52bd7427-7f95-4b7b-af17-46677ea08077/","/pulp/api/v3/content/rpm/advisories/73694a78-178b-4c1d-98ee-0755e62e4ce3/","/pulp/api/v3/content/rpm/advisories/149d10f7-818a-4c44-8de1-7a2c61011d86/"]}],"dependency_solving":false} | ~END~ | 2020-05-08T14:49:25 [D|kat|] HTTP response body ~BEGIN~ | {"task":"/pulp/api/v3/tasks/703f6300-57d1-4de5-a721-822543c2e9e5/"} | ~END~ | | Data: #<PulpcoreClient::Task:0x0000000020470ed0 @pulp_href="/pulp/api/v3/tasks/703f6300-57d1-4de5-a721-822543c2e9e5/", @pulp_created=Fri, 08 May 2020 14:49:25 +0000, @state="completed", @name="pulp_rpm.app.tasks.copy.copy_content", @started_at=Fri, 08 May 2020 14:49:25 +0000, @worker="/pulp/api/v3/workers/76579f7d-4a62-4429-8e28-8a4738beb253/", @progress_reports=[], @created_resources=["/pulp/api/v3/repositories/rpm/rpm/d0326c7c-8767-4951-80be-595b54aca32f/versions/1/"], @reserved_resources_record=["/pulp/api/v3/repositories/rpm/rpm/0c72a809-e5b5-43c0-b687-8049f8005753/", "/pulp/api/v3/repositories/rpm/rpm/d0326c7c-8767-4951-80be-595b54aca32f/"], @finished_at=Fri, 08 May 2020 14:49:26 +0000> 2020-05-08T14:49:27 [D|kat|] Calling API: RpmCopyApi.copy_content ... 2020-05-08T14:49:27 [D|kat|] HTTP request body param ~BEGIN~ | {"config":[{"source_repo_version":"/pulp/api/v3/repositories/rpm/rpm/0c72a809-e5b5-43c0-b687-8049f8005753/versions/1/","dest_repo":"/pulp/api/v3/repositories/rpm/rpm/d0326c7c-8767-4951-80be-595b54aca32f/","dest_base_version":0,"content":["/pulp/api/v3/content/rpm/packages/56c938cd-1c82-42d4-bea1-ce24e828217b/"]}],"dependency_solving":false} | ~END~ | 2020-05-08T14:49:27 [D|kat|] HTTP response body ~BEGIN~ | {"task":"/pulp/api/v3/tasks/b872eb19-6a93-4183-b196-c7de76586f05/"} | ~END~ | | Data: #<PulpcoreClient::Task:0x0000000022e0f4d0 @pulp_href="/pulp/api/v3/tasks/b872eb19-6a93-4183-b196-c7de76586f05/", @pulp_created=Fri, 08 May 2020 14:49:27 +0000, @state="completed", @name="pulp_rpm.app.tasks.copy.copy_content", @started_at=Fri, 08 May 2020 14:49:27 +0000, @worker="/pulp/api/v3/workers/76579f7d-4a62-4429-8e28-8a4738beb253/", @progress_reports=[], @created_resources=[], @reserved_resources_record=["/pulp/api/v3/repositories/rpm/rpm/0c72a809-e5b5-43c0-b687-8049f8005753/", "/pulp/api/v3/repositories/rpm/rpm/d0326c7c-8767-4951-80be-595b54aca32f/"], @finished_at=Fri, 08 May 2020 14:49:27 +0000> </pre> <pre> ~~~ ~~~ "versions": [ { "component": "pulpcore", "version": "3.4.0.dev0" }, { "component": "pulp_2to3_migration", "version": "0.2.0b2" }, { "component": "pulp_rpm", "version": "3.4.0b1.dev0" }, { "component": "pulp_file", "version": "0.4.0.dev0" }, { "component": "pulp_container", "version": "1.4.0.dev0" } ] </pre> <pre> ~~~ ~~~ pulp_2to3_migration_client (0.2.0b2) pulp_ansible_client (0.2.0b13.dev01588633276) pulp_container_client (1.2.0) pulp_file_client (0.2.0) pulp_rpm_client (3.3.0) pulpcore_client (3.2.1) </pre> ~~~