← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1172177] Re: vmware Hyper for nova vnc console url parameters error

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => havana-1

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1172177

Title:
  vmware Hyper for nova vnc console url parameters error

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  there is an error in the vmwareapi driver that construct vnc console url,
  nova/virt/vmwareapi/vmops.py

  1090            param_list = {"id": str(vm_ref)}
  1091            base_url = "%s://%s/screen?%s" % (self._session._scheme,
  1092                                             self._session._host_ip,
  1093                                             urllib.urlencode(param_list))
  1094 ->         request = urllib2.Request(base_url)
  1095            base64string = base64.encodestring(
  1096                            '%s:%s' % (
  1097                            self._session._host_username,
  1098                            self._session._host_password)).replace('\n', '')
  1099            request.add_header("Authorization", "Basic %s" % base64string)

  (Pdb) print vm_ref
  (obj){
     value = "3"
     _type = "VirtualMachine"
   }

  vm_ref is an object, should use vm_ref.value to get the instance's id.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1172177/+subscriptions