Description of problem: From what I can tell the engine will only accept assignment_method if its inside ip_address_assignment, not in ip_address_assignments. And it makes more sense, as one can have different assignment_method if configuring IPv4 and IPV6 at the same time, for example. Version-Release number of selected component (if applicable): rhvm-4.3.6.7-0.1.el7.noarch ovirt-engine-api-explorer-0.0.4-1.el7ev.noarch How reproducible: Always Steps to Reproduce: 1. Navigate to /ovirt-engine/apidoc/#/services/host/methods/setup_networks Actual results: <ip_address_assignments> <assignment_method>static</assignment_method> <ip_address_assignment> <ip> <address>192.168.122.10</address> <netmask>255.255.255.0</netmask> </ip> </ip_address_assignment> </ip_address_assignments> Expected results: <ip_address_assignments> <ip_address_assignment> <assignment_method>static</assignment_method> <ip> <address>192.168.122.10</address> <netmask>255.255.255.0</netmask> </ip> </ip_address_assignment> </ip_address_assignments> Additional info: # /usr/bin/curl -k --header 'Accept: application/json' -u admin@internal:redhat --request 'POST' --header 'Content-Type: application/xml' --data " > <action> > <modified_network_attachments> > <network_attachment> > <network> > <name>san-1</name> > </network> > <host_nic> > <name>eth1</name> > </host_nic> > <ip_address_assignments> > <assignment_method>static</assignment_method> > <ip_address_assignment> > <ip> > <address>2::1</address> > <netmask>64</netmask> > <version>v6</version> > </ip> > </ip_address_assignment> > </ip_address_assignments> > </network_attachment> > </modified_network_attachments> > </action> > " https://engine.kvm/ovirt-engine/api/hosts/a381fd69-cc2a-42c4-9040-f51a10c8945c/setupnetworks { "detail" : "For correct usage, see: https://engine.kvm/ovirt-engine/apidoc#services/host/methods/setup_networks", "reason" : "Request syntactically incorrect." # /usr/bin/curl -k --header 'Accept: application/json' -u admin@internal:redhat --request 'POST' --header 'Content-Type: application/xml' --data " > <action> > <modified_network_attachments> > <network_attachment> > <network> > <name>san-1</name> > </network> > <host_nic> > <name>eth1</name> > </host_nic> > <ip_address_assignments> > <ip_address_assignment> > <assignment_method>static</assignment_method> > <ip> > <address>2::1</address> > <netmask>64</netmask> > <version>v6</version> > </ip> > </ip_address_assignment> > </ip_address_assignments> > </network_attachment> > </modified_network_attachments> > </action> > " https://engine.kvm/ovirt-engine/api/hosts/a381fd69-cc2a-42c4-9040-f51a10c8945c/setupnetworks { "job" : { "href" : "/ovirt-engine/api/jobs/c268c8bd-5f78-4d00-b39a-9acac62ddc01", "id" : "c268c8bd-5f78-4d00-b39a-9acac62ddc01" }, "modified_network_attachments" : { "network_attachment" : [ { "ip_address_assignments" : { "ip_address_assignment" : [ { "assignment_method" : "static", "ip" : { "address" : "2::1", "netmask" : "64", "version" : "v6" } } ] }, "host_nic" : { "name" : "eth1" }, "network" : { "name" : "san-1" } } ] }, "status" : "complete" }
Verified on ovirt-engine-4.4.5.9-0.1.el8ev.noarch
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 (Moderate: RHV Manager (ovirt-engine) 4.4.z [ovirt-4.4.5] security, bug fix, enhancement), 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://access.redhat.com/errata/RHSA-2021:1169