Bug 1199012 - vdsm-tool restore-nets fails with Network not found: no network with matching name 'vdsm-rhevm'
Summary: vdsm-tool restore-nets fails with Network not found: no network with matching...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: vdsm
Version: 3.5.0
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
: 3.5.0
Assignee: Dan Kenigsberg
QA Contact: Martin Pavlik
URL:
Whiteboard: network
Depends On:
Blocks: 1197668
TreeView+ depends on / blocked
 
Reported: 2015-03-05 10:18 UTC by Martin Pavlik
Modified: 2016-02-10 19:58 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-05 15:24:22 UTC
oVirt Team: Network
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
logs (608.55 KB, application/x-gzip)
2015-03-05 10:18 UTC, Martin Pavlik
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.