Bug 1933191 - ovirt-hosted-engine-cleanup should also cleanup ip -6 rules
Summary: ovirt-hosted-engine-cleanup should also cleanup ip -6 rules
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-hosted-engine-setup
Version: 4.4.4
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ovirt-4.4.6
: 4.4.6
Assignee: Asaf Rachmani
QA Contact: Nikolai Sednev
URL:
Whiteboard:
Depends On: 1956487
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-02-25 21:52 UTC by Germano Veit Michel
Modified: 2022-08-03 21:37 UTC (History)
3 users (show)

Fixed In Version: ovirt-hosted-engine-setup-2.5.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-06-01 13:21:11 UTC
oVirt Team: Integration
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 4992541 0 None None None 2021-02-25 21:58:18 UTC
Red Hat Product Errata RHBA-2021:2178 0 None None None 2021-06-01 13:21:51 UTC
oVirt gerrit 114102 0 master MERGED cleanup: Remove IPv6 rules 2021-04-01 14:26:57 UTC

Description Germano Veit Michel 2021-02-25 21:52:34 UTC
Description of problem:

If HE deployment fails and the customer needs to repeat it, the setup fails when adding ipv6 rules that already exist.

This is because cleanup just remove ipv4 ones:

ovirt-hosted-engine-setup/src/bin/ovirt-hosted-engine-cleanup
    37	remove_ip_rules(){
    38	    for rule in $(ip rule | grep 10*  | cut -d':' -f1)
    39	    do
    40	        ip rule del prio $rule
    41	    done
    42	}

See:

# ip -6 rule show
0:	from all lookup local 
101:	from fd00:1234:5678:900::1/64 lookup main 
32766:	from all lookup main 

# for rule in $(ip rule | grep 10*  | cut -d':' -f1); do ip rule del prio $rule; done

Still here:
# ip -6 rule show
0:	from all lookup local 
101:	from fd00:1234:5678:900::1/64 lookup main 
32766:	from all lookup main 

The 'ip rule' command won't show that ipv6 rule:
# for rule in $(ip rule | grep 10*  | cut -d':' -f1); do echo $rule; done

We need ip -6 rule:
# for rule in $(ip -6 rule | grep 10*  | cut -d':' -f1); do echo $rule; done
101

Version-Release number of selected component (if applicable):
ovirt-hosted-engine-setup-2.3.13-2.el7ev.noarch (customer)

Comment 4 Nikolai Sednev 2021-05-09 21:40:08 UTC
Works fine on these components on host:
rhvm-appliance-4.4-20210402.1.el8ev.x86_64
ovirt-hosted-engine-ha-2.4.6-1.el8ev.noarch
ovirt-hosted-engine-setup-2.5.0-2.el8ev.noarch
openvswitch2.11-2.11.3-87.el8fdp.x86_64
Linux 4.18.0-305.el8.x86_64 #1 SMP Thu Apr 29 08:54:30 EDT 2021 x86_64 x86_64 x86_64 GNU/Linux
Red Hat Enterprise Linux release 8.4 (Ootpa)

Components on engine:
ovirt-engine-setup-4.4.6.7-0.1.el8ev.noarch
openvswitch2.11-2.11.3-87.el8fdp.x86_64
Linux 4.18.0-305.el8.x86_64 #1 SMP Thu Apr 29 08:54:30 EDT 2021 x86_64 x86_64 x86_64 GNU/Linux
Red Hat Enterprise Linux release 8.4 (Ootpa)

Comment 8 errata-xmlrpc 2021-06-01 13:21:11 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 (RHV RHEL Host (ovirt-host) [ovirt-4.4.6]), 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/RHBA-2021:2178

Comment 9 meital avital 2022-08-03 21:37:32 UTC
Due to QE capacity, we are not going to cover this issue in our automation


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