Hide Forgot
Description of problem: [Text] - Provide clear error message when trying to add host over a bond with a single slave. Currently when trying to add host over a bond with a single slave we failing with the next error: 2016-08-21 09:39:31,836 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (org.ovirt.thread.pool-6-thread-32) [4e418dcc] Failed to configure management network: Failed to configure manag ement network on host red-vds4.qa.lab.tlv.redhat.com. Host red-vds4.qa.lab.tlv.redhat.com has an invalid interface bond1 for the management network configuration. 2016-08-21 09:39:31,837 ERROR [org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand] (org.ovirt.thread.pool-6-thread-32) [4e418dcc] Exception: org.ovirt.engine.core.bll.network.NetworkConfigurator$Networ kConfiguratorException: Failed to configure management network at org.ovirt.engine.core.bll.network.NetworkConfigurator.createManagementNetworkIfRequired(NetworkConfigurator.java:95) [bll.jar:] Failed to configure management network on host red-vds4.qa.lab.tlv.redhat.com. Host red-vds4.qa.lab.tlv.redhat.com has an invalid interface bond1 for the management network configuration. The error message must be clear about the reason of failure. Version-Release number of selected component (if applicable): 4.0.2.6-0.1.el7ev How reproducible: 100 Steps to Reproduce: 1. Create bond with 2 slaves. Set one slave down Actual results: Try to add host over the bond Expected results: Failed with error: Host has an invalid interface bond1 for the management network configuration.
Verified on - ovirt-engine-4.1.0-0.2.master.20161214234138.gitc23fdcc.el7.centos.noarch The new error message look like this: "Failed to configure management network on host orchid-vds2.qa.lab.tlv.redhat.com. Host orchid-vds2.qa.lab.tlv.redhat.com has an invalid bond interface (bond1 contains less than 2 active slaves) for the management network configuration"