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

Bug 1602250

Summary: if hosted-engine fails, libvirt bridge is not removed
Product: [oVirt] ovirt-hosted-engine-setup Reporter: Milan Kerslager <milan.kerslager>
Component: NetworkAssignee: Ido Rosenzwig <irosenzw>
Status: CLOSED WONTFIX QA Contact: Meni Yakove <myakove>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.2.22CC: bugs, r.martinez
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-18 07:22:26 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:

Description Milan Kerslager 2018-07-18 05:06:04 UTC
Description of problem:
When hosted-engine --deploy fails, it should remove bridge it created.

Version-Release number of selected component (if applicable):
ovirt-hosted-engine-setup-2.2.22.1-1.el7.noarch

Actual results:
virsh net-list shows default persistent network
virbr0 and virbr0-nic are there

Expected results:
Script runs these commands (not sure if it is sufficient):
virsh net-destroy default
virsh net-undefine default

Comment 1 Ido Rosenzwig 2018-07-18 07:22:26 UTC
This is by design.

We don't remove the bridges for couple of reasons:
1. If the setup has failed, you probably want to start it again and those bridges are needed.
2. Removing these network devices can cause unexpected issues.

If you would like to use your machine for other purposes, it is recommended to reinstall it.

Comment 2 Randy Martinez 2019-01-11 01:07:54 UTC
I would check that there's in fact no default network defined in virsh.

# virsh net-list

 Name                 State      Autostart     Persistent
----------------------------------------------------------

If not, go ahead and recreate the default virsh net:

# virsh net-define /usr/share/libvirt/networks/default.xml
Network default defined from /usr/share/libvirt/networks/default.xml

# virsh net-autostart default
Network default marked as autostarted

# virsh net-start default
Network default started

Then retry the deploy.