[Yahoo-eng-team] [Bug 1942766] [NEW] After the detach volume timeout, the disk is lost after soft reboot

2021-09-06 Thread wlfightup
Public bug reported:

Description
==
When the detach disk timeout, and then soft reboot the virtual machine, the 
disk that was detach timeout was lost, but it is displayed in nova database and 
bind the vm in nova database.

Steps to reproduce
==
1. create a windows vm,attach a disk to vm. make a big io to the disk.
2. detach disk timeout
3. soft reboot
4. disk is lost


Cause Analysis
==

Because the detach disk first releases the persist xml now, when the live 
detach the disk timeout, the persist xml is also gone.
If the virtual machine is soft rebooted at this time, the virtual machine will 
be lost disk because the persistent xml is missing.


def _detach_with_retry(
   if persistent_dev:
try:
self._detach_from_persistent(
guest, instance_uuid, persistent_dev, get_device_conf_func,
device_name)

** 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/1942766

Title:
  After the detach volume timeout, the disk is lost after soft reboot

Status in OpenStack Compute (nova):
  New

Bug description:
  Description
  ==
  When the detach disk timeout, and then soft reboot the virtual machine, the 
disk that was detach timeout was lost, but it is displayed in nova database and 
bind the vm in nova database.

  Steps to reproduce
  ==
  1. create a windows vm,attach a disk to vm. make a big io to the disk.
  2. detach disk timeout
  3. soft reboot
  4. disk is lost

  
  Cause Analysis
  ==

  Because the detach disk first releases the persist xml now, when the live 
detach the disk timeout, the persist xml is also gone.
  If the virtual machine is soft rebooted at this time, the virtual machine 
will be lost disk because the persistent xml is missing.

  
  def _detach_with_retry(
     if persistent_dev:
  try:
  self._detach_from_persistent(
  guest, instance_uuid, persistent_dev, 
get_device_conf_func,
  device_name)

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


-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp


[Yahoo-eng-team] [Bug 1697926] [NEW] linuxbridge ensure_bridge report errror

2017-06-14 Thread wlfightup
Public bug reported:

2017-06-14 05:00:13.747 16708 ERROR 
neutron.plugins.ml2.drivers.agent._common_agent   File 
"/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/agent/_common_agent.py",
 line 453, in daemon_loop
2017-06-14 05:00:13.747 16708 ERROR 
neutron.plugins.ml2.drivers.agent._common_agent sync = 
self.process_network_devices(device_info)
2017-06-14 05:00:13.747 16708 ERROR 
neutron.plugins.ml2.drivers.agent._common_agent   File 
"/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 153, in wrapper
2017-06-14 05:00:13.747 16708 ERROR 
neutron.plugins.ml2.drivers.agent._common_agent return f(*args, **kwargs)
2017-06-14 05:00:13.747 16708 ERROR 
neutron.plugins.ml2.drivers.agent._common_agent   File 
"/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/agent/_common_agent.py",
 line 210, in process_network_devices
2017-06-14 05:00:13.747 16708 ERROR 
neutron.plugins.ml2.drivers.agent._common_agent resync_a = 
self.treat_devices_added_updated(devices_added_updated)
2017-06-14 05:00:13.747 16708 ERROR 
neutron.plugins.ml2.drivers.agent._common_agent   File 
"/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 153, in wrapper
2017-06-14 05:00:13.747 16708 ERROR 
neutron.plugins.ml2.drivers.agent._common_agent return f(*args, **kwargs)
2017-06-14 05:00:13.747 16708 ERROR 
neutron.plugins.ml2.drivers.agent._common_agent   File 
"/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/agent/_common_agent.py",
 line 227, in treat_devices_added_updated
2017-06-14 05:00:13.747 16708 ERROR 
neutron.plugins.ml2.drivers.agent._common_agent 
self._process_device_if_exists(device_details)
2017-06-14 05:00:13.747 16708 ERROR 
neutron.plugins.ml2.drivers.agent._common_agent   File 
"/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/agent/_common_agent.py",
 line 254, in _process_device_if_exists
2017-06-14 05:00:13.747 16708 ERROR 
neutron.plugins.ml2.drivers.agent._common_agent device, 
device_details['device_owner'])
2017-06-14 05:00:13.747 16708 ERROR 
neutron.plugins.ml2.drivers.agent._common_agent   File 
"/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py",
 line 504, in plug_interface
2017-06-14 05:00:13.747 16708 ERROR 
neutron.plugins.ml2.drivers.agent._common_agent tap_name, device_owner)
2017-06-14 05:00:13.747 16708 ERROR 
neutron.plugins.ml2.drivers.agent._common_agent   File 
"/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py",
 line 453, in add_tap_interface
2017-06-14 05:00:13.747 16708 ERROR 
neutron.plugins.ml2.drivers.agent._common_agent return False
2017-06-14 05:00:13.747 16708 ERROR 
neutron.plugins.ml2.drivers.agent._common_agent   File 
"/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-06-14 05:00:13.747 16708 ERROR 
neutron.plugins.ml2.drivers.agent._common_agent self.force_reraise()
2017-06-14 05:00:13.747 16708 ERROR 
neutron.plugins.ml2.drivers.agent._common_agent   File 
"/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in 
force_reraise
2017-06-14 05:00:13.747 16708 ERROR 
neutron.plugins.ml2.drivers.agent._common_agent six.reraise(self.type_, 
self.value, self.tb)
2017-06-14 05:00:13.747 16708 ERROR 
neutron.plugins.ml2.drivers.agent._common_agent   File 
"/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py",
 line 445, in add_tap_interface
2017-06-14 05:00:13.747 16708 ERROR 
neutron.plugins.ml2.drivers.agent._common_agent tap_device_name, 
device_owner)
2017-06-14 05:00:13.747 16708 ERROR 
neutron.plugins.ml2.drivers.agent._common_agent   File 
"/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py",
 line 476, in _add_tap_interface
2017-06-14 05:00:13.747 16708 ERROR 
neutron.plugins.ml2.drivers.agent._common_agent segmentation_id):
2017-06-14 05:00:13.747 16708 ERROR 
neutron.plugins.ml2.drivers.agent._common_agent   File 
"/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py",
 line 429, in ensure_physical_in_bridge
2017-06-14 05:00:13.747 16708 ERROR 
neutron.plugins.ml2.drivers.agent._common_agent physical_interface)
2017-06-14 05:00:13.747 16708 ERROR 
neutron.plugins.ml2.drivers.agent._common_agent   File 
"/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py",
 line 245, in ensure_flat_bridge
2017-06-14 05:00:13.747 16708 ERROR 
neutron.plugins.ml2.drivers.agent._common_agent gateway):
2017-06-14 05:00:13.747 16708 ERROR 
neutron.plugins.ml2.drivers.agent._common_agent   File 
"/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py",
 line 388, in ensure_bridge
2017-06-14 05:00:13.747 16708 ERROR