~hudson-openstack/nova/trunk

« back to all changes in this revision

Viewing changes to nova/virt/driver.py

  • Committer: Tarmac
  • Author(s): Justin Santa Barbara
  • Date: 2011-03-30 02:46:57 UTC
  • mfrom: (786.4.40 volumes-api)
  • Revision ID: tarmac-20110330024657-6xsfuv6p6xql9sw3
Support for volumes in the OpenStack API

Two new endpoints: /volumes and /servers/<id>/volume_attachments

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
        raise NotImplementedError()
67
67
 
68
68
    def destroy(self, instance, cleanup=True):
69
 
        """Shutdown specified VM"""
 
69
        """Destroy (shutdown and delete) the specified instance.
 
70
 
 
71
        The given parameter is an instance of nova.compute.service.Instance,
 
72
        and so the instance is being specified as instance.name.
 
73
 
 
74
        The work will be done asynchronously.  This function returns a
 
75
        task that allows the caller to detect when it is complete.
 
76
 
 
77
        If the instance is not found (for example if networking failed), this
 
78
        function should still succeed.  It's probably a good idea to log a
 
79
        warning in that case.
 
80
 
 
81
        """
70
82
        raise NotImplementedError()
71
83
 
72
84
    def reboot(self, instance):
77
89
        raise NotImplementedError()
78
90
 
79
91
    def get_console_pool_info(self, console_type):
80
 
        """???
81
 
 
82
 
        Returns a dict containing:
83
 
        :address:          ???
84
 
        :username:         ???
85
 
        :password:         ???
86
 
        """
87
92
        raise NotImplementedError()
88
93
 
89
94
    def get_console_output(self, instance):
114
119
        raise NotImplementedError()
115
120
 
116
121
    def snapshot(self, instance, image_id):
117
 
        """ Create snapshot from a running VM instance """
 
122
        """Create snapshot from a running VM instance."""
118
123
        raise NotImplementedError()
119
124
 
120
125
    def finish_resize(self, instance, disk_info):