Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1494542

Summary: postgresql-9.6.4-1.fc27.ppc64le.rpm instal failed because of its public key
Product: [Fedora] Fedora Reporter: Menanteau Guy <menantea>
Component: postgresqlAssignee: Pavel Raiskup <praiskup>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: dan, devrim, hhorak, jmlich83, jstanek, pkajaba, pkubat, praiskup, tgl
Target Milestone: ---   
Target Release: ---   
Hardware: ppc64le   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-03 14:16:03 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:
Bug Depends On:    
Bug Blocks: 1071880    

Description Menanteau Guy 2017-09-22 13:06:21 UTC
Unable to install postgresql-9.6.4-1.fc27.ppc64le.rpm on fedora-27-Server-dvd-iso-ppc64le-BuildFedora-27-20170921.n.0 

on dnf install postgresql, I got

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 64, in main
    return _main(base, args, cli_class, option_parser_class)
  File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 102, in _main
    return cli_run(cli, base)
  File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 126, in cli_run
    ret = resolving(cli, base)
  File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 153, in resolving
    base.do_transaction(display=displays)
  File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 216, in do_transaction
    self.gpgsigcheck(install_pkgs)
  File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 257, in gpgsigcheck
    self._get_key_for_package(po, fn)
  File "/usr/lib/python3.6/site-packages/dnf/base.py", line 2117, in _get_key_for_package
    raise dnf.exceptions.Error(_prov_key_data(errmsg))
dnf.exceptions.Error: 

Public key for postgresql-9.6.4-1.fc27.ppc64le.rpm is not installedFailing package is: postgresql-9.6.4-1.fc27.ppc64le
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-26-ppc64le

Sep 22 08:48:05 CRITICAL Error: 

Public key for postgresql-9.6.4-1.fc27.ppc64le.rpm is not installedFailing package is: postgresql-9.6.4-1.fc27.ppc64le
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-26-ppc64le

Comment 1 Dan HorĂ¡k 2017-09-22 17:19:26 UTC
Guy, is it a fresh installation? Having F-26 key configured on F-27 sounds wrong ...
Isn't something wrong in the /etc/yum.repos.d/*.repo files? They should have
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
so the actual release number and arch are substituted in runtime.

Comment 2 Menanteau Guy 2017-11-03 14:16:03 UTC
This problem was due to an old wrong f26 image disk left on local openqa environment that was used randomly by some tests. This was an environment problem.