Attaching networks to bonded Interfaces using the SDK
by Jamie Holohan
I am trying to complete a task using the Java SDK which involves attaching networks to an interface, and then bonding another interface to the attached one. This can be done using the OVM UI in one step.
The SDK requires you to remove any attached networks from the interfaces before bonding them. The issue I am having comes after this part, where I try to reattach the networks to the interface which is a slave of the bond that was created. The specific error is as follows:
Fault reason is "Operation Failed". Fault detail is "[Interface already in use]". HTTP response code is "400". HTTP response message is "Bad Request"
To create the bond I am using the setpNetworks() function, where the interfaces are supplied in a list (nics), as follows:
Option bondOptionBuilder = new OptionBuilder().name("mode").value("4").build();
Option miimonOptionBuilder = new OptionBuilder().name(""miimon).value("100").build();
List<Option> options = new ArrayList<>();
options.add(bondOptionBuilder);
options.add(miimonOptionBuilder);
BondingBuilder bondingBuilder = new BondingBuilder().options(options).slaves(nics);
HostNicBuilder hostNicBuilder = new
HostNicBuilder().name("bond0").bonding(bondingBuilder);
hostService.setupNetworks().modifiedBonds(hostNicBuilder).send();
To reattach the networks (supplied by netAttachmentsToAdd) to the interface, I use the setupNetworks function as follows:
hostService.setupNetworks().modifiedNetworkAttachments(netAttachmentsToAdd).send();
I am wondering how I can assign networks to NICs which are slaves of a bond using the SDK. Can I attach them to the interfaces directly or is this the wrong approach?
3 years, 12 months
No engine logs when adding a Network to a host NIC using SDK
by Jamie Holohan
I am having an issue. I am building a test case and one step involves adding a network to a NIC object. When I perform this step in the UI by navigating from Hosts -> hostToAttachNetwork -> Network Interfaces -> Setup Host Networks . And I drag the required network to NIC object and press ok, after the operation is complete, an event log is registered in the engine.log containing this text: "Network changes were saved on host"
When I perform the same step in the automated test case, using the following code:
hostService.setupNetworks().modifiedNetworkAttachments(
networkAttachment()
.network(
network()
.id(netToAdd.id())
.name(netToAdd.name())
)
.hostNic(
hostNic()
.id(hsNicId)
))
.send();
The operation is performed correctly, the network is attached to the appropriate NIC, but there is no log registered in the engine.log.
I am wondering is there a better way to perform the above task that will register an event in the log file. Or is it possible that this a bug in the SDK?
Thanks
3 years, 12 months
Missing oVirt package in Fedora 30 repo
by Tal Nisan
Hi,
Upon trying to install oVirt development environment on a new Fedora 31
installation (using the oVirt dependency repos of Fedora 30 as 31 is not
supported yet) I've found out that these packages are missing from the
Fedora 30 repo:
ovirt-engine-metrics
ovirt-ansible-roles
ovirt-host-deploy
ovirt-setup-lib
Didi, can you please build them for the Fedora 30 repo?
3 years, 12 months
OST failing on vdsm-jsonrpc-java
by Benny Zlotnik
18:09:56 Error: Package:
ovirt-engine-backend-4.4.0-0.0.master.20191201151059.git036dbb1.el7.noarch
(alocalsync)
18:09:56 Requires: vdsm-jsonrpc-java >= 1.5.0
18:09:56 Available: vdsm-jsonrpc-java-1.4.15-1.el7.noarch
(centos-ovirt-4.4-testing-el7)
18:09:56 vdsm-jsonrpc-java = 1.4.15-1.el7
18:09:56 Available:
vdsm-jsonrpc-java-1.4.18-1.20191125142533.git6843bf5.el7.noarch
(ovirt-master-tested-el7)
18:09:56 vdsm-jsonrpc-java =
1.4.18-1.20191125142533.git6843bf5.el7
3 years, 12 months
Jenkins check-patch fails on master (TicketTest.testByEKU)
by Tal Nisan
This is the error:
10:15:34 [ERROR] Tests run: 9, Failures: 0, Errors: 2, Skipped: 0, Time
elapsed: 3.196 s <<< FAILURE! - in
org.ovirt.engine.core.uutils.crypto.ticket.TicketTest
10:15:34 [ERROR] testByEKU Time elapsed: 0.644 s <<< ERROR!
10:15:34 sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target
10:15:34 at
org.ovirt.engine.core.uutils.crypto.ticket.TicketTest.testByEKU(TicketTest.java:85)
10:15:34
10:15:34 [ERROR] testByCertificate Time elapsed: 0.047 s <<< ERROR!
10:15:34 sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target
10:15:34 at
org.ovirt.engine.core.uutils.crypto.ticket.TicketTest.testByCertificate(TicketTest.java:46)
Link to Jenkins job -
https://jenkins.ovirt.org/job/ovirt-engine_standard-check-patch/2055/console
Any help will be appreciated.
3 years, 12 months
[Ovirt-BUild failure]
by Prajith Kesava Prasad
Hey everyone,
the maven clean build .... in ovirt suddenly started throwing this error :-
i tried a few fix but nothing seems to work, does anyone else have met with
this issue?
Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.8.0:compile
(default-cli) on project webadmin: Command [[
[ERROR] /bin/sh -c
'/usr/lib/jvm/java-11-openjdk-11.0.5.10-0.el7_7.x86_64/bin/java'
'-javaagent:/home/vagrant/.m2/repository/org/aspectj/aspectjweaver/1.9.3.RC1/aspectjweaver-1.9.3.RC1.jar'
'-Dgwt.jjs.permutationWorkerFactory=com.google.gwt.dev.ThreadedPermutationWorkerFactory'
'-Dgwt.jjs.maxThreads=4'
'-Djava.io.tmpdir=/home/vagrant/workspace/ovirt-engine/frontend/webadmin/modules/webadmin/target/tmp'
'-Djava.util.prefs.systemRoot=/home/vagrant/workspace/ovirt-engine/frontend/webadmin/modules/webadmin/target/tmp'
'-Djava.util.prefs.userRoot=/home/vagrant/workspace/ovirt-engine/frontend/webadmin/modules/webadmin/target/tmp'
'-Djava.util.logging.config.class=org.ovirt.engine.ui.gwtaop.JavaLoggingConfig'
'-Xms1024M' '-Xmx8192M'
'-Dgwt.dontPrune=org\.ovirt\.engine\.core\.(common|compat)\..*'
'com.google.gwt.dev.Compiler' '-logLevel' 'INFO' '-war'
'/home/vagrant/workspace/ovirt-engine/frontend/webadmin/modules/webadmin/target/webadmin-4.4.0-SNAPSHOT'
'-localWorkers' '1' '-failOnError' '-XfragmentCount' '-1' '-sourceLevel'
'auto' '-gen'
'/home/vagrant/workspace/ovirt-engine/frontend/webadmin/modules/webadmin/gen'
'org.ovirt.engine.ui.webadmin.WebAdmin'
[ERROR] ]] failed with status 1
Any help is appreciated,
Thanks,
Prajith
3 years, 12 months