← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1412696] Re: [VMWare Driver] When cluster name contains special characters like "/", the cluster can not be found

 

** Also affects: oslo.vmware
   Importance: Undecided
       Status: New

-- 
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/1412696

Title:
  [VMWare Driver] When cluster name contains special characters like
  "/", the cluster can not be found

Status in OpenStack Compute (nova):
  In Progress
Status in oslo.vmware:
  New

Bug description:
  
  How to reprodue:
  1) In vcenter,  change the cluster name into "cluster01/1"
  2) Change nova.conf
  cluster_name=cluster01/1
  3) Start nova-compute service, we will get following error logs:

  2015-01-20 16:37:46.170 12489 CRITICAL nova [-] NotFound: All clusters specified ['cluster01/1'] were not found in the vCenter
  2015-01-20 16:37:46.170 12489 TRACE nova Traceback (most recent call last):
  2015-01-20 16:37:46.170 12489 TRACE nova   File "/usr/bin/nova-compute", line 10, in <module>
  2015-01-20 16:37:46.170 12489 TRACE nova     sys.exit(main())
  2015-01-20 16:37:46.170 12489 TRACE nova   File "/usr/lib/python2.6/site-packages/nova/cmd/compute.py", line 72, in main
  2015-01-20 16:37:46.170 12489 TRACE nova     db_allowed=CONF.conductor.use_local)
  2015-01-20 16:37:46.170 12489 TRACE nova   File "/usr/lib/python2.6/site-packages/nova/service.py", line 275, in create
  2015-01-20 16:37:46.170 12489 TRACE nova     db_allowed=db_allowed)
  2015-01-20 16:37:46.170 12489 TRACE nova   File "/usr/lib/python2.6/site-packages/nova/service.py", line 148, in __init__
  2015-01-20 16:37:46.170 12489 TRACE nova     self.manager = manager_class(host=self.host, *args, **kwargs)
  2015-01-20 16:37:46.170 12489 TRACE nova   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 639, in __init__
  2015-01-20 16:37:46.170 12489 TRACE nova     self.driver = driver.load_compute_driver(self.virtapi, compute_driver)
  2015-01-20 16:37:46.170 12489 TRACE nova   File "/usr/lib/python2.6/site-packages/nova/virt/driver.py", line 1439, in load_compute_driver
  2015-01-20 16:37:46.170 12489 TRACE nova     virtapi)
  2015-01-20 16:37:46.170 12489 TRACE nova   File "/usr/lib/python2.6/site-packages/nova/openstack/common/importutils.py", line 50, in import_object_ns
  2015-01-20 16:37:46.170 12489 TRACE nova     return import_class(import_value)(*args, **kwargs)
  2015-01-20 16:37:46.170 12489 TRACE nova   File "/usr/lib/python2.6/site-packages/nova/virt/vmwareapi/driver.py", line 241, in __init__
  2015-01-20 16:37:46.170 12489 TRACE nova     % self._cluster_names)
  2015-01-20 16:37:46.170 12489 TRACE nova NotFound: All clusters specified ['cluster01/1'] were not found in the vCenter

  Reason:
  The VSphere API get the cluster name as a URI string. So the "/" will be transitioned into "%2f". So we can not fetch the cluster MOR by a cluster name "cluster01/1". If we change nova.conf to set cluster_name as "cluster01%2f1", it will be OK. But this is not user friendly.

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