[Engine-devel] Use java.util.Collection where possible?
by Yair Zaslavsky
Hi,
I see that in some places in engine-core we use Java.Util.List, or even
Java.Util.ArrayList as types of method arguments, while in the method
code we do nothing besides iterating over the collection.
I then found all kinds of usages like this:
x.foo(new ArrayList<MyType>(myMap.values()));
As you can see need to instantiate a new ArrayList in order to use the
values of the map in method foo.
Do you see any reason why not change the argument type (at method
signature) to Collection in such places, where possible?
Yair
12 years, 8 months
[Engine-devel] ovirt-shell problem on F16 and nightly builds
by Gianluca Cecchi
Hello,
sorry if this is a -devel mailing list. Let me know please if I have to
send to another list.
Would like to test ovirt-shell against an RH EV 3.0 installation.
My system is based on F16 x86_64.
Installed from nightly builds directory:
Mar 16 11:02:30 Installed: python-lxml-2.3-1.fc16.x86_64
Mar 16 11:02:30 Installed: ovirt-engine-sdk-1.6.1-1.fc16.noarch
Mar 16 11:02:30 Installed: pexpect-2.3-6.fc15.noarch
Mar 16 11:02:30 Installed: python-ply-3.3-5.fc15.noarch
Mar 16 11:02:30 Installed: ovirt-engine-cli-2.1.2-1.fc16.noarch
But
$ ovirt-shell --help
Traceback (most recent call last):
File "/usr/bin/ovirt-shell", line 9, in <module>
load_entry_point('ovirt-shell==2.1.2-SNAPSHOT', 'console_scripts',
'ovirt-shell')()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 337, in
load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2279, in
load_entry_point
return ep.load()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1989, in
load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/lib/python2.7/site-packages/ovirtcli/main.py", line 20, in
<module>
from ovirtcli.context import OvirtCliExecutionContext
File "/usr/lib/python2.7/site-packages/ovirtcli/context.py", line 18, in
<module>
from cli.command import *
File "/usr/lib/python2.7/site-packages/cli/command/__init__.py", line 2,
in <module>
from cli.command.command import Command
File "/usr/lib/python2.7/site-packages/cli/command/command.py", line 21,
in <module>
from ovirtcli.utils.methodhelper import MethodHelper
File "/usr/lib/python2.7/site-packages/ovirtcli/utils/methodhelper.py",
line 20, in <module>
from codegen.doc.documentation import Documentation
ImportError: No module named codegen.doc.documentation
Probably it is something stupid I miss?
I installed them with
sudo yum localinstall ovirt-engine-cli-2.1.2-1.fc16.noarch.rpm
ovirt-engine-sdk-1.6.1-1.fc16.noarch.rpm
and got:
Loaded plugins: auto-update-debuginfo, downloadonly, langpacks, presto,
refresh-packagekit
Setting up Local Package Process
Examining ovirt-engine-cli-2.1.2-1.fc16.noarch.rpm:
ovirt-engine-cli-2.1.2-1.fc16.noarch
Marking ovirt-engine-cli-2.1.2-1.fc16.noarch.rpm to be installed
Examining ovirt-engine-sdk-1.6.1-1.fc16.noarch.rpm:
ovirt-engine-sdk-1.6.1-1.fc16.noarch
Marking ovirt-engine-sdk-1.6.1-1.fc16.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package ovirt-engine-cli.noarch 0:2.1.2-1.fc16 will be installed
--> Processing Dependency: pexpect for package:
ovirt-engine-cli-2.1.2-1.fc16.noarch
--> Processing Dependency: python-ply for package:
ovirt-engine-cli-2.1.2-1.fc16.noarch
---> Package ovirt-engine-sdk.noarch 0:1.6.1-1.fc16 will be installed
--> Processing Dependency: python-lxml for package:
ovirt-engine-sdk-1.6.1-1.fc16.noarch
--> Running transaction check
---> Package pexpect.noarch 0:2.3-6.fc15 will be installed
---> Package python-lxml.x86_64 0:2.3-1.fc16 will be installed
---> Package python-ply.noarch 0:3.3-5.fc15 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
possibly any dependency problem in rpm composition?
Thanks in advance,
Gianluca
12 years, 8 months
[Engine-devel] [Jenkins] Auto Generated ovirt-engine rpms for fedora 16
by Eyal Edri
fyi,
a new Jenkins job has been added to jenkins.ovirt.org.
you can now d/l fresh ovirt-engine rpms after each commit.
the rpms are created and latest are stored here:
http://jenkins.ovirt.org/view/ovirt_engine/job/ovirt_engine_create_rpms/
the job will also notify the author in case his/her commit will break the rpm build.
latest rpms for now:
ovirt-engine-3.1.0_0001-1.8.fc16.src.rpm
ovirt-engine-3.1.0_0001-1.8.fc16.x86_64.rpm
ovirt-engine-backend-3.1.0_0001-1.8.fc16.x86_64.rpm
ovirt-engine-config-3.1.0_0001-1.8.fc16.x86_64.rpm
ovirt-engine-dbscripts-3.1.0_0001-1.8.fc16.x86_64.rpm
ovirt-engine-debuginfo-3.1.0_0001-1.8.fc16.x86_64.rpm
ovirt-engine-genericapi-3.1.0_0001-1.8.fc16.x86_64.rpm
ovirt-engine-image-uploader-3.1.0_0001-1.8.fc16.x86_64.rpm
ovirt-engine-iso-uploader-3.1.0_0001-1.8.fc16.x86_64.rpm
ovirt-engine-jboss-deps-3.1.0_0001-1.8.fc16.x86_64.rpm
ovirt-engine-log-collector-3.1.0_0001-1.8.fc16.x86_64.rpm
ovirt-engine-notification-service-3.1.0_0001-1.8.fc16.x86_64.rpm
ovirt-engine-restapi-3.1.0_0001-1.8.fc16.x86_64.rpm
ovirt-engine-setup-3.1.0_0001-1.8.fc16.x86_64.rpm
ovirt-engine-tools-common-3.1.0_0001-1.8.fc16.x86_64.rpm
ovirt-engine-userportal-3.1.0_0001-1.8.fc16.x86_64.rpm
ovirt-engine-webadmin-portal-3.1.0_0001-1.8.fc16.x86_64.rpm
Enjoy,
Eyal Edri
oVirt Infra Team
12 years, 8 months
[Engine-devel] Hints for building up a spicec connection in Ovirt
by Andrew Wells
I am trying to build a connection manually with spicec (or what ever I need
to build the connection with) in Ovirt/RHEV and I am wondering what do I
need to form this connection?
And if this is the wrong place to ask, can you point me in the correct
direction?
Andrew Wells
12 years, 8 months