Project

Profile

Help

Issue #696

closed

PulpCodedException raised when deleting a repo group

Added by amacdona@redhat.com about 9 years ago. Updated about 5 years ago.

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

Description

Description of problem:

When trying to delete a repo group, the following exception is raised:

PulpCodedException: Working Directory requested outside of asynchronous task.

Version-Release number of selected component (if applicable):

Probably a regression, new in master.

How reproducible:

Always

Steps to Reproduce:

1. Create a repo group

$ pulp-admin repo group create --group-id new_group
Repository Group [new_group] successfully created

2.Try to delete it

$ pulp-admin repo group delete --group-id new_group
An internal error occurred on the Pulp server:
RequestException: DELETE request
on /pulp/api/v2/repo_groups/new_group/ failed with 500 - Working Directory
requested outside of asynchronous task. 

Actual results:

An internal error occurred on the Pulp server:
RequestException: DELETE request
on /pulp/api/v2/repo_groups/new_group/ failed with 500 - Working Directory
requested outside of asynchronous task. 

Expected results:

Successful delete.

Additional info:

Problem occurs in server/pulp/server/managers/repo/group/cud.py, line 171. This delete should be taking place asynchronously in a task, rather than synchronously.

+ This bug was cloned from Bugzilla Bug #1192177 +

Also available in: Atom PDF