Project

Profile

Help

Issue #2655

units_successful is empty for successful ISO assocaiting task

Added by yuzheng over 3 years ago. Updated over 1 year ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.12.1
Platform Release:
2.12.2
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 17

Description

Tested version:

# rpm -qa pulp-server
pulp-server-2.12.1-1.el7.noarch

Reproducing steps:

1. Create 2 ISO repos
# pulp-admin iso repo create --repo-id test-repo4
Successfully created repository [test-repo4]

# pulp-admin iso repo create --repo-id test-repo5
Successfully created repository [test-repo5]

2. Upload an ISO to test-repo4
# pulp-admin iso repo uploads upload --repo-id test-repo4 --file 2.iso 
+----------------------------------------------------------------------+
                              Unit Upload
+----------------------------------------------------------------------+

Extracting necessary metadata for each request...
[==================================================] 100%
Analyzing: 2.iso
... completed

Creating upload requests on the server...
[==================================================] 100%
Initializing: 2.iso
... completed

Starting upload of selected units. If this process is stopped through ctrl+c,
the uploads will be paused and may be resumed later using the resume command or
canceled entirely using the cancel command.

Uploading: 2.iso
[==================================================] 100%
2097152/2097152 bytes
... completed

Importing into the repository...
This command may be exited via ctrl+c without affecting the request.

[\]
Running...

Task Succeeded

Deleting the upload request...
... completed

3. Copy ISO from test-repo4 to test-repo5
# pulp-admin iso repo copy --from-repo-id test-repo4 --to-repo-id test-repo5
This command may be exited via ctrl+c without affecting the request.

[\]
Running...

Nothing found that matches the given criteria and repository configuration

4. Get the associating task from DB
db.task_status.find({task_id:"f22583f3-b9a8-4b3e-9532-1f5c0cc450a5"})

/* 0 */
{
    "_id" : ObjectId("58d1e155a2374cc00811e375"),
    "task_id" : "f22583f3-b9a8-4b3e-9532-1f5c0cc450a5",
    "exception" : null,
    "task_type" : "pulp.server.managers.repo.unit_association.associate_from_repo",
    "tags" : [ 
        "pulp:repository:test-repo5", 
        "pulp:repository:test-repo4", 
        "pulp:action:associate"
    ],
    "finish_time" : "2017-03-22T02:28:37Z",
    "_ns" : "task_status",
    "traceback" : null,
    "spawned_tasks" : [],
    "progress_report" : {},
    "worker_name" : "reserved_resource_worker-1@dhcp-136-68.nay.redhat.com",
    "result" : {
        "units_successful" : []
    },
    "error" : null,
    "group_id" : null,
    "id" : null,
    "state" : "finished",
    "start_time" : "2017-03-22T02:28:37Z"
}

Both the output of 'iso repo copy' and '"units_successful" : []' in task result show nothing's copied. But actually the ISO is copied successfully.

# pulp-admin iso repo list --repo-id test-repo5
+----------------------------------------------------------------------+
                            ISO Repositories
+----------------------------------------------------------------------+

Id:                   test-repo5
Display Name:         None
Description:          None
Content Unit Counts:  
  Iso: 1

This affects result checking which depends on searching units in 'units_successful'.

Associated revisions

Revision 8e97822a View on GitHub
Added by ipanova@redhat.com over 3 years ago

Units_successful is empty for successful ISO assocaiting task.

closes #2655 https://pulp.plan.io/issues/2655

History

#1 Updated by ipanova@redhat.com over 3 years ago

i managed to reproduce this. Issue is in empty generator :)

#2 Updated by ipanova@redhat.com over 3 years ago

  • Status changed from NEW to ASSIGNED

#3 Updated by ipanova@redhat.com over 3 years ago

  • Assignee set to ipanova@redhat.com

#4 Updated by bizhang over 3 years ago

  • Severity changed from 3. High to 2. Medium
  • Triaged changed from No to Yes

#5 Updated by bizhang over 3 years ago

  • Sprint/Milestone set to 36

#6 Updated by ipanova@redhat.com over 3 years ago

  • Status changed from ASSIGNED to POST

#8 Updated by ipanova@redhat.com over 3 years ago

  • Status changed from POST to MODIFIED

#9 Updated by bizhang over 3 years ago

  • Platform Release set to 2.12.2

#10 Updated by bizhang over 3 years ago

  • Status changed from MODIFIED to 5

#11 Updated by bizhang over 3 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE

#12 Updated by bmbouter over 2 years ago

  • Sprint set to Sprint 17

#13 Updated by bmbouter over 2 years ago

  • Sprint/Milestone deleted (36)

#14 Updated by bmbouter over 1 year ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF