Bug 1369763

Summary: Cannot delete repo due to a canceled build
Product: [Community] Copr Reporter: Kwang Moo Yi <kwang.m.yi>
Component: frontendAssignee: clime
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: clime, decathorpe, kay
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-21 13:00:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Kwang Moo Yi 2016-08-24 11:08:19 UTC
Description of problem:

I cannot delete a non functioning repo due to a build that was canceled in the middle. There is reference to a canceled build in the copr, which seems to be due to the build being canceled too quickly.

Steps to Reproduce:

1. Try to delete the repo at https://copr.fedorainfracloud.org/coprs/kmyid/python3-xlib/

Actual results:

Reference to a canceled build 439954 when trying to delete the repo, saying it's unfinished. In the monitors page, this build number shows as canceled.

Expected results:

Successfully delete the repo.

Additional info:

Comment 1 clime 2016-09-01 11:47:42 UTC
I set the remaining build_chroot in "pending" state to "cancelled" manually. You should be able to delete it now.

Comment 2 Kwang Moo Yi 2016-09-01 11:52:34 UTC
Hi, I tried deleting just now and it's still saying

"You can not delete build `439946` which is not finished. "

Should I retry it a bit later?

Thanks.

Comment 3 clime 2016-09-01 12:05:52 UTC
Oh I was only working with 439954. Didn't notice the other build has the same problem. I did the same for 439946 now so you can try to delete it.

I'll make a patch to prevent this situation from happening. Thanks for the report.

Comment 4 Kwang Moo Yi 2016-09-01 12:10:32 UTC
Now it's fixed!

Thanks!

Comment 5 clime 2016-09-01 12:11:18 UTC
*** Bug 1371482 has been marked as a duplicate of this bug. ***

Comment 6 clime 2016-09-05 15:42:11 UTC
*** Bug 1336223 has been marked as a duplicate of this bug. ***

Comment 7 clime 2016-09-20 15:20:19 UTC
Fixed by https://github.com/fedora-copr/copr/commit/d5c7955a.

Comment 8 clime 2016-09-21 13:00:02 UTC
New COPR version has been deployed (to be released).