Project

Profile

Help

Issue #6496

Updated by ipanova@redhat.com about 4 years ago

Create a distribution and delete it. Poll on To reproduce, just run the task that migration tests with the iso repositories created by "populate_pulp2_iso".    2 of the 3 tasks created will have a created the distribution resources section that looks like this. 

 ~~~ 
 $ http POST $BASE_ADDR/pulp/api/v3/distributions/rpm/rpm/       publication=/pulp/api/v3/publications/rpm/rpm/2f46a52c-bb47-4d15-a208-fec84107fa19/ name=centos71 base_path=centos71 
 HTTP/1.1 202 Accepted 
 Allow: GET, POST, HEAD, OPTIONS 
 Connection: close 
 Content-Length: 67 
 Content-Type: application/json 
 Date: Tue, 21 Apr 2020 15:57:04 GMT 
 Server: gunicorn/20.0.4 
 Vary: Accept, Cookie 
 X-Frame-Options: SAMEORIGIN 

 { 
     "task": "/pulp/api/v3/tasks/3c6697d1-f54e-4338-b0eb-f6db91cf7df1/" 
 } 

 (pulp) [vagrant@pulp2-nightly-pulp3-source-centos7 pulp_rpm]$ http GET $BASE_ADDR/pulp/api/v3/tasks/3c6697d1-f54e-4338-b0eb-f6db91cf7df1/ 
 HTTP/1.1 200 OK 
 Allow: GET, PATCH, DELETE, HEAD, OPTIONS 
 Connection: close 
 Content-Length: 583 
 Content-Type: application/json 
 Date: Tue, 21 Apr 2020 15:57:12 GMT 
 Server: gunicorn/20.0.4 
 Vary: Accept, Cookie 
 X-Frame-Options: SAMEORIGIN 

 { 
     "child_tasks": [], 
     
             "created_resources": [ 
         "/pulp/api/v3/distributions/rpm/rpm/a587fe48-c0aa-40ba-8017-153cf2e3ac96/" 
     ], 
     "error": 
                 "/pulp/api/v3/repositories/file/file/b71e3ec7-eb80-4ee7-a3cf-9986facf0f6a/versions/1/", 
                 "/pulp/api/v3/repositories/file/file/7f9eaa8c-8608-426b-964d-83e6912d22d9/versions/1/", 
                 null, 
     "finished_at": "2020-04-21T15:57:05.243262Z", 
     "name": "pulpcore.app.tasks.base.general_create", 
     "parent_task": 
                 null, 
     "progress_reports": [], 
     "pulp_created": "2020-04-21T15:57:04.651024Z", 
     "pulp_href": "/pulp/api/v3/tasks/3c6697d1-f54e-4338-b0eb-f6db91cf7df1/", 
     "reserved_resources_record": [ 
         "/api/v3/distributions/" 
     ], 
     "started_at": "2020-04-21T15:57:04.799416Z", 
     "state": "completed", 
     "task_group": 
                 null, 
     "worker": "/pulp/api/v3/workers/972ff6d6-7b2d-458d-b507-d4e065262760/" 
 } 

 (pulp) [vagrant@pulp2-nightly-pulp3-source-centos7 pulp_rpm]$ http DELETE $BASE_ADDR/pulp/api/v3/distributions/rpm/rpm/a587fe48-c0aa-40ba-8017-153cf2e3ac96/ 
 HTTP/1.1 202 Accepted 
 Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS 
 Connection: close 
 Content-Length: 67 
 Content-Type: application/json 
 Date: Tue, 21 Apr 2020 15:57:36 GMT 
 Server: gunicorn/20.0.4 
 Vary: Accept, Cookie 
 X-Frame-Options: SAMEORIGIN 

 { 
     "task": "/pulp/api/v3/tasks/a2530273-17f9-41a7-839e-158329300951/" 
 } 

 (pulp) [vagrant@pulp2-nightly-pulp3-source-centos7 pulp_rpm]$ http GET $BASE_ADDR/pulp/api/v3/tasks/3c6697d1-f54e-4338-b0eb-f6db91cf7df1/ 
 HTTP/1.1 200 OK 
 Allow: GET, PATCH, DELETE, HEAD, OPTIONS 
 Connection: close 
 Content-Length: 513 
 Content-Type: application/json 
 Date: Tue, 21 Apr 2020 15:57:39 GMT 
 Server: gunicorn/20.0.4 
 Vary: Accept, Cookie 
 X-Frame-Options: SAMEORIGIN 

 { 
     "child_tasks": [], 
     "created_resources": [ 
         
                 null 
     
             ], 
     "error": null, 
     "finished_at": "2020-04-21T15:57:05.243262Z", 
     "name": "pulpcore.app.tasks.base.general_create", 
     "parent_task": null, 
     "progress_reports": [], 
     "pulp_created": "2020-04-21T15:57:04.651024Z", 
     "pulp_href": "/pulp/api/v3/tasks/3c6697d1-f54e-4338-b0eb-f6db91cf7df1/", 
     "reserved_resources_record": [ 
         "/api/v3/distributions/" 
     ], 
     "started_at": "2020-04-21T15:57:04.799416Z", 
     "state": "completed", 
     "task_group": null, 
     "worker": "/pulp/api/v3/workers/972ff6d6-7b2d-458d-b507-d4e065262760/" 
 } 



 

 ~~~

Back