Bug 1430799 - Create script to restore original network configuration of removed vdsm host
Summary: Create script to restore original network configuration of removed vdsm host
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: vdsm
Version: 4.1.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ovirt-4.2.0
: 4.2.0
Assignee: Petr Horáček
QA Contact: Michael Burman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-09 15:44 UTC by Jiri Belka
Modified: 2019-05-16 13:04 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
vdsm-tool now provides commands for VDSM network cleanup, such as `vdsm-tool clear-nets` and `vdsm-tool dummybr-remove`. You can remove networks configured by VDSM following the steps below. Note that the VDSM service does not need to be running: 1. To prevent loss of connectivity, it might be necessary to exclude the default route network from the cleanup. Look for a network providing the default route (ovirtmgmt by default): # vdsm-tool list-nets ... ovirtmgmt (default route) ... 2. Remove all networks configured by VDSM except for the default network: # vdsm-tool clear-nets --exclude-net ovirtmgmt 3. Remove the libvirt dummy bridge ;vdsmdummy; # vdsm-tool dummybr-remove 4. Now that the host is clean, you can remove VDSM.
Clone Of:
Environment:
Last Closed: 2018-05-15 17:50:23 UTC
oVirt Team: Network
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2018:1489 0 None None None 2018-05-15 17:52:06 UTC
oVirt gerrit 79495 0 'None' MERGED tool: list/clear networks configured by VDSM 2020-08-25 07:54:08 UTC
oVirt gerrit 79596 0 'None' MERGED tool: remove dummy bridge 2020-08-25 07:54:08 UTC

Description Jiri Belka 2017-03-09 15:44:35 UTC
Description of problem:

Document how to restore original network configuration of removed vdsm host.

Why? One could add a host into engine and one minute later decide to remove it. But the host would have ovirtmgmt bridge and various vdsm network hacks which are not clear how to remove.

So let's document how to "clear" previously used host from vdsm network configuration.

(For example I see vdsm put some things in /etc/dhcp/dhclient.d/sourceRoute.sh, it configured libvirt and who knows where it is still kept.)

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. add a host into engine
2. remove host into engine
3. read docs to know how to de-vdsmize the host from its network changes
4. follow docs' steps to put back previous configuration
5. restart network (systemctl restart network)
6. does network work? check if there's ovirtmgmt bridge or previously used ifaces

Actual results:
it's magic to "clear" a host after removal

Expected results:
should be readable and understandable

Additional info:

Comment 1 Yaniv Lavi 2017-03-14 12:51:16 UTC
Do you have a flow to share on how to do this?

Comment 2 Yaniv Lavi 2017-03-23 07:49:03 UTC
Who can help us with getting this content?

Comment 3 Dan Kenigsberg 2017-03-23 19:57:56 UTC
Petr, please provide a script to remove all vdsm networks (apart of one, ovirtmgmt).

Comment 5 Edward Haas 2017-07-20 13:48:32 UTC
Just to clarify, we will not be able to restore the node to the "original" state, for that we need to "remember" the original state, which we do not.

The suggested "cleaning" may even be wrong, as it may remove acquired configuration (like pre existing bridges, bonds, IP/s.. etc).

If we bring NM in the picture, after this "cleaning", it will not control the previously acquired devices, manual intervention is needed to do so.
I guess the documentation needs to reflect all this, suggests way to continue manually patching things after the "automatic" step is finished.

Comment 6 rhev-integ 2017-11-02 13:40:23 UTC
INFO: Bug status wasn't changed from MODIFIED to ON_QA due to the following reason:

[No relevant external trackers attached]

For more info please contact: rhv-devops

Comment 7 Michael Burman 2017-11-20 13:05:01 UTC
Verified on - vdsm-4.20.7-37.gitfb0d1c3.el7.centos.x86_64

Comment 12 errata-xmlrpc 2018-05-15 17:50:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2018:1489

Comment 13 Franta Kust 2019-05-16 13:04:50 UTC
BZ<2>Jira Resync


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