The presence of /var/lib/rpm makes the reporter crash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Landscape Client |
Fix Released
|
Medium
|
Free Ekanayaka | ||
Smart Package Manager |
Fix Released
|
Undecided
|
Unassigned | ||
smart (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Intrepid |
Fix Released
|
Undecided
|
Unassigned | ||
Jaunty |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The Landscape Team has proposed a SRU to fix this bug.
Statement explaining the impact
=======
This bug affects anybody with the rpm package installed, or even removed but not purged (see below how to reproduce). The landscape package reporter (which is what is crashing) reports to the landscape server the packages installed and available on each managed machine. If it crashes, then the machine will show up in landscape has having no packages at all.
How the bug has been addressed
=======
By conditionally loading the rpm smart plugin if it's available.
Detailed instructions how to reproduce the bug
=======
If the /var/lib/rpm directory exists on the system (this happens for instance if
the "rpm" package is installed or removed but not purged), the call to smart.initPlugins() in landscape/
tags: | added: needs-testing |
Changed in smart (Ubuntu): | |
status: | New → Invalid |
description: | updated |
tags: | added: ubuntu |
Changed in smart: | |
milestone: | 1.3 → 1.2.1 |
Changed in smart: | |
status: | Fix Committed → Fix Released |
If you have the right distro.py in place (as our package should do), this shouldn't be an issue, since our distro.py file explicitly disables the rpm detection. Did you have that file in place when that happened?