[vdsm][mom][jsonrpc] new VDSM interface for MOM
by Francesco Romani
Hi everyone,
I'm working to brush up and enhance my old hack https://gerrit.ovirt.org/#/c/37827/1
That patch adds a new MOM interface, to talk with VDSM using the RPC interface.
On top of that, I want to make efficient use of VDSM API (avoid redundant call, possibly
issuing only one getAllVmStats call and caching the results, and so forth)
Next step will be to backport optimizations to current vdsmInterface.
Or maybe, even replacing the new vdsminterface with the new one I'm developing :)
I'd like to use the blessed JSON-RPC interface, but what's the recommended way to
do that? What is (or will be!) the official recommended VDSM external client interface?
I thought about patch https://gerrit.ovirt.org/#/c/39203/
But my _impression_ is that patch will depend on VDSM's internal reactor, thus is not very
suitable to be used into an external process.
--
Francesco Romani
RedHat Engineering Virtualization R & D
Phone: 8261328
IRC: fromani
9 years, 5 months
error starting engine on wildfly 8.2 fedora 22
by Greg Sheremeta
Hey,
Can't seem to get engine started. Any ideas? Did I miss a step?
I'm on latest master (4dd3093d42fd2c5826c941b7e19176a0e657a43f). Fresh engine directory,
fresh database. Fedora 22.
greg@dauntless:~/projects/ovirt-engine(master2|✔) % ovirt_run
OpenJDK 64-Bit Server VM warning: ignoring option PermSize=256m; support was removed in 8.0
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Listening for transport dt_socket at address: 8787
....
2015-06-24 13:31:01,719 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC000001: Failed to start service jboss.deploym
ent.unit."engine.ear".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."engine.ear".WeldStart
Service: Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.2.Final.jar:1.2
.2.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_45]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_45]
Caused by: org.jboss.weld.exceptions.DefinitionException: 0
at org.jboss.weld.bootstrap.events.ContainerLifecycleEvents.fireProcessAnnotatedType(ContainerLifecycleEvents.java:182)
at org.jboss.weld.bootstrap.events.ContainerLifecycleEvents.fireProcessAnnotatedType(ContainerLifecycleEvents.java:166)
at org.jboss.weld.bootstrap.BeanDeployer.processAnnotatedTypes(BeanDeployer.java:158)
at org.jboss.weld.bootstrap.BeanDeployment.createTypes(BeanDeployment.java:230)
at org.jboss.weld.bootstrap.WeldStartup.startInitialization(WeldStartup.java:373)
at org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(WeldBootstrap.java:76)
at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:91)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
... 3 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at org.hibernate.validator.internal.util.ExecutableHelper.instanceMethodParametersResolveToSameTypes(ExecutableHelper.java:141)
at org.hibernate.validator.internal.util.ExecutableHelper.overrides(ExecutableHelper.java:101)
at org.hibernate.validator.internal.cdi.ValidationExtension.replaceWithOverriddenOrInterfaceMethod(ValidationExtension.java:425)
at org.hibernate.validator.internal.cdi.ValidationExtension.determineConstrainedMethod(ValidationExtension.java:275)
at org.hibernate.validator.internal.cdi.ValidationExtension.determineConstrainedCallables(ValidationExtension.java:262)
at org.hibernate.validator.internal.cdi.ValidationExtension.processAnnotatedType(ValidationExtension.java:242)
at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source) [:1.8.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_45]
at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_45]
at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:90)
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:271)
at org.jboss.weld.event.ExtensionObserverMethodImpl.sendEvent(ExtensionObserverMethodImpl.java:121)
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:258)
at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:237)
at org.jboss.weld.event.ObserverNotifier.notifyObserver(ObserverNotifier.java:174)
at org.jboss.weld.event.ObserverNotifier.notifyObservers(ObserverNotifier.java:133)
at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:112)
at org.jboss.weld.bootstrap.events.ContainerLifecycleEvents.fireProcessAnnotatedType(ContainerLifecycleEvents.java:180)
... 11 more
2015-06-24 13:31:01,729 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "engine.ear")]) - failure description: {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"engine.ear\".WeldStartService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"engine.ear\".WeldStartService: Failed to start service
Caused by: org.jboss.weld.exceptions.DefinitionException: 0
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0"}}
2015-06-24 13:31:01,764 INFO [org.jboss.as.server] (ServerService Thread Pool -- 20) JBAS018559: Deployed "engine.ear" (runtime-name : "engine.ear")
2015-06-24 13:31:01,764 INFO [org.jboss.as.server] (ServerService Thread Pool -- 20) JBAS018559: Deployed "legacy_restapi.war" (runtime-name : "legacy_restapi.war")
2015-06-24 13:31:01,764 INFO [org.jboss.as.server] (ServerService Thread Pool -- 20) JBAS018559: Deployed "restapi.war" (runtime-name : "restapi.war")
2015-06-24 13:31:01,765 INFO [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."engine.ear".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."engine.ear".WeldStartService: Failed to start service
2015-06-24 13:31:01,804 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:8706/management
2015-06-24 13:31:01,804 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:8706
2015-06-24 13:31:01,804 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: WildFly 8.2.0.Final "Tweek" started (with errors) in 8766ms - Started 1046 of 1201 services (52 services failed or missing dependencies, 177 services are lazy, passive or on-demand)
2015-06-24 13:31:02,016 INFO [org.wildfly.extension.undertow] (MSC service thread 1-5) JBAS017535: Unregistered web context: /api
2015-06-24 13:31:02,016 INFO [org.wildfly.extension.undertow] (MSC service thread 1-4) JBAS017535: Unregistered web context: /ovirt-engine/api
2015-06-24 13:31:02,017 INFO [org.wildfly.extension.undertow] (MSC service thread 1-2) JBAS017535: Unregistered web context: /ovirt-engine/webadmin
2015-06-24 13:31:02,016 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017535: Unregistered web context: /
2015-06-24 13:31:02,016 INFO [org.wildfly.extension.undertow] (MSC service thread 1-6) JBAS017535: Unregistered web context: /ovirt-engine/userportal
2015-06-24 13:31:02,019 INFO [org.wildfly.extension.undertow] (MSC service thread 1-1) JBAS017535: Unregistered web context: /ovirt-engine/docs
2015-06-24 13:31:02,020 INFO [org.wildfly.extension.undertow] (MSC service thread 1-8) JBAS017535: Unregistered web context: /ovirt-engine
...
greg@dauntless:~/ovirt-engine/var/log/ovirt-engine % dnf list installed |grep -i weld
Repository patternfly-patternfly-test is listed more than once in the configuration
weld-api.noarch 2.1-3.fc21 @System
weld-core.noarch 2.1.2-4.fc22 @System
weld-parent.noarch 26-3.fc21 @System
greg@dauntless:~/ovirt-engine/var/log/ovirt-engine % dnf list installed |grep -i wildfly
Repository patternfly-patternfly-test is listed more than once in the configuration
ovirt-engine-wildfly.x86_64 8.2.0-1.fc22 @System
ovirt-engine-wildfly-overlay.noarch 001-2.fc22 @System
wildfly.noarch 8.1.0-3.fc22 @System
wildfly-security-manager.noarch 1.0.0-2.fc21 @System
Greg Sheremeta
Red Hat, Inc.
Sr. Software Engineer, RHEV
Cell: 919-807-1086
gshereme(a)redhat.com
9 years, 5 months
oVirt has just moved to WildFly 8.2
by Martin Perina
Hi,
all WildFly related patches were merged, so at the moment for engine development
you need special version of WildFly 8.2 provided by these packages:
ovirt-engine-wildfly-8.2.0-1
ovirt-engine-wildfly-overlay-001-2
Please update you development environment according to information we posted
in previous email [1].
Don't hesitate to contact me or any other infra team member with any issues
you may have with the update.
I would like to thank Juan for his original WildFly patches and especially for
his hard work to make RESTAPI compatible with WildFly.
I would also like to thank Yevgeny and Moti for help with CDI patches, Alon
and Sandro for help with packaging and Python related stuff, Ori for help
with RESTAPI patches, Dima for help with System Testing Framework, Eyal and Max
for help with developer job and Oved for great advices and putting all things
together.
Thanks
Martin Perina
[1] http://lists.ovirt.org/pipermail/devel/2015-June/010832.html
9 years, 5 months
cannot install host: VdsDeployBase, Error during deploy dialog: java.lang.NullPointerException
by Martin Mucha
Hi,
I have difficulties to install host. I do believe it fails due to this:
2015-06-24 08:29:26,729 ERROR [org.ovirt.engine.core.bll.hostdeploy.VdsDeployBase] (VdsDeploy) [612066b7] Error during deploy dialog: java.lang.NullPointerException
at org.ovirt.otopi.dialog.MachineDialogParser.cliEnvironmentGet(MachineDialogParser.java:236) [otopi.jar:]
at org.ovirt.engine.core.bll.hostdeploy.VdsDeploy$43.call(VdsDeploy.java:579) [bll.jar:]
at org.ovirt.engine.core.bll.hostdeploy.VdsDeploy$43.call(VdsDeploy.java:577) [bll.jar:]
at org.ovirt.engine.core.bll.hostdeploy.VdsDeployBase._nextCustomizationEntry(VdsDeployBase.java:202) [bll.jar:]
at org.ovirt.engine.core.bll.hostdeploy.VdsDeployBase._threadMain(VdsDeployBase.java:301) [bll.jar:]
at org.ovirt.engine.core.bll.hostdeploy.VdsDeployBase.access$200(VdsDeployBase.java:45) [bll.jar:]
at org.ovirt.engine.core.bll.hostdeploy.VdsDeployBase$7.run(VdsDeployBase.java:392) [bll.jar:]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_79]
anyone met this? Know how to overcome this? Any hints welcomed.
(alredy tried to remove library from m2 repo to force re-download)
M.
9 years, 5 months
[oVirt 3.6 Localization Question #18] "Snapshots scheduled on volume"
by Yuko Katabami
This is a multi-part message in MIME format.
--------------040608070501080904070304
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Hello all,
I have another question I would like to ask:
*File:***LocalizedEnums
*Resource ID:***AuditLogType___GLUSTER_VOLUME_SNAPSHOT_SCHEDULED
*String:***Snapshots scheduled on volume
*Question: *This string can be interpreted in a few different ways.
Could anyone tell me which one of the following is the correct
interpretation?
1) Snapshots that are scheduled on the volume
2) Snapshots are scheduled on the volume
3) Snapshots have just been scheduled on the volume
Kind regards,
Yuko Katabami
--------------040608070501080904070304
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello all, <br>
<br>
I have another question I would like to ask:<br>
<br>
<b>File:</b><b> </b>LocalizedEnums
<div class="moz-signature"> <b>Resource ID:</b><b> </b>AuditLogType___GLUSTER_VOLUME_SNAPSHOT_SCHEDULED<br>
<b>String:</b><b> </b>Snapshots scheduled on volume<br>
<b>Question: </b>This string can be interpreted in a few
different ways. Could anyone tell me which one of the following is
the correct interpretation?<br>
1) Snapshots that are scheduled on the volume<br>
2) Snapshots are scheduled on the volume<br>
3) Snapshots have just been scheduled on the volume<br>
<br>
Kind regards,<br>
<br>
Yuko Katabami<br>
</div>
<br>
<div class="moz-signature"><font color="#000000" face="arial,
sans-serif" size="2"><br>
</font>
</div>
</body>
</html>
--------------040608070501080904070304--
9 years, 5 months
Move to Jboss Wildfly - planned for Monday, June 22nd
by Oved Ourfali
Hi all!
On Monday, June 22nd, 11:00 CET, we plan to drop JBoss 7.1 support in oVirt 3.6 and move to Jboss WildFly 8.2
(we're still doing final verifications, but it looks promising).
This will allow us to support Fedora 22 properly, and in future versions to leverage some new and cool features.
In addition, Jboss WildFly 8.2 works with OpenJDK 1.8 so you can easily use it for
development on newer distributions where OpenJDK 1.7 is not available (Fedora 21 and 22, for example).
When the patch [1] is merged, you will need WildFly 8.2 to be able to develop
oVirt engine 3.6. Please use following guideline and update your development
environment:
I. Using WildFly 8.2 for oVirt 3.6 development
1. Enable ovirt-master-snapshot-static repository on your development machine
[ovirt-master-snapshot-static]
name=Latest oVirt master additional nightly snapshot
baseurl=http://resources.ovirt.org/pub/ovirt-master-snapshot-static/rpm/@...
enabled=1
skip_if_unavailable=1
gpgcheck=0
Please replace "@DIST@" with "fc" for Fedora or "el" for Centos/RHEL
2. Install WildFly packages:
yum install ovirt-engine-wildfly ovirt-engine-wildfly-overlay
3. Rebase your patches and build oVirt engine (assuming "~/ovirt-engine" as
destination)
make install-dev
5. Setup WildFly overlay (assuming "~/ovirt-engine" as destination)
echo "ENGINE_JAVA_MODULEPATH=\"/usr/share/ovirt-engine-wildfly-overlay/modules:\${ENGINE_JAVA_MODULEPATH}\"" \
> ~/ovirt-engine/etc/ovirt-engine/engine.conf.d/20-setup-jboss-overlay.conf
6. Execute setup
cd ~/ovirt-engine
./bin/engine-setup
7. Start engine service
cd ~/ovirt-engine
./share/ovirt-engine/services/ovirt-engine/ovirt-engine.py start
II. Using JBoss 7.1.1 for 3.5 environment
Using JBoss 7.1.1 on 3.5 is still possible, by doing the following:
1. Install JBoss 7.1.1 RPM from ovirt-master-snapshot-static repo using
yum install ovirt-engine-jboss-as
2. Build oVirt engine 3.5 with your backported feature (assuming
"~/ovirt-engine" as destination)
make install-dev
3. Execute setup
cd ~/ovirt-engine
./bin/engine-setup--jboss-home=/usr/share/ovirt-engine-jboss-as
4. Start engine service
cd ~/ovirt-engine
./share/ovirt-engine/services/ovirt-engine/ovirt-engine.py start
Once merged, we will send an E-mail to make sure you're all aware, and that you can do the steps described above.
We're here for any issue you might have (specifically Martin who is responsible for this effort, and myself).
Don't hesitate to contact us for any issue, either by mail or irc (mperina or oved).
Regards,
Oved
[1] https://gerrit.ovirt.org/40152
9 years, 5 months
spm changes hourly due to unexpected error of getAllTasksStatuses
by like.ma@cs2c.com.cn
Hello all,
In our ovirt environment(oVirt 3.4.4), we have 2 hosts, and the spm changes hourly between the 2 hosts. In the events of DataCenters there is following message each hour:
'Data Center is being initialized, please wait for initialization to complete'
In the vdsm.log i found following error message:
Thread-13::ERROR::2015-06-23 13:38:36,667::task::866::TaskManager.Task::(_setError) Task=`e450d7d6-771d-4c51-90b7-c6b10da37897`::Unexpected error
Traceback (most recent call last):
File "/usr/share/vdsm/storage/task.py", line 873, in _run
return fn(*args, **kargs)
File "/usr/share/vdsm/logUtils.py", line 45, in wrapper
res = f(*args, **kwargs)
File "/usr/share/vdsm/storage/hsm.py", line 2125, in getAllTasksStatuses
allTasksStatus = sp.getAllTasksStatuses()
File "/usr/share/vdsm/storage/securable.py", line 73, in wrapper
raise SecureError("Secured object is not in safe state")
SecureError: Secured object is not in safe state
The attachment is vdsm.log and engine.log. The error occured at 2015-06-23 13:38 and 2015-06-23 15:38 in vdsm.log.
(by the way, in the other host the error occured at 2015-06-23 12:38 and 2015-06-23 14:38)
And in the engine.log i found following error message:
2015-06-23 13:38:37,933 ERROR [org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand] (DefaultQuartzScheduler_Worker-34) [781beaea] IrsBroker::Failed::UpdateVMVDS due to: XmlRpcException: <type 'exceptions.UnicodeDecodeError'>:'utf8' codec can't decode byte 0xeb in position 749: invalid continuation byte
2015-06-23 13:38:37,971 ERROR [org.ovirt.engine.core.bll.OvfDataUpdater] (DefaultQuartzScheduler_Worker-34) [781beaea] Exception while trying to update or remove VMs/Templates ovf in Data Center Default.: org.ovirt.engine.core.common.errors.VdcBLLException: VdcBLLException: java.lang.reflect.UndeclaredThrowableException (Failed with error VDS_NETWORK_ERROR and code 5022)
at org.ovirt.engine.core.bll.VdsHandler.handleVdsResult(VdsHandler.java:116) [bll.jar:]
at org.ovirt.engine.core.bll.VDSBrokerFrontendImpl.RunVdsCommand(VDSBrokerFrontendImpl.java:33) [bll.jar:]
at org.ovirt.engine.core.bll.OvfDataUpdater.executeUpdateVmInSpmCommand(OvfDataUpdater.java:383) [bll.jar:]
at org.ovirt.engine.core.bll.OvfDataUpdater.performOvfUpdate(OvfDataUpdater.java:163) [bll.jar:]
at org.ovirt.engine.core.bll.OvfDataUpdater.updateOvfForVmsOfStoragePool(OvfDataUpdater.java:135) [bll.jar:]
at org.ovirt.engine.core.bll.OvfDataUpdater.ovfUpdate_timer(OvfDataUpdater.java:93) [bll.jar:]
at sun.reflect.GeneratedMethodAccessor250.invoke(Unknown Source) [:1.7.0_65]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_65]
at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_65]
at org.ovirt.engine.core.utils.timer.JobWrapper.execute(JobWrapper.java:60) [scheduler.jar:]
at org.quartz.core.JobRunShell.run(JobRunShell.java:213) [quartz.jar:]
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557) [quartz.jar:]
Can anyone help?
Thanks
like.ma(a)cs2c.com.cn
9 years, 5 months
[oVirt 3.6 Localization Question #20] "Add new Label to"
by Yuko Katabami
This is a multi-part message in MIME format.
--------------060802070401070402040008
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Hi,
I would like to ask you another question.
*
File:***UIConstants
*Resource ID:***newLabel
*String:***Add new Label to
*Question: *Could anyone tell me how / where this string appears in the
GUI? In Japanese translation, order of the words is different from
English, and I would like to make sure it works when it is shown on the
screen.
Kind regards,
Yuko*
*
--------------060802070401070402040008
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
I would like to ask you another question.<br>
<b><br>
File:</b><b> </b><a class="GOKOG0LCMM active_link">UIConstants</a>
<div class="moz-signature"><b>Resource ID:</b><b> </b><span
class="txt--meta">newLabel</span><br>
<b>String:</b><b> </b>Add<span class="cm-space"> </span>new<span
class="cm-space"> </span>Label<span class="cm-space"> </span>to<br>
<b>Question: </b>Could anyone tell me how / where this string
appears in the GUI? In Japanese translation, order of the words is
different from English, and I would like to make sure it works
when it is shown on the screen.<br>
<br>
Kind regards,<br>
<br>
Yuko<b> <br>
</b></div>
</body>
</html>
--------------060802070401070402040008--
9 years, 5 months