Project

Profile

Help

Issue #889

closed

KeyError in client_lib/pulp/client/commands/status.py

Added by kaos about 9 years ago. Updated about 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version:
2.6.0
Platform Release:
2.8.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix, Pulp 2
Sprint:
Quarter:

Description

Hi, I ran into an issue when running `pulp-admin rpm repo publish run --repo-id $MY_REPO`.

I've attached admin.log and curated server_calls.log for analysis.

I managed to get past this though, with a one line patch guided by the traceback in the admin.log (pull request under way, in case you want that..:).
Not sure if it is the right thing to do, but it seemed to work..

```
diff --git a/client_lib/pulp/client/commands/repo/status.py b/client_lib/pulp/client/commands/repo/status.py
index 9ce69c9..e200b87 100644
--- a/client_lib/pulp/client/commands/repo/status.py
+++ b/client_lib/pulp/client/commands/repo/status.py
@ -83,7 +83,7 @ class PublishStepStatusRenderer(StatusRenderer):
return

step.processed = step_details[reporting_constants.PROGRESS_NUM_PROCESSED_KEY]
-        step.details = step_details[reporting_constants.PROGRESS_DETAILS_KEY]
+        step.details = step_details.get(reporting_constants.PROGRESS_DETAILS_KEY, None)
if not step.details:
    step.details = None
```

Files

admin.log (1.39 KB) admin.log kaos, 04/15/2015 01:02 PM
server_calls.log (11.9 KB) server_calls.log kaos, 04/15/2015 01:05 PM

Also available in: Atom PDF