~ubuntu-cloud-archive/ubuntu/precise/nova/trunk

« back to all changes in this revision

Viewing changes to nova/scheduler/rpcapi.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short, Adam Gandelman, Chuck Short, Vishvananda Ishaya
  • Date: 2012-09-20 07:45:50 UTC
  • mfrom: (1.1.62)
  • Revision ID: package-import@ubuntu.com-20120920074550-fzmmmzqcntnw1vu7
Tags: 2012.2~rc1-0ubuntu1
[ Adam Gandelman ]
* Ensure /etc/nova/rootwrap.d/ is only writable by root, ensure
  those permissions on /etc/nova/rootwrap.conf as well as
  all individual filter configurations.

[ Chuck Short ]
* Fix lintian warnings
* debian/*.lograote: compress logfiles when they are rotated. (LP:
  #1049915)
* debian/control: 
  - Suggest ceph-common for nova-volume.
  - Add python-cinderclient as a build depends.

[Vishvananda Ishaya]
* Split up vncproxy and xvpvncproxy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
        1.7 - Add create_volume() method, remove topic from live_migration()
45
45
 
46
46
        2.0 - Remove 1.x backwards compat
 
47
        2.1 - Add image_id to create_volume()
 
48
        2.2 - Remove reservations argument to create_volume()
47
49
    '''
48
50
 
 
51
    #
 
52
    # NOTE(russellb): This is the default minimum version that the server
 
53
    # (manager) side must implement unless otherwise specified using a version
 
54
    # argument to self.call()/cast()/etc. here.  It should be left as X.0 where
 
55
    # X is the current major API version (1.0, 2.0, ...).  For more information
 
56
    # about rpc API versioning, see the docs in
 
57
    # openstack/common/rpc/dispatcher.py.
 
58
    #
49
59
    BASE_RPC_API_VERSION = '2.0'
50
60
 
51
61
    def __init__(self):
85
95
                disk_over_commit=disk_over_commit, instance=instance_p,
86
96
                dest=dest))
87
97
 
88
 
    def create_volume(self, ctxt, volume_id, snapshot_id, reservations):
 
98
    def create_volume(self, ctxt, volume_id, snapshot_id, image_id):
89
99
        self.cast(ctxt,
90
100
                  self.make_msg('create_volume',
91
101
                                volume_id=volume_id, snapshot_id=snapshot_id,
92
 
                                reservations=reservations))
 
102
                                image_id=image_id),
 
103
                  version='2.2')
93
104
 
94
105
    def update_service_capabilities(self, ctxt, service_name, host,
95
106
            capabilities):