← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1358772] [NEW] get_available_datastores - possible issue with datastore accessibility

 

Public bug reported:

Vipin found this issue during a code 'port' from nova to oslo.vmware in review 114551:
https://review.openstack.org/#/c/114551/14/oslo/vmware/selector.py,unified

https://github.com/openstack/nova/blob/master/nova/virt/vmwareapi/ds_util.py#L303

Quote from vipin:

"I think there is a problem here.

Assume that cluster_mor is None and host_mor is h1. If a datastore d1 is
attached to hosts h1 and h2 where it is accessible only to h2 and not
h1, summary.accessible will be True even though it is not accessible to
h1.

We should use HostMountInfo.accessible in this case."

** Affects: nova
     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/1358772

Title:
  get_available_datastores - possible issue with datastore accessibility

Status in OpenStack Compute (Nova):
  New

Bug description:
  Vipin found this issue during a code 'port' from nova to oslo.vmware in review 114551:
  https://review.openstack.org/#/c/114551/14/oslo/vmware/selector.py,unified

  https://github.com/openstack/nova/blob/master/nova/virt/vmwareapi/ds_util.py#L303

  Quote from vipin:

  "I think there is a problem here.

  Assume that cluster_mor is None and host_mor is h1. If a datastore d1
  is attached to hosts h1 and h2 where it is accessible only to h2 and
  not h1, summary.accessible will be True even though it is not
  accessible to h1.

  We should use HostMountInfo.accessible in this case."

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


Follow ups

References