Error Java SDK Issue??
by Geschwentner, Patrick
Dear Ladies and Gentlemen!
I am currently working with the java-sdk and I encountered a problem.
If I would like to retrieve the disk details, I get the following error:
Disk currDisk = ovirtConnection.followLink(diskAttachment.disk());
The Error is occurring in this line:
[cid:image001.png@01D44537.AF127FD0]
The getResponst looks quiet ok. (I inspected: [cid:image002.png@01D44537.AF127FD0] and it looks ok).
Error:
wrong number of arguments
The code is quiet similar to what you published on github (https://github.com/oVirt/ovirt-engine-sdk-java/blob/master/sdk/src/test/j... ).
Can you confirm the defect?
Best regards
Patrick
1 year, 1 month
New dependency for development environment
by Ondra Machacek
Hello,
we are going to merge a series of patches to master branch, which
integrates ansible-runner with oVirt engine. When the patches will be
merged you will need to install new package called ansible-runner-
service-dev, and follow instructions so your dev-env will keep working
smoothly(all relevant info will be also in README.adoc):
1) sudo dnf update ovirt-release-master
2) sudo dnf install -y ansible-runner-service-dev
3) Edit `/etc/ansible-runner-service/config.yaml` file as follows:
---
playbooks_root_dir:
'$PREFIX/share/ovirt-engine/ansible-runner-service-project'
ssh_private_key: '$PREFIX/etc/pki/ovirt-engine/keys/engine_id_rsa'
port: 50001
target_user: root
Where `$PREFIX` is the prefix of your development environment prefix,
which you've specified during the compilation of the engine.
4) Restart and enable ansible-runner-service:
# systemctl restart ansible-runner-service
# systemctl enable ansible-runner-service
That's it, your dev-env should start using the ansible-runner-service
for host-deployment etc.
Please note that only Fedora 30/31 and Centos7 was packaged, and are
natively supported!
Thanks,
Ondra
2 years, 4 months
ovirt-engine - check-patch and build-artifacts diverged
by Sandro Bonazzola
Hi,
just noticed that over time check-patch and build-artifacts script diverged
significantly.
Due to this, check-patch passed on fc30 but failed after merge on
build-artifacts.
I'm fixing the immediate failure but a deeper review from java developers
would be helpful.
Thanks,
--
Sandro Bonazzola
MANAGER, SOFTWARE ENGINEERING, EMEA R&D RHV
Red Hat EMEA <https://www.redhat.com/>
sbonazzo(a)redhat.com
<https://www.redhat.com/>*Red Hat respects your work life balance.
Therefore there is no need to answer this email out of your office hours.*
2 years, 5 months
Fetch LUN ID for iSCSI Creation
by scott.fitzgerald@oracle.com
Hi,
Using sysService.hostsService().hostService(host.id()).iscsiDiscover().iscsi(iscsiDetailsBuilder).send().discoveredTargets();
Where iscsiDetailsBuilder is IscsiDetailsBuilder iscsiDetailsBuilder = new IscsiDetailsBuilder().address(address).port(port);
I can fetch an iSCSI details container list, which contains the list of iSCSI targets. However, all values, except the address, port, portal and target string are null. I need the iSCSI LUN ID for automation of iSCSI creation. How can this be done via the SDK?
Thanks in advance.
2 years, 5 months
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?
2 years, 5 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
2 years, 5 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?
2 years, 5 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
2 years, 5 months