summaryrefslogtreecommitdiffstats
path: root/nova
diff options
context:
space:
mode:
authorAnthony Young <sleepsonthefloor@gmail.com>2010-12-22 18:52:43 -0800
committerAnthony Young <sleepsonthefloor@gmail.com>2010-12-22 18:52:43 -0800
commit4e9b4c9ce31a7a50d7e38d5e0bd71718d5bb8b95 (patch)
treee86d9bf88d98204246b6fe8862cad8f51e8d32e6 /nova
parent0093342106cc270859df0511dbefad8ec8fc2320 (diff)
minor notes, commit before rewriting proxy with eventlet
Diffstat (limited to 'nova')
-rw-r--r--nova/compute/api.py1
-rw-r--r--nova/virt/libvirt_conn.py2
2 files changed, 1 insertions, 2 deletions
diff --git a/nova/compute/api.py b/nova/compute/api.py
index 1acf320ae..3e9b58db5 100644
--- a/nova/compute/api.py
+++ b/nova/compute/api.py
@@ -331,7 +331,6 @@ class ComputeAPI(base.Base):
{'method': 'get_ajax_console',
'args': {'instance_id': instance_ref['id']}})
- # TODO: make this a call
rpc.cast(context, '%s' % FLAGS.ajax_console_proxy_topic,
{'method': 'authorize_ajax_console',
'args': {'token': output['token'], 'host': output['host'],
diff --git a/nova/virt/libvirt_conn.py b/nova/virt/libvirt_conn.py
index 658efa8d1..55754ea48 100644
--- a/nova/virt/libvirt_conn.py
+++ b/nova/virt/libvirt_conn.py
@@ -389,7 +389,7 @@ class LibvirtConnection(object):
def get_ajax_console(self, instance):
def get_open_port():
for i in xrange(0,100): # don't loop forever
- port = random.randint(10000, 12000)
+ port = random.randint(10000, 12000) #TODO - make flag
# netcat will exit with 0 only if the port is in use,
# so a nonzero return value implies it is unused
cmd = 'netcat 0.0.0.0 %s -w 1 </dev/null || echo free' % (port)