Bug 1513991
Summary: | make sure vm_migrate_hook.py works in the domain XML flow | ||||||
---|---|---|---|---|---|---|---|
Product: | [oVirt] vdsm | Reporter: | Francesco Romani <fromani> | ||||
Component: | Core | Assignee: | Petr Horáček <phoracek> | ||||
Status: | CLOSED DEFERRED | QA Contact: | Raz Tamir <ratamir> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 4.20.4 | CC: | bugs, danken, fromani, michal.skrivanek, ylavi | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2017-12-27 09:28:18 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | Network | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Francesco Romani
2017-11-16 12:52:46 UTC
The whole hook is a horrible hack for ovs. It has tests, do they not pass now? Either way should be simple to change to use xml Vdsm still reports vm.conf, for backward compatibility with old Engines (and this would continue until we deprecate ovirt-engine-4.1). But indeed, the hook should move with the times and use domxml when available, so it would not be a reason to keep vm.conf API. Based on bug 1514925 I understand that vm.conf is actually not kept, at least not when the vm is started via xml. Is that correct and intentional? If so, the priority of this bug should be raised. (In reply to Dan Kenigsberg from comment #3) > Based on bug 1514925 I understand that vm.conf is actually not kept, at > least not when the vm is started via xml. Is that correct and intentional? > If so, the priority of this bug should be raised. Considering Vdsm >= 4.20.z, you can fully expect vm.conf fully populated and functional if the VM was started with vm.conf (e.g. Engine <= 4.1, or Engine 4.2 with domain xml disabled - still possible AFAIk with hidden setting). Otherwise, vm.conf is not guaranteed to be fully populated if the VM was started from domain XML. For example, don't expect device data (vm.conf['devices']) to be up to date, or accurate. We are willing to add data to vm.conf on a per-request basis (bz 1514925 is a good example) to make the transition smoother, but the internal tooling should indeed move on to the new interface ASAP. Created attachment 1359164 [details]
Exception logged by vm_migrate_hook.py after failed migration
I expect users that use the OVS for host networking to also use OVN. great, so can the hook be removed from 4.2? Besides the current functionality bug, I believe we should eliminate any complex python code from running inside the migration flow (invisible to vdsm, since this is a libvirt hook) The libvirt hook is not yet removed, but since migration *is* working with OVN+physnet fixing it is not a priority. |