Merge branch 'devel-2.2'
authorGuido Trotter <ultrotter@google.com>
Wed, 18 Aug 2010 16:59:28 +0000 (17:59 +0100)
committerGuido Trotter <ultrotter@google.com>
Wed, 18 Aug 2010 16:59:33 +0000 (17:59 +0100)
* devel-2.2:
  RAPI client: Support modifying instances
  RAPI: Allow modifying instance
  Small fixes for instance creation via RAPI documentation
  gnt-debug: Extend job queue tests
  jqueue: Mark opcodes following failed ones as failed, too
  jqueue: Work around race condition between job processing and archival
  jqueue: More checks for cancelling queued job
  errors: Function to check whether value is encoded error
  jqueue: Add more debug output
  gnt-backup: Pass error code to OpPrereqError
  Fix --master-netdev arg name in gnt-cluster(8)
  Restore 'tablet mouse on vnc' behavior
  Document the usb_mouse hv parameter
  Revert "Add -usbdevice tablet to KVM when using vnc"

Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>

1  2 
lib/cmdlib.py
lib/errors.py
lib/hypervisor/hv_kvm.py
lib/jqueue.py
lib/rapi/client.py

diff --cc lib/cmdlib.py
Simple merge
diff --cc lib/errors.py
Simple merge
@@@ -570,10 -571,11 +572,11 @@@ class KVMHypervisor(hv_base.BaseHypervi
      if mouse_type:
        kvm_cmd.extend(['-usb'])
        kvm_cmd.extend(['-usbdevice', mouse_type])
+     elif vnc_bind_address:
+       kvm_cmd.extend(['-usbdevice', constants.HT_MOUSE_TABLET])
  
-     vnc_bind_address = hvp[constants.HV_VNC_BIND_ADDRESS]
      if vnc_bind_address:
 -      if netutils.IsValidIP4(vnc_bind_address):
 +      if netutils.IP4Address.IsValid(vnc_bind_address):
          if instance.network_port > constants.VNC_BASE_PORT:
            display = instance.network_port - constants.VNC_BASE_PORT
            if vnc_bind_address == constants.IP4_ADDRESS_ANY:
diff --cc lib/jqueue.py
Simple merge
Simple merge