Bug 1397206

Summary: can't delete a package by CLI
Product: [Internal] Red Hat Internal Copr Reporter: Eduardo <ecerqueira>
Component: clientAssignee: Pavel Raiskup <praiskup>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecified   
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: 2017-01-17 13:58:21 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:
Attachments:
Description Flags
full log for copr delete-package none

Description Eduardo 2016-11-21 22:08:25 UTC
Created attachment 1222489 [details]
full log for copr delete-package

Description of problem: I can't delete a package by CLI 


Version-Release number of selected component (if applicable): copr-cli-1.57-1.fc24.noarch


How reproducible: 

Steps to Reproduce:
1. in your Copr project, create a new package from Web-UI and do not run a build for this.
2. from terminal run $copr list just to make sure you can authenticate and see data coming from copr server.
3. follow instructions:

[ecerquei@dev .config]$ copr delete-package --help
usage: copr delete-package [-h] --name PKGNAME copr

4. now try to delete it: $ copr delete-package --name paws_ci ecerquei/PAWS


Actual results:

Error: Unknown response from the server. Code: 404, raw response:


Expected results:


Additional info: pls check file attached for full server response.

Comment 1 Pavel Raiskup 2016-11-22 06:40:02 UTC
Thanks for the report Eduardo, yeah -- the copr-cli utility is much younger
compared to internal copr frontend;  internal frontend needs to be updated
to have "package delete" working (needs new server API for copr-cli).

Work-around is to delete packages builds one-by-one.  You'll still see
the package within "Packages" tab, but that should be cosmetic issue.

Comment 2 Eduardo 2016-11-22 13:28:08 UTC
Ok! Can you please guide me how I to delete this package even by frontend/web-ui?

I can't see any button to perform a deletion action, wondering if it is something wrong with my account/permission?

please see screenshots at: http://file.bos.redhat.com/ecerquei/bug_1397206/

Comment 3 Pavel Raiskup 2016-11-22 13:41:31 UTC
AFAIK you can't delete package, there's the workaround I mentioned -- delete
particular builds.  Feel free to ping me on irc.

Comment 5 Pavel Raiskup 2017-01-17 13:58:21 UTC
Deleting package from cli works now (in production).  Feel free to reopen
if necessary.  Thanks!