Project

Profile

Help

Issue #3003

sync progress only updates after first item and after all items are processed

Added by dkliban@redhat.com 18 days ago. Updated about 3 hours ago.

Status:
ASSIGNED
Priority:
Normal
Category:
-
Sprint/Milestone:
Severity:
2. Medium
Version:
Platform Release:
Blocks Release:
OS:
Backwards Incompatible:
No
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 3
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No

Description

I synced a repo with 3696 files in it. The progress report for "Add Content" showed 1 done for the duration of the sync. After the sync finished, the number done changed to 3696. I expect the number of Done to be updated throughout the sync.


[vagrant@pulp3 pulp]$ http POST http://localhost:1234/api/v3/repositories/ name=mycoolrepo

[vagrant@pulp3 pulp]$ http POST http://localhost:1234/api/v3/repositories/mycoolrepo/importers/file/ name=mycoolimporter download_policy='immediate' feed_url='https://www.redhat.com/security/data/oval/PULP_MANIFEST' repository='http://localhost:1234/api/v3/repositories/mycoolrepo/'

[vagrant@pulp3 pulp]$ http POST http://localhost:1234/api/v3/repositories/mycoolrepo/importers/file/mycoolimporter/sync/HTTP/1.0 202 Accepted
Allow: POST, OPTIONS
Content-Length: 135
Content-Type: application/json
Date: Fri, 08 Sep 2017 13:41:52 GMT
Server: WSGIServer/0.2 CPython/3.5.4
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

[
    {
        "_href": "http://localhost:1234/api/v3/tasks/943cc692-c4bc-441d-8b20-54095e0bf7d0/",
        "task_id": "943cc692-c4bc-441d-8b20-54095e0bf7d0" 
    }
]

[vagrant@pulp3 pulp]$ http :1234/api/v3/tasks/943cc692-c4bc-441d-8b20-54095e0bf7d0/

HTTP/1.0 200 OK
Allow: GET, OPTIONS
Content-Length: 503
Content-Type: application/json
Date: Fri, 08 Sep 2017 13:41:58 GMT
Server: WSGIServer/0.2 CPython/3.5.4
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

{
    "_href": "http://localhost:1234/api/v3/tasks/943cc692-c4bc-441d-8b20-54095e0bf7d0/",
    "error": null,
    "finished_at": null,
    "group": null,
    "non_fatal_errors": [],
    "parent": null,
    "progress_reports": [
        {
            "done": 1,
            "message": "Add Content",
            "state": "running",
            "suffix": "",
            "task": "http://localhost:1234/api/v3/tasks/943cc692-c4bc-441d-8b20-54095e0bf7d0/",
            "total": 3696
        }
    ],
    "started_at": "2017-09-08T13:41:52.060540Z",
    "state": "running",
    "tags": [],
    "worker": "http://localhost:1234/api/v3/workers/reserved_resource_worker_2@pulp3.dev/" 
}

History

#1 Updated by amacdona@redhat.com 18 days ago

  • Triaged changed from No to Yes

#2 Updated by mhrivnak 5 days ago

  • Sprint/Milestone set to Sprint 26

#3 Updated by jortel@redhat.com about 3 hours ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to jortel@redhat.com

#4 Updated by dkliban@redhat.com about 3 hours ago

This only happens with pulp_file. I suspect the problem is somewhere in the ChangeSet.

Please register to edit this issue

Also available in: Atom PDF