<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I'm following the example given in <a href="http://www.ovirt.org/develop/api/pythonapi/" class="">http://www.ovirt.org/develop/api/pythonapi/</a> for bonding interfaces.<br class=""><br class="">I'm checking that the network is a plain configuration, exporting /api/hosts/<my host>/nics return :<br class=""><br class=""><font face="Menlo" class=""><HostNIC href="/api/hosts/db240f83-9266-4892-a6d2-8ac406cadfb1/nics/958c40cd-9ddb-4548-8bd8-79f454021c35" id="958c40cd-9ddb-4548-8bd8-79f454021c35"><br class=""> <actions><br class=""> <link href="/api/hosts/db240f83-9266-4892-a6d2-8ac406cadfb1/nics/958c40cd-9ddb-4548-8bd8-79f454021c35/attach" rel="attach"/><br class=""> <link href="/api/hosts/db240f83-9266-4892-a6d2-8ac406cadfb1/nics/958c40cd-9ddb-4548-8bd8-79f454021c35/detach" rel="detach"/><br class=""> </actions><br class=""> <name>eth1</name><br class=""> <link href="/api/hosts/db240f83-9266-4892-a6d2-8ac406cadfb1/nics/958c40cd-9ddb-4548-8bd8-79f454021c35/statistics" rel="statistics"/><br class=""> <link href="/api/hosts/db240f83-9266-4892-a6d2-8ac406cadfb1/nics/958c40cd-9ddb-4548-8bd8-79f454021c35/labels" rel="labels"/><br class=""> <link href="/api/hosts/db240f83-9266-4892-a6d2-8ac406cadfb1/nics/958c40cd-9ddb-4548-8bd8-79f454021c35/networkattachments" rel="networkattachments"/><br class=""> <host href="/api/hosts/db240f83-9266-4892-a6d2-8ac406cadfb1" id="db240f83-9266-4892-a6d2-8ac406cadfb1"/><br class=""> <mac address="14:58:d0:b3:cc:f8"/><br class=""> <ip netmask="" address=""/><br class=""> <boot_protocol>none</boot_protocol><br class=""> <status><br class=""> <state>down</state><br class=""> </status><br class=""> <mtu>1500</mtu><br class=""> <bridged>false</bridged><br class=""></HostNIC><br class=""></font><br class=""><font face="Menlo" class=""><HostNIC href="/api/hosts/db240f83-9266-4892-a6d2-8ac406cadfb1/nics/87a274e8-9633-45df-9205-1d188bd3ee4c" id="87a274e8-9633-45df-9205-1d188bd3ee4c"><br class=""> <actions><br class=""> <link href="/api/hosts/db240f83-9266-4892-a6d2-8ac406cadfb1/nics/87a274e8-9633-45df-9205-1d188bd3ee4c/attach" rel="attach"/><br class=""> <link href="/api/hosts/db240f83-9266-4892-a6d2-8ac406cadfb1/nics/87a274e8-9633-45df-9205-1d188bd3ee4c/detach" rel="detach"/><br class=""> </actions><br class=""> <name>eth0</name><br class=""> <link href="/api/hosts/db240f83-9266-4892-a6d2-8ac406cadfb1/nics/87a274e8-9633-45df-9205-1d188bd3ee4c/statistics" rel="statistics"/><br class=""> <link href="/api/hosts/db240f83-9266-4892-a6d2-8ac406cadfb1/nics/87a274e8-9633-45df-9205-1d188bd3ee4c/labels" rel="labels"/><br class=""> <link href="/api/hosts/db240f83-9266-4892-a6d2-8ac406cadfb1/nics/87a274e8-9633-45df-9205-1d188bd3ee4c/networkattachments" rel="networkattachments"/><br class=""> <host href="/api/hosts/db240f83-9266-4892-a6d2-8ac406cadfb1" id="db240f83-9266-4892-a6d2-8ac406cadfb1"/><br class=""> <network href="/api/networks/f429c46c-fed4-4c88-a000-36c021f5d633" id="f429c46c-fed4-4c88-a000-36c021f5d633"/><br class=""> <mac address="14:58:d0:b3:cc:f0"/><br class=""> <ip netmask="255.255.240.0" gateway="10.83.31.254" address="10.83.17.24"/><br class=""> <boot_protocol>dhcp</boot_protocol><br class=""> <speed>10000000000</speed><br class=""> <status><br class=""> <state>up</state><br class=""> </status><br class=""> <mtu>9000</mtu><br class=""> <bridged>true</bridged><br class=""> <custom_configuration>false</custom_configuration><br class=""> <properties/><br class=""></HostNIC><br class=""></font><br class="">I send my configuration and get :<div class=""><br class=""><font face="Menlo" class="">> POST /api/hosts/db240f83-9266-4892-a6d2-8ac406cadfb1/setupnetworks HTTP/1.1<br class="">...<br class="">> my configuration<br class=""><br class="">< HTTP/1.1 200 OK<br class=""><br class="">< <?xml version="1.0" encoding="UTF-8" standalone="yes"?><br class="">< <action><br class="">< <host_nics><br class="">< <host_nic><br class="">< <name>bond0</name><br class="">< <network><br class="">< <name>ovirtmgmt</name><br class="">< </network><br class="">< <ip address="10.83.17.24" netmask="10.83.16.0" gateway="10.83.31.254"/><br class="">< <bonding><br class="">< <options><br class="">< <option name="miimon" value="100"/><br class="">< <option name="mode" value="4"/><br class="">< <option name="xmit_hash_policy" value="2+3"/><br class="">< </options><br class="">< <slaves><br class="">< <host_nic><br class="">< <name>eth0</name><br class="">< <network/><br class="">< <ip address="*" netmask="*" gateway=""/><br class="">< <boot_protocol>none</boot_protocol><br class="">< <mtu>9000</mtu><br class="">< </host_nic><br class="">< <host_nic><br class="">< <name>eth1</name><br class="">< <network/><br class="">< <ip address="*" netmask="*" gateway=""/><br class="">< <boot_protocol>none</boot_protocol><br class="">< <mtu>9000</mtu><br class="">< </host_nic><br class="">< </slaves><br class="">< </bonding><br class="">< <boot_protocol>static</boot_protocol><br class="">< <mtu>9000</mtu><br class="">< <override_configuration>true</override_configuration><br class="">< </host_nic><br class="">< </host_nics><br class="">< <check_connectivity>true</check_connectivity><br class="">< <force>false</force><br class="">< <job href="/api/jobs/859bc27c-2060-4349-a0f5-dc1dd6333e6c" id="859bc27c-2060-4349-a0f5-dc1dd6333e6c"/><br class="">< <status><br class="">< <state>complete</state><br class="">< </status><br class="">< </action><br class=""><br class=""></font><br class="">So every thing is fine, I applied my configuration.<br class=""><br class="">But in the log, I get :<br class="">2016-05-06 17:13:22,481 INFO [org.ovirt.engine.core.bll.network.host.HostSetupNetworksCommand] (default task-20) [30e54e04] Lock Acquired to object 'EngineLock:{exclusiveLocks='[db240f83-9266-4892-a6d2-8ac406cadfb1=<HOST_NETWORK, ACTION_TYPE_FAILED_SETUP_NETWORKS_IN_PROGRESS>]', sharedLocks='null'}'<br class="">2016-05-06 17:13:22,555 INFO [org.ovirt.engine.core.bll.network.host.HostSetupNetworksCommand] (default task-20) [30e54e04] Running command: HostSetupNetworksCommand internal: false. Entities affected : ID: db240f83-9266-4892-a6d2-8ac406cadfb1 Type: VDSAction group CONFIGURE_HOST_NETWORK with role type ADMIN<br class="">2016-05-06 17:13:22,555 INFO [org.ovirt.engine.core.bll.network.host.HostSetupNetworksCommand] (default task-20) [30e54e04] No changes were detected in setup networks for host 'nb0101' (ID: 'db240f83-9266-4892-a6d2-8ac406cadfb1')<br class="">2016-05-06 17:13:22,563 INFO [org.ovirt.engine.core.bll.network.host.HostSetupNetworksCommand] (default task-20) [30e54e04] Lock freed to object 'EngineLock:{exclusiveLocks='[db240f83-9266-4892-a6d2-8ac406cadfb1=<HOST_NETWORK, ACTION_TYPE_FAILED_SETUP_NETWORKS_IN_PROGRESS>]', sharedLocks='null'}'<br class=""><br class="">And indeed my configuration is not changed.<br class=""><br class="">What am I missing ?<br class=""><br class=""><br class=""><br class=""><br class=""></div></body></html>