Project

Profile

Help

Issue #889

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

Added by kaos over 6 years ago. Updated over 2 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
```
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

History

#1 Updated by kaos over 6 years ago

#2 Updated by cduryee over 6 years ago

  • Status changed from NEW to POST

#3 Updated by mhrivnak over 6 years ago

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

#4 Updated by cduryee over 6 years ago

  • Status changed from POST to MODIFIED

#5 Updated by dkliban@redhat.com over 6 years ago

  • Platform Release set to master

#6 Updated by mhrivnak about 6 years ago

  • Platform Release changed from master to 2.8.0

#7 Updated by dkliban@redhat.com almost 6 years ago

  • Status changed from MODIFIED to 5

#8 Updated by dkliban@redhat.com over 5 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE

#9 Updated by bmbouter over 2 years ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF