Bug 1404422

Summary: fedpkg update does not work
Product: [Fedora] Fedora Reporter: Lukas Slebodnik <lslebodn>
Component: fedpkgAssignee: cqi
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: bochecha, cqi, dennis, gratien.dhaese, lsedlar, pbabinca, randy, rjones, s
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: fedpkg-1.26-4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-01 02:49:23 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:
Embargoed:

Description Lukas Slebodnik 2016-12-13 20:01:50 UTC
Description of problem:
I tried to update package in bodhi directly with fedpkg update
but it failed

Version-Release number of selected component (if applicable):
sh$ rpm -q bodhi-client fedpkg 
bodhi-client-2.3.3-1.fc26.noarch
fedpkg-1.26-2.fc26.noarch

How reproducible:
Deterministic

Steps to Reproduce:
1. #change directory to dist git with pacakge build in koji
2. fedpkg update

Actual results:
sh$ fedpkg update
Error: no such option: --bodhi-url
Could not execute update: Could not generate update request: Command 'bodhi --bodhi-url https://bodhi.fedoraproject.org/ updates new --file bodhi.template --user lslebodn sssd-1.14.2-2.fc25' returned non-zero exit status 2

Expected results:
Passed without any problem and update in bodhi is created

Comment 1 cqi 2016-12-14 01:46:08 UTC
This is also reported in https://pagure.io/fedpkg/issue/87

Comment 2 Lukas Slebodnik 2017-01-04 08:19:13 UTC
So would you mind to backport it to fedora?
Or are you waiting for new release? Is there any ETA?

Comment 3 cqi 2017-01-04 08:44:40 UTC
The fix is included in fedpkg-1.26-4. If you are using rawhide, it should be available for use already.

Comment 4 Lukas Slebodnik 2017-01-04 08:52:45 UTC
I added that version to the field "Fixed In Version". Feel free to close -> rawhide

Comment 5 Fedora End Of Life 2017-02-28 10:46:49 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle.
Changing version to '26'.

Comment 6 Richard W.M. Jones 2017-02-28 23:31:55 UTC
Still broken in fedpkg-1.26-5.fc25.noarch

Comment 7 Richard W.M. Jones 2017-02-28 23:35:28 UTC
Also broken with:
fedpkg-1.28-1.fc26.noarch
bodhi-client-2.4.0-1.fc26.noarch

Comment 8 cqi 2017-03-01 01:14:02 UTC
How is fedpkg broken for you? Can you run fedpkg with -d -v and provide the traceback?

Comment 9 Richard W.M. Jones 2017-03-01 10:43:53 UTC
Sorry, this was the wrong bug.  Moving back to POST.

Comment 10 Gratien D'haese 2017-06-07 12:03:33 UTC
This is similar error I get on f25:

$ fedpkg -d -v update
Creating a new update for  rear-2.1-1.fc26
ServerError(https://bodhi.fedoraproject.org/updates/, 403, Error returned from json module while processing https://bodhi.fedoraproject.org/updates/: No JSON object could be decoded


<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
...
  </body>
</html>
)
Could not execute update: Could not generate update request: Command 'bodhi --bodhi-url https://bodhi.fedoraproject.org/ --new --release f26 --file bodhi.template rear-2.1-1.fc26 --username gdha' returned non-zero exit status 255
Traceback (most recent call last):
  File "/usr/bin/fedpkg", line 16, in <module>
    main()
  File "/usr/lib/python2.7/site-packages/fedpkg/__main__.py", line 77, in main
    sys.exit(client.args.command())
  File "/usr/lib/python2.7/site-packages/fedpkg/cli.py", line 185, in update
    raise rpkgError('Could not generate update request: %s' % e)
pyrpkg.errors.rpkgError: Could not generate update request: Command 'bodhi --bodhi-url https://bodhi.fedoraproject.org/ --new --release f26 --file bodhi.template rear-2.1-1.fc26 --username gdha' returned non-zero exit status 255
[gdha@fedora25 rear]$ rpm -q fedpkg
fedpkg-1.28-1.fc25.noarch

I can login on the url https://bodhi.fedoraproject.org/

Comment 11 Randy Barlow 2017-06-07 19:01:07 UTC
Hello Gratien D'haese,

I believe you are experiencing a different issue. Could you file a new bug about it? Thanks!