diff options
| author | Kevin L. Mitchell <kevin.mitchell@rackspace.com> | 2011-09-08 19:08:46 +0000 |
|---|---|---|
| committer | Kevin L. Mitchell <kevin.mitchell@rackspace.com> | 2011-09-08 19:08:46 +0000 |
| commit | c8a48eec1fb9f205af5cef2b882fc171bcca4d57 (patch) | |
| tree | 778d1fa65e211d6f7b83bcfad5b53acff6d3b842 | |
| parent | 1268f81ec950a6c1a06a74245ca132fb916a1fdd (diff) | |
| download | nova-c8a48eec1fb9f205af5cef2b882fc171bcca4d57.tar.gz nova-c8a48eec1fb9f205af5cef2b882fc171bcca4d57.tar.xz nova-c8a48eec1fb9f205af5cef2b882fc171bcca4d57.zip | |
Add a NOTE()
| -rw-r--r-- | nova/scheduler/abstract_scheduler.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nova/scheduler/abstract_scheduler.py b/nova/scheduler/abstract_scheduler.py index be6267d3a..1ba10c3a9 100644 --- a/nova/scheduler/abstract_scheduler.py +++ b/nova/scheduler/abstract_scheduler.py @@ -123,6 +123,14 @@ class AbstractScheduler(driver.Scheduler): except novaclient_exceptions.BadRequest, e: raise exception.NotAuthorized(_("Bad credentials attempting " "to talk to zone at %(url)s.") % locals()) + # NOTE(Vek): Novaclient has two different calling conventions + # for this call, depending on whether you're using + # 1.0 or 1.1 API: in 1.0, there's an ipgroups + # argument after flavor_id which isn't present in + # 1.1. To work around this, all the extra + # arguments are passed as keyword arguments + # (there's a reasonable default for ipgroups in the + # novaclient call). nova.servers.create(name, image_ref, flavor_id, meta=meta, files=files, zone_blob=child_blob, reservation_id=reservation_id) |
