Bug 1103187
| Summary: | Task details for successful association return "N/A" as result and "Incomplete" as "Finish Time" | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Marco Tirado <marco.tirado> | ||||||||
| Component: | async/tasks | Assignee: | Brian Bouterse <bmbouter> | ||||||||
| Status: | CLOSED WORKSFORME | QA Contact: | pulp-qe-list | ||||||||
| Severity: | unspecified | Docs Contact: | |||||||||
| Priority: | medium | ||||||||||
| Version: | 2.4 Beta | CC: | bmbouter, marco.tirado, mhrivnak, skarmark | ||||||||
| Target Milestone: | --- | Keywords: | Triaged | ||||||||
| Target Release: | 2.4.0 | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2014-06-25 15:26:48 UTC | Type: | Bug | ||||||||
| Regression: | --- | Mount Type: | --- | ||||||||
| Documentation: | --- | CRM: | |||||||||
| Verified Versions: | Category: | --- | |||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||
| Embargoed: | |||||||||||
| Attachments: |
|
||||||||||
Created attachment 909756 [details]
setup_for_bz_1103187.sh
Created attachment 909757 [details]
concurrent_unit_copy.py
Created attachment 909759 [details]
concurrent_unit_copy_same_unit_26_times.py
Hi Marco, I've tried to reproduce this issue with the following code, but I have been unable to. Could you either send me specific commands to reproduce the symptom with repos that I can access, or try the snippet code I wrote in your environment and tell me if you get the same results. Either way I'll need more info to reproduce before this potential issue can be fixed. The following code worked for me. To use it, download all three attachments and put them into the same directory, and then run the main script using using: python concurrent_unit_copy.py After all copies have completed then look for Incomplete tasks using: pulp-admin tasks list | grep Incomplete I see there are no Incomplete tasks. I also tried a variation on the script which tries to do the same unit association in parallel (26x) by running: python concurrent_unit_copy_same_unit_26_times.py I see there are no Incomplete tasks for that variation also. Both variations appear to copy the repo units as expected. I did this using pulp beta 20. I learned in a phone conversation this morning that the OP has not been able to reproduce this bug on a newer beta build of pulp. |
Description of problem: This is an intermittent problem we see in the task details of unit association tasks. For some reason, some of the tasks have incorrect metadata for successful associations. The incorrect fields in the task metadata are: Finish Time: Incomplete Result: N/A We are counting on the information in the "Result" field to verify that all units/rpms are correctly associated in the task. See below for the complete task metadata information. Version-Release number of selected component (if applicable): 2.4 How reproducible: Reproducible when running several association jobs on the same repo at the same time. Steps to Reproduce: 1.Run 20 associations of different RPMs from repo X to repo Y in parallel. 2.Gather the taskIds for each task 3.Print the task details for each task once all tasks are finished Actual results: Some tasks show the following details: # pulp-admin tasks details --task-id 38695f53-ab12-4ad1-8822-7f3e112480c5 +----------------------------------------------------------------------+ Task Details +----------------------------------------------------------------------+ Operations: associate Resources: NetEnt-rhel-6-server-x86_64-applibrary_daily-spp (repository), NetEnt-rhel-6-server-x86_64-applibrary-spp (repository) State: Successful Start Time: 2014-05-30T12:24:48Z Finish Time: Incomplete Result: N/A Task Id: 38695f53-ab12-4ad1-8822-7f3e112480c5 Progress Report: Expected results: All tasks shoud show something like the following: pulp-admin tasks details --task-id 714201f3-71d7-4490-a493-15666c8838be +----------------------------------------------------------------------+ Task Details +----------------------------------------------------------------------+ Operations: associate Resources: XXX-rhel-6-server-x86_64-appdev_daily-spp (repository), XXX-rhel-6-server-x86_64-applibrary_daily-spp (repository) State: Successful Start Time: 2014-05-30T12:29:11Z Finish Time: 2014-05-30T12:29:11Z Result: Units Successful: Type Id: rpm Unit Key: Arch: noarch Checksum: 5cb4576991bdc9c3bebde1bd906f3f957c94642d16367e5d54b1f254f3dc ee17 Checksumtype: sha256 Epoch: 0 Name: c-XXX-gee-debug-231S Release: 140530141923 Version: 2.3.1 Type Id: rpm Unit Key: Arch: noarch Checksum: ea13e9174a8a6188ce0bd34c2717d1de27d685c42e3a22d5fe5930f98b83 ec3d Checksumtype: sha256 Epoch: 0 Name: c-XXX-scs-prod-S Release: 140530141923 Version: 2.3.1 Type Id: rpm Unit Key: Arch: noarch Checksum: 443a4635f85e69e8e87c81f87dd345461934155fe49a08f553cdf8a15e40 3017 Checksumtype: sha256 Epoch: 0 Name: c-XXX-gee-prod-231S Release: 140530141923 Version: 2.3.1 Type Id: rpm Unit Key: Arch: noarch Checksum: db41244a31429492793e25b9e4ab22044ca76d29829692ac0584c249edf8 9292 Checksumtype: sha256 Epoch: 0 Name: c-XXX-spp-prod-S Release: 140530141923 Version: 2.3.1 Type Id: rpm Unit Key: Arch: noarch Checksum: f9b7dcd635d8313a074ac719fefc03fc1fac9a5b3fb23059f50975f37c79 1b76 Checksumtype: sha256 Epoch: 0 Name: c-XXX-spp-debug-S Release: 140530141923 Version: 2.3.1 Type Id: rpm Unit Key: Arch: noarch Checksum: ad54e60a6c05afa16950facd3f2e6c0b47dd0c6861db2cabcff69b75825c 2856 Checksumtype: sha256 Epoch: 0 Name: c-XXX-scs-debug-S Release: 140530141923 Version: 2.3.1 Task Id: 714201f3-71d7-4490-a493-15666c8838be Progress Report: Additional info: