Project

Profile

Help

Issue #979

closed

Long consumer name cannot be used

Added by bmbouter almost 9 years ago. Updated almost 5 years ago.

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

Description

0) Have pulp installed and started
1) As root, attempt to register a consumer and observe the following output:

pulp-consumer -u admin -p admin register --consumer-id 482CRZDMRSQ63ASPM0LSN1YH8VX97UM5YA72R5Y7J482CRZDMRSQ63ASPM0LSN1YH8VX97UM5YA72R5Y7J482CRZDMRSQ63ASPM0LSN1YH8VX97UM5YA72R5Y7J482CRZDMRSQ63ASPM0LSN

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

2) In ~/.pulp/consumer.log observe

2015-05-12 14:17:05,920 - ERROR - Client-side exception occurred
Traceback (most recent call last):
  File "/home/bmbouter/Documents/pulp/client_lib/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/bmbouter/Documents/pulp/client_lib/pulp/client/extensions/extensions.py", line 224, in execute
    return self.method(*arg_list, **clean_kwargs)
  File "/home/bmbouter/Documents/pulp/client_consumer/pulp/client/consumer/cli.py", line 148, in register
    existing_consumer = load_consumer_id(self.context)
  File "/home/bmbouter/Documents/pulp/client_lib/pulp/client/consumer_utils.py", line 47, in load_consumer_id
    return subject['CN']
KeyError: 'CN'

The length limitations of consumer names are not documented, and they could be. Another thing would be to have the CN be the database record ID which would remove the relationship between a long consumer name and the CN altogether. I recommend doing that.

Also available in: Atom PDF