Project

Profile

Help

Issue #362

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

Added by rbarlow almost 7 years ago. Updated 6 months 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 +

History

#1 Updated by skarmark@redhat.com almost 7 years ago

Jeremy might have filed a duplicate for this. Please check when fixing.

+ This comment was cloned from Bugzilla #980161 comment 1 +

#2 Updated by cduryee almost 7 years ago

This works for me on 2.4.3

$ pulp-admin rpm consumer package update run --consumer-id doesnt_exist --name pulp-server
Consumer [ doesnt_exist ] not found

Marking as MODIFIED so it gets picked up for 2.5.1.

+ This comment was cloned from Bugzilla #980161 comment 2 +

#3 Updated by cduryee almost 7 years ago

fixed in pulp 2.6.0-0.2.beta

+ This comment was cloned from Bugzilla #980161 comment 3 +

#4 Updated by pthomas@redhat.com almost 7 years ago

verified
[root@gizmo ~]# pulp-admin rpm consumer package update run --consumer-id doesnt_exist --name pulp-server
Warning: path should have mode 0700 because it may contain sensitive information: /root/.pulp/

Consumer [ doesnt_exist ] not found

[root@gizmo ~]# rpm -qa pulp-serv er
[root@gizmo ~]# rpm -qa pulp-server
pulp-server-2.6.0-0.5.beta.el6.noarch
[root@gizmo ~]#

+ This comment was cloned from Bugzilla #980161 comment 4 +

#5 Updated by rbarlow over 6 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE

#7 Updated by bmbouter over 2 years ago

  • Severity set to 2. Medium

#8 Updated by bmbouter over 2 years ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF