Bug 1319769 - Allow editing of hosted engine vNICs
Summary: Allow editing of hosted engine vNICs
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.HostedEngine
Version: 3.6.4
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ovirt-3.6.5
: ---
Assignee: Martin Sivák
QA Contact: Artyom
URL:
Whiteboard:
Depends On: 1319785
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-21 13:31 UTC by Martin Sivák
Modified: 2019-04-28 11:12 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1319785 (view as bug list)
Environment:
Last Closed: 2016-04-21 14:38:05 UTC
oVirt Team: SLA
Embargoed:
rule-engine: ovirt-3.6.z+
mgoldboi: planning_ack+
msivak: devel_ack+
rule-engine: testing_ack+


Attachments (Terms of Use)
screenshot (51.95 KB, image/png)
2016-04-13 12:53 UTC, Artyom
no flags Details
engine log (4.02 MB, text/plain)
2016-04-13 12:54 UTC, Artyom
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 55075 0 master MERGED HE: Enable hosted engine vNIC editing 2020-03-11 07:34:03 UTC
oVirt gerrit 55138 0 master MERGED HE: Make the unmanaged hosted engine error a bit more generic 2020-03-11 07:34:03 UTC
oVirt gerrit 55422 0 ovirt-engine-3.6 MERGED HE: Make the unmanaged hosted engine error a bit more generic 2020-03-11 07:34:03 UTC
oVirt gerrit 55451 0 ovirt-engine-3.6 MERGED HE: Enable hosted engine vNIC editing 2020-03-11 07:34:03 UTC
oVirt gerrit 55568 0 ovirt-engine-3.6.5 MERGED HE: Make the unmanaged hosted engine error a bit more generic 2020-03-11 07:34:03 UTC
oVirt gerrit 55569 0 ovirt-engine-3.6.5 MERGED HE: Enable hosted engine vNIC editing 2020-03-11 07:34:03 UTC

Description Martin Sivák 2016-03-21 13:31:23 UTC
Description of problem:

We should allow editing of vNICs of the hosted engine VM.

Comment 1 Mike McCune 2016-03-28 23:10:48 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 2 Artyom 2016-04-13 12:52:55 UTC
Checked on rhevm-3.6.5.3-0.1.el6.noarch

First of all, I see that VNIC of HE is unplugged under webadmin(see screenshot)

If I try to plug it via webadmin I receive error:

Error while executing action: 

HostedEngine:
Cannot deactivate the management interface of the Hosted Engine VM.

If I try to add new VNIC to HE VM I receive the same error.

If I update type of HE VNIC and restart HE VM it does not really updated and HE VM still has old VNIC model under dumpxml.

Comment 3 Artyom 2016-04-13 12:53:35 UTC
Created attachment 1146845 [details]
screenshot

Comment 4 Artyom 2016-04-13 12:54:27 UTC
Created attachment 1146846 [details]
engine log

Comment 5 Red Hat Bugzilla Rules Engine 2016-04-13 13:44:03 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 6 Martin Sivák 2016-04-13 13:59:44 UTC
> First of all, I see that VNIC of HE is unplugged under webadmin(see
> screenshot)

That is a different bug.

> HostedEngine:
> Cannot deactivate the management interface of the Hosted Engine VM.

That is expected and is related to the fact that the interface is seen as unplugged. We will never allow you to manipulate the management network interface of the hosted engine VM (and probably no interface on the management network... which might be a real flaw).

> If I try to add new VNIC to HE VM I receive the same error.

Management network again? Please create a new network for the test.

> If I update type of HE VNIC and restart HE VM it does not really updated and
> HE VM still has old VNIC model under dumpxml.

You have to wait before the OVF store is refreshed. That can take up to one hour, but you can change that interval using engine-config. The variable is called OvfUpdateIntervalInMinutes

Comment 7 Artyom 2016-04-14 13:06:04 UTC
Thanks for info

Checked on rhevm-3.6.5.3-0.1.el6.noarch

1) Add new nic works above new network
2) Update type of network interface still does not work
  1. Change value OvfUpdateIntervalInMinutes: engine-config -s OvfUpdateIntervalInMinutes=5 && service ovirt-engine restart
  2. Change HE VM VNIC type from Virtio to rtl8139
  3. Wait 5 minutes to give to engine time to update OVF disk
  4. Restart HE VM
  5. Check HE VM dumpxml on host:
  <interface type='bridge'>
      <mac address='00:16:3e:14:e7:a2'/>
      <source bridge='ovirtmgmt'/>
      <target dev='vnet0'/>
      <model type='virtio'/>  interface is still equal to virtio
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>

Comment 8 Artyom 2016-04-14 13:27:26 UTC
Martin said that we do not support change type of HE management VNIC.
The only scenario that we indeed support, to add new VNIC above new network to HE VM.

Verified on rhevm-3.6.5.3-0.1.el6.noarch


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