Bug 1327267
Summary: | HE Vm's ovf isn't updated according to 'OvfUpdateIntervalInMinutes' value | |||
---|---|---|---|---|
Product: | [oVirt] ovirt-engine | Reporter: | sefi litmanovich <slitmano> | |
Component: | BLL.HostedEngine | Assignee: | Roy Golan <rgolan> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | sefi litmanovich <slitmano> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 3.6.5.1 | CC: | alukiano, bugs, danken, dfediuck, mgoldboi, mkalinin, rgolan, rhev-integ | |
Target Milestone: | ovirt-4.0.0-rc | Keywords: | ZStream | |
Target Release: | 4.0.0 | Flags: | rule-engine:
ovirt-4.0.0+
mgoldboi: planning_ack+ rgolan: devel_ack+ mavital: testing_ack+ |
|
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: |
Cause:
The VM definitions are backed up every period of time (an hour) if the version field has been changed since the last backup. Modifying VM's vNics did not updated the version field.
Consequence:
That caused the VM definitions not being backed up if the change was done on VM's vNics only.
Fix:
Update the version in vNics manipulations flows.
Result:
The VM definitions are backed up after vNic changes.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1340628 (view as bug list) | Environment: | ||
Last Closed: | 2016-07-05 07:44:17 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | SLA | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1337711, 1340628 |
Description
sefi litmanovich
2016-04-14 15:48:39 UTC
I don't know why this didn't kick in but msivak already submitted a patch to use a callback on the TX of the UpdateVm so that once it is over the update will be called immediately. Tracker updated Meanwhile I'd like you to run this query before and after you change the nic: ``` select ovf_generation from vm_ovf_generations where vm_guid in (select vm_guid from vm_static where vm_name ='hostedEngine'); ``` after the updateVm command is done the generation should bump and the next refresh query should catch that. I do not sure if the problem in the OvfUpdateIntervalInMinutes value, because I set it to 5 minutes, added new VNIC to HE VM and waited 1-2 days, to be sure that OVF is updated to new values, but I still do not see new VNIC under OVF data(so after HE VM restart new VNIC appear as unplugged, because start HE VM does not create it) I also tried query from the comment above: before add new VNIC: engine=# select ovf_generation from vm_ovf_generations where vm_guid in (select vm_guid from vm_static where vm_name ='HostedEngine'); ovf_generation ---------------- 1 after add new VNIC: engine=# select ovf_generation from vm_ovf_generations where vm_guid in (select vm_guid from vm_static where vm_name ='HostedEngine'); ovf_generation ---------------- 1 small correction, the bump is made directly on the vm_static table so do ``` select db_generation from vm_static where vm_name = 'hostedEngine'; ``` But I already see that for the increment of the generations isn't called for NIC operations at all so you can try that and see and that is the root cause. My issue is same is Artyom's - even after hours I do not see the nic appearing in the database. Any workaround we can suggest to the customers at this point? Verified with: ENGINE: rhevm-4.0.0.2-0.1.el7ev.noarch HOST: ovirt-hosted-engine-ha-2.0.0-1.el7ev.noarch vdsm-4.18.1-11.gita92976e.el7ev.x86_64 Followed steps from my description of the bug, This time after adding the nic to the HostedEngine vm, the nic appeared in vm's xml (both with dumpxml from virsh and in host's agent.log). Also verified that the nic is not unplugged after shutting the vm down and re starting it. *** Bug 1345782 has been marked as a duplicate of this bug. *** So.. I just tested this build and after shutting down my VM, engine would not start.. Just as Nikolai said. I have quite a legit second logical network, so I will test in details and update the specific bug. I had one vnic that had no network profile defined. So, due to bz#1348640, it didn't start. I created a temporary vm.conf without this vNic with 'network:None' and HE VM started ok. Once I could login, I removed that third vNic from the VM, waited sometime, shut the VM down. And then just started regularly (hosted-engine --vm-start), and it started fine with the nic plugged. So, I guess I can say that this issue is verified from my side as well. oVirt 4.0.0 has been released, closing current release. |