Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1199012

Summary: vdsm-tool restore-nets fails with Network not found: no network with matching name 'vdsm-rhevm'
Product: Red Hat Enterprise Virtualization Manager Reporter: Martin Pavlik <mpavlik>
Component: vdsmAssignee: Dan Kenigsberg <danken>
Status: CLOSED NOTABUG QA Contact: Martin Pavlik <mpavlik>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 3.5.0CC: bazulay, ecohen, gklein, iheim, lpeer, lsurette, mpavlik, yeylon
Target Milestone: ---   
Target Release: 3.5.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: network
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-05 15:24:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Network RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1197668    
Attachments:
Description Flags
logs none

Description Martin Pavlik 2015-03-05 10:18:39 UTC
Created attachment 998284 [details]
logs

libvirt: Network Driver error : Network not found: no network with matching name 'vdsm-rhevm'

Description of problem:
When adding new host to setup and running 

[root@localhost ~]# vdsm-tool restore-nets

it ends up with following error

libvirt: Network Driver error : Network not found: no network with matching name 'vdsm-rhevm'

however network vdsm-rhevm  seems to be existent

root@localhost ~]# virsh net-list
Please enter your authentication name: vdsm@rhevh
Please enter your password:
Name                 State      Autostart     Persistent
--------------------------------------------------
;vdsmdummy;          active     no            no
vdsm-rhevm           active     yes           yes

Version-Release number of selected component (if applicable):
RHEV 3.5.0-2
vdsm-4.16.8.1-7.el6ev.x86_64

How reproducible:
100%

Steps to Reproduce:
1. install new host to RHEVM
2. run vdsm-tool restore-nets on the host


Actual results:
Network not found: no network with matching name 'vdsm-rhevm'

Expected results:
network configuration is restored to pre-vdsm state

Additional info:
this test was done on nested VM used as a host

Comment 1 Dan Kenigsberg 2015-03-05 10:45:53 UTC
The error message quoted in the summary is a red herring. See bug 1121571.

On the relevant host I see that the rhevm network has been successfully persisted:

# cat /var/lib/vdsm/persistence/netconf/nets/rhevm 
{"bondingOptions": "arp_all_targets=0", "mtu": "1500", "bonding": "bond0", "bootproto": "dhcp", "STP": "no", "bridged": "true", "defaultRoute": true}

So that vdsm-tool restore-nets seems to be doing what it should.

Could you repeat the installation process, but ask Engine not to call setSafeNetworkConfig after setting up the rhevm network?

Comment 2 Dan Kenigsberg 2015-03-05 15:24:22 UTC
Based on the verification of bug 1197668 with my suggestion on comment 1, I understand that this was a false alarm due to bug 1121571.