old_contents: #!/usr/bin/env python
  import sys
  sys.path.append("..")
  from vmthunder.computenode import ComputeNode
  from testsuit import try_exec
  
  if __name__ == '__main__':
      prop1 = {}
      prop1['target_portal'] = '192.168.122.202:3260'
      prop1['target_iqn'] = 'iqn.2010-10.org.openstack:3'
      prop1['target_lun'] = 1
      prop2 = {}
      prop2['target_portal'] = '192.168.122.203:3260'
      prop2['target_iqn'] = 'iqn.2010-10.org.openstack:3'
      prop2['target_lun'] = 1
  
      cn = ComputeNode()
      #cn.fake_code('3', 'vm1', [prop1,prop2], '/dev/loop1')
      multipath_name = cn._multipath_name('3')
      out = cn.dm.get_table(multipath_name)
      print out
      cn.destroy('3', 'vm1', [prop1,prop2], '/dev/loop1')
  
new_contents: #!/usr/bin/env python
  import sys
  sys.path.append("..")
  import os
  from vmthunder.computenode import ComputeNode
  from testsuit import try_exec
  
  if __name__ == '__main__':
      prop1 = {}
      prop1['target_portal'] = '10.107.14.162:3260'
      prop1['target_iqn'] = 'iqn.2010-10.org.openstack:4'
      prop1['target_lun'] = 1
      prop2 = {}
      prop2['target_portal'] = '10.107.14.163:3260'
      prop2['target_iqn'] = 'iqn.2010-10.org.openstack:4'
      prop2['target_lun'] = 1
  
      cn = ComputeNode()
      cn.start_vm('4', 'vm1', [prop1], '/dev/loop1')
      cn.start_vm('4', 'vm2', [prop2], '/dev/loop2')
      cn.adjust_structure('4', [prop1, prop2], '')
      cn.delete_vm('vm1', [prop1,prop2])
      cn.delete_vm('vm2', [prop1,prop2])
  
subject: update the file cn-test.py