Description of problem: When provisioning a VM on RHV provider from PXE, if you have ovirt sdk v4 enabled, it fails with: [EVM] VM [prov_pxe] Step [CheckProvisioned] Status [[NoMethodError]: undefined method `[]] Message [[NoMethodError]: undefined method `[]' for #<OvirtSDK4::Network:0x0000000d7c5288>] Version-Release number of selected component (if applicable): 5.8.0.16 + switch to sdk V4 How reproducible: always Steps to Reproduce: 1. edit /var/www/miq/vmdb/config/settings.yml and set use_ovirt_engine_sdk to true 2. provision VM from pxe Actual results: [EVM] VM [prov_pxe] Step [CheckProvisioned] Status [[NoMethodError]: undefined method `[]] Message [[NoMethodError]: undefined method `[]' for #<OvirtSDK4::Network:0x0000000d7c5288>] Expected results: should provision Additional info:
https://github.com/ManageIQ/manageiq-providers-ovirt/pull/40
New commit detected on ManageIQ/manageiq-providers-ovirt/master: https://github.com/ManageIQ/manageiq-providers-ovirt/commit/7d43760fb1b23fd364aaac056bea7410f096cb54 commit 7d43760fb1b23fd364aaac056bea7410f096cb54 Author: Boris Odnopozov <bodnopoz> AuthorDate: Wed May 24 16:56:34 2017 +0300 Commit: Boris Odnopozov <bodnopoz> CommitDate: Thu May 25 16:32:44 2017 +0300 Fix provisioning PXE for version 4 Part of the PXE provisioning process which had to do with finding the mac address was broken. It is now fixed and split between ovirt_services for v3 and v4. https://bugzilla.redhat.com/show_bug.cgi?id=1454861 .../redhat/infra_manager/ovirt_services/strategies/v3.rb | 6 ++++++ .../redhat/infra_manager/ovirt_services/strategies/v4.rb | 10 ++++++++++ .../redhat/infra_manager/provision/configuration/network.rb | 12 +++--------- .../infra_manager/provision/configuration/network_spec.rb | 4 ++++ 4 files changed, 23 insertions(+), 9 deletions(-)
https://github.com/ManageIQ/manageiq-providers-ovirt/pull/50
New commit detected on ManageIQ/manageiq-providers-ovirt/master: https://github.com/ManageIQ/manageiq-providers-ovirt/commit/698b53f8658ed1e07443d9b9db79813cd1ed5a2f commit 698b53f8658ed1e07443d9b9db79813cd1ed5a2f Author: Boris Odnopozov <bodnopoz> AuthorDate: Thu Jun 22 16:00:13 2017 +0300 Commit: Boris Odnopozov <bodnopoz> CommitDate: Tue Jun 27 11:01:45 2017 +0300 Fix provisioning from PXE with the OvirtSDK Part of the PXE provisioning process which had to do with finding the mac address was broken. https://bugzilla.redhat.com/show_bug.cgi?id=1454861 .../infra_manager/ovirt_services/strategies/v3.rb | 19 ++++++++++-- .../infra_manager/ovirt_services/strategies/v4.rb | 17 ++++++----- .../provision/configuration/network.rb | 21 ++++--------- .../provision/configuration/network_spec.rb | 35 +++++++++++++++++----- .../provision_via_pxe/state_machine_spec.rb | 1 + 5 files changed, 62 insertions(+), 31 deletions(-)
Verified on CFME-5.9.0.4(Ovirt SDK V$ enabled by default) / RHV-4.1.6 VM provision from PXE do not generate the error mentioned in the description.