Project

Profile

Help

Issue #889

closed

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

Added by kaos over 7 years ago. Updated over 3 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
Actions #1

Updated by kaos over 7 years ago

Actions #2

Updated by cduryee over 7 years ago

  • Status changed from NEW to POST
Actions #3

Updated by mhrivnak over 7 years ago

  • Assignee set to kaos
  • Severity changed from 2. Medium to 1. Low
  • Triaged changed from No to Yes
Actions #4

Updated by cduryee over 7 years ago

  • Status changed from POST to MODIFIED
Actions #5

Updated by dkliban@redhat.com over 7 years ago

  • Platform Release set to master
Actions #6

Updated by mhrivnak about 7 years ago

  • Platform Release changed from master to 2.8.0
Actions #7

Updated by dkliban@redhat.com almost 7 years ago

  • Status changed from MODIFIED to 5
Actions #8

Updated by dkliban@redhat.com over 6 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE
Actions #9

Updated by bmbouter over 3 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF