← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1392663] [NEW] Un-used function check_attach() in module nova.volume.cinder

 

Public bug reported:

Version: stable/juno

The function check_attach() in module nova.volume.cinder is really un-used. It's only used in Unit-Test.
In fact, if this function is really used in reality, then it will be impossible to attach a volume to a VM instance in the case that the volume is created in a different availability_zone than the VM instance.

However,  in reality, for single-node deployment, if a new
availability_zone is created in Nova and thus the default
availability_zone of Nova is replaced, then Nova compute service will be
running in this newly-created availability_zone while Cinder services
are still running in the default availability_zone. It is quite possible
to attach a volume (created in the default availability_zone) to a VM
instance (created in the new availability_zone)

** Affects: nova
     Importance: Undecided
     Assignee: Trung Trinh (trung-t-trinh)
         Status: New


** Tags: nova-manage

** Changed in: nova
     Assignee: (unassigned) => Trung Trinh (trung-t-trinh)

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

Title:
  Un-used function check_attach() in module nova.volume.cinder

Status in OpenStack Compute (Nova):
  New

Bug description:
  Version: stable/juno

  The function check_attach() in module nova.volume.cinder is really un-used. It's only used in Unit-Test.
  In fact, if this function is really used in reality, then it will be impossible to attach a volume to a VM instance in the case that the volume is created in a different availability_zone than the VM instance.

  However,  in reality, for single-node deployment, if a new
  availability_zone is created in Nova and thus the default
  availability_zone of Nova is replaced, then Nova compute service will
  be running in this newly-created availability_zone while Cinder
  services are still running in the default availability_zone. It is
  quite possible to attach a volume (created in the default
  availability_zone) to a VM instance (created in the new
  availability_zone)

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


Follow ups

References