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