Fuel devops actions (revert snapshots/ erase env) lead to fail. This bug is floating and affects the PCE CI (vCenter/DVS/NSXv/NSX-t suites - http://jenkins-tpi.bud.mirantis.net:8080)
Observed behaviour:
http://jenkins-tpi.bud.mirantis.net:8080/job/9.x.vcenter.vcenter_dvs_smoke/31/console
dos.py erase 9.1.manila.343
Traceback (most recent call last):
File "/home/jenkins/90-venv/bin/dos.py", line 22, in <module>
main()
File "/home/jenkins/90-venv/local/lib/python2.7/site-packages/devops/shell.py", line 610, in main
Shell(args).execute()
File "/home/jenkins/90-venv/local/lib/python2.7/site-packages/devops/shell.py", line 54, in execute
self.commands.get(self.params.command)(self)
File "/home/jenkins/90-venv/local/lib/python2.7/site-packages/devops/shell.py", line 91, in do_erase
self.env.erase()
File "/home/jenkins/90-venv/local/lib/python2.7/site-packages/devops/models/environment.py", line 155, in erase
node.erase()
File "/home/jenkins/90-venv/local/lib/python2.7/site-packages/devops/models/node.py", line 207, in erase
self.remove(verbose=False)
File "/home/jenkins/90-venv/local/lib/python2.7/site-packages/devops/models/node.py", line 214, in remove
self.destroy(verbose=False)
File "/home/jenkins/90-venv/local/lib/python2.7/site-packages/devops/models/node.py", line 204, in destroy
self.driver.node_destroy(self)
File "/home/jenkins/90-venv/local/lib/python2.7/site-packages/devops/helpers/retry.py", line 27, in wrapper
return func(*args, **kwargs)
File "/home/jenkins/90-venv/local/lib/python2.7/site-packages/devops/driver/libvirt/libvirt_driver.py", line 502, in node_destroy
self.conn.lookupByUUIDString(node.uuid).destroy()
File "/home/jenkins/90-venv/local/lib/python2.7/site-packages/libvirt.py", line 922, in destroy
if ret == -1: raise libvirtError ('virDomainDestroy() failed', dom=self)
libvirt.libvirtError: Requested operation is not valid: domain is not running
http://jenkins-tpi.bud.mirantis.net:8080/job/9.x.nsxt.nsxt_bvt/188/console
2016-11-13 19:36:07 - ERROR decorators.py:126 -- Traceback (most recent call last):
File "/home/jenkins/workspace/9.x.nsxt.nsxt_bvt/plugin_test/fuel-qa/fuelweb_test/helpers/decorators.py", line 120, in wrapper
result = func(*args, **kwargs)
File "/home/jenkins/workspace/9.x.nsxt.nsxt_bvt/plugin_test/tests/test_plugin_nsxt.py", line 169, in nsxt_bvt
self.env.revert_snapshot("ready_with_5_slaves")
File "/home/jenkins/workspace/9.x.nsxt.nsxt_bvt/plugin_test/fuel-qa/fuelweb_test/models/environment.py", line 305, in revert_snapshot
self.d_env.revert(name)
File "/home/jenkins/90-venv/local/lib/python2.7/site-packages/devops/models/environment.py", line 186, in revert
node.destroy(verbose=False)
File "/home/jenkins/90-venv/local/lib/python2.7/site-packages/devops/models/node.py", line 204, in destroy
self.driver.node_destroy(self)
File "/home/jenkins/90-venv/local/lib/python2.7/site-packages/devops/helpers/retry.py", line 27, in wrapper
return func(*args, **kwargs)
File "/home/jenkins/90-venv/local/lib/python2.7/site-packages/devops/driver/libvirt/libvirt_driver.py", line 502, in node_destroy
self.conn.lookupByUUIDString(node.uuid).destroy()
File "/home/jenkins/90-venv/local/lib/python2.7/site-packages/libvirt.py", line 1059, in destroy
if ret == -1: raise libvirtError ('virDomainDestroy() failed', dom=self)
libvirtError: Requested operation is not valid: domain is not running
The issue is connected to a very slow operations with network devices because of running VMWare on the same server.
Libvirt 1.2.12 raises such error after almost every VMs destroyed.
Recommendations:
1. Move VMWare workloads on an another server if it is possible
2. Make workarounds for libvirt.