Bug 1710725

Summary: [ ERROR ] fatal: [localhost]: FAILED! => {"changed": false, "msg": "internal error: Network is already in use by interface eth0"}
Product: Red Hat Enterprise Virtualization Manager Reporter: Chinmay Paradkar <cparadka>
Component: ovirt-ansible-rolesAssignee: Ido Rosenzwig <irosenzw>
Status: CLOSED ERRATA QA Contact: Wei Wang <weiwang>
Severity: high Docs Contact:
Priority: high    
Version: 4.3.0CC: cshao, emarcus, irosenzw, lsurette, lsvaty, mavital, mgoldboi, nlevy, qiyuan, rdutta, sbombe, sbonazzo, stirabos, weiwang, yaniwang, yturgema
Target Milestone: ovirt-4.3.6Keywords: ZStream
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ovirt-ansible-hosted-engine-setup-1.0.21 Doc Type: Bug Fix
Doc Text:
The same subnet was used in the local network and the libvirt network, and as a result, the network subnets collided. In this release, no subnet collisions occur.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-10 15:39:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1698643    
Bug Blocks:    
Attachments:
Description Flags
sosreport
none
picture
none
log files none

Description Chinmay Paradkar 2019-05-16 07:50:23 UTC
Description of problem:
While installing the self-hosted engine on RHVH 4.3, it is failing with the below error:-

[ ERROR ] fatal: [localhost]: FAILED! => {"changed": false, "msg": "internal error: Network is already in use by interface eth0"}
[ ERROR ] Failed to execute stage 'Closing up': Failed executing ansible-playbook
.
.
.

[ INFO  ] Stage: Termination
[ ERROR ] Hosted Engine deployment failed: please check the logs for the issue, fix accordingly or re-deploy from scratch.
          Log file is located at /var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20190516122924-eys1ej.log



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

RHVH 4.3
RHV-M Appliance 4.3

How reproducible:

Always

Steps to Reproduce:
1. Install RHVH 4.3
2. Deploy self-hosted engine using deployment script (hosted-engine --deploy)
3. Enter the details requested, such as ova file, Datacenter name, cluster name, etc given 
4. Followed the steps given in the below product doc: 

https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.3/html-single/installing_red_hat_virtualization_as_a_self-hosted_engine_using_the_command_line/index#Installing_the_Red_Hat_Virtualization_Manager_SHE_cli_deploy



Actual results:
Getting failed with below error:-

[ ERROR ] fatal: [localhost]: FAILED! => {"changed": false, "msg": "internal error: Network is already in use by interface eth0"}
[ ERROR ] Failed to execute stage 'Closing up': Failed executing ansible-playbook

Expected results:

Deploy self-hosted engine successfully. 

Additional info:

Tried reproducing this error with the previous version by installing the RHVH 4.2 & RHV-M appliance 4.2, it is deploying self-hosted engine successfully.

To reproduce the issue with RHV 4.3:
Downloaded the RHVH & RHV-M appliance file from > https://access.redhat.com/downloads/content/415/ver=4.3/rhel---7/4.3/x86_64/product-software


OVA file name:- RHV-M Appliance for RHV 4.3 Async & RHV-M Appliance for RHV 4.3

RHVH filename: Hypervisor Image for RHV 4.3 Async & Hypervisor Image for RHV 4.3

Comment 1 Chinmay Paradkar 2019-05-16 08:15:30 UTC
Created attachment 1569442 [details]
sosreport

Comment 5 Nikolai Sednev 2019-06-17 13:28:10 UTC
Its RHVH specific, I don't see this happening on RHEL7.7 with 4.3.5 or on RHEL7.6 with 4.3.4.
Moving to RHVH team.

Comment 6 Wei Wang 2019-06-19 07:35:17 UTC
QE will verify it until getting new build.

Comment 8 Wei Wang 2019-06-26 06:20:38 UTC
According to https://bugzilla.redhat.com/show_bug.cgi?id=1698643#c3
Need it to be test with a VM node, not a baremetal node?

Comment 9 Simone Tiraboschi 2019-06-26 07:48:37 UTC
Yes, you have to test it over a VM (with nested virtualization support) created with virt-manager or similar and attached to the default libvirt network so that the addresses of the two virtual networks are going to clash.

Comment 10 Wei Wang 2019-06-26 07:58:46 UTC
(In reply to Simone Tiraboschi from comment #9)
> Yes, you have to test it over a VM (with nested virtualization support)
> created with virt-manager or similar and attached to the default libvirt
> network so that the addresses of the two virtual networks are going to clash.

Thanks for your reply in your vocation, Simone. It sounds a little complex. I will try with your comment.
We have synchronized the information in our meeting today.

Comment 11 Wei Wang 2019-06-27 10:16:25 UTC
Test Version(Download from https://access.redhat.com/downloads/content/415/ver=4.3/rhel---7/4.3/x86_64/product-software):
RHVH-4.3-20190418.4-RHVH-x86_64-dvd1.iso
rhvm-appliance-4.3-20190429.0.el7.ova

Test steps:
According to comment 0 and comment 9
1. Enable nested virtualization of a physical host(Fedora28)
2. Create a virtual network with 192.168.122.1/24 IP space.
3. Create vm installed RHVH-4.3-20190418.4-RHVH-x86_64-dvd1.iso with virt-manager
4. Config vm detail to enable VT-x of vm cpu
5. Deploy hosted engine with CLI

Result:

QE reproduce this issue.

Comment 12 Wei Wang 2019-06-27 10:55:35 UTC
Test Version
RHVH-4.3-20190620.7-RHVH-x86_64-dvd1.iso
cockpit-system-195-1.el7.noarch
cockpit-195-1.el7.x86_64
cockpit-bridge-195-1.el7.x86_64
cockpit-ws-195-1.el7.x86_64
cockpit-machines-ovirt-195-1.el7.noarch
cockpit-dashboard-195-1.el7.x86_64
cockpit-storaged-195-1.el7.noarch
cockpit-ovirt-dashboard-0.13.2-2.el7ev.noarch
ovirt-ansible-engine-setup-1.1.9-1.el7ev.noarch
ovirt-ansible-hosted-engine-setup-1.0.21-1.el7ev.noarch
rhvm-appliance-4.3-20190620.0.el7.rpm

Test Steps:
According to comment 11

Result:
There is error message "internal error: Network is already in use by interface ens3" (Result picture and logs have been attached)

Bug can be reproduced, change status to "ASSIGNED"

Comment 13 Wei Wang 2019-06-27 10:56:01 UTC
Created attachment 1585137 [details]
picture

Comment 14 Wei Wang 2019-06-27 10:56:25 UTC
Created attachment 1585138 [details]
log files

Comment 16 Wei Wang 2019-07-16 08:53:47 UTC
Test with RHVH-4.2-20190618.1-RHVH-x86_64-dvd1.iso and rhvm-appliance-4.3-20190710.2.el7.rpm, the bug still can be reproduced.

Move to "ASSIGNED"

Comment 17 Simone Tiraboschi 2019-07-18 12:32:23 UTC
Moving to 4.3.6: this is definitively not a blocker hitting just a specific corner case.

Comment 20 Wei Wang 2019-08-05 06:32:25 UTC
I will verify it ASAP

Comment 21 Wei Wang 2019-08-06 05:14:06 UTC
Test RHVH-4.3-20190801.2-RHVH-x86_64-dvd1.iso, no error message "internal error: Network is already in use by interface ens3" displays. The bug is fixed, change bug status to "VERIFIED"

Comment 26 errata-xmlrpc 2019-10-10 15:39:18 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/RHBA-2019:3027