Bug 1364848 - Packages report as unsigned when dnf/yum installs
Summary: Packages report as unsigned when dnf/yum installs
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Copr
Classification: Community
Component: backend
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: clime
QA Contact:
URL:
Whiteboard:
: 1365104 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-08 03:13 UTC by Ian Wienand
Modified: 2016-08-18 16:19 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-18 16:19:42 UTC
Embargoed:


Attachments (Terms of Use)

Description Ian Wienand 2016-08-08 03:13:32 UTC
Hi,

I've been trying to get a custom kernel built for some testing.

Two things; both related to signing... (maybe to each other?)

My first build [1] made the packages correctly, but failed with [2]

---
Traceback (most recent call last):
  File "/usr/share/copr/backend/mockremote/__init__.py", line 214, in sign_built_packages
    log=self.log
  File "/usr/share/copr/backend/sign.py", line 121, in sign_rpms_in_dir
    create_user_keys(username, projectname, opts)
  File "/usr/share/copr/backend/sign.py", line 167, in create_user_keys
    request=query, response=response)
CoprKeygenRequestError: Failed to create key-pair for user: iwienand, project:kernel-4.6.4-301.rhbz1361414, status_code: 504, response: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>504 Gateway Timeout</title>
</head><body>
<h1>Gateway Timeout</h1>
<p>The gateway did not receive a timely response
from the upstream server or application.</p>
</body></html>
---

The second build worked correctly [3] but when trying to install from the repo, dnf reports that the package is not signed 

---
...
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Package kernel-4.6.4-301.rhbz1361414.fc24.x86_64.rpm is not signed
---

This seems repeatable -- this happened to me previously, so I deleted my project and tried the whole thing again and same result (first build failed, second build reporting as unsigned).  

[1] https://copr.fedorainfracloud.org/coprs/iwienand/kernel-4.6.4-301.rhbz1361414/build/438285/
[2] https://copr-be.cloud.fedoraproject.org/results/iwienand/kernel-4.6.4-301.rhbz1361414/fedora-24-x86_64/00438285-kernel/mockchain.log.gz
[3] https://copr.fedorainfracloud.org/coprs/iwienand/kernel-4.6.4-301.rhbz1361414/build/438368/

Comment 1 Carl George 2016-08-08 12:25:19 UTC
I have also observed the same behavior.

Comment 2 clime 2016-08-08 16:02:44 UTC
The second build should be alright (all packages signed). 

You should be able to install the kernel package from your project after deleting the first build and running 'dnf clean packages' on your machine. The first operation will remove records of the unsigned packages from your project's repodata. The second operation will clean your local package cache.

The reason for the first build failure was that the new key for the project was not generated soon enough to be available for the signing procedure. The key generation started after the build was "finished" and not immediately after the project creation, which is the usual procedure. That happened because our action queue was blocked most of the last week due to a bug in forking code. There happened to be an infinite signing loop upon a few packages. 

We are working on a solution. Sorry for the problems.

Comment 3 clime 2016-08-08 17:29:09 UTC
*** Bug 1365104 has been marked as a duplicate of this bug. ***

Comment 4 clime 2016-08-15 21:44:12 UTC
The described problem with queue jamming was fixed by: https://github.com/fedora-copr/copr/commit/18650210

Comment 5 Fedora Update System 2016-08-17 14:24:23 UTC
copr-backend-1.92-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-76bd2fb756

Comment 6 Fedora Update System 2016-08-17 14:24:40 UTC
copr-backend-1.92-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-8c6f580ff7

Comment 7 Fedora Update System 2016-08-18 01:51:01 UTC
copr-backend-1.92-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-76bd2fb756

Comment 8 Fedora Update System 2016-08-18 01:51:33 UTC
copr-backend-1.92-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-8c6f580ff7

Comment 9 clime 2016-08-18 16:19:42 UTC
New Copr has been released.


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