~free.ekanayaka/landscape-client/jaunty-updates-1.4.4-0ubuntu0.9.04

« back to all changes in this revision

Viewing changes to landscape/monitor/deployment.py

  • Committer: Bazaar Package Importer
  • Author(s): Free Ekanayaka
  • Date: 2009-09-21 17:59:31 UTC
  • mfrom: (1.2.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090921175931-4ucv40j9ro26i3lm
Tags: 1.3.2.3-0ubuntu0.9.04.0
* New upstream release (LP: #347983):
  - Don't clear the hash_id_requests table upon resynchronize (LP #417122)
  - Include the README file in landscape-client (LP: #396260)
  - Fix client capturing stderr from run_command when constructing
    hash-id-databases url (LP: #397480)
  - Use substvars to conditionally depend on update-motd or
    libpam-modules (LP: #393454)
  - Fix reporting wrong version to the server (LP: #391225)
  - The init script does not wait for the network to be available
    before checking for EC2 user data (LP: #383336)
  - When the broker is restarted by the watchdog, the state of the client
    is inconsistent (LP: #380633)
  - Package stays unknown forever in the client with hash-id-databases
    support (LP: #381356)
  - Standard error not captured when calling smart-update (LP: #387441)
  - Changer calls reporter without switching groups, just user (LP: #388092)
  - Run smart update in the package-reporter instead of having a cronjob (LP: #362355)
  - Package changer does not inherit proxy settings (LP: #381241)
  - The ./test script doesn't work in landscape-client (LP: #381613)
  - The source package should build on all supported releases (LP: #385098)
  - Strip smart update's output (LP: #387331)
  - The fetch() timeout isn't based on activity (#389224)
  - Client can use a UUID of "None" when fetching the hash-id-database (LP: #381291)
  - Registration should use the fqdn rather than just the hostname (LP: #385730)

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
ALL_PLUGINS = ["ActiveProcessInfo", "ComputerInfo", "HardwareInventory",
16
16
               "LoadAverage", "MemoryInfo", "MountInfo", "ProcessorInfo",
17
17
               "Temperature", "PackageMonitor",
18
 
               "UserMonitor"]
 
18
               "UserMonitor", "RebootRequired"]
19
19
 
20
20
 
21
21
class MonitorConfiguration(Configuration):
68
68
 
69
69
        # If this raises ServiceUnknownError, we should do something nice.
70
70
        self.remote_broker = RemoteBroker(self.bus)
 
71
 
71
72
        self.registry = MonitorPluginRegistry(self.remote_broker, self.reactor,
72
73
                                              self.config, self.bus,
73
74
                                              self.persist,
74
75
                                              self.persist_filename)
75
76
        self.dbus_service = MonitorDBusObject(self.bus, self.registry)
76
77
        DBusSignalToReactorTransmitter(self.bus, self.reactor)
77
 
        self.remote_broker.register_plugin(self.dbus_service.bus_name,
78
 
                                           self.dbus_service.object_path)
79
78
 
80
79
        for plugin in self.plugins:
81
80
            self.registry.add(plugin)
83
82
        self.flush_call_id = self.reactor.call_every(
84
83
            self.config.flush_interval, self.registry.flush)
85
84
 
 
85
        def broker_started():
 
86
            self.remote_broker.register_plugin(self.dbus_service.bus_name,
 
87
                                               self.dbus_service.object_path)
 
88
            self.registry.broker_started()
 
89
 
 
90
        broker_started()
 
91
        self.bus.add_signal_receiver(broker_started, "broker_started")
 
92
 
86
93
    def stopService(self):
87
94
        """Stop the monitor.
88
95