Bug 1885771

Summary: Could not execute retire: 'NoneType' object has no attribute 'is_retired'
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: fedpkgAssignee: Ondřej Nosek <onosek>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 32CC: carl, cqi, dennis, jkeating, lsedlar, onosek, s
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: fedpkg-1.40-1.fc33 fedpkg-1.40-1.fc32 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-12-07 01:20:00 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 Miro Hrončok 2020-10-06 21:10:09 UTC
$ rpm -q fedpkg
fedpkg-1.39-1.fc32.noarch


$ rpm -q python3-rpkg 
python3-rpkg-1.61-1.fc32.noarch

When I try to retire golang-github-mholt-certmagic-0.9, I get:

$ fedpkg retire "Orphaned for 6+ weeks"
Could not execute retire: 'NoneType' object has no attribute 'is_retired'

I suspect this has to do with a fact that there is no spec file.

Comment 1 Miro Hrončok 2020-10-07 06:39:42 UTC
May I retire the package manually, or do you need it unretired to be able to reproduce?

Comment 2 Ondřej Nosek 2020-10-07 06:45:37 UTC
I believe I can reproduce it even retired. But if you are not in a hurry, please, retire it by the end of today.

Comment 3 Miro Hrončok 2020-10-07 06:51:09 UTC
I am not in a hurry  - the package was never built, so retiring it now or later doesn't really make any difference. Since I cannot retire it accidentally, I won't retire it today. Thanks

Comment 4 Miro Hrončok 2020-10-16 07:53:31 UTC
I've retired the package now.

Comment 5 Carl George 🤠 2020-10-27 01:20:49 UTC
I ran into this same bug today.  I requested a new repo for an EPEL7-only package, and thus I tried to immediately retire the master branch with no spec file.

[carl@tassadar:~/packaging/fedora/python3-mod_wsgi]$ rpm -q fedpkg
fedpkg-1.39-1.fc33.noarch
[carl@tassadar:~/packaging/fedora/python3-mod_wsgi]$ fedpkg retire 'EPEL7-only package'
Could not execute retire: 'NoneType' object has no attribute 'is_retired'

Comment 6 Miro Hrončok 2020-10-27 08:45:37 UTC
As a workaround, git rm all the files, create and git add dead.package with the reason and commit this with the reason as a commit message.

Comment 7 Ondřej Nosek 2020-12-02 01:36:12 UTC
Going to be released in rpkg-1.62-1

Comment 8 Fedora Update System 2020-12-04 22:26:34 UTC
FEDORA-2020-3c9702ca4d has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-3c9702ca4d

Comment 9 Fedora Update System 2020-12-04 23:36:13 UTC
FEDORA-2020-36f82ae84e has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-36f82ae84e

Comment 10 Fedora Update System 2020-12-05 01:59:50 UTC
FEDORA-2020-3c9702ca4d has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-3c9702ca4d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-3c9702ca4d

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2020-12-05 02:08:23 UTC
FEDORA-2020-36f82ae84e has been pushed to the Fedora 32 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-36f82ae84e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-36f82ae84e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Fedora Update System 2020-12-07 01:20:00 UTC
FEDORA-2020-3c9702ca4d has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 13 Fedora Update System 2020-12-13 02:35:22 UTC
FEDORA-2020-36f82ae84e has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.