Project

Profile

Help

Issue #362

closed

Requesting a package update on a non-existing consumer results in an unexpected client error

Added by rbarlow about 9 years ago. Updated almost 3 years ago.

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

Description

$ pulp-admin rpm consumer package update run --consumer-id doesnt_exist --name pulp-server -a
Update task created with id [ 2b5fb1d1-bafa-42b6-bc34-d703d9e57381 ]

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

[-]
Waiting to begin...

An unexpected error has occurred. More information can be found in the client
log file ~/.pulp/admin.log.

$ tail -n 15 ~/.pulp/admin.log
2013-07-01 10:50:40,062 - ERROR - Client-side exception occurred
Traceback (most recent call last):
File "/home/rbarlow/devel/pulp/platform/src/pulp/client/extensions/core.py", line 478, 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 "/home/rbarlow/devel/pulp/platform/src/pulp/client/extensions/extensions.py", line 224, in execute
return self.method(*arg_list, **clean_kwargs)
File "/home/rbarlow/devel/pulp/platform/src/pulp/client/commands/consumer/content.py", line 228, in run
self.poll([task], kwargs)
File "/home/rbarlow/devel/pulp/platform/src/pulp/client/commands/polling.py", line 146, in poll
self.failed(task)
File "/usr/lib/pulp/admin/extensions/rpm_admin_consumer/package.py", line 259, in failed
details = task.result['details'][TYPE_ID_RPM]['details']
TypeError: 'NoneType' object has no attribute '__getitem__'

+ This bug was cloned from Bugzilla Bug #980161 +

Also available in: Atom PDF