Bug 1397206 - can't delete a package by CLI
Summary: can't delete a package by CLI
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Internal Copr
Classification: Internal
Component: client
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Pavel Raiskup
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-21 22:08 UTC by Eduardo
Modified: 2017-01-17 13:58 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-17 13:58:21 UTC


Attachments (Terms of Use)
full log for copr delete-package (4.93 KB, text/plain)
2016-11-21 22:08 UTC, Eduardo
no flags Details

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!


Note You need to log in before you can comment on or make changes to this bug.