Project

Profile

Help

Issue #6513

Created resources are empty for copy tasks

Added by daviddavis 12 months ago. Updated 12 months ago.

Status:
CLOSED - WORKSFORME
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

Copy tasks don't populate the created_resources field of task. We should probably have a list of the repo versions that were created.

History

#1 Updated by daviddavis 12 months ago

  • Status changed from NEW to CLOSED - WORKSFORME

This seemed to work for me:

$ http :/pulp/api/v3/tasks/a76006b8-e2e6-4981-88cb-fbf66912a8f5/                                                                              
HTTP/1.1 200 OK                                                                                                                                                                     
Allow: GET, PATCH, DELETE, HEAD, OPTIONS                                                                                                                                            
Connection: keep-alive                                                                                                                                                              
Content-Length: 714                                                                                                                                                                 
Content-Type: application/json                                                                                                                                                      
Date: Fri, 17 Apr 2020 19:18:54 GMT                                                                                                                                                 
Server: nginx/1.16.1                                                                                                                                                                
Vary: Accept, Cookie                                                                                                                                                                
X-Frame-Options: SAMEORIGIN                                                                                                                                                         
                                                                                                                                                                                    
{                                                                                                                                                                                   
    "child_tasks": [],                                                                                                                                                              
    "created_resources": [                                                                                                                                                          
        "/pulp/api/v3/repositories/rpm/rpm/207e37e8-4c78-419f-877f-75aafcb9b11d/versions/1/"                                                                                        
    ],                                                                                                                                                                              
    "error": null,                                                                                                                                                                  
    "finished_at": "2020-04-17T19:18:49.460284Z",                                                                                                                                   
    "name": "pulp_rpm.app.tasks.copy.copy_content",                                                                                                                                 
    "parent_task": null,                                                                                                                                                            
    "progress_reports": [],                                                                                                                                                         
    "pulp_created": "2020-04-17T19:18:48.923214Z",                                                                                                                                  
    "pulp_href": "/pulp/api/v3/tasks/a76006b8-e2e6-4981-88cb-fbf66912a8f5/",                                                                                                        
    "reserved_resources_record": [                                                                                                                                                  
        "/pulp/api/v3/repositories/rpm/rpm/98bddb51-80bb-4a59-869d-99925f35827e/",                                                                                                  
        "/pulp/api/v3/repositories/rpm/rpm/207e37e8-4c78-419f-877f-75aafcb9b11d/"                                                                                                   
    ],
    "started_at": "2020-04-17T19:18:49.193682Z",
    "state": "completed",
    "task_group": null,
    "worker": "/pulp/api/v3/workers/98e5f5ac-e557-4df9-9709-253444f99822/"
}

Please register to edit this issue

Also available in: Atom PDF