This is the same issue we're trying to solve in the mailing thread
"convenience artifacts are signed and uploaded". I've built a sample repo
which works properly by using my own key "Evans Ye" to sign and to export
GPG KEY. So I believe the following steps should be the right way to sign
packages and export the gpgkey:

$ find -name *.rpm | xargs rpm --define="%_gpg_name Evans Ye" --addsign

$ gpg --armor --output KEYS --export 'Evans Ye'
I've verified that the hash is matched now in our official repo.
So I guess the main issue left is using non-armored gpg key, if we manually
import the gpgkey in the repo file:

[bigtop]
name=Bigtop
enabled=1
gpgcheck=1
type=NONE
baseurl=http://bigtop.s3.amazonaws.com/releases/1.0.0/centos/6/x86_64
gpgkey=http://archive.apache.org/dist/bigtop/KEYS

[root@48723d98dc1b ~]# rpm --import
https://dist.apache.org/repos/dist/release/bigtop/KEYS
error: https://dist.apache.org/repos/dist/release/bigtop/KEYS: key 2 not an
armored public key.

It gets error.
However, my own exported armored key can be imported without an error.
That's the different.

Can you confirm that the gpgkey(http://archive.apache.org/dist/bigtop/KEYS)
is exported with --armor flag?

2015-09-02 13:25 GMT+08:00 Konstantin Boudnik <[email protected]>:

> Looks like I have figured out what's wrong with my key. And it is
> _nothing_.
> However, it seems that I can not sign RPMs with subkey as YUM can not find
> the
> key while importing. Can anyone confirm or disprove my train of thoughts?
>
> Thanks!
>   Cos
>
> On Wed, Sep 02, 2015 at 07:42AM, Konstantin Boudnik wrote:
> > I've resynced the repodata once again and I don't see this issue on the
> > centos7 anymore. However, yum still complains about the key being no
> > available, but there's a workaround by setting gpgcheck=0 And I am going
> to
> > figure out what to do with it and why my key isn't working as expected.
> >
> > I also have discovered that the gpgkey file URL is using the old
> incubation
> > KEYS. Fixed that as well.
> >
> > Please let me know if you still see the issue with checksums mismatch.
> > Thanks,
> >   Cos
> >
> > On Tue, Sep 01, 2015 at 12:44PM, Konstantin Boudnik wrote:
> > > I think this is the consequences of me fighting with the package
> signing... ;(
> > > A couple of days ago I have re-ran 'createrepo' for all the RPM-based
> distros
> > > and uploaded new repo files to the release. Not sure why the checksums
> differ
> > > now...
> > >
> > > I will take a look into this again tonight.
> > >   Cos
> > >
> > > On Tue, Sep 01, 2015 at 09:39PM, Olaf Flebbe wrote:
> > > > I can second it:
> > > >
> > > > I added to /etc/yum.repo.d/meins.repo
> > > >
> > > >  [meins]
> > > > name=Bigtop epo
> > > > baseurl=
> http://bigtop.s3.amazonaws.com/releases/1.0.0/centos/7/x86_64/
> > > > enabled=1
> > > > gpgcheck=0
> > > > priority=1
> > > >
> > > > and got
> > > > ............
> > > > Downloading packages:
> > > > hbase-0.98.12-1.el7.centos.noa FAILED
>           =============================================-] 849 kB/s |  62
> MB  00:00:00 ETA
> > > >
> http://bigtop.s3.amazonaws.com/releases/1.0.0/centos/7/x86_64/hbase/noarch/hbase-0.98.12-1.el7.centos.noarch.rpm:
> [Errno -1] Package does not match intended download. Suggestion: run yum
> --enablerepo=meins clean metadata
> > > > Trying other mirror.
> > > > .............
> > > >
> > > > Olaf
> > > >
> > >
> > >
>
>
>

Reply via email to