Activity log for bug #388577

Date Who What changed Old value New value Message
2009-06-17 17:57:11 Free Ekanayaka bug added bug
2009-06-18 22:26:28 Gustavo Niemeyer landscape-client: status New In Progress
2009-06-18 22:26:28 Gustavo Niemeyer landscape-client: assignee Free Ekanayaka (free.ekanayaka)
2009-06-22 17:36:57 Andreas Hasenack bug task added smart
2009-06-22 17:37:15 Andreas Hasenack smart: status New Fix Committed
2009-06-23 00:50:18 Jamu Kakar tags needs-testing
2009-06-23 09:38:12 Free Ekanayaka landscape-client: status In Progress Fix Committed
2009-06-23 09:38:31 Free Ekanayaka tags needs-testing
2009-06-30 11:39:49 Anders F Björklund smart: milestone 1.3
2009-10-06 09:30:44 Free Ekanayaka bug task added smart (Ubuntu)
2009-10-06 09:33:38 Free Ekanayaka smart (Ubuntu): status New Invalid
2009-10-06 09:40:15 Free Ekanayaka nominated for series Ubuntu Intrepid
2009-10-06 09:40:15 Free Ekanayaka nominated for series Ubuntu Jaunty
2009-10-06 10:21:31 Free Ekanayaka description If the /var/lib/rpm directory exists on the system (this happens if the "rpm" package is installed), the call to smart.initPlugins() in landscape/package/facade.py makes the reporter crash with: Traceback (most recent call last): File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 328, in _runCallbacks self.result = callback(self.result, *args, **kw) File "./landscape/package/reporter.py", line 52, in <lambda> result.addCallback(lambda x: self.request_unknown_hashes()) File "./landscape/package/reporter.py", line 278, in request_unknown_hashes self.ensure_channels_reloaded() File "./landscape/package/taskhandler.py", line 30, in ensure_channels_reloaded self._facade.reload_channels() File "./landscape/package/facade.py", line 94, in reload_channels ctrl = self._get_ctrl() File "./landscape/package/facade.py", line 73, in _get_ctrl smart.initPlugins() File "/usr/lib/python2.6/dist-packages/smart/__init__.py", line 185, in initPlugins __import__("smart.plugins."+entry[:-3]) File "/usr/lib/python2.6/dist-packages/smart/plugins/detectsys.py", line 66, in <module> detectRPMSystem() File "/usr/lib/python2.6/dist-packages/smart/plugins/detectsys.py", line 34, in detectRPMSystem "name": "RPM System" File "/usr/lib/python2.6/dist-packages/smart/sysconfig.py", line 226, in set self.assertWritable() File "/usr/lib/python2.6/dist-packages/smart/sysconfig.py", line 66, in assertWritable raise Error, _("Configuration is in readonly mode.") Error: Configuration is in readonly mode. Looking at the smart code shows that the problem is in plugins/detectsys.py: def detectRPMSystem(): dir = os.path.join(sysconf.get("rpm-root", "/"), "var/lib/rpm") if os.path.isdir(dir): for alias in sysconf.keys("channels"): if sysconf.get(("channels", alias, "type")) == "rpm-sys": break else: sysconf.set("channels.rpm-sys", { "type": "rpm-sys", "name": "RPM System" }) because of the sysconf.set call in the else: branch. affects landscape-client importance medium milestone 1.3.2 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/package/facade.py makes the landscape-client-reporter crash.
2009-10-06 10:32:33 Free Ekanayaka smart (Ubuntu): status Invalid Fix Committed
2009-10-06 10:33:01 Free Ekanayaka landscape-client: status Fix Committed Fix Released
2009-10-08 17:02:54 Martin Pitt bug task added smart (Ubuntu Intrepid)
2009-10-08 17:03:06 Martin Pitt bug task added smart (Ubuntu Jaunty)
2009-10-08 17:15:54 Martin Pitt smart (Ubuntu Jaunty): status New Fix Committed
2009-10-08 17:16:00 Martin Pitt tags verification-needed
2009-10-08 18:34:01 Mathias Gug smart (Ubuntu): status Fix Committed Fix Released
2009-10-08 18:34:13 Anders F Björklund tags verification-needed ubuntu verification-needed
2009-10-20 15:01:08 Martin Pitt smart (Ubuntu Intrepid): status New Fix Committed
2009-10-28 18:16:17 Launchpad Janitor smart (Ubuntu Jaunty): status Fix Committed Fix Released
2009-10-28 18:17:14 Launchpad Janitor smart (Ubuntu Intrepid): status Fix Committed Fix Released
2009-11-06 09:20:29 Anders F Björklund smart: milestone 1.3 1.2.1
2009-12-14 17:04:55 Anders F Björklund smart: status Fix Committed Fix Released