Project

Profile

Help

Issue #685

closed

pulp-consumer history --event-type unit_profile_changed causes traceback

Added by bmbouter about 9 years ago. Updated over 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
2.6 Beta
Platform Release:
2.7.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

1. Register a consumer
2. Bind that consumer to a repo
3. On the consumer run a yum command and install something
4. Try to list the history for the consumer to see the unit profile that yum reported
5. Observe that you get an error saying "An unexpected error has occurred. More information can be found in the client
log file ~/.pulp/consumer.log."
6. Observe that in ~/.pulp/consumer.log it contains this traceback:

2015-02-02 13:56:41,525 - ERROR - Client-side exception occurred
Traceback (most recent call last):
File "/home/bmbouter/Documents/pulp/client_lib/pulp/client/extensions/core.py", line 469, 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/bmbouter/Documents/pulp/client_lib/pulp/client/extensions/extensions.py", line 211, in execute
return self.method(*arg_list, **clean_kwargs)
File "/home/bmbouter/Documents/pulp/client_consumer/pulp/client/consumer/cli.py", line 371, in history
kwargs['start-date'], kwargs['end-date']).response_body
File "/home/bmbouter/Documents/pulp/bindings/pulp/bindings/consumer.py", line 211, in history
return self.server.GET (path, queries)
File "/home/bmbouter/Documents/pulp/bindings/pulp/bindings/server.py", line 92, in GET
return self._request('GET', path, queries)
File "/home/bmbouter/Documents/pulp/bindings/pulp/bindings/server.py", line 150, in _request
self._handle_exceptions(response_code, response_body)
File "/home/bmbouter/Documents/pulp/bindings/pulp/bindings/server.py", line 191, in _handle_exceptions
raise code_class_mappings[response_code](response_body)
File "/home/bmbouter/Documents/pulp/bindings/pulp/bindings/exceptions.py", line 16, in init
self.href = response_body.pop('_href', None)
AttributeError: 'NoneType' object has no attribute 'pop'

I expected it to list a filtered version of the history by event type instead it shows nothing.

+ This bug was cloned from Bugzilla Bug #1188407 +

Also available in: Atom PDF