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

« back to all changes in this revision

Viewing changes to nova/virt/driver.py

  • Committer: Package Import Robot
  • Author(s): Adam Gandelman, Adam Gandelman, Chuck Short
  • Date: 2012-08-27 15:37:18 UTC
  • mfrom: (1.1.60)
  • Revision ID: package-import@ubuntu.com-20120827153718-lj8er44eqqz1gsrj
Tags: 2012.2~rc1~20120827.15815-0ubuntu1
[ Adam Gandelman ]
* New upstream release.

[ Chuck Short ]
* debian/patches/0001-Update-tools-hacking-for-pep8-1.2-and-
  beyond.patch: Dropped we dont run pep8 tests anymore.
* debian/control: Drop pep8 build depends
* debian/*.upstart.in: Make sure we transition correctly from runlevel
  1 to 2. (LP: #820694)

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
    types that support that contract
23
23
"""
24
24
 
25
 
from nova.compute import power_state
26
25
from nova import flags
27
26
from nova.openstack.common import log as logging
28
27
 
193
192
        # TODO(Vek): Need to pass context in for access to auth_token
194
193
        raise NotImplementedError()
195
194
 
196
 
    def reboot(self, instance, network_info, reboot_type):
 
195
    def reboot(self, instance, network_info, reboot_type,
 
196
               block_device_info=None):
197
197
        """Reboot the specified instance.
198
198
 
199
199
        :param instance: Instance object as returned by DB layer.
302
302
        # TODO(Vek): Need to pass context in for access to auth_token
303
303
        raise NotImplementedError()
304
304
 
305
 
    def resume_state_on_host_boot(self, context, instance, network_info):
 
305
    def resume_state_on_host_boot(self, context, instance, network_info,
 
306
                                  block_device_info=None):
306
307
        """resume guest state when a host is booted"""
307
308
        raise NotImplementedError()
308
309
 
324
325
        """Power on the specified instance"""
325
326
        raise NotImplementedError()
326
327
 
327
 
    def update_available_resource(self, ctxt, host):
328
 
        """Updates compute manager resource info on ComputeNode table.
 
328
    def get_available_resource(self):
 
329
        """Retrieve resource information.
329
330
 
330
331
        This method is called when nova-compute launches, and
331
 
        whenever admin executes "nova-manage service update_resource".
332
 
 
333
 
        :param ctxt: security context
334
 
        :param host: hostname that compute manager is currently running
335
 
 
 
332
        as part of a periodic task
 
333
 
 
334
        :returns: Dictionary describing resources
336
335
        """
337
336
        raise NotImplementedError()
338
337