Modify

Ticket #1082 (closed defect: fixed)

Opened 10 years ago

Last modified 10 years ago

bcfg2-lint tracebacks on Pkgmgr

Reported by: m4z <686f6c6d@…> Owned by: https://www.google.com/accounts/o8/id?id=AItOawnSjgovXZr-_V3vGkvMSR0pc5LDykRc1Nc
Priority: minor Milestone: Bcfg2 1.2.1 Release (Bugfix)
Component: bcfg2-server Version: 1.0
Keywords: Cc:

Description

foo:/var/lib/bcfg2 # rpm -qa | grep bcfg
bcfg2-1.2.0-4.1.noarch
bcfg2-server-1.2.0-4.1.noarch
foo:/var/lib/bcfg2 # bcfg2-lint -v
Running serverless plugins
  Running Validate
Handled 20 events in 0.022s
Running server plugins
  Running Duplicates
  Running Pkgmgr
Traceback (most recent call last):
  File "/usr/sbin/bcfg2-lint", line 191, in <module>
    config=config, setup=setup)
  File "/usr/sbin/bcfg2-lint", line 29, in run_server_plugins
    setup=setup, config=config, files=files)
  File "/usr/sbin/bcfg2-lint", line 53, in run_plugin
    return plugin(*args, **kwargs).Run()
  File "/usr/lib/python2.7/site-packages/Bcfg2/Server/Lint/Pkgmgr.py", line 16, in Run
    priority = xdata.getroot().get('priority')
AttributeError: 'str' object has no attribute 'getroot'
foo:/var/lib/bcfg2 # 

Attachments

Change History

comment:1 Changed 10 years ago by m4z <686f6c6d@…>

The corresponding Pkgmgr file looks like this (like in the docs):

foo:/var/lib/bcfg2 # head Pkgmgr/openSUSE.xml 
<PackageList uri='http://something/' priority='0' type='yum'>
<Group name='openSUSE11.4'>
        <Group name='x86_64'>
                <Package name='one' version='auto'/>
                <Package name='two' version='auto'/>
[...]

comment:2 Changed 10 years ago by https://www.google.com/accounts/o8/id?id=AItOawnSjgovXZr-_V3vGkvMSR0pc5LDykRc1Nc

  • Owner changed from desai to https://www.google.com/accounts/o8/id?id=AItOawnSjgovXZr-_V3vGkvMSR0pc5LDykRc1Nc
  • Status changed from new to accepted

comment:3 Changed 10 years ago by https://www.google.com/accounts/o8/id?id=AItOawnSjgovXZr-_V3vGkvMSR0pc5LDykRc1Nc

  • Status changed from accepted to closed
  • Resolution set to fixed
  • Milestone changed from Bcfg2 1.3.0 Release to Bcfg2 1.2.1 Release (Bugfix)

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

View

Add a comment

Modify Ticket

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


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

 
Note: See TracTickets for help on using tickets.