Ticket #880 (closed defect: fixed)

Opened 13 years ago

Last modified 13 years ago

GPG Keys with YUMng and Packages

Reported by: Jack Neely <[email protected]…> Owned by: desai
Priority: major Milestone: Bcfg2 1.1.1 Release (Bugfix)
Component: bcfg2-client Version: 1.0
Keywords: Cc:


Being that I'm doing everything with the YUMng and Packages toolage I had to do the following to get GPG keys setup and installed:

 <BoundPackage name='gpg-pubkey' type='rpm'>                                    
    <Instance simplefile='/etc/pki/rpm-gpg/RPM-GPG-KEY-RealmLinux-0'            
              version='b274beb2' release='3cfe5d73'/>                           

Normal <Package> tags got the type argument changed to 'yum' and Packages tried to yum install gog-pubkey-foo-bar which was unfun.


Change History

comment:1 Changed 13 years ago by loren

I'm not sure if this should be part of the same bug or not, but I've also seen some problems with gpg-pubkey "packages" and YUMng/Packages, including this traceback. (I put in a print string so I could see the things being passed to VerifyPackage?):

rel: <type 'str'> [4c56437b] 
epoch: <type 'str'> [0] 
arch: <type 'NoneType'> [None] 
vers: <type 'str'> [d4043763] 
name: <type 'str'> [gpg-pubkey]
Unexpected failure of verification method for entry type Package
Traceback (most recent call last):
  File "/usr/lib64/python2.4/site-packages/Bcfg2/Client/Tools/", line 127, in Inventory
    states[entry] = func(entry, mods)
  File "/usr/lib64/python2.4/site-packages/Bcfg2/Client/Tools/", line 119, in VerifyPackage
    release=rel, epoch=epoch)
  File "etree.pyx", line 1705, in etree.SubElement
  File "apihelpers.pxi", line 146, in etree._initNodeAttributes
  File "apihelpers.pxi", line 562, in etree._utf8
TypeError: Argument must be string or unicode.

Since the gpgkeys are returned with arch type "None" by YUM, I get a traceback. YUM output:

$ yum list installed |grep gpg
gpg.x86_64                               1.4.2-23.16            installed       
gpg-pubkey.None                          0dfb3188-41ed929b      installed  

$ yum --version

comment:2 Changed 13 years ago by Jack Neely <[email protected]…>


What version of Bcfg2 is this? (Or SVN revision?) I've been making a lot of changes to YUMng and want to make sure I'm looking at what you are.


comment:3 Changed 13 years ago by jjneely

  • Status changed from new to closed
  • Resolution set to fixed

These should all be addressed in YUMng in the 1.1.0rc5 release. Please re-open if not.

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.