Project

Profile

Help

Issue #2554

closed

client side exception when removing python package from repository

Added by dkliban@redhat.com almost 8 years ago. Updated over 4 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - Python:
master
Platform Release:
Target Release - Python:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description


[vagrant@dev ~]$ pulp-admin python repo create --repo-id pypi --feed https://pypi.python.org/ --package-names shelf-reader
...
[vagrant@dev ~]$ pulp-admin python repo sync run --repo-id pypi
...
[vagrant@dev ~]$ pulp-admin python repo packages --repo-id pypi
Name:               shelf-reader
Version:            0.1
Author:             Austin Macdonald
Downloaded:         True
Filename:           shelf-reader-0.1.tar.gz
Md5 Digest:         2dac570a33d88ca224be86759be59376
Packagetype:        sdist
Path:               3a/e3/a6954c4134a899c0006515fbd40208922572947e960b35d0d19fd5
                    a1b3d0/shelf-reader-0.1.tar.gz
Pulp User Metadata: 
Summary:            Make sure your collections are in call number order.

Name:               shelf-reader
Version:            0.1
Author:             Austin Macdonald
Downloaded:         True
Filename:           shelf_reader-0.1-py2-none-any.whl
Md5 Digest:         69b867d206f1ff984651aeef25fc54f9
Packagetype:        bdist_wheel
Path:               77/e0/2156a3da94ee16466a5936394caf7e89873a9b46eed72a9912bc90
                    e42dbf/shelf_reader-0.1-py2-none-any.whl
Pulp User Metadata: 
Summary:            Make sure your collections are in call number order.

[vagrant@dev ~]$ pulp-admin -v python repo remove --repo-id pypi --str-eq="name=shelf-reader"
This command may be exited via ctrl+c without affecting the request.

[\]
Running...

Units Removed:
2017-01-30 20:59:28,829 - ERROR - Client-side exception occurred
Traceback (most recent call last):
  File "/home/vagrant/devel/pulp/client_lib/pulp/client/extensions/core.py", line 474, in run
    exit_code = Cli.run(self, args)
  File "build/bdist.linux-x86_64/egg/okaara/cli.py", line 974, in run
    exit_code = command_or_section.execute(self.prompt, remaining_args)
  File "/home/vagrant/devel/pulp/client_lib/pulp/client/extensions/extensions.py", line 210, in execute
    return self.method(*arg_list, **clean_kwargs)
  File "/home/vagrant/devel/pulp/client_lib/pulp/client/commands/unit.py", line 91, in run
    self.poll([task], kwargs)
  File "/home/vagrant/devel/pulp/client_lib/pulp/client/commands/polling.py", line 135, in poll
    self.succeeded(task)
  File "/home/vagrant/devel/pulp/client_lib/pulp/client/commands/unit.py", line 121, in succeeded
    self.display_task_results(task, RETURN_REMOVE_SUCCESS_STRING, RETURN_REMOVE_ERROR_STRING)
  File "/home/vagrant/devel/pulp/client_lib/pulp/client/commands/unit.py", line 150, in display_task_results
    self._details(self.prompt.write, units_successful)
  File "/home/vagrant/devel/pulp/client_lib/pulp/client/commands/unit.py", line 201, in _details
    formatted_units = map(lambda u: formatter(u), unit_list)
  File "/home/vagrant/devel/pulp/client_lib/pulp/client/commands/unit.py", line 201, in <lambda>
    formatted_units = map(lambda u: formatter(u), unit_list)
  File "/home/vagrant/devel/pulp_python/extensions_admin/pulp_python/extensions/admin/packages.py", line 114, in <lambda>
    return lambda x: '%s-%s' % (x['name'], x['version'])
KeyError: 'name'
An unexpected error has occurred.More information may be found using the -vv
flag.

The two python packages are removed though. Seems like a problem with rendering the task status.

Actions #1

Updated by semyers almost 8 years ago

  • Tags Known Issue for Release Notes added
Actions #2

Updated by bizhang almost 8 years ago

  • Triaged changed from No to Yes
Actions #4

Updated by bmbouter over 5 years ago

  • Status changed from NEW to CLOSED - WONTFIX

Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.

Actions #5

Updated by bmbouter over 5 years ago

  • Tags Pulp 2 added
Actions #6

Updated by bmbouter over 4 years ago

  • Tags deleted (Known Issue for Release Notes)

Also available in: Atom PDF