Bug 1196038
Summary: | [RFE] hosted-engine setup is unable to use bonded vlan interface as "nic to set rhevm bridge on" | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Anand Nande <anande> | ||||||
Component: | ovirt-hosted-engine-setup | Assignee: | Simone Tiraboschi <stirabos> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Michael Burman <mburman> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | high | ||||||||
Version: | unspecified | CC: | bazulay, bugs, byount, cshao, danken, dfediuck, fdeutsch, huiwa, iheim, juwu, lpeer, lsurette, mburman, melewis, nsednev, pstehlik, rbalakri, rbarry, sbonazzo, stirabos, vinicius, vittorio.boccone, ycui, yeylon, ykaul, ylavi | ||||||
Target Milestone: | ovirt-3.6.3 | Keywords: | FutureFeature, TestOnly | ||||||
Target Release: | 3.6.3 | Flags: | sherold:
Triaged+
|
||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | integration | ||||||||
Fixed In Version: | Doc Type: | Enhancement | |||||||
Doc Text: |
With this update, hosted-engine-setup is able to deploy the Red Hat Enterprise Virtualization Manager bridge using a bonded VLAN interface.
|
Story Points: | --- | ||||||
Clone Of: | 1134346 | Environment: | |||||||
Last Closed: | 2016-03-09 19:08:08 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: | 1134346 | ||||||||
Bug Blocks: | |||||||||
Attachments: |
|
Description
Anand Nande
2015-02-25 07:12:37 UTC
Lior, does the current vdsm API support such a topology? Hosted Engine installer is using VDSM to generate the needed network, so we need this infrastructure in place before we can add support for it in the installer. Definitely supports it as it's possible via the engine - Dan, what would be the exact command to run? As documented in https://gerrit.ovirt.org/gitweb?p=vdsm.git;a=blob;f=vdsm/network/api.py;h=2706cfe2b008edb87ebb1fa5f9918b9cfee2463c;hb=HEAD#l767 setupNetwork({'ovirtmgmt': {'bonding': bondname, 'vlan'=vlanid ...}}, {}, {'connectivityCheck': False}) The main issue here is that a bonding device has to be passed as 'bonding'; a single nic is passed as 'nic'. Note that in a single command, you may also create the requested bond: setupNetwork({'ovirtmgmt': {'bonding': bondname, 'vlan'=vlanid ...}}, {'bondname': {'nics': [list-of-nics], 'opts': [list-of-opts]}}, {'connectivityCheck': False}) Hi Dan, So for a vlan tagged bond interface (bond0.1210), Can we directly run the following on the host (confirming the syntax here): # vdsClient setupNetwork({'rhevm': {'bonding': bond0, 'vlan'=1210 ...}}, {'bondname': {'nics': [eth0,eth1]}} Will this create the respective ifcfg files and set the bond onboot = yes? IHAC who's stuck at this phase as they chose the hosted-engine method and this is not working out for them - post the 3.5 upgrade. Let me know your thoughts on this. Cheers Anand I suggest not to use the vdsClient utility. It is bloated and ugly. importing vdscli from vdsm and calling the API directly is very much preferred (as was my previous example). If you must use the command line utility, try something like vdsClient -s 0 setupNetworks networks='{rhevm:{bonding:bond0,bridged:True,vlan:1210}}' bondings='{bond0:{nics=eth0,eth1}}' For the management network, it keeps ONBOOT=yes even on 3.5. However, even ONBOOT=no networks should be take up by vdsm on its boot. The fact that this is not always the case is a serious bug 1194068 that must be understood and solved. I'm sorry, but this is working as expected over a vlan tagged bond(see video attachment). Management network was successfully configured over the vlan tagged bond. Tested on --> - Red Hat Enterprise Linux Server release 7.2 (Maipo) - vdsm-4.17.19-0.el7ev.noarch - ovirt-hosted-engine-setup-1.3.2.3-1.el7ev.noarch Please confirm installation settings (Yes, No)[Yes]: [ INFO ] Stage: Transaction setup [ INFO ] Stage: Misc configuration [ INFO ] Stage: Package installation [ INFO ] Stage: Misc configuration [ INFO ] Configuring libvirt [ INFO ] Configuring VDSM [ INFO ] Starting vdsmd [ INFO ] Waiting for VDSM hardware info [ INFO ] Configuring the management bridge [ INFO ] Creating Storage Domain [ INFO ] Creating Storage Pool [ INFO ] Connecting Storage Pool [ INFO ] Verifying sanlock lockspace initialization [ INFO ] Creating Image for 'hosted-engine.lockspace' ... [ INFO ] Image for 'hosted-engine.lockspace' created successfully [ INFO ] Creating Image for 'hosted-engine.metadata' ... [ INFO ] Image for 'hosted-engine.metadata' created successfully [ INFO ] Creating VM Image [ INFO ] Destroying Storage Pool [ INFO ] Start monitoring domain [ INFO ] Configuring VM [ INFO ] Updating hosted-engine configuration [ INFO ] Stage: Transaction commit [ INFO ] Stage: Closing up [ INFO ] Creating VM You can now connect to the VM with the following command: /bin/remote-viewer vnc://localhost:5900 Use temporary password "6908HHTq" to connect to vnc console. Please note that in order to use remote-viewer you need to be able to run graphical applications. This means that if you are using ssh you have to supply the -Y flag (enables trusted X11 forwarding). Otherwise you can run the command from a terminal in your preferred desktop environment. If you cannot run graphical applications you can connect to the graphic console from another host or connect to the serial console using the following command: socat UNIX-CONNECT:/var/run/ovirt-vmconsole-console/d0d6af2e-d683-41b8-870b-a4ff6ee736db.sock,user=ovirt-vmconsole STDIO,raw,echo=0,escape=1 Please ensure that your Guest OS is properly configured to support serial console according to your distro documentation. Follow http://www.ovirt.org/Serial_Console_Setup#I_need_to_access_the_console_the_old_way for more info. If you need to reboot the VM you will need to start it manually using the command: hosted-engine --vm-start You can then set a temporary password using the command: hosted-engine --add-console-password The VM has been started. To continue please install OS and shutdown or reboot the VM. Make a selection from the options below: (1) Continue setup - OS installation is complete (2) Abort setup (3) Power off and restart the VM (4) Destroy VM and abort setup (1, 2, 3, 4)[1]: - brctl show bridge name bridge id STP enabled interfaces ;vdsmdummy; 8000.000000000000 no ovirtmgmt 8000.001a647a9462 no bond0.162 vnet0 virbr0 8000.525400976f73 yes virbr0-nic - Everything working as expected, thanks... Created attachment 1120691 [details]
record vlan over bond
Michael, on top of the video, would you share the answer file for your hosted-engine-setup? Created attachment 1120780 [details]
answers conf
It should work with ovirt-hosted-engine-setup 1.3.3.3 Verified on - ovirt-hosted-engine-setup-1.3.3.3-1.el7ev.noarch Both with rhel 7.2 and rhev-h 7.2 20160222.0.el7ev with: rhevm-appliance-20160212.0-1 engine-3.6.3.1-0.1.el6 vdsm-4.17.21-0.el7ev Tested over vlan NIC and vlan BOND with success 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://rhn.redhat.com/errata/RHEA-2016-0375.html *** Bug 1533624 has been marked as a duplicate of this bug. *** |