~ubuntu-branches/ubuntu/quantal/nova/quantal-proposed

« back to all changes in this revision

Viewing changes to nova/manager.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-08-16 14:04:11 UTC
  • mto: This revision was merged to the branch mainline in revision 84.
  • Revision ID: package-import@ubuntu.com-20120816140411-0mr4n241wmk30t9l
Tags: upstream-2012.2~f3
ImportĀ upstreamĀ versionĀ 2012.2~f3

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
from nova.db import base
57
57
from nova import flags
58
58
from nova.openstack.common import log as logging
 
59
from nova.openstack.common.plugin import pluginmanager
59
60
from nova.openstack.common.rpc import dispatcher as rpc_dispatcher
60
61
from nova.scheduler import rpcapi as scheduler_rpcapi
61
62
from nova import version
138
139
        if not host:
139
140
            host = FLAGS.host
140
141
        self.host = host
 
142
        self.load_plugins()
141
143
        super(Manager, self).__init__(db_driver)
142
144
 
 
145
    def load_plugins(self):
 
146
        pluginmgr = pluginmanager.PluginManager('nova', self.__class__)
 
147
        pluginmgr.load_plugins()
 
148
 
143
149
    def create_rpc_dispatcher(self):
144
150
        '''Get the rpc dispatcher for this manager.
145
151
 
205
211
        self.scheduler_rpcapi = scheduler_rpcapi.SchedulerAPI()
206
212
        super(SchedulerDependentManager, self).__init__(host, db_driver)
207
213
 
 
214
    def load_plugins(self):
 
215
        pluginmgr = pluginmanager.PluginManager('nova', self.service_name)
 
216
        pluginmgr.load_plugins()
 
217
 
208
218
    def update_service_capabilities(self, capabilities):
209
219
        """Remember these capabilities to send on next periodic update."""
210
220
        self.last_capabilities = capabilities