Bug 1795581 - VDSM does not allow bond interface with a dash in the name
Summary: VDSM does not allow bond interface with a dash in the name
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: ovirt-hosted-engine-setup
Classification: oVirt
Component: Network
Version: 2.3.12
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Evgeny Slutsky
QA Contact: Michael Burman
URL:
Whiteboard:
Depends On:
Blocks: 1776302
TreeView+ depends on / blocked
 
Reported: 2020-01-28 11:28 UTC by Asaf Rachmani
Modified: 2020-02-18 09:04 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-02-18 09:04:39 UTC
oVirt Team: Integration
Embargoed:


Attachments (Terms of Use)
hosted-engine-logs (3.64 MB, application/x-tar)
2020-01-28 11:28 UTC, Asaf Rachmani
no flags Details

Description Asaf Rachmani 2020-01-28 11:28:50 UTC
Created attachment 1655993 [details]
hosted-engine-logs

Description of problem:
VDSM does not allow bond interface with a dash in the name

Version-Release number of selected component (if applicable):
ovirt-hosted-engine-setup-2.3.12-1.el7.noarch
vdsm-4.30.38-1.el7.x86_64
vdsm-network-4.30.38-1.el7.x86_64
ovirt-release-host-node-4.3.7-1.el7.noarch

How reproducible: 
100%

Steps to Reproduce:
1. Use the following PR https://github.com/oVirt/ovirt-ansible-hosted-engine-setup/pull/284
2. Run hosted-engine --deploy


Actual results:
Deployment fails:
2020-01-27 15:53:23,807+0000 INFO otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils._process_output:109 ok: [localhost]
2020-01-27 15:53:24,208+0000 INFO otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils._process_output:109 TASK [ovirt.hosted_engine_setup : Fail with error description]
2020-01-27 15:53:24,610+0000 DEBUG otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils._process_output:103 {u'msg': u'The host has been set in non_operational status, deployment errors:   code 505: Host node1.asrachmani.com instal
lation failed. Failed to configure management network on the host.,    code 1120: Failed to configure management network on host node1.asrachmani.com due to setup networks failure.,    code 9000: Failed to verify Power Management configur
ation for Host node1.asrachmani.com.,    code 10802: VDSM node1.asrachmani.com command HostSetupNetworksVDS failed: bad bond name(s): bond-0,   fix accordingly and re-deploy.', u'changed': False, u'_ansible_no_log': False}
2020-01-27 15:53:24,710+0000 ERROR otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils._process_output:107 fatal: [localhost]: FAILED! => {"changed": false, "msg": "The host has been set in non_operational status, deployment errors:   code 505: Host node1.asrachmani.com installation failed. Failed to configure management network on the host.,    code 1120: Failed to configure management network on host node1.asrachmani.com due to setup networks failure.,    code 9000: Failed to verify Power Management configuration for Host node1.asrachmani.com.,    code 10802: VDSM node1.asrachmani.com command HostSetupNetworksVDS failed: bad bond name(s): bond-0,   fix accordingly and re-deploy."}
2020-01-27 15:53:25,011+0000 INFO otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils._process_output:109 TASK [ovirt.hosted_engine_setup : Fetch logs from the engine VM]
2020-01-27 15:53:25,513+0000 INFO otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils._process_output:109 ok: [localhost]


Expected results: 
Successful deployment


Additional info:
Related discussion in https://bugzilla.redhat.com/show_bug.cgi?id=1459229

Comment 2 Dominik Holler 2020-01-28 12:30:50 UTC
Is there a way for hosted engine setup to reject invalid interface names for the management network?

Comment 3 Asaf Rachmani 2020-01-28 14:57:38 UTC
Hosted engine rejects it, but it shouldn't [1].
Why this is an invalid interface name? if the os allows it we also should.
There are many scenarios to use bond interface names that do not match bondXYZ conventions, some of them described here [2]

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1776302
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1459229#c7

Comment 4 Dominik Holler 2020-01-28 15:07:21 UTC
(In reply to Asaf Rachmani from comment #3)
> Hosted engine rejects it, but it shouldn't [1].

It should, because oVirt requires that the rules mentioned in comment #1 are respected.

> Why this is an invalid interface name? if the os allows it we also should.

No, oVirt has restrictions on the names.
If oVirt Engine allows you to create a bond, it should work.


> There are many scenarios to use bond interface names that do not match
> bondXYZ conventions, some of them described here [2]
> 
> [1] https://bugzilla.redhat.com/show_bug.cgi?id=1776302
> [2] https://bugzilla.redhat.com/show_bug.cgi?id=1459229#c7

Comment 6 Asaf Rachmani 2020-02-18 09:04:39 UTC
Close it as NOTABUG as this is an oVirt restriction.


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