Project

Profile

Help

Issue #906

closed

pulp-admin repo tasks list fails with unexpected error

Added by ipanova@redhat.com almost 9 years ago. Updated almost 5 years ago.

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

Description

rpm -qa pulp-server
pulp-server-2.7.0-0.2.alpha.git.82.dae006f.fc20.noarch

# pulp-admin -u admin -p admin repo tasks list --repo-id repo1
+----------------------------------------------------------------------+
                                 Tasks
+----------------------------------------------------------------------+

No tasks found

# pulp-admin -u admin -p admin rpm repo delete --repo-id repo1 
This command may be exited via ctrl+c without affecting the request.

[\]
Running...

Repository [repo1] successfully deleted

# pulp-admin -u admin -p admin repo tasks list --repo-id repo1
+----------------------------------------------------------------------+
                                 Tasks
+----------------------------------------------------------------------+

An unexpected error has occurred. More information may be found using the -v
flag.

# pulp-admin -u admin -p admin -v repo tasks list --repo-id repo1
+----------------------------------------------------------------------+
                                 Tasks
+----------------------------------------------------------------------+

2015-04-21 15:48:30,247 - ERROR - Client-side exception occurred
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/pulp/client/extensions/core.py", line 474, in run
    exit_code = Cli.run(self, args)
  File "/usr/lib/python2.7/site-packages/okaara/cli.py", line 974, in run
    exit_code = command_or_section.execute(self.prompt, remaining_args)
  File "/usr/lib/python2.7/site-packages/pulp/client/extensions/extensions.py", line 210, in execute
    return self.method(*arg_list, **clean_kwargs)
  File "/usr/lib/python2.7/site-packages/pulp/client/admin/tasks.py", line 64, in list
    task_objects = self.retrieve_tasks(**kwargs)
  File "/usr/lib/python2.7/site-packages/pulp/client/admin/tasks.py", line 256, in retrieve_tasks
    response = self.context.server.tasks.get_repo_tasks(repo_id)
  File "/usr/lib/python2.7/site-packages/pulp/bindings/tasks.py", line 84, in get_repo_tasks
    return self.get_all_tasks(tags=[repo_tag])
  File "/usr/lib/python2.7/site-packages/pulp/bindings/tasks.py", line 67, in get_all_tasks
    for doc in sorted(response.response_body, key=lambda x: x['id']['$oid']):
  File "/usr/lib/python2.7/site-packages/pulp/bindings/tasks.py", line 67, in <lambda>
    for doc in sorted(response.response_body, key=lambda x: x['id']['$oid']):
TypeError: string indices must be integers
An unexpected error has occurred. More information may be found using the -v
flag.
# pulp-admin -u admin -p admin tasks list
+----------------------------------------------------------------------+
                                 Tasks
+----------------------------------------------------------------------+

Operations:  delete
Resources:   repo1 (repository)
State:       Successful
Start Time:  2015-04-21T15:47:06Z
Finish Time: 2015-04-21T15:47:06Z
Task Id:     0d4a9378-758e-423b-8f29-4a6ff1a4855a

Also available in: Atom PDF