[Engine-devel] Unable to add second Data domain to my Data Center.
Hello, I am trying to setup a host for a seperate oVirt engine/node environment (version 3.1). I managed to get my host up and running and active in my Data Center. I managed to create 4 storage domains on that host. 2 Data domains and 1 ISO domain and one Export domain. I am successful in attaching the ISO/Export/smaller Data domain to my Data Center. The web admin interface is indicating they are active. I activated my smaller test Data domain because I was having some issues earlier getting my storage attached. I worked through those issues and now I want to attach my actual Data storage so I can detach the test one. Whenever I attempt to attach the storage I get an error message and when I look in the vdsm log I see the following: Thread-2801::ERROR::2013-01-17 16:55:22,340::task::853::TaskManager.Task:: (_setError) Task=`fe1ac39e-7681-4043-b2b7-b6e2611e1c10`::Unexpected error Traceback (most recent call last): File "/usr/share/vdsm/storage/task.py", line 861, in _run return fn(*args, **kargs) File "/usr/share/vdsm/logUtils.py", line 38, in wrapper res = f(*args, **kwargs) File "/usr/share/vdsm/storage/hsm.py", line 960, in attachStorageDomain pool.attachSD(sdUUID) File "/usr/share/vdsm/storage/securable.py", line 63, in wrapper return f(self, *args, **kwargs) File "/usr/share/vdsm/storage/sp.py", line 919, in attachSD dom.acquireClusterLock(self.id) File "/usr/share/vdsm/storage/sd.py", line 429, in acquireClusterLock self._clusterLock.acquire(hostID) File "/usr/share/vdsm/storage/safelease.py", line 205, in acquire "Cannot acquire cluster lock", str(e)) AcquireLockFailure: Cannot obtain lock: "id=807c2e91-52c3-4779-9ebb-771b96bf5a4c, rc=28, out=Cannot acquire cluster lock, err=(28, 'Sanlock resource not acquired', 'No space left on device')" Thread-2801::DEBUG::2013-01-17 16:55:22,341::task::872::TaskManager.Task:: (_run) Task=`fe1ac39e-7681-4043-b2b7-b6e2611e1c10`::Task._run: fe1ac39e-7681-4043-b2b7-b6e2611e1c10 ('807c2e91-52c3-4779-9ebb-771b96bf5a4c', '58 49b030-626e-47cb-ad90-3ce782d831b3') {} failed - stopping task Which seems to indicate the disk is full. Which is not the case as this is a brand new machine with a fresh install and a 1T drive in it. The error does point to sanlock so when I look at the sanlock log I see this: 2013-01-17 16:55:22-0500 4161 [3187]: r12 cmd_acquire 3,14,3830 invalid lockspace found -1 failed 0 name 807c2e91-52c3-4779-9ebb-771b96bf5a4c I googled around for that particular error message and I couldn't find anyone with any suggestions as to the source of that problem. Could someone please give me a pointer of where to look or help me debug the issue. Thanks, Alexander ___ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
[Engine-devel] Latest open jdk and JBOSS
Just an FYI there is an issue with the latest openjdk and JBOSS which causes JBOSS to NOT start. Details can be found here: https://community.jboss.org/message/796347#796347 I did upgrade yesterday and I am having the exact same issue. For now do not upgrade your open jdk to the latest version. Alexander. ___ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
Re: [Engine-devel] webadmin: left pane ("System") tree disappeared?
Make sure you update your database, I had the same thing, I had a missing entry or table or something, once I updated the database and restarted jboss it was fine. On Friday, March 08, 2013 11:24:15 AM Einav Cohen wrote: > http://oi49.tinypic.com/34r817t.jpg > > latest upstream (gerrit.ovirt.org / master), no left-pane System tree. > > [Expand All, Collapse All and refresh buttons are still there] > [Bookmarks and Tags sections are OK] > > any idea? > > > Thanks, > Einav ___ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
Re: [Engine-devel] How get all language WebAdm ?
You need to compile GWT with the appropriate language profile. If you want to compile with all languages make sure to include the all-langs profile in your maven build command. for instance: mvn clean install -Pdep,gwt-user,gwt-admin,all-langs Be aware that compiling all languages will take a long time ~30 minutes on my machine. You can specify particular languages to cut down on compile time. Alexander On Wednesday, April 17, 2013 09:27:25 PM 李强 wrote: HI:All I install ovirt engine and open IE9 to manage. But I select Chinese language UI to display and failed. The UI's language always is Englisth and covers to Other language failed. OS:federa 18. Ovirt-Engine:3.2 MEM Size:4G DIsk:60G CPU:intel i7 Manage OS:Win7 Sp1 Manage IE:9 Can you help me? Thanks, ___ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
Re: [Engine-devel] if there is a updated debug environment how to?
On Friday, June 07, 2013 03:46:12 AM Alon Bar-Lev wrote: > - Original Message - > > > From: "bigclouds" > > To: "Alon Bar-Lev" > > Cc: "Eli Mesika" , "engine-devel" > > Sent: Friday, June 7, 2013 10:29:25 AM > > Subject: Re:Re: [Engine-devel] if there is a updated debug environment how > > to? > > > > so many thinks,i finally make it. > > > > if i can debug gwt in this environment? and how? > > > > > > if this link is still in use, http://www.ovirt.org/DebugFrontend > > > > thanks. > > This is interesting, I would like to work with someone that knows GWT to > make this happen. > > If I read this correctly, all you need to do is: > > $ make install-dev PREFIX="${HOME}/ovirt-engine" > EXTRA_BUILD_FLAGS_DEV="-Pgwtdev" > > And connect eclipse using the standard jboss debug port. > > But I know nothing of GWT, I will appreciate help in that... > > How do we connect to a running instance of jboss and debug gwt, what setting > should we have? > Once you have the engine up and running as explained about, you can use http://www.ovirt.org/DebugFrontend to run GWT debugging. You can safely skip step 0 in that document (I think that needs to be updated). And start at step 1. The document explains quite well what to do, but the short version is: 1. cd into the source code directory of either webadmin or user portal. Usually: ovirt- engine/frontend/webadmin/modules/(webadmin or userportal-gwtp) 2. mvn gwt:debug -Pgwtdev,gwt-admin,gwt-user -Dgwt.noserver=true from the command line. Once it is done compiling it will tell you it is listening on port 8000. 3.In eclipse (or your favorite java IDE) make a remote java application connection to port 8000 4. Once connected this will open up a GWT debug window. 5. In your browser as ?gwt.codesvr=127.0.0.1:9997 to the url you are working with and refresh the page. 6. It will either ask you to install the plugin in your browser or load the page depending on if you have the plugin already. Alexander > Thanks! > > > At 2013-06-07 14:55:41,"Alon Bar-Lev" wrote: > > >- Original Message - > > > > > >> From: "bigclouds" > > >> To: "Eli Mesika" > > >> Cc: "engine-devel" > > >> Sent: Friday, June 7, 2013 3:49:15 AM > > >> Subject: Re: [Engine-devel] if there is a updated debug environment how > > >> to? > > >> > > >> hi: > > >> there is error when engine-setup-2. finally only 8702 and 8703 port is > > >> in > > >> listen state. > > >> i can not visit 8080 via browser. > > > > > >Well, if setup fails... probably application won't work. > > > > > >> engine-setup-2 > > >> [ INFO ] Creating CA > > >> [ INFO ] Creating database schema > > >> [ ERROR ] Failed to execute stage 'Misc configuration': Command > > >> '/home/best/ovirt-engine/share/ovirt-engine/dbscripts/create_schema.sh' > > >> failed to execute > > >> [ INFO ] Stage: Clean up > > >> Log file is located at /tmp/ovirt-engine-setup-20130606172206.log > > > > > >What database have you used? > > >If you don't have anything important there, can you please try to > > >initialize it so you start fresh? > > > > > ># systemctl stop postgresql.service > > ># rm -fr /var/lib/pgsql > > ># postgresql-setup initdb > > ># vi /var/lib/pgsql/data/pg_hba.conf > > >modify 127.0.0.1/32 and ::1/128 lines to password at last field > > ># su - postgres -c psql -d template1 > > >template1=# create user engine password 'engine'; > > >template1=# create database engine owner engine; > > ># \q > > > > > >> At 2013-06-06 05:17:07,"Eli Mesika" wrote: > > >> >- Original Message - > > >> > > > >> >> From: "bigclouds" > > >> >> To: "engine-devel" > > >> >> Sent: Wednesday, June 5, 2013 12:34:30 PM > > >> >> Subject: [Engine-devel] if there is a updated debug environment how > > >> >> to? > > >> >> > > >> >> hi, engine guys: > > >> >> i want to make a engine debug environment for a looong time, due to > > >> >> all > > >> >> > > >> >> kinds > > >> >> > > >> >> of reasons i have not made it. > > >> >> now i still have the need for a debug environment. (it seems like > > >> >> that > > >> >> i > > >> >> > > >> >> am > > >> >> > > >> >> keeped away from you all) > > >> >> if there is a updated doc for building engine debug environment? > > >> >> thanks so much. > > >> > > > >> >Please follow Allon's B L doc on how to create a development > > >> >environment > > >> > > > >> >http://www.ovirt.org/OVirt_Engine_Development_Environment > > >> > > > >> >> ___ > > >> >> Engine-devel mailing list > > >> >> Engine-devel@ovirt.org > > >> >> http://lists.ovirt.org/mailman/listinfo/engine-devel > > >> > > >> __ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
Re: [Engine-devel] if there is a updated debug environment how to?
On Friday, June 07, 2013 08:26:32 AM Alon Bar-Lev wrote: > - Original Message - > > > From: "Alexander Wels" > > To: engine-devel@ovirt.org > > Cc: "Alon Bar-Lev" , "bigclouds" > > Sent: Friday, June 7, 2013 3:09:19 PM > > Subject: Re: [Engine-devel] if there is a updated debug environment how > > to? > > > > On Friday, June 07, 2013 03:46:12 AM Alon Bar-Lev wrote: > > > - Original Message - > > > > > > > From: "bigclouds" > > > > To: "Alon Bar-Lev" > > > > Cc: "Eli Mesika" , "engine-devel" > > > > Sent: Friday, June 7, 2013 10:29:25 AM > > > > Subject: Re:Re: [Engine-devel] if there is a updated debug environment > > > > how > > > > to? > > > > > > > > so many thinks,i finally make it. > > > > > > > > if i can debug gwt in this environment? and how? > > > > > > > > > > > > if this link is still in use, http://www.ovirt.org/DebugFrontend > > > > > > > > thanks. > > > > > > This is interesting, I would like to work with someone that knows GWT to > > > make this happen. > > > > > > If I read this correctly, all you need to do is: > > > > > > $ make install-dev PREFIX="${HOME}/ovirt-engine" > > > EXTRA_BUILD_FLAGS_DEV="-Pgwtdev" > > > > > > And connect eclipse using the standard jboss debug port. > > > > > > But I know nothing of GWT, I will appreciate help in that... > > > > > > How do we connect to a running instance of jboss and debug gwt, what > > > setting > > > should we have? > > Hi Alex, > > > Once you have the engine up and running as explained about, you can use > > http://www.ovirt.org/DebugFrontend to run GWT debugging. You can safely > > skip step 0 > > in that document (I think that needs to be updated). And start at step 1. > > The document explains quite well what to do, but the short version is: > > > > 1. cd into the source code directory of either webadmin or user portal. > > Usually: ovirt- > > engine/frontend/webadmin/modules/(webadmin or userportal-gwtp) > > 2. mvn gwt:debug -Pgwtdev,gwt-admin,gwt-user -Dgwt.noserver=true from the > > command line. Once it is done compiling it will tell you it is listening > > on > > port 8000. > > This will not run as jboss, right? No it is a normal java application (The GWT debugger). > Or you mean it will run on the jboss of the legacy (not the new > environment). I would like a solution in which we can use the already > running jboss instance that use for production in order to debug gwt. Is > that possible? > I guess some properties need to be passed, or new modules. > > Thanks! The GWT debugger is completely agnostic with regards to what serves the host page. The GWT debugger is connected to the browser, not the server. The host page can be served from a local JBOSS, a remote Apache, a file, whatever. The GWT debugger doesn't care as it is talking to the browser. IMO the only thing we could do to improve this is update the make file to provide a target to start the debugger, which basically just calls maven with the appropriate parameters. > > > 3.In eclipse (or your favorite java IDE) make a remote java application > > connection to > > port 8000 > > 4. Once connected this will open up a GWT debug window. > > 5. In your browser as ?gwt.codesvr=127.0.0.1:9997 to the url you are > > working with and > > refresh the page. > > 6. It will either ask you to install the plugin in your browser or load > > the > > page depending > > on if you have the plugin already. > > > > Alexander > > > > > Thanks! > > > > > > > At 2013-06-07 14:55:41,"Alon Bar-Lev" wrote: > > > > >- Original Message - > > > > > > > > > >> From: "bigclouds" > > > > >> To: "Eli Mesika" > > > > >> Cc: "engine-devel" > > > > >> Sent: Friday, June 7, 2013 3:49:15 AM > > > > >> Subject: Re: [Engine-devel] if there is a updated debug environment > > > > >> how > > > > >> to? > > > > >> > > > > >> hi: > > > > >> there is error when engine-setup-2. finally only 8702 and 8703 port > > > > >> is > > > > >> in > >
Re: [Engine-devel] if there is a updated debug environment how to?
On Friday, June 07, 2013 12:22:10 PM Alon Bar-Lev wrote: > - Original Message - > > > From: "Alexander Wels" > > To: "Alon Bar-Lev" > > Cc: engine-devel@ovirt.org, "bigclouds" > > Sent: Friday, June 7, 2013 4:14:59 PM > > Subject: Re: [Engine-devel] if there is a updated debug environment how > > to? > > > > On Friday, June 07, 2013 08:26:32 AM Alon Bar-Lev wrote: > > > - Original Message - > > > > > > > From: "Alexander Wels" > > > > To: engine-devel@ovirt.org > > > > Cc: "Alon Bar-Lev" , "bigclouds" > > > > > > > > Sent: Friday, June 7, 2013 3:09:19 PM > > > > Subject: Re: [Engine-devel] if there is a updated debug environment > > > > how > > > > to? > > > > > > > > On Friday, June 07, 2013 03:46:12 AM Alon Bar-Lev wrote: > > > > > - Original Message - > > > > > > > > > > > From: "bigclouds" > > > > > > To: "Alon Bar-Lev" > > > > > > Cc: "Eli Mesika" , "engine-devel" > > > > > > Sent: Friday, June 7, 2013 10:29:25 AM > > > > > > Subject: Re:Re: [Engine-devel] if there is a updated debug > > > > > > environment > > > > > > how > > > > > > to? > > > > > > > > > > > > so many thinks,i finally make it. > > > > > > > > > > > > if i can debug gwt in this environment? and how? > > > > > > > > > > > > > > > > > > if this link is still in use, http://www.ovirt.org/DebugFrontend > > > > > > > > > > > > thanks. > > > > > > > > > > This is interesting, I would like to work with someone that knows > > > > > GWT > > > > > to > > > > > make this happen. > > > > > > > > > > If I read this correctly, all you need to do is: > > > > > > > > > > $ make install-dev PREFIX="${HOME}/ovirt-engine" > > > > > EXTRA_BUILD_FLAGS_DEV="-Pgwtdev" > > > > > > > > > > And connect eclipse using the standard jboss debug port. > > > > > > > > > > But I know nothing of GWT, I will appreciate help in that... > > > > > > > > > > How do we connect to a running instance of jboss and debug gwt, what > > > > > setting > > > > > should we have? > > > > > > Hi Alex, > > > > > > > Once you have the engine up and running as explained about, you can > > > > use > > > > http://www.ovirt.org/DebugFrontend to run GWT debugging. You can > > > > safely > > > > skip step 0 > > > > in that document (I think that needs to be updated). And start at step > > > > 1. > > > > The document explains quite well what to do, but the short version is: > > > > > > > > 1. cd into the source code directory of either webadmin or user > > > > portal. > > > > Usually: ovirt- > > > > engine/frontend/webadmin/modules/(webadmin or userportal-gwtp) > > > > 2. mvn gwt:debug -Pgwtdev,gwt-admin,gwt-user -Dgwt.noserver=true from > > > > the > > > > command line. Once it is done compiling it will tell you it is > > > > listening > > > > on > > > > port 8000. > > > > > > This will not run as jboss, right? > > > > No it is a normal java application (The GWT debugger). > > > > > Or you mean it will run on the jboss of the legacy (not the new > > > environment). I would like a solution in which we can use the already > > > running jboss instance that use for production in order to debug gwt. Is > > > that possible? > > > I guess some properties need to be passed, or new modules. > > > > > > Thanks! > > > > The GWT debugger is completely agnostic with regards to what serves the > > host page. The GWT debugger is connected to the browser, not the server. > > The host page can be served from a local JBOSS, a remote Apache, a file, > > whatever. The GWT debugger doesn't care as it is talking to the browser. > > Can you please explain this text from the wiki: > > gwt.noserver tells Development Mode that the application is already deplo
Re: [Engine-devel] if there is a updated debug environment how to?
On Friday, June 07, 2013 03:20:11 PM Alon Bar-Lev wrote: > - Original Message - > > > From: "Alexander Wels" > > To: "Alon Bar-Lev" > > Cc: engine-devel@ovirt.org, "bigclouds" > > Sent: Friday, June 7, 2013 8:35:27 PM > > Subject: Re: [Engine-devel] if there is a updated debug environment how > > to? > > > > On Friday, June 07, 2013 12:22:10 PM Alon Bar-Lev wrote: > > > - Original Message - > > > > > > > From: "Alexander Wels" > > > > To: "Alon Bar-Lev" > > > > Cc: engine-devel@ovirt.org, "bigclouds" > > > > Sent: Friday, June 7, 2013 4:14:59 PM > > > > Subject: Re: [Engine-devel] if there is a updated debug environment > > > > how > > > > to? > > > > > > > > On Friday, June 07, 2013 08:26:32 AM Alon Bar-Lev wrote: > > > > > - Original Message - > > > > > > > > > > > From: "Alexander Wels" > > > > > > To: engine-devel@ovirt.org > > > > > > Cc: "Alon Bar-Lev" , "bigclouds" > > > > > > > > > > > > Sent: Friday, June 7, 2013 3:09:19 PM > > > > > > Subject: Re: [Engine-devel] if there is a updated debug > > > > > > environment > > > > > > how > > > > > > to? > > > > > > > > > > > > On Friday, June 07, 2013 03:46:12 AM Alon Bar-Lev wrote: > > > > > > > - Original Message - > > > > > > > > > > > > > > > From: "bigclouds" > > > > > > > > To: "Alon Bar-Lev" > > > > > > > > Cc: "Eli Mesika" , "engine-devel" > > > > > > > > Sent: Friday, June 7, 2013 10:29:25 > > > > > > > > AM > > > > > > > > Subject: Re:Re: [Engine-devel] if there is a updated debug > > > > > > > > environment > > > > > > > > how > > > > > > > > to? > > > > > > > > > > > > > > > > so many thinks,i finally make it. > > > > > > > > > > > > > > > > if i can debug gwt in this environment? and how? > > > > > > > > > > > > > > > > > > > > > > > > if this link is still in use, > > > > > > > > http://www.ovirt.org/DebugFrontend > > > > > > > > > > > > > > > > thanks. > > > > > > > > > > > > > > This is interesting, I would like to work with someone that > > > > > > > knows > > > > > > > GWT > > > > > > > to > > > > > > > make this happen. > > > > > > > > > > > > > > If I read this correctly, all you need to do is: > > > > > > > > > > > > > > $ make install-dev PREFIX="${HOME}/ovirt-engine" > > > > > > > EXTRA_BUILD_FLAGS_DEV="-Pgwtdev" > > > > > > > > > > > > > > And connect eclipse using the standard jboss debug port. > > > > > > > > > > > > > > But I know nothing of GWT, I will appreciate help in that... > > > > > > > > > > > > > > How do we connect to a running instance of jboss and debug gwt, > > > > > > > what > > > > > > > setting > > > > > > > should we have? > > > > > > > > > > Hi Alex, > > > > > > > > > > > Once you have the engine up and running as explained about, you > > > > > > can > > > > > > use > > > > > > http://www.ovirt.org/DebugFrontend to run GWT debugging. You can > > > > > > safely > > > > > > skip step 0 > > > > > > in that document (I think that needs to be updated). And start at > > > > > > step > > > > > > 1. > > > > > > The document explains quite well what to do, but the short version > > > > > > is: > > > > > > > > > > > > 1. cd into the source code directory of either webadmin or user > > > > > > portal. > >
Re: [Engine-devel] if there is a updated debug environment how to?
On Friday, June 07, 2013 03:51:17 PM Alon Bar-Lev wrote: > - Original Message - > > > From: "Alexander Wels" > > To: "Alon Bar-Lev" > > Cc: engine-devel@ovirt.org, "bigclouds" > > Sent: Friday, June 7, 2013 10:27:54 PM > > Subject: Re: [Engine-devel] if there is a updated debug environment how > > to? > > > > On Friday, June 07, 2013 03:20:11 PM Alon Bar-Lev wrote: > > > - Original Message - > > > > > > > From: "Alexander Wels" > > > > To: "Alon Bar-Lev" > > > > Cc: engine-devel@ovirt.org, "bigclouds" > > > > Sent: Friday, June 7, 2013 8:35:27 PM > > > > Subject: Re: [Engine-devel] if there is a updated debug environment > > > > how > > > > to? > > > > > > > > On Friday, June 07, 2013 12:22:10 PM Alon Bar-Lev wrote: > > > > > - Original Message - > > > > > > > > > > > From: "Alexander Wels" > > > > > > To: "Alon Bar-Lev" > > > > > > Cc: engine-devel@ovirt.org, "bigclouds" > > > > > > Sent: Friday, June 7, 2013 4:14:59 PM > > > > > > Subject: Re: [Engine-devel] if there is a updated debug > > > > > > environment > > > > > > how > > > > > > to? > > > > > > > > > > > > On Friday, June 07, 2013 08:26:32 AM Alon Bar-Lev wrote: > > > > > > > - Original Message - > > > > > > > > > > > > > > > From: "Alexander Wels" > > > > > > > > To: engine-devel@ovirt.org > > > > > > > > Cc: "Alon Bar-Lev" , "bigclouds" > > > > > > > > > > > > > > > > Sent: Friday, June 7, 2013 3:09:19 PM > > > > > > > > Subject: Re: [Engine-devel] if there is a updated debug > > > > > > > > environment > > > > > > > > how > > > > > > > > to? > > > > > > > > > > > > > > > > On Friday, June 07, 2013 03:46:12 AM Alon Bar-Lev wrote: > > > > > > > > > - Original Message - > > > > > > > > > > > > > > > > > > > From: "bigclouds" > > > > > > > > > > To: "Alon Bar-Lev" > > > > > > > > > > Cc: "Eli Mesika" , "engine-devel" > > > > > > > > > > Sent: Friday, June 7, 2013 > > > > > > > > > > 10:29:25 > > > > > > > > > > AM > > > > > > > > > > Subject: Re:Re: [Engine-devel] if there is a updated debug > > > > > > > > > > environment > > > > > > > > > > how > > > > > > > > > > to? > > > > > > > > > > > > > > > > > > > > so many thinks,i finally make it. > > > > > > > > > > > > > > > > > > > > if i can debug gwt in this environment? and how? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > if this link is still in use, > > > > > > > > > > http://www.ovirt.org/DebugFrontend > > > > > > > > > > > > > > > > > > > > thanks. > > > > > > > > > > > > > > > > > > This is interesting, I would like to work with someone that > > > > > > > > > knows > > > > > > > > > GWT > > > > > > > > > to > > > > > > > > > make this happen. > > > > > > > > > > > > > > > > > > If I read this correctly, all you need to do is: > > > > > > > > > > > > > > > > > > $ make install-dev PREFIX="${HOME}/ovirt-engine" > > > > > > > > > EXTRA_BUILD_FLAGS_DEV="-Pgwtdev" > > > > > > > > > > > > > > > > > > And connect eclipse using the standard jboss debug port. > > > > > > > > > > > > > > > > > > But I k
[Engine-devel] Introducing limited branding support.
Hi Guys, We recently merged at a patch (http://gerrit.ovirt.org/#/c/13181/) that allows for limited branding support of oVirt user portal and web admin. We also moved the styles needed to support this branding out of the application and into its own module. The styles can now be found in ovirt- engine/packaging/branding/ovirt.brand. In this directory you will find the following files: - branding.properties. This file controls the branding theme. - ovirt_messages.properties. A standard java resource bundle properties file containing the messages that can be changed. - A bunch of .css files that contain the classes that can be altered. I have created a wiki page with some information and pictures of what parts of the interface can be changed at this point in time. It is located here: http://www.ovirt.org/Feature/Branding There is also more information in README.branding that got introduced with this patch. Alexander ps. If your user interface looks messed up (missing borders and things of that nature) the engine cannot find the default branding. This means you are not using the make commands recently introduced. We highly recommend you use this to have a complete environment. If you are unwilling or unable to use that you can make a symlink in /etc/ovirt-engine/branding/00-ovirt.brand to ovirt- engine/packaging/branding/ovirt.brand ___ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
Re: [Engine-devel] Dynamic resource loading in GWT
On Wednesday, August 07, 2013 02:48:45 PM Roy Golan wrote: > On 08/07/2013 02:08 PM, Einav Cohen wrote: > > Hi Roy, > > > > a couple of notes (I could be totally wrong here, GWT experts - please > > review/comment): > > > > - from [1]: > > "Provides dynamic string lookup of key/value string pairs defined in a > > module's host HTML page" - there is a chance that a gwt dictionary is > > limited to reading key/value string pairs that reside within the *gwt > > module host HTML page* (i.e., within the context of the GWT application - > > "http://[server]/webadmin/webadmin/...";) and not outside - need to find > > that out. > well the file servlet resides on [server] so I don't think there a "same > origin policy" problem here - correct me if I'm wrong (isn't branding > doing something similar?) > Branding is doing exactly what you are suggesting, generating a dictionary in the host page, and having the GWT application read it at runtime. The only reason we did it like that, is that there is no other way of changing some of the messages at runtime. If there was some way of doing it at compile time I would have done that. Also the number of resources changed by branding is very limited and therefore won't impact the performance as much as doing every single resource. There are advantages and disadvantages of both methods that need to be carefully weighed, and the GWT developers themselves did that and came to the conclusion that compile time inclusion is the best method for most resources. They did however anticipate the need for some runtime resources so they included Dictionary etc. > > - again, from [1]: > > "a variety of error conditions (particularly those involving key > > mismatches) cannot be caught until runtime. Similarly, the GWT compiler > > is unable discard unused dictionary values since the structure cannot be > > statically analyzed". > > (this is expected, as the suggested loading here is dynamic, rather than > > static) > > > > - not sure exactly how this would work with localization; there is "A > > Caveat Regarding Locale" mentioned in [1] - IIUC, we will lose the > > automatic locale-mapping that we have today, and we would need to do it > > ourselves somehow (not a big deal, I suppose, just some extra work that > > needs to be done here). > The branding allows one to define java property bundles for all the supported languages, and will load them at runtime and put the translated strings in the Dictionary in the host page. Again I wouldn't recommend doing it for a large number of resources. > indeed but it will pay off. a change off resources means ctrl+F5 and not > GWT compilation :P > Sure for the developer it would be great, less compiling. However for the user not so much, and in the end we are creating the software for the user and the needs of the developer are secondary to that. When I say it is not so great for the user, I mean the fact that it becomes a lot harder to cache the host page (as the contents can change), vs caching the compiled resources is really easy as the contents won't chance. > > > > Thanks, > > Einav > > > > [1] > > http://www.gwtproject.org/javadoc/latest/com/google/gwt/i18n/client/Dicti > > onary.html > > > > - Original Message - > > > >> From: "Roy Golan" > >> To: "engine-devel" > >> Sent: Wednesday, August 7, 2013 2:59:07 AM > >> Subject: [Engine-devel] Dynamic resource loading in GWT > >> > >> Painful issue here - we all know the regular drill of maintaining > >> messages in many places, I18N files and so on. > >> Also there's a patch to make all available timezone an java enum and by > >> that share it for free with the UI. its a way better than a backend > >> Query. > >> > >> But this is all hard-coded, not flexible, hard to maintain, we all know. > >> > >> Why won't we make GWT load a javascript dictionary/dictionaries from a > >> servlet or our host page html[1] using GWT Dictionary[3]? > >> > >> that way the configuration is shared with the engine, it relies on the > >> disk, customers and GSS can change it on-site and so on. > >> > >> | index.html | -> | file servlet | -> |read /etc/ovirt-engine/conf/...| > >> | > >> ^ > >> | > >> | GWT loads Dictionary | > >> > >> candidates for dynamic resources > >> * I18N resources AppErrors... > >> * config ( just the UI subset ) > >> * osinfo ? > >> > >> > >> > >> [1] host page html - > >> http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.html#DevG > >> uideHostPage [2] Dynamic string internationalisation - > >> http://www.gwtproject.org/doc/latest/DevGuideI18n.html#DevGuideDynamicStr > >> ingInternationalization [3] > >> http://www.gwtproject.org/javadoc/latest/com/google/gwt/i18n/client/Dicti > >> onary.html > >> > >> Thanks, > >> Roy > >> ___ > >> Engine-devel mailing list > >> Engine-devel@ovirt.org > >> http://lists.ovirt.org/mailman/listinfo/engine-devel > > ___
Re: [Engine-devel] users cannot log into userportal
On Thursday, August 08, 2013 09:10:33 PM Einav Cohen wrote: > > - Original Message - > > From: "Dead Horse" > > Sent: Thursday, August 8, 2013 7:51:03 PM > > > > I verified the fix against current master with multiple installs and > > browsers. Thanks guys! > > > > Fix verified to work with: > > Firefox Version 22.0-1 > > Google Chrome Version 28.0.1500.95 > > > > I still noted an odd issue with Firefox Version 17.0.8-1 (Current Firefox > > EL6 Version). > > The login into the user portal succeeds and a successful login is logged, > > however the login remains hung at the login dialog indefinitely. > > Reloading the page and closing the browser does not change things. > > Also removing ~//.mozilla and starting fresh results in the > > same. > > Can someone else check and verify similar oddness with EL6 Firefox. > > similar oddness was indeed encountered lately. Alexander (added) is > currently investigating. > @Alexander - can you please update on the investigation progress in this > thread? As noted this seems to only happen with FF 17 ESR, which is the current EL6 version. If I use firebug or attach a GWT debugger, the problem goes away. Heck if I compile GWT in draft mode the problem goes away. I did however make some progress yesterday in determining the cause. It seems to me that for some reason revealDefaultPlace in the user portal is called multiple times and in certain cases the second time the method is called it never finishes which causes the behavior we are seeing. Still no solution, but this is my top priority to get working. Alexander > > - DHC > > > > > > On Wed, Aug 7, 2013 at 1:50 PM, Dead Horse < deadhorseconsult...@gmail.com > > > wrote: > > > > > > > > I see the fix in Gerrit/GIT. Thanks guys! I will test and update results > > tomorrow morning. > > - DHC > > > > > > On Wed, Aug 7, 2013 at 1:01 PM, Yair Zaslavsky < yzasl...@redhat.com > > > wrote: > > > > > > > > > > > > - Original Message - > > > > > From: "Yair Zaslavsky" < yzasl...@redhat.com > > > > To: "Dead Horse" < deadhorseconsult...@gmail.com > > > > Cc: "engine-devel" < engine-devel@ovirt.org > > > > Sent: Wednesday, August 7, 2013 9:00:34 PM > > > Subject: Re: [Engine-devel] users cannot log into userportal > > > > > > > > > > > > - Original Message - > > > > > > > From: "Dead Horse" < deadhorseconsult...@gmail.com > > > > > To: "Itamar Heim" < ih...@redhat.com > > > > > Cc: "engine-devel" < engine-devel@ovirt.org >, "Yair Zaslavsky" > > > > < yzasl...@redhat.com > > > > > Sent: Wednesday, August 7, 2013 6:14:02 PM > > > > Subject: Re: [Engine-devel] users cannot log into userportal > > > > > > > > BZ994604 ( https://bugzilla.redhat.com/show_bug.cgi?id=994604 ) has > > > > been > > > > opened. > > > > - DHC > > > > > > Thanks for your help DHC, > > > This was already fixed by rnori. > > > > Of course "already fixed" comparing with current time. This was indeed a > > real issue. > > > > > > On Wed, Aug 7, 2013 at 5:35 AM, Itamar Heim < ih...@redhat.com > wrote: > > > > > On 08/07/2013 12:10 AM, Dead Horse wrote: > > > > >> I have found some steps to reproduce this easily. > > > > >> > > > > >> Start the engine bound to an AD for authentication > > > > >> log in to the user portal as an AD user which has been granted a > > > > >> Role > > > > >> (I > > > > >> used PowerUserRole) > > > > >> > > > > >> Result: Login will succeed > > > > >> Data from engine.log: > > > > >> 2013-08-06 15:54:10,088 INFO > > > > >> [org.ovirt.engine.core.bll.**LoginUserCommand] > > > > >> (ajp--127.0.0.1-8702-10) > > > > >> Running command: LoginUserCommand internal: false. > > > > >> 2013-08-06 15:54:10,139 INFO > > > > >> [org.ovirt.engine.core.dal.**dbbroker.auditloghandling.** > > > > >> AuditLogDirector] > > > > >> (ajp--127.0.0.1-8702-10) Correlation ID: 23c4709, Call Stack: null, > > > > >> Custom Event ID: -1, Message: User ovirttest logged in. > > > > >> > > > > >> log out of the user portal > > > > >> Result: log out succeeds > > > > >> Data from engine.log: > > > > >> 2013-08-06 15:54:12,448 INFO > > > > >> [org.ovirt.engine.core.bll.**LogoutUserCommand] > > > > >> (ajp--127.0.0.1-8702-2) > > > > >> Running command: LogoutUserCommand internal: false. > > > > >> 2013-08-06 15:54:12,474 INFO > > > > >> [org.ovirt.engine.core.dal.**dbbroker.auditloghandling.** > > > > >> AuditLogDirector] > > > > >> (ajp--127.0.0.1-8702-2) Correlation ID: 52a89e7d, Call Stack: null, > > > > >> Custom Event ID: -1, Message: User ovirttest logged out. > > > > >> > > > > >> As the same user log in to the user portal again but this purposely > > > > >> input the wrong password. > > > > >> Result: log in will fail > > > > >> Data from engine.log: > > > > >> 2013-08-06 15:54:20,830 ERROR > > > > >> [org.ovirt.engine.core.bll.**adbroker.**GSSAPIDirContextAuthenticat > > > > >> ion** > > > > >> Strategy] > > > > >> (ajp--127.0.0.1-8702-7) Kerberos error: Pre-authentication > > > > >> information > > >
Re: [Engine-devel] users cannot log into userportal
On Friday, August 09, 2013 08:28:15 AM Einav Cohen wrote: > > - Original Message - > > From: "Alexander Wels" > > Sent: Friday, August 9, 2013 8:19:34 AM > > > > On Thursday, August 08, 2013 09:10:33 PM Einav Cohen wrote: > > > > - Original Message - > > > > From: "Dead Horse" > > > > Sent: Thursday, August 8, 2013 7:51:03 PM > > > > > > > > I verified the fix against current master with multiple installs and > > > > browsers. Thanks guys! > > > > > > > > Fix verified to work with: > > > > Firefox Version 22.0-1 > > > > Google Chrome Version 28.0.1500.95 > > > > > > > > I still noted an odd issue with Firefox Version 17.0.8-1 (Current > > > > Firefox > > > > EL6 Version). > > > > The login into the user portal succeeds and a successful login is > > > > logged, > > > > however the login remains hung at the login dialog indefinitely. > > > > Reloading the page and closing the browser does not change things. > > > > Also removing ~//.mozilla and starting fresh results in the > > > > same. > > > > Can someone else check and verify similar oddness with EL6 Firefox. > > > > > > similar oddness was indeed encountered lately. Alexander (added) is > > > currently investigating. > > > @Alexander - can you please update on the investigation progress in this > > > thread? > > > > As noted this seems to only happen with FF 17 ESR, which is the current > > EL6 > > version. If I use firebug or attach a GWT debugger, the problem goes away. > > Heck > > if I compile GWT in draft mode the problem goes away. I did however make > > some > > progress yesterday in determining the cause. It seems to me that for some > > reason revealDefaultPlace in the user portal is called multiple times and > > in certain cases the second time the method is called it never finishes > > which causes the behavior we are seeing. > > > > Still no solution, but this is my top priority to get working. > > many thanks for the update, Alexander. > this is a long shot, but it just occurred to me that recently the Message of > the day feature has been introduced to the user portal login page [1]. > @Alexander - maybe worth investigating in that direction (i.e. if this > patch is reverted, does the problem go away?) > > [1] http://gerrit.ovirt.org/#/c/17545/ > I reversed that patch, but it had no effect on the problem. It did make the weird looking box underneath the login box go away, so at least I know where that came from. > > Alexander > > > > > > - DHC > > > > > > > > > > > > On Wed, Aug 7, 2013 at 1:50 PM, Dead Horse < > > > > deadhorseconsult...@gmail.com > > > > > > > > > wrote: > > > > I see the fix in Gerrit/GIT. Thanks guys! I will test and update > > > > results > > > > tomorrow morning. > > > > - DHC > > > > > > > > > > > > On Wed, Aug 7, 2013 at 1:01 PM, Yair Zaslavsky < yzasl...@redhat.com > > > > > wrote: > > > > > > > > > > > > > > > > > > > > > > > > - Original Message - > > > > > > > > > From: "Yair Zaslavsky" < yzasl...@redhat.com > > > > > > To: "Dead Horse" < deadhorseconsult...@gmail.com > > > > > > Cc: "engine-devel" < engine-devel@ovirt.org > > > > > > Sent: Wednesday, August 7, 2013 9:00:34 PM > > > > > Subject: Re: [Engine-devel] users cannot log into userportal > > > > > > > > > > > > > > > > > > > > - Original Message - > > > > > > > > > > > From: "Dead Horse" < deadhorseconsult...@gmail.com > > > > > > > To: "Itamar Heim" < ih...@redhat.com > > > > > > > Cc: "engine-devel" < engine-devel@ovirt.org >, "Yair Zaslavsky" > > > > > > < yzasl...@redhat.com > > > > > > > Sent: Wednesday, August 7, 2013 6:14:02 PM > > > > > > Subject: Re: [Engine-devel] users cannot log into userportal > > > > > > > > > > > > BZ994604 ( https://bugzilla.redhat.com/show_bug.cgi?id=994604 ) > > > > > > has > > > > > &g
Re: [Engine-devel] IMP: Regarding an issue while translating the error messages for gluster using ErrorTranslator class
Looking at the code, if you start the error message with a $ it will not do the . to _ replacement. Not sure if your error message will now simply start with a $, but it is worth a try I guess. On Wednesday, November 06, 2013 03:37:34 PM Shubhendu Tripathi wrote: > Hi, > > In the case of Gluster, as there are no one to one mappings available > for all the error messages from Gluster, we set the error in the > VdcFault object as NULL. > We also populate the actual error from the Gluster as error message in > the fault object. > > /getReturnValue().getExecuteFailedMessages().add(error);// > //getReturnValue().getFault().setMessage(error);// > //getReturnValue().getFault().setError(null);/ > > Because of above settings and the below code snippet in /Frontend.java/ > class the error message as is gets displayed on the error dialog - > / > //public String translateVdcFault(final VdcFault fault) {// > //return > getVdsmErrorsTranslator().TranslateErrorTextSingle(fault.getError() == > null// > //? fault.getMessage() : fault.getError().toString());// > //}// > / > Well and good till now !! > > But while translation of the error messages, all the occurrences of "." > get replaced with "_". > This causes an issue for the gluster errors. If the error message sent > from gluster has "."s (say IP Address of a host or FQDN for a host), > that also gets replaced with "_" and the error message does not look > correct. > > Request your suggestion for handling such a case. > > *PS: *One thing I can think of is, introducing a flag called > /isExternalError/ in /VdcFault/ class to identify if the source of the > fault is external. From Gluster we would set the flag as /true/, and > while replacement of "." with "_", if the flag is set it will not do the > replacements. > > Regards, > Shubhendu ___ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
Re: [Engine-devel] [UX] how to design a bar/line chart?
Maybe gchart is an option? Examples available here [1] one of the available charts is a spark line. I just don't know how well that will play with our grid implementation. [1] http://clientsidegchart.googlecode.com/svn/trunk/javadoc/com/googlecode/gchart/client/package-summary.html#ChartGallery On Wednesday, November 06, 2013 10:24:56 AM Malini Rao wrote: > Hey all, > > Comments inline- > > > > - Original Message - > > > From: "Tomas Jelinek" > > To: "Einav Cohen" > > Cc: "engine-devel" , "Eldan Hildesheim" > > , "info" , "Malini Rao" > > , "Martin Polednik" Sent: > > Wednesday, November 6, 2013 9:58:03 AM > > Subject: Re: [Engine-devel] [UX] how to design a bar/line chart? > > > > Hi Einav, > > > > - Original Message - > > > > > From: "Einav Cohen" > > > To: "Tomas Jelinek" > > > Cc: "engine-devel" , "Eldan Hildesheim" > > > , "info" , > > > "Malini Rao" > > > Sent: Wednesday, November 6, 2013 3:26:15 PM > > > Subject: Re: [Engine-devel] [UX] how to design a bar/line chart? > > > > > > Hi Tomas, > > > > > > Like Itamar, I think that a line chart is a better idea, and that a > > > chart per monitored fact (rather than a combined chart) is better. > > > > OK > > Based on the original request in the bug, it seems like Itamar is looking > for a trend rather than just one data point. I think we are thinking along > the correct lines here with a line graph but I think more specifically, we > should consider sparklines - > http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001OR. Agree > that we should have one sparkline per fact but we may have to see how this > looks when multiple sparklines reside in columns next to each other. See > example of a grid where there are 2 sparklines next to each other - > http://www.panopticon.com/Tables-Grids > > > > > the statistics readable enough. Maybe if you hover the chart it > > > > > could > > > > > pop > > > > > up a bigger version of the chart? Or not needed? > > > > > > this is a nice-to-have, I think, definitely not needed. > > > > OK > > Agree. As shown in the glucose example in the Tufte link I posted above, > maybe all we need is to indicate the acceptable range with a band and if > the last point is in the range or outside, it will be clear to the user if > they should pay attention to it. > > > > > - Would it be enough to have it in one color? Or should it be > > > > > something > > > > > like "the bigger the utilization the more red"? > > > > > > question is what will happen when there are a lot of "jumps": let's say > > > that the graph changes from 0% to 100% to 0% to 100% and so on... what > > > will be painted red? the entire line, but only in the periods that it > > > jumps to 100%? only the parts of line that are in 100%? > > > maybe a single color is enough. > > > > OK > > One color with a dot to indicate the most recent or most relevant data and > display its value next to the sparkline > > > I have another concern about this feature: currently, the GUI's most > > > frequent > > > refresh rate available is 5 seconds, which means that the line will > > > "change" > > > only every 5 seconds, which would be more noticeably slow when displayed > > > in > > > a form of a line chart (not even talking about lower frequencies). > > > Moreover, I am not sure at what rate the VM statistics are pulled from > > > VDSM, > > > but if it is 10 seconds or 15 seconds, it means that the line in the GUI > > > will > > > be "flat" for every 2 reads / 3 reads, which is not so good, I think. > > > > > > any thoughts around that? > > > > Good point! AFAIK the VDSM is polled each 3 seconds for basic info (e.g. > > the resource > > usage not included) and than every 5th poll (e.g. every 15 seconds) for > > full data > > (with resource usage not included). This would indeed make the graph > > pretty > > useless. > > > > Michal proposed to do some averages on the VDSM site from more frequent > > sampling and > > send this average back to engine when polled - so we would display an > > average after each poll (15s). > > > > I wonder if something like this is not already used on other places: > > @Martin, do you know about something like this? > > Why does the change in the line need to seem palpable every few seconds? I > think the base requirement of how accurate the data is when a user looks at > a grid has not changed.. just the data visualization. Right? So , if the > refresh rate is not a problem today, why is it a problem now? Am I missing > something? > > > - Original Message - > > > > > > > From: "Itamar Heim" > > > > To: "Tomas Jelinek" , "engine-devel" > > > > > > > > Sent: Tuesday, November 5, 2013 10:10:34 AM > > > > Subject: Re: [Engine-devel] [UX] how to design a bar/line chart? > > > > > > > > On 11/05/2013 11:50 AM, Tomas Jelinek wrote: > > > > > Hi all, > > > > > > > > > > There is a feature request [1] which aims to replace the resource > > > > > utilization graphs (for example the cpu util
Re: [Engine-devel] [UX] how to design a bar/line chart?
I suppose we need to answer a few questions before we can go into which library is better: 1. Do we mind sending data over to Google so Google can render images for us. 2. Are we fine with just an image being displayed in the grid? If we aren't okay with #1, we will have to create some sort of servlet to generate the images. 3. Do we want the client to render the spark lines using javascript? 4. Do we want interactivity with these visualizations? For instance if I move my mouse over the spark line, does the value displayed change? 5. Can we display whatever we choice in our current grid implementation? I know the amount of javascript we can apply to it is somewhat limited right now. 6. Any other consideration I am not thinking of? Alexander On Wednesday, November 06, 2013 11:03:06 AM Malini Rao wrote: > Is this a possibility? Looks nicer. http://style.org/chartapi/sparklines/ > > - Original Message - > From: "Alexander Wels" > To: engine-devel@ovirt.org > Cc: "Malini Rao" , "Tomas Jelinek" , > "Eldan Hildesheim" , "info" Sent: > Wednesday, November 6, 2013 10:46:01 AM > Subject: Re: [Engine-devel] [UX] how to design a bar/line chart? > > Maybe gchart is an option? Examples available here [1] one of the available > charts is a spark line. I just don't know how well that will play with our > grid implementation. > > [1] > http://clientsidegchart.googlecode.com/svn/trunk/javadoc/com/googlecode/gcha > rt/client/package-summary.html#ChartGallery > On Wednesday, November 06, 2013 10:24:56 AM Malini Rao wrote: > > Hey all, > > > > Comments inline- > > > > > > > > - Original Message - > > > > > From: "Tomas Jelinek" > > > To: "Einav Cohen" > > > Cc: "engine-devel" , "Eldan Hildesheim" > > > , "info" , "Malini Rao" > > > , "Martin Polednik" Sent: > > > Wednesday, November 6, 2013 9:58:03 AM > > > Subject: Re: [Engine-devel] [UX] how to design a bar/line chart? > > > > > > Hi Einav, > > > > > > - Original Message - > > > > > > > From: "Einav Cohen" > > > > To: "Tomas Jelinek" > > > > Cc: "engine-devel" , "Eldan Hildesheim" > > > > , "info" , > > > > "Malini Rao" > > > > Sent: Wednesday, November 6, 2013 3:26:15 PM > > > > Subject: Re: [Engine-devel] [UX] how to design a bar/line chart? > > > > > > > > Hi Tomas, > > > > > > > > Like Itamar, I think that a line chart is a better idea, and that a > > > > chart per monitored fact (rather than a combined chart) is better. > > > > > > OK > > > > Based on the original request in the bug, it seems like Itamar is looking > > for a trend rather than just one data point. I think we are thinking along > > the correct lines here with a line graph but I think more specifically, we > > should consider sparklines - > > http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001OR. Agree > > that we should have one sparkline per fact but we may have to see how this > > looks when multiple sparklines reside in columns next to each other. See > > example of a grid where there are 2 sparklines next to each other - > > http://www.panopticon.com/Tables-Grids > > > > > > > > the statistics readable enough. Maybe if you hover the chart it > > > > > > could > > > > > > pop > > > > > > up a bigger version of the chart? Or not needed? > > > > > > > > this is a nice-to-have, I think, definitely not needed. > > > > > > OK > > > > Agree. As shown in the glucose example in the Tufte link I posted above, > > maybe all we need is to indicate the acceptable range with a band and if > > the last point is in the range or outside, it will be clear to the user if > > they should pay attention to it. > > > > > > > > - Would it be enough to have it in one color? Or should it be > > > > > > something > > > > > > like "the bigger the utilization the more red"? > > > > > > > > question is what will happen when there are a lot of "jumps": let's > > > > say > > > > that the graph changes from 0% to 100% to 0% to 100% and so on... what > > > > will be painted red? the entire line, but only in the periods that it > > > > jumps to 10
Re: [Engine-devel] [UX] how to design a bar/line chart?
On Thursday, November 07, 2013 05:44:07 PM Ewoud Kohl van Wijngaarden wrote: > On Wed, Nov 06, 2013 at 11:45:36AM -0500, Alexander Wels wrote: > > I suppose we need to answer a few questions before we can go into which > > library is better: > > > > 1. Do we mind sending data over to Google so Google can render images for > > us. > I'd say no. Even from a reliability point of view since users may have > systems that aren't connected to the internet. (Though I don't know how > well oVirt handles this currently.) That would eliminate the entire Google charting api as that requires an active connection to at least retrieve some stuff from www.google.com/jsapi. ___ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
[Engine-devel] UI Refresh synchronization
Hi guys, I am working on providing our users with a better experience in regards to refresh synchronization. Quite often it will happen that you as a user will do a particular action, and it takes a whole refresh cycle for you to see the UI updated in response to that action. For instance if you remove a VM in the webadmin and click the ok button in the UI, the grid will still show the VM until the next refresh cycle, not when the VM is actually removed. I have created a wiki page that outlines the issues, and the ways we are intending to solve these issues [1]. Feel free to comment/e-mail/etc to let me know what you guys think. Alexander [1] http://www.ovirt.org/Features/Design/UIRefreshSynchronization ___ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
Re: [Engine-devel] [UX] how to design a bar/line chart?
"Tomas Jelinek" > > >>> To: "Eldan Hildesheim" > > >>> Cc: "Einav Cohen" , "info" , > > >>> engine-devel@ovirt.org > > >>> Sent: Monday, November 11, 2013 12:03:15 PM > > >>> Subject: Re: [Engine-devel] [UX] how to design a bar/line chart? > > >>> > > >>> > > >>> > > >>> - Original Message - > > >>> > > >>>> From: "Eldan Hildesheim" > > >>>> To: "Einav Cohen" > > >>>> Cc: "info" , engine-devel@ovirt.org > > >>>> Sent: Sunday, November 10, 2013 3:56:57 PM > > >>>> Subject: Re: [Engine-devel] [UX] how to design a bar/line chart? > > >>>> > > >>>> Hello all, > > >>>> We use to have a good solution in the period pre-WPF. > > >>>> A line chart (used to be in flash) that works like a plotter: > > >>>> The Line Bar (not bar) had a small animation that shifted all the bar > > >>>> to > > >>>> the > > >>>> left. > > >>>> When a new data arrived it just added a new line (to the right) and > > >>>> as I > > >>>> said > > >>>> before, in parallel it always shifted slowly to the left. > > >>> > > >>> Any chance you still have some screenshot or mockup so I can imagine > > >>> it > > >>> better? > > >>> > > >>>> The animation gives the impression that data is streaming and when a > > >>>> real > > >>>> new > > >>>> data arrives the user gets it very fast. > > >>>> We have to sync between the animation and the rate of the arrival of > > >>>> the > > >>>> data > > >>>> but this is easy. > > >>>> If we can't find a good framework it can be created from scratch with > > >>>> JS, > > >>>> svg > > >>>> or canvas. > > >>> > > >>> We need to be careful about what we will use. oVirt is supposed to > > >>> work > > >>> on > > >>> FF > > >>> 17 [1] > > >>> but the HTML5 canvas works only since FF23 [2]. > > >>> > > >>> @Einav: > > >>> Is there a chance that we could start support only FF23+ and IE9+ > > >>> (this > > >>> one > > >>> is already OK) > > >>> because of this feature? > > >>> > > >>>> Now regarding its position: > > >>>> Rollover is good but not enough, we should somehow put it in the > > >>>> lower > > >>>> panel > > >>>> under general or even another tab - (live data). > > >>> > > >>> This is a bit different requirement. The point of this specific is to > > >>> give > > >>> a > > >>> better > > >>> overview in the main tab. If it will be done we can decide if we want > > >>> to > > >>> give > > >>> more > > >>> details in sub tabs. > > >>> > > >>>> We could later on have a (live data Tab) in other places as well like > > >>>> host, > > >>>> cluster... > > >>>> Eldan > > >>> > > >>> [1]: http://www.ovirt.org/Download > > >>> [2]: http://caniuse.com/#feat=canvas > > >>> > > >>>> - Original Message - > > >>>> From: "Einav Cohen" > > >>>> To: "Ewoud Kohl van Wijngaarden" > > >>>> Cc: "Alexander Wels" , "Eldan Hildesheim" > > >>>> , engine-devel@ovirt.org, "info" > > >>>> > > >>>> Sent: Friday, November 8, 2013 10:50:10 PM > > >>>> Subject: Re: [Engine-devel] [UX] how to design a bar/line chart? > > >>>> > > >>>>> - Original Message - > > >>>>> From: "Ewoud Kohl van Wijngaarden" > > >>>>> > > >>>>> Sent: Thursday, November 7, 2013 11:44:07 AM > > >>>>> > > >>>>> On Wed, Nov 06, 2013 at 11:45:36AM -0500, Alexander Wels wrote: > > >>>>>> I suppose we need to answer a few questions before we can go into > > >>>>>> which > > >>>>>> library is better: > > >>>>>> > > >>>>>> 1. Do we mind sending data over to Google so Google can render > > >>>>>> images > > >>>>>> for > > >>>>>> us. > > >>>>> > > >>>>> I'd say no. Even from a reliability point of view since users may > > >>>>> have > > >>>>> systems that aren't connected to the internet. > > >>>> > > >>>> +1 > > >>>> > > >>>>> (Though I don't know how well oVirt handles this currently.) > > >>>> > > >>>> AFAIK - oVirt is handling it ('it' == having no internet connection) > > >>>> well. > > >>>> ___ > > >>>> Engine-devel mailing list > > >>>> Engine-devel@ovirt.org > > >>>> http://lists.ovirt.org/mailman/listinfo/engine-devel > > >>> > > >>> ___ > > >>> Engine-devel mailing list > > >>> Engine-devel@ovirt.org > > >>> http://lists.ovirt.org/mailman/listinfo/engine-devel > > >> > > >> ___ > > >> Engine-devel mailing list > > >> Engine-devel@ovirt.org > > >> http://lists.ovirt.org/mailman/listinfo/engine-devel > > ___ > Engine-devel mailing list > Engine-devel@ovirt.org > http://lists.ovirt.org/mailman/listinfo/engine-devel ___ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
Re: [Engine-devel] [UX] how to design a bar/line chart?
On Tuesday, November 12, 2013 09:50:07 AM Tomas Jelinek wrote: > - Original Message - > > > From: "Alexander Wels" > > To: engine-devel@ovirt.org > > Cc: "Tomas Jelinek" , "Michal Skrivanek" > > , "Eldan Hildesheim" , > > "info" > > Sent: Tuesday, November 12, 2013 3:33:56 PM > > Subject: Re: [Engine-devel] [UX] how to design a bar/line chart? > > > > On Tuesday, November 12, 2013 09:25:34 AM Tomas Jelinek wrote: > > > Hey all, > > > > > > let me conclude what has been written in this thread to one proposal: > > > > > > == From the UX perspective the behavior == > > > - each time the FE will receive new data and this data are different > > > from > > > the old ones, visualize it in the chart It means if you will keep > > > pressing > > > the refresh button but the data will not change, no new data will be > > > visualized (an exception will be the 0 usage) - the amount of data > > > visualized will depend on the size of the widget (since the tables are > > > resizable). It means that if you make the widget bigger you will not see > > > the same chart bigger but more data. - If you make the widget bigger, > > > only > > > then the amount of data will start to increase: e.g. > > > > > > before resize: > > > | /---\ | > > > | > > > |/ \| > > > > > > after resize: > > > | /---\ | > > > | > > > |/ \ | > > > > > > and only now the new data will start to appear > > > > > > == From FE technical point of view == > > > - since I have not found any GWT library which would be acceptable (e.g. > > > actively developed and without the need to connect to google servers) > > > and > > > given that the required chart is quite simple I guess it would be ok to > > > write it by myself. - according to Einav's mail it is ok to use HTML5 > > > canvas so I would go with writing a new widget using HTML5 canvas > > > > Just to throw out something to think about, we could also in theory > > generate an image on the server side and simply display that image inside > > the grid (so no need for HTML5 canvas or other things like that). The > > idea being basically that when the grid refreshes it makes a request for > > a new image on the back- end with the appropriate timeframe and the > > back-end generates the image which is easy to embed inside the grid. > > > > pros: > > * Easy to embed inside grid (just an image tag). > > * Works on all browsers, even ones without HTML5 canvas support. > > cons: > > * More load on the back-end. > > * Extra round trips to back-end on refresh. > > * Not 'hot' like HTML5 canvas. > > * No interactivity if that is something we are interested in. > > some more cons: > * need to remember the statistics on server in the memory. For thousands of > VMs it is not something we would like to do * lots of overhead to retrieve > all the images on each refresh. If you have 100 VMs on a page and refresh > each 5 seconds, it is 100 images transmitted from engine to frontend each 5 > seconds per one client (and we can have more of them of course) * FE logic > on Server is in general not awesome > I would expect the statistics to be stored in the database somewhere, that way we can pull them for reports and things of that nature (like charts). Obviously we wouldn't do 100 round trips for the image, we would generate a single image sprite that would contain all the images in a single request and display the appropriate part of the image in the grid. You are right in general front-end logic is not done on the back-end. However we must consider if we are really doing front end logic here, or if we are just displaying some reporting information as part of the grid. If we are not storing the statistics anywhere, then this is a terrible plan, and we should do the logic on the client, but if we are, it is something to consider. > > > == From L&F point of view == > > > - would look pretty much like the one proposed by Malini: > > > http://style.org/chartapi/sparklines/ > > > > > > == From data point of view == > > > - do not do any averages on VDSM side (since it already does them for > > > CPU > > > and network and the memory is stable enough) - do not do any averages on > > > engine side (since would have to be done for each FE separately and > > > stored > > > in session which is
Re: [Engine-devel] [UX] how to design a bar/line chart?
On Tuesday, November 12, 2013 10:21:15 AM Tomas Jelinek wrote: > - Original Message - > > > From: "Alexander Wels" > > To: "Tomas Jelinek" > > Cc: engine-devel@ovirt.org, "Michal Skrivanek" > > , "Eldan Hildesheim" , > > "info" > > Sent: Tuesday, November 12, 2013 4:03:14 PM > > Subject: Re: [Engine-devel] [UX] how to design a bar/line chart? > > > > On Tuesday, November 12, 2013 09:50:07 AM Tomas Jelinek wrote: > > > - Original Message - > > > > > > > From: "Alexander Wels" > > > > To: engine-devel@ovirt.org > > > > Cc: "Tomas Jelinek" , "Michal Skrivanek" > > > > , "Eldan Hildesheim" > > > > , > > > > "info" > > > > Sent: Tuesday, November 12, 2013 3:33:56 PM > > > > Subject: Re: [Engine-devel] [UX] how to design a bar/line chart? > > > > > > > > On Tuesday, November 12, 2013 09:25:34 AM Tomas Jelinek wrote: > > > > > Hey all, > > > > > > > > > > let me conclude what has been written in this thread to one > > > > > proposal: > > > > > > > > > > == From the UX perspective the behavior == > > > > > - each time the FE will receive new data and this data are different > > > > > from > > > > > the old ones, visualize it in the chart It means if you will keep > > > > > pressing > > > > > the refresh button but the data will not change, no new data will be > > > > > visualized (an exception will be the 0 usage) - the amount of data > > > > > visualized will depend on the size of the widget (since the tables > > > > > are > > > > > resizable). It means that if you make the widget bigger you will not > > > > > see > > > > > the same chart bigger but more data. - If you make the widget > > > > > bigger, > > > > > only > > > > > then the amount of data will start to increase: e.g. > > > > > > > > > > before resize: > > > > > | /---\ | > > > > > | > > > > > |/ \| > > > > > > > > > > after resize: > > > > > | /---\ | > > > > > | > > > > > |/ \ | > > > > > > > > > > and only now the new data will start to appear > > > > > > > > > > == From FE technical point of view == > > > > > - since I have not found any GWT library which would be acceptable > > > > > (e.g. > > > > > actively developed and without the need to connect to google > > > > > servers) > > > > > and > > > > > given that the required chart is quite simple I guess it would be ok > > > > > to > > > > > write it by myself. - according to Einav's mail it is ok to use > > > > > HTML5 > > > > > canvas so I would go with writing a new widget using HTML5 canvas > > > > > > > > Just to throw out something to think about, we could also in theory > > > > generate an image on the server side and simply display that image > > > > inside > > > > the grid (so no need for HTML5 canvas or other things like that). The > > > > idea being basically that when the grid refreshes it makes a request > > > > for > > > > a new image on the back- end with the appropriate timeframe and the > > > > back-end generates the image which is easy to embed inside the grid. > > > > > > > > pros: > > > > * Easy to embed inside grid (just an image tag). > > > > * Works on all browsers, even ones without HTML5 canvas support. > > > > cons: > > > > * More load on the back-end. > > > > * Extra round trips to back-end on refresh. > > > > * Not 'hot' like HTML5 canvas. > > > > * No interactivity if that is something we are interested in. > > > > > > some more cons: > > > * need to remember the statistics on server in the memory. For thousands > > > of > > > VMs it is not something we would like to do * lots of overhead to > > > retrieve > > > all the images on each refresh. If you have 100 VMs on a page and > > > refresh > > > each 5 seconds, it is 100 images transmitted from
Re: [Engine-devel] Problem building 3.3.1 branch
On Wednesday, November 20, 2013 07:01:46 PM Bob Doolittle wrote: > This is Fedora 19 > > On 11/20/2013 06:24 PM, Itamar Heim wrote: > > On 11/21/2013 12:45 AM, Alon Bar-Lev wrote: > >> - Original Message - > >> > >>> From: "Bob Doolittle" > >>> To: engine-devel@ovirt.org > >>> Sent: Thursday, November 21, 2013 12:35:57 AM > >>> Subject: [Engine-devel] Problem building 3.3.1 branch > >>> > >>> Hi, > >>> > >>> I'm trying to build engine for the first time and running into a build > >>> error. I'm a seasoned Unix developer, but new to some aspects of Linux > >>> development like git and maven, so I could be doing something naive. > >>> > >>> I'm following the instructions here: > >>> http://www.ovirt.org/OVirt_Engine_Development_Environment > >>> > >>> I did a clone of the engine repository, and did "git checkout -b > >>> myengine origin/ovirt-engine-3.3.1" to create my own branch based on > >>> 3.3.1 (current - I realize it's not quite done). > >>> > >>> Then, when I did "make install-dev PREFIX=$HOME/ovirt-engine" it failed > >>> when building the "Engine Web Root", specifically in the > >>> FileServletTest. Relevant build log is here: > >>> http://pastebin.com/JRcyWvtr > >>> > >>> Can anyone suggest what I've done wrong, or whether there's a problem > >>> with the repository at the moment? > >> > >> There may be indeed a problem, not happening at my setup, just tried. > >> Can you please please send the relevant file from[1] > >> I think it should be called something with FileServletTes. > >> > >> > >> [1] > >> /home/rad/workspace/ovirt-engine/backend/manager/modules/root/target/sure > >> fire-reports> > > also couldn't reproduced (tried just now). > > anything special about the environment? > > - cpu/ram configuration? > > - not enough disk space? special file permissions? > > - which OS is this on? which JRE? > > > > Thanks, > > > >Itamar > > This is Fedora 19 (updated) > cpu i7-3520 > mem 8GB > Disk has over 26GB free for both volumes (SSD) > I installed all the tools/prereqs as root. > Did git clone as myself (no special permission) > Running make as myself > JRE 1.7.0_45 OpenJDK > > I have attached the requested file (not sure which you wanted, attached > both likely candidates). > > I am running the make under my login shell, which is zsh. On occasion > this has caused issues. If no better suggestions I'll double-check > tomorrow by running under bash. > > Thanks for your assistance, > Bob Bob, do you have an unusually large /etc/hosts file? looking at the error somewhere between 8192 and 12288 bytes? If so then it is a bug in the test, I will update it in the morning. Alexander ___ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
Re: [Engine-devel] Problem building 3.3.1 branch
On Wednesday, November 20, 2013 07:08:39 PM Bob Doolittle wrote: > Yes, it's pretty large. A little over 9k. > > -Bob > Yes definitely a bug in the test, you can run the build without running the unit tests and it should succeed, or temporarily have a /etc/hosts file <= 4096 bytes. Looking at the test, I am not sure what I was thinking when I did that, but I will rework it soon to not have such a crazy dependency. > On Nov 20, 2013 7:06 PM, "Alexander Wels" wrote: > > On Wednesday, November 20, 2013 07:01:46 PM Bob Doolittle wrote: > > > This is Fedora 19 > > > > > > On 11/20/2013 06:24 PM, Itamar Heim wrote: > > > > On 11/21/2013 12:45 AM, Alon Bar-Lev wrote: > > > >> - Original Message - > > > >> > > > >>> From: "Bob Doolittle" > > > >>> To: engine-devel@ovirt.org > > > >>> Sent: Thursday, November 21, 2013 12:35:57 AM > > > >>> Subject: [Engine-devel] Problem building 3.3.1 branch > > > >>> > > > >>> Hi, > > > >>> > > > >>> I'm trying to build engine for the first time and running into a > > > > build > > > > > >>> error. I'm a seasoned Unix developer, but new to some aspects of > > > > Linux > > > > > >>> development like git and maven, so I could be doing something naive. > > > >>> > > > >>> I'm following the instructions here: > > > >>> http://www.ovirt.org/OVirt_Engine_Development_Environment > > > >>> > > > >>> I did a clone of the engine repository, and did "git checkout -b > > > >>> myengine origin/ovirt-engine-3.3.1" to create my own branch based on > > > >>> 3.3.1 (current - I realize it's not quite done). > > > >>> > > > >>> Then, when I did "make install-dev PREFIX=$HOME/ovirt-engine" it > > > > failed > > > > > >>> when building the "Engine Web Root", specifically in the > > > >>> FileServletTest. Relevant build log is here: > > > >>> http://pastebin.com/JRcyWvtr > > > >>> > > > >>> Can anyone suggest what I've done wrong, or whether there's a > > > >>> problem > > > >>> with the repository at the moment? > > > >> > > > >> There may be indeed a problem, not happening at my setup, just tried. > > > >> Can you please please send the relevant file from[1] > > > >> I think it should be called something with FileServletTes. > > > >> > > > >> > > > >> [1] > > > > /home/rad/workspace/ovirt-engine/backend/manager/modules/root/target/sure > > > > > >> fire-reports> > > > > > > > > also couldn't reproduced (tried just now). > > > > anything special about the environment? > > > > - cpu/ram configuration? > > > > - not enough disk space? special file permissions? > > > > - which OS is this on? which JRE? > > > > > > > > Thanks, > > > > > > > >Itamar > > > > > > This is Fedora 19 (updated) > > > cpu i7-3520 > > > mem 8GB > > > Disk has over 26GB free for both volumes (SSD) > > > I installed all the tools/prereqs as root. > > > Did git clone as myself (no special permission) > > > Running make as myself > > > JRE 1.7.0_45 OpenJDK > > > > > > I have attached the requested file (not sure which you wanted, attached > > > both likely candidates). > > > > > > I am running the make under my login shell, which is zsh. On occasion > > > this has caused issues. If no better suggestions I'll double-check > > > tomorrow by running under bash. > > > > > > Thanks for your assistance, > > > > > > Bob > > > > Bob, > > > > do you have an unusually large /etc/hosts file? looking at the error > > somewhere > > between 8192 and 12288 bytes? If so then it is a bug in the test, I will > > update it in the morning. > > > > Alexander ___ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
Re: [Engine-devel] Weird behavior of multiple SetVmTicket query
HO this should be refactored > > > to > > > make code easier to read. > > > > > > Changes done by Alex (patch attached): > > > > > > X1. returnValues changed to Collections.synchronizedList > > > > > > -> this means all access to returnValues is now serial > > > -> iteration over synchronizedList should also be enclosed in > > > > > > "synchronized (list)" block, so this: > > >for (VdcReturnValueBase value : returnValues) ... > > > > > >should be this: > > >synchronized (returnValues) { for (VdcReturnValueBase value : > > >returnValues) ... } > > > > > > X2. commented-out original command execution via > > > ThreadPoolUtil.execute(Runnable) > > > > > > -> new RunCommands method invokes all commands each in separate > > > thread > > > via ThreadPoolUtil.invokeAll > > > -> returnValues list is explicitly updated > > > > > > Guys, what do you think? > > > > > > Vojtech > > > > > > > > > - Original Message - > > > > > > > From: "Alexander Wels" > > > > To: "Frantisek Kobzik" > > > > Cc: "Vojtech Szocs" > > > > Sent: Monday, November 11, 2013 9:19:08 PM > > > > Subject: Re: Weird behavior of multiple SetVmTicket query > > > > > > > > Hi, > > > > > > > > I did some debugging, and the problem is a race condition in the > > > > MultipleActions class. The whole class seems to have a lot of > > > > multi-threading > > > > issues but if I modify the code to wait for the results of the actions > > > > to > > > > return before returning the return value, everything works fine. > > > > > > > > I am attaching a patch that solves the issue at hand, but should not > > > > be > > > > considered a real patch. It is just to show the issue is in the > > > > back-end > > > > not > > > > the front-end code. The front-end code is just exposing an issue in > > > > the > > > > back- > > > > end > > > > > > > > Alexander > > > > > > > > On Monday, November 11, 2013 09:53:22 AM you wrote: > > > > > Ok, thank you very much! > > > > > > > > > > - Original Message - > > > > > From: "Alexander Wels" > > > > > To: "Frantisek Kobzik" > > > > > Sent: Monday, November 11, 2013 2:15:43 PM > > > > > Subject: Re: Weird behavior of multiple SetVmTicket query > > > > > > > > > > Frantisek, > > > > > > > > > > I had seen this before, let me test and fix it for you, it is very > > > > > likely > > > > > my > > > > > patch broke that. > > > > > > > > > > Alexander > > > > > > > > > > On Monday, November 11, 2013 03:43:19 AM you wrote: > > > > > > Hi Alex, > > > > > > > > > > > > recently I noticed problems with invoking console for multiple VMs > > > > > > (select > > > > > > more VMs in webadmin and then hit the console btn). I was sure it > > > > > > worked > > > > > > in > > > > > > past so i git-bisected the master branch and I discovered that > > > > > > this > > > > > > problem > > > > > > is apparently caused by patch [1]. For single vm console > > > > > > invocation > > > > > > it > > > > > > works fine, but for multiple VMs it doesn't. > > > > > > > > > > > > I did some closer investigation with a debugger and it seems that > > > > > > getSucceeded() on the return val of SetVmTicket command returns > > > > > > false > > > > > > in > > > > > > case of multiple execution despite the fact SetVmTicketCommand > > > > > > sets > > > > > > this > > > > > > value to true. I suppose there is some problem with propagation of > > > > > > command > > > > > > return value from BE to FE. The same goes for the encapsulated > > > > > > returnValue > > > > > > attribute (it contains value of the generated ticket). When > > > > > > invoking > > > > > > multiple consoles it is null (although it has been filled on > > > > > > backend). > > > > > > Weird. > > > > > > > > > > > > Tomas told me you did some optimizations for multiple command > > > > > > executions, > > > > > > do you know it might cause it? Please let me know if you have any > > > > > > idea... > > > > > > > > > > > > Cheers, > > > > > > F. > > > > > > > > > > > > [1]: http://gerrit.ovirt.org/#/c/17356/ > > > > > > ___ > > > Engine-devel mailing list > > > Engine-devel@ovirt.org > > > http://lists.ovirt.org/mailman/listinfo/engine-devel > > > > ___ > > Engine-devel mailing list > > Engine-devel@ovirt.org > > http://lists.ovirt.org/mailman/listinfo/engine-devel > > ___ > Engine-devel mailing list > Engine-devel@ovirt.org > http://lists.ovirt.org/mailman/listinfo/engine-devel ___ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
Re: [Engine-devel] Weird behavior of multiple SetVmTicket query
On Thursday, November 21, 2013 04:01:34 PM Itamar Heim wrote: > On 11/21/2013 03:28 PM, Alexander Wels wrote: > > On Thursday, November 21, 2013 07:18:42 AM Daniel Erez wrote: > >> - Original Message - > >> > >>> From: "Einav Cohen" > >>> To: "Livnat Peer" , "Eli Mesika" , > >>> "Omer Frenkel" , "Doron Fediuck" > >>> , "Oved Ourfalli" Cc: > >>> "engine-devel" > >>> Sent: Monday, November 18, 2013 11:19:23 PM > >>> Subject: Re: [Engine-devel] Weird behavior of multiple SetVmTicket query > >>> > >>> engine-core maintainers - this one is mainly for you - see below. > >>> the most important question (I think) is: Is there any reason > >>> to not introduced a "sync" flavor of RunMultipleActions (i.e. > >>> one that will return from the backend only when all actions have > >>> been completed, similarly to RunAction)? > >> > >> There's a couple of years old patch exactly for that [1]. > >> It should allow both synchronous and asynchronous multiple actions > >> according to a flag. Question is when do we want to use the synchronous > >> flavor? The reasoning behind the current implementation is to return a > >> quick response to the client, as executing multiple vdsm commands can > >> potentially require a long wait. Do we need to introduce a sync version > >> just for VM console connection flow? IIRC, the flow actually uses > >> multiple calls to the singular form (RunAction) rather than > >> RunMultipleAction? > >> > >> [1] http://gerrit.ovirt.org/#/c/3210/ > > > > We recently introduced a patch [1] that on the front-end is smart enough > > to > > consolidate multiple query/actions into a single runMultiple(Query/Action) > > call to reduce the number http requests to the back-end. In the > > SetVMTicket > > case it combined two actions into one runMultipleAction call and was > > expected that to return once all the actions where complete, which didn't > > happen causing some undesired behavior on the client side. This sparked > > the investigation that ended in this email. > > > > So yes I would definitely like a 'synchronous' version of > > runMultipleAction so the frontend code can set that flag when combining > > multiple actions into a single call. We can only safely do this if we are > > combining several runActions as all of those are 'synchronous'. > > > > [1] http://gerrit.ovirt.org/#/c/17356/ > > btw, how is this going to work with the REST API? > I believe that is one of the outstanding issues with regards to the REST API transition. Before this optimization we already had code calling runMultiple(Query/Action) and we will have to figure something out for the REST API there as well. I think at the point we solve that issue we can decide if we want to keep the optimization or not. > >>> > >>> Thanks, > >>> Einav > >>> > >>> - Original Message - > >>> > >>>> From: "Vojtech Szocs" > >>>> To: aw...@redhat.com > >>>> Cc: "engine-devel" > >>>> Sent: Tuesday, November 12, 2013 6:40:18 AM > >>>> Subject: Re: [Engine-devel] Weird behavior of multiple SetVmTicket > >>>> query > >>>> > >>>> Forwarding this email to engine-devel so that backend maintainers are > >>>> aware > >>>> of this issue. > >>>> > >>>> Looking at the code: > >>>> > >>>> - MultipleActionsRunner#Execute first creates and "validates" all > > > > commands: > >>>>A. the "for" block which iterates over getParameters() > >>>> > >>>> 1-> validate correlation ID, if OK create and add command, > >>>> otherwise > >>>> add > >>>> returnValue > >>>> > >>>>B the "if" block which tests getCommands().size() > >>>> > >>>> 1-> if single command to execute, add its "canDoActionOnly" > >>>> returnValue, > >>>> which is returnValue with canDoAction but without actual result > >>>> object > >>>> 2-> if multi commands to execute, execute chunks of max. 10 > >>>>
Re: [Engine-devel] Problem building 3.3.1 branch
On Wednesday, November 20, 2013 07:14:38 PM Alexander Wels wrote: > On Wednesday, November 20, 2013 07:08:39 PM Bob Doolittle wrote: > > Yes, it's pretty large. A little over 9k. > > > > -Bob > > Yes definitely a bug in the test, you can run the build without running the > unit tests and it should succeed, or temporarily have a /etc/hosts file <= > 4096 bytes. Looking at the test, I am not sure what I was thinking when I > did that, but I will rework it soon to not have such a crazy dependency. > I just pushed the fix to gerrit [1], hopefully it will be merged soon [1] http://gerrit.ovirt.org/#/c/21509/ > > On Nov 20, 2013 7:06 PM, "Alexander Wels" wrote: > > > On Wednesday, November 20, 2013 07:01:46 PM Bob Doolittle wrote: > > > > This is Fedora 19 > > > > > > > > On 11/20/2013 06:24 PM, Itamar Heim wrote: > > > > > On 11/21/2013 12:45 AM, Alon Bar-Lev wrote: > > > > >> - Original Message - > > > > >> > > > > >>> From: "Bob Doolittle" > > > > >>> To: engine-devel@ovirt.org > > > > >>> Sent: Thursday, November 21, 2013 12:35:57 AM > > > > >>> Subject: [Engine-devel] Problem building 3.3.1 branch > > > > >>> > > > > >>> Hi, > > > > >>> > > > > >>> I'm trying to build engine for the first time and running into a > > > > > > build > > > > > > > >>> error. I'm a seasoned Unix developer, but new to some aspects of > > > > > > Linux > > > > > > > >>> development like git and maven, so I could be doing something > > > > >>> naive. > > > > >>> > > > > >>> I'm following the instructions here: > > > > >>> http://www.ovirt.org/OVirt_Engine_Development_Environment > > > > >>> > > > > >>> I did a clone of the engine repository, and did "git checkout -b > > > > >>> myengine origin/ovirt-engine-3.3.1" to create my own branch based > > > > >>> on > > > > >>> 3.3.1 (current - I realize it's not quite done). > > > > >>> > > > > >>> Then, when I did "make install-dev PREFIX=$HOME/ovirt-engine" it > > > > > > failed > > > > > > > >>> when building the "Engine Web Root", specifically in the > > > > >>> FileServletTest. Relevant build log is here: > > > > >>> http://pastebin.com/JRcyWvtr > > > > >>> > > > > >>> Can anyone suggest what I've done wrong, or whether there's a > > > > >>> problem > > > > >>> with the repository at the moment? > > > > >> > > > > >> There may be indeed a problem, not happening at my setup, just > > > > >> tried. > > > > >> Can you please please send the relevant file from[1] > > > > >> I think it should be called something with FileServletTes. > > > > >> > > > > >> > > > > >> [1] > > > > > > /home/rad/workspace/ovirt-engine/backend/manager/modules/root/target/sur > > > e > > > > > > > >> fire-reports> > > > > > > > > > > also couldn't reproduced (tried just now). > > > > > anything special about the environment? > > > > > - cpu/ram configuration? > > > > > - not enough disk space? special file permissions? > > > > > - which OS is this on? which JRE? > > > > > > > > > > Thanks, > > > > > > > > > >Itamar > > > > > > > > This is Fedora 19 (updated) > > > > cpu i7-3520 > > > > mem 8GB > > > > Disk has over 26GB free for both volumes (SSD) > > > > I installed all the tools/prereqs as root. > > > > Did git clone as myself (no special permission) > > > > Running make as myself > > > > JRE 1.7.0_45 OpenJDK > > > > > > > > I have attached the requested file (not sure which you wanted, > > > > attached > > > > both likely candidates). > > > > > > > > I am running the make under my login shell, which is zsh. On occasion > > > > this has caused issues. If no better suggestions I'll double-check > > > > tomorrow by running under bash. > > > > > > > > Thanks for your assistance, > > > > > > > > Bob > > > > > > Bob, > > > > > > do you have an unusually large /etc/hosts file? looking at the error > > > somewhere > > > between 8192 and 12288 bytes? If so then it is a bug in the test, I will > > > update it in the morning. > > > > > > Alexander > > ___ > Engine-devel mailing list > Engine-devel@ovirt.org > http://lists.ovirt.org/mailman/listinfo/engine-devel ___ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
Re: [Engine-devel] Java Newbie: Renaming some functions to fix findbugs warnings
Adam, We are aware of this issue and we actually have a patch somewhat ready to solve the issue [1]. We made the RunQuery/RunAction/etc method deprecated to encourage people to no longer use them. We have patch ready to remove all current uses of RunQuery/RunAction/etc from the code base, but haven't gotten around to rebasing/merging the patch. Alexander [1] http://gerrit.ovirt.org/#/c/18413/ On Friday, November 22, 2013 11:52:11 AM Adam Litke wrote: > Hello, > > I am working on resolving some warnings produced by findbugs and am looking > for some advice on how to properly resolve the problem. > > The Frontend class has several pairs of methods where a capitalized version > is a deprecated static form and the camelCase version is the instance > method. > > For example: > > @Deprecated > public static void RunQuery(...) > > - and - > > public void runQuery(...) > > In both cases the parameters are the same so simply renaming RunQuery to > runQuery will result in a conflict. Since I am new to Java and the > ovirt-engine project I am looking for some advice on how to fix the > function name without breaking the code or people's sense of aesthetics. > Since this is a deprecated function, would it be terrible to rename it to > 'runQueryStatic' or 'runQueryDeprecated'? Since the language provides > syntactic annotations for 'static' and 'deprecated', both of these names > feel dirty but I am not sure what would be better. Thanks for helping out > a newbie! > > --Adam > ___ > Engine-devel mailing list > Engine-devel@ovirt.org > http://lists.ovirt.org/mailman/listinfo/engine-devel ___ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
Re: [Engine-devel] Problems debugging client code
Hi, 1. Is your engine runnning? [1] 2. Did you also start separately the debug mode [2] (This is debugging the webadmin) 3. Did you go to the right URL [3] 4. Make when you compile you compile for the correct browser. I usually compile for FF and chrome [4] [1] $HOME/ovirt-engine/share/ovirt-engine/services/ovirt-engine/ovirt- engine.py start [2] make gwt-debug DEBUG_MODULE=webadmin DEV_EXTRA_BUILD_FLAGS_GWT_DEFAULTS="- D gwt.userAgent=gecko1_8,safari" [3] http://127.0.0.1:8080/ovirt-engine/webadmin/?gwt.codesvr=127.0.0.1:9997 [4] make clean install-dev PREFIX=$HOME/ovirt-engine BUILD_UT=0 BUILD_GWT=1 DEV_EXTRA_BUILD_FLAGS_GWT_DEFAULTS="-D gwt.userAgent=gecko1_8,safari" On Tuesday, December 10, 2013 09:30:16 AM Eli Mesika wrote: > Hi > > > Debugging client code I got this when trying to connect from Google Chrom : > > > Oops! Google Chrome could not connect to 127.0.0.1:8080 > Try reloading the page > > > any ideas ??? > > I am following instructions from README.developer and using f19 with > google-chrome-stable-31.0.1650.63-1.x86_64 > > Thanks > > Eli > ___ > Engine-devel mailing list > Engine-devel@ovirt.org > http://lists.ovirt.org/mailman/listinfo/engine-devel ___ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
Re: [Engine-devel] developmen environment: logs
The attached ovirt-engine.xml.in.debug should be what you are looking for. Save it as ~/ovirt-engine/share/ovirt-engine/services/ovirt-engine/ovirt- engine.xml.in (maybe backup the original first). Restart the engine and you should be running in debug mode. On Friday, December 13, 2013 12:56:26 PM Einav Cohen wrote: > [working on development environment] > > (1) I tried following instructions in [1] in order to have my engine.log > log messages from the bll module in DEBUG level. > > After adding section [2] to the relevant file, I got an error message [3] > (probably since a logger for category "org.ovirt.engine.core.bll" already > exists in the file). > > I removed that new section, and changed the relevant string within the > already-existing from "INFO" > to "DEBUG"; however, log for bll messages kept being logged only in the > "INFO" level. > > [I restarted ovirt-engine.py after every change] > > Any ideas? > > (2) Does anyone know why queries invocation isn't being logged into the > engine.log [maybe they are being logged in DEBUG level and due to (1) I > cannot see them]? it seems that only action invocations are being logged. > > Many thanks in advance. > > > Regards, > Einav > > [1] > http://www.ovirt.org/OVirt_Engine_Development_Environment#Enable_DEBUG_log > > [2] > --- > > > > --- > > [3] [ovirt-engine-devel-env]$ ./ovirt-engine.py start > Listening for transport dt_socket at address: 8787 > ovirt-engine[13794] ERROR run:485 Error: process terminated with status code > 1 [ovirt-engine-devel-env]$ > ___ > Engine-devel mailing list > Engine-devel@ovirt.org > http://lists.ovirt.org/mailman/listinfo/engine-devel ovirt-engine.xml.in.debug Description: XML document ___ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
Re: [Engine-devel] UI: VM list not populating
On Monday, January 06, 2014 11:27:07 AM Adam Litke wrote: > On 06/01/14 11:19 -0500, Alexander Wels wrote: > >Adam, > > > >Is this just when you first login into the webadmin or whenever you go to > >the VM tab? In other words if you login, then switch to the templates tab > >and back again to the VM tab does it still not load? What about when you > >manually refresh the grid? > > Thanks for the quick response! It doesn't load at all -- first time > or any other time when revisiting. In some cases in the past I would > have luck by clicking the blue refresh icon but that doesn't help > either. I have force refreshed the browser (Chrome) to no avail. I > guess the next step is to completely restart the browser (hmm, no luck > there either). > Okay, then something else is going on, are there any errors in the server log? > >Alexander > > > >On Monday, January 06, 2014 11:02:02 AM Adam Litke wrote: > >> Hi all, > >> > >> I am working with the latest ovirt-engine git and am finding some > >> strange behavior with the UI. The list of VMs never populates and I > >> am stuck with the loading indicator. All other tabs behave normally > >> (Hosts, Templates, Storage, etc). Also, the list of VMs can be loaded > >> normally using the REST API. Any ideas what may be causing this > >> strange behavior? > >> ___ > >> Engine-devel mailing list > >> Engine-devel@ovirt.org > >> http://lists.ovirt.org/mailman/listinfo/engine-devel ___ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
Re: [Engine-devel] UI: VM list not populating
Adam, Is this just when you first login into the webadmin or whenever you go to the VM tab? In other words if you login, then switch to the templates tab and back again to the VM tab does it still not load? What about when you manually refresh the grid? Alexander On Monday, January 06, 2014 11:02:02 AM Adam Litke wrote: > Hi all, > > I am working with the latest ovirt-engine git and am finding some > strange behavior with the UI. The list of VMs never populates and I > am stuck with the loading indicator. All other tabs behave normally > (Hosts, Templates, Storage, etc). Also, the list of VMs can be loaded > normally using the REST API. Any ideas what may be causing this > strange behavior? > ___ > Engine-devel mailing list > Engine-devel@ovirt.org > http://lists.ovirt.org/mailman/listinfo/engine-devel ___ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
Re: [Engine-devel] UI: VM list not populating
On Monday, January 06, 2014 01:03:31 PM Adam Litke wrote: > On 06/01/14 11:41 -0500, Alexander Wels wrote: > >On Monday, January 06, 2014 11:27:07 AM Adam Litke wrote: > >> On 06/01/14 11:19 -0500, Alexander Wels wrote: > >> >Adam, > >> > > >> >Is this just when you first login into the webadmin or whenever you go > >> >to > >> >the VM tab? In other words if you login, then switch to the templates > >> >tab > >> >and back again to the VM tab does it still not load? What about when you > >> >manually refresh the grid? > >> > >> Thanks for the quick response! It doesn't load at all -- first time > >> or any other time when revisiting. In some cases in the past I would > >> have luck by clicking the blue refresh icon but that doesn't help > >> either. I have force refreshed the browser (Chrome) to no avail. I > >> guess the next step is to completely restart the browser (hmm, no luck > >> there either). > > > >Okay, then something else is going on, are there any errors in the server > >log? > From server.log there are no ERRORs but this message may be related: > > 2014-01-06 13:01:54,209 WARN > [org.jboss.resteasy.spi.ResteasyDeployment] (http--0.0.0.0-8080-4) > Application.getSingletons() returned unknown class type: > org.ovirt.engine.api.restapi.util.VmHelper > Don't think that is related, as currently the web admin uses GWT RPC to communicate with the engine, and not the REST interface. So, ovirt-engine/var/log/ovirt-engine/server.log and ovirt- engine/var/log/ovirt-engine/engine.log Have nothing in them? > >> >Alexander > >> > > >> >On Monday, January 06, 2014 11:02:02 AM Adam Litke wrote: > >> >> Hi all, > >> >> > >> >> I am working with the latest ovirt-engine git and am finding some > >> >> strange behavior with the UI. The list of VMs never populates and I > >> >> am stuck with the loading indicator. All other tabs behave normally > >> >> (Hosts, Templates, Storage, etc). Also, the list of VMs can be loaded > >> >> normally using the REST API. Any ideas what may be causing this > >> >> strange behavior? > >> >> ___ > >> >> Engine-devel mailing list > >> >> Engine-devel@ovirt.org > >> >> http://lists.ovirt.org/mailman/listinfo/engine-devel ___ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
Re: [Engine-devel] UI: VM list not populating
On Monday, January 06, 2014 01:22:00 PM Einav Cohen wrote: > > - Original Message - > > From: "Adam Litke" > > Sent: Monday, January 6, 2014 1:13:09 PM > > > > On 06/01/14 11:44 -0500, Einav Cohen wrote: > > >> - Original Message - > > >> From: "Alexander Wels" > > >> Sent: Monday, January 6, 2014 11:41:38 AM > > >> > > >> On Monday, January 06, 2014 11:27:07 AM Adam Litke wrote: > > >> > On 06/01/14 11:19 -0500, Alexander Wels wrote: > > >> > >Adam, > > >> > > > > >> > >Is this just when you first login into the webadmin or whenever you > > >> > >go > > >> > >to > > >> > >the VM tab? In other words if you login, then switch to the > > >> > >templates > > >> > >tab > > >> > >and back again to the VM tab does it still not load? What about when > > >> > >you > > >> > >manually refresh the grid? > > >> > > > >> > Thanks for the quick response! It doesn't load at all -- first time > > >> > or any other time when revisiting. In some cases in the past I would > > >> > have luck by clicking the blue refresh icon but that doesn't help > > >> > either. I have force refreshed the browser (Chrome) to no avail. I > > >> > guess the next step is to completely restart the browser (hmm, no > > >> > luck > > >> > there either). > > >> > > >> Okay, then something else is going on, are there any errors in the > > >> server > > >> log? > > > > > >In addition to server logs: maybe also provide client "logs" (see > > >instructions > > >in [1])? > > >thanks. > > > > > >[1] http://lists.ovirt.org/pipermail/users/2013-December/018494.html > > > > GET http://localhost:8080/ovirt-engine/webadmin/Reports.xml 404 (Not > > Found) > > 4DD22D2F78BB84E2940BB7ADF6163F25.cache.html:16328 > > Mon Jan 06 13:05:00 GMT-500 2014 > > com.google.gwt.logging.client.LogConfiguration > > SEVERE: (TypeError) > > > > stack: TypeError: Cannot call method 'kk' of null > > > > at LSj > > (http://localhost:8080/ovirt-engine/webadmin/4DD22D2F78BB84E2940BB7ADF > > 6163F25.cache.html:11622:58) at Object.JTl [as h_] > > (http://localhost:8080/ovirt-engine/webadmin/4DD22D2F78BB84E2940BB7ADF > > 6163F25.cache.html:17112:15349) at l7j > > (http://localhost:8080/ovirt-engine/webadmin/4DD22D2F78BB84E2940BB7ADF > > 6163F25.cache.html:15200:166) at Object.n7j > > (http://localhost:8080/ovirt-engine/webadmin/4DD22D2F78BB84E2940BB7ADF > > 6163F25.cache.html:16142:328) at r2j > > (http://localhost:8080/ovirt-engine/webadmin/4DD22D2F78BB84E2940BB7ADF > > 6163F25.cache.html:15199:140) at rjk > > (http://localhost:8080/ovirt-engine/webadmin/4DD22D2F78BB84E2940BB7ADF > > 6163F25.cache.html:7040:19) at Object._jk [as qT] > > (http://localhost:8080/ovirt-engine/webadmin/4DD22D2F78BB84E2940BB7ADF > > 6163F25.cache.html:17088:17294) at Object.r5j [as tV] > > (http://localhost:8080/ovirt-engine/webadmin/4DD22D2F78BB84E2940BB7ADF > > 6163F25.cache.html:17085:15904) at hIj > > (http://localhost:8080/ovirt-engine/webadmin/4DD22D2F78BB84E2940BB7ADF > > 6163F25.cache.html:15873:85) at Object.kIj [as tV] > > (http://localhost:8080/ovirt-engine/webadmin/4DD22D2F78BB84E2940BB7ADF > > 6163F25.cache.html:17082:510) at uKj > > (http://localhost:8080/ovirt-engine/webadmin/4DD22D2F78BB84E2940BB7ADF > > 6163F25.cache.html:11859:40) at Object.xKj [as tV] > > (http://localhost:8080/ovirt-engine/webadmin/4DD22D2F78BB84E2940BB7ADF > > 6163F25.cache.html:17082:20018) at OJj > > (http://localhost:8080/ovirt-engine/webadmin/4DD22D2F78BB84E2940BB7ADF > > 6163F25.cache.html:15471:172) at Object.RJj [as Ch] > > (http://localhost:8080/ovirt-engine/webadmin/4DD22D2F78BB84E2940BB7ADF > > 6163F25.cache.html:17082:19443) at Object.jAd [as ue] > > (http://localhost:8080/ovirt-engine/webadmin/4DD22D2F78BB84E2940BB7ADF > > 6163F25.cache.html:17019:23272) at cR > > (http://localhost:8080/ovirt-engine/webadmin/4DD22D2F78BB84E2940BB7ADF > > 6163F25.cache.html:14512:137) at Object.vR > > (http://localhost:8080/ovirt-engine/webadmin/4DD22D2F78BB84E2940BB7ADF > > 6163F25.cache.html:17019:13248) at XMLHttp
Re: [Engine-devel] proposing Alexander Wels as an ovirt-engine UI maintainer
On Wednesday, January 22, 2014 12:01:13 AM Itamar Heim wrote: > On 01/21/2014 05:39 PM, Einav Cohen wrote: > > Hello UI Maintainers, > > > > I would like to propose Alexander Wels as an ovirt-engine UI maintainer. > > > > Alexander started his ovirt involvement more than a year ago, > > contributing over 100 patches (to 'master' alone), including the > > branding mechanism, Frontend refactoring (cleanup, unit-tests, requests > > retry mechanism, requests-aggregation mechanism), cross-GUI refresh > > synchronization and low-resolutions support. > > > > Your response would be appreciated. > > > > Thanks in advance. > > > > > > Regards, > > Einav > > ___ > > Engine-devel mailing list > > Engine-devel@ovirt.org > > http://lists.ovirt.org/mailman/listinfo/engine-devel > Thanks everyone. > per +1's from maintainers - added. > congrats. ___ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
Re: [Engine-devel] Can not debug GWT with chrom
Did you compile GWT for use with Chrome? I think the standard make install-dev does not, but you can add support by setting the extra build flags like this: DEV_EXTRA_BUILD_FLAGS_GWT_DEFAULTS="-D gwt.userAgent=gecko1_8,safari" that will compile it with 2 iterations, one for firefox and one for chrome. On Thursday, January 30, 2014 04:26:23 PM Eli Mesika wrote: > Hi > > I am trying to debug GWT with google-chrome-stable-32.0.1700.77-1.x86_64 on > F19 and getting the following exception > > > onModuleLoad() threw an exception > Exception while loading module > com.google.gwt.useragent.client.UserAgentAsserter. See Development Mode for > details. > > java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:5 > 7) at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp > l.java:43) at java.lang.reflect.Method.invoke(Method.java:606) > at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:406) > at > com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler > .java:200) at > com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan > nelServer.java:526) at > com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java > :364) at java.lang.Thread.run(Thread.java:744) > Caused by: java.lang.RuntimeException: Deferred binding failed for > 'com.google.gwt.useragent.client.UserAgentAsserter$UserAgentProperty' (did > you forget to inherit a required module?) at > com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53) at > com.google.gwt.core.shared.GWT.create(GWT.java:57) > at com.google.gwt.core.client.GWT.create(GWT.java:85) > at > com.google.gwt.useragent.client.UserAgentAsserter.onModuleLoad(UserAgentAss > erter.java:66) ... 9 more > Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see previous > log entries) at > com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:605) at > com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:465) > at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49) ... > 12 more > > > any ideas ??? > ___ > Engine-devel mailing list > Engine-devel@ovirt.org > http://lists.ovirt.org/mailman/listinfo/engine-devel ___ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
Re: [Engine-devel] VM Ip Address
Did the administrators install the ovirt-guest-agent on the VMs. IIRC the engine doesn't know the IP address of the VM unless the VM tells the engine with the guest agent. On Thursday, February 20, 2014 08:10:11 PM Vikas Kokare wrote: > We have a RHEV 3.2 manager environment setup with hosts having virtual > machines. The administrator's have confirmed that they have assigned IP > addresses to the VM's, but the address is not showing up both in the Web > Admin console, and the ReST API payload for /api/vms/{vm-id} ___ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
Re: [Engine-devel] Install rhevm-guest-agent on SLES guest
Doesn't look like the package exists yet, there is an open bug for it: https://bugzilla.redhat.com/show_bug.cgi?id=1043471 On Friday, February 21, 2014 11:00:40 AM Vikas Kokare wrote: > We want to install the rhevm-guest-agent package on a virtual machine with > Suse Linux as the guest OS. The RHEVM 3.2 documentation provides install > instructions for RHEL and Windows guests but not for Suse Linux. This agent > is important to monitor virtual resources on guest machines, hence the need. > How can this be done? ___ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
Re: [Engine-devel] GWT Dev Mode unbearably slow in WebAdmin
Master is back to its normal zippy self in GWT dev mode as of 8:25 EST Feb 27th 2014. With relative values for zippy. If you are annoyed by the slow GTW dev mode be sure to fetch and rebase. On Wednesday, February 19, 2014 10:51:06 AM Greg Sheremeta wrote: > I agree with Lior. Alexander (cc'd) has a patch that will hopefully address > it. > > Greg > > - Original Message - > > > From: "Lior Vernia" > > To: "Martin Betak" > > Cc: "Greg Sheremeta" , "engine-devel" > > , "Vojtech Szocs" > > Sent: Wednesday, February 19, 2014 10:27:51 AM > > Subject: Re: [Engine-devel] GWT Dev Mode unbearably slow in WebAdmin > > > > Hi guys, > > > > On 17/02/14 13:15, Martin Betak wrote: > > > Yes, this has been my developer experience since I joined the project. > > > > To my eyes, it hasn't always been this slow. Something aggravated the > > situation sometime in the past 3 weeks. I'm not knowledgeable enough to > > say what went wrong, but this is not simply a gradual degradation of > > more code being compiled, etc. > > > > Lior. > > > > > The 5-6 minute page-loads are a standard but the GWT Dev Mode gets > > > progressively > > > slower after each "refresh" that involves frontend recompilation. Also > > > the > > > memory > > > consumption increases and after 5-th "refresh" or so I have to kill it > > > and > > > recompile the whole engine. > > > > > > Any improvement to current status would be much appreciated. > > > > > > Martin > > > > > > > > > > > > - Original Message - > > > > > >> From: "Greg Sheremeta" > > >> To: "engine-devel" > > >> Sent: Friday, February 14, 2014 4:50:46 PM > > >> Subject: [Engine-devel] GWT Dev Mode unbearably slow in WebAdmin > > >> > > >> Has anyone else noticed that GWT Dev Mode is unbearably slow for > > >> WebAdmin? > > >> On > > >> my machine, it's to the point where I might as well rebuild the entire > > >> application for every change and not bother with Dev Mode. Pages take 4 > > >> or > > >> 5 > > >> minutes to render. Sometimes after 5 minutes, I just give up, close > > >> everything, and rebuild the app. > > >> > > >> For now, I want to see if others have this issue. If we confirm that > > >> it's > > >> widespread, we can discuss ways to mitigate. > > >> > > >> Greg Sheremeta > > >> Red Hat, Inc. > > >> Sr. Software Engineer, RHEV > > >> Cell: 919-807-1086 > > >> gsher...@redhat.com > > >> ___ > > >> Engine-devel mailing list > > >> Engine-devel@ovirt.org > > >> http://lists.ovirt.org/mailman/listinfo/engine-devel > > > > > > ___ > > > Engine-devel mailing list > > > Engine-devel@ovirt.org > > > http://lists.ovirt.org/mailman/listinfo/engine-devel ___ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
Re: [Engine-devel] Dependency checking tool
Rohit, You can run mvn dependency:tree -Dverbose To see the entire dependency tree. On Wednesday, March 12, 2014 07:19:01 PM Rohit Agrawal wrote: > hi, > i am now trying to make some changes in ovirt engine code for which i neede > to see the dependency. > As there are many pom.xml files. Is there any dependency tool to see all > the dependency. ___ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
Re: [Engine-devel] [Users] adding scripts
Aditya, That is because that file doesn't exist. We map that name to a servlet in web.xml. If you want to modify the GWT host page take a look at GwtDynamicHostPageServlet.java and its sub classes (for user portal and webadmin). As well as GwtHostPage.jsp. You will find there is almost nothing in that page as all the HTML is being generated at runtime using GWT. Since you are not really explaining what you are trying to do we can't help you better on the best strategy to achieve what you want. Alexander On Saturday, March 15, 2014 06:00:21 PM Aditya Mamidwar wrote: > Hey thanks on the previous issue. > Also is there a way i can access WebAdmin.Html to add custom buttons and > make few tweaks for personal use? I just cant find that file after using > git. > > Aditya Mamidwar > > -Original Message- > From: "Einav Cohen" > Sent: 14-03-2014 01:21 > To: "aditya mamidwar" ; "Vojtech Szocs" > Cc: "us...@ovirt.org" ; > "engine-devel@ovirt.org" Subject: Re: [Users] > adding scripts > > if you are trying to hook into UI-specific events, it sounds > like you will need to write an oVirt UI Plugin [1] in order to > do that. However, I believe that the oVirt UI Plugins > infrastructure doesn't support hooking to events such as "tab > x was selected" and/or "button b was clicked". > It does allow you to add new (custom) tabs/sub-tabs/buttons of > your own, and there is a chance that it allows you to hook > into events such as 'row x was selected in the grid'. > > @Vojtech will know better. Vojtech? > > if you are trying to hook into engine events (e.g. you want to > run a script every time a VM is started in oVirt, no matter if > the user started it by clicking the 'run' button in the oVirt- > engine webadmin, or invoked a REST API request, or an SDK > command), then it will require some sort of an "engine-plugin" > infrastructure that we don't have at the moment AFAIK. > there is a chance that for some of the events you will be able > to utilize the VDSM hooks (at the Host level) [2]. > > > Thanks, > Einav > > [1] http://www.ovirt.org/Features/UIPlugins > > [2] http://www.ovirt.org/VDSM-Hooks > > > - Original Message - > > > From: "aditya mamidwar" > > To: us...@ovirt.org, engine-devel@ovirt.org > > Sent: Thursday, March 13, 2014 11:23:35 AM > > Subject: [Users] adding scripts > > > > > > I want to commit changes to the engine by adding some bash scripts. > > the scripts should be invoked once a button or tab is selected in the > > webadmin portal by the user. > > > > can someone guide on achieving this. > > > > -- > > -Aditya Mamidwar > > > > ___ > > Users mailing list > > us...@ovirt.org > > http://lists.ovirt.org/mailman/listinfo/users ___ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
Re: [Engine-devel] [Users] adding scripts
On Friday, March 21, 2014 03:44:01 PM aditya mamidwar wrote: > Hey, > my team is working on adding AoE protocol support to ovirt. > > am thus facing following difficulties: > 1 : i wrote the required code using in bash scripting, which i wish to > invoke after a click of button in the ovirt-portal. (which does not seem to > be possible). can you help on that? which programming language should i > use, and how that file should be invoked. When you say ovirt portal I am assuming you mean the web admin as giving users access to low level stuff like that in the user portal would probably be a bad thing. As said in a couple of other responses the best way to do that in webadmin is probably writing a UI plugin. A full explanation of what you can do with a UI plugin is available here: http://www.ovirt.org/Features/UIPlugins In short a UI plugin is a mini application written in Javascript that hooks into the main web admin UI. The UI infrastructure makes certain element of the UI available to the plugin. One of the things it can do is to allow you to add buttons to the UI. When those buttons are clicked whatever javascript handler you assigned to it will execute. This gives you a couple of options: 1. Write your own web application that can take commands from buttons inside the web admin interface. Since the ovirt engine runs on JBOSS I would suggest you write your own web application in Java that executes the appropriate bash commands based on which button is pressed using the UI plugin. 2. Write a minimal plugin that makes use of the REST API and add code to call your bash scripts from the REST api. > > 2. for ISOs to be available, i need to enable hosts configured in clusters > and storage domains of ATA type. (currently NFS, iSCSI and FC are done). > which files should i focus on changing for above functionality. > Honestly I don't know enough about the storage infrastructure to give you a good answer to that. Maybe someone else can fill this in. > 3. How do i change the custom layout of the engine? (like adding a few > extra buttons.) please specify the files responsible. > Look at the UI plugins, the page linked above explains their usage in great detail as well as give a bunch of examples on how to achieve this. > 4. the above questions stress that am facing difficulty in identifying > files responsible for a particular module. is there a better way to do that > instead of digging up the entire source code. ( a documentation if > available.) > This gives a nice overview of the architecture of oVirt: http://www.ovirt.org/Architecture The source code associated with that is basically split out into two GIT repositories. 1. For the frontend and the engine, which is all java code. 2. For VDSM which is all python. The user portal and web admin communicate with the engine using GWT-RPC and soon the REST api. Then the engine communicates with VDSM using XML-RPC. The engine runs on one machine (either dedicated or as its own VM on one of your hosts). Then VDSM runs on the hosts. The hosts are the ones that communicate with the storage. So I am guessing your bash code will run on a host? So in short, I think this is what you want? 1. Write UI plugin to add the buttons/etc to the webadmin. 2. Write your own web app, or hook into the REST API and add the commands to execute whatever it is you are doing. 3. (Maybe?) Modify VDSM to accept the commands from the REST API or your web application, and execute your scripts using VDSM based on the commands. Alexander > On Mon, Mar 17, 2014 at 5:52 PM, Alexander Wels wrote: > > Aditya, > > > > That is because that file doesn't exist. We map that name to a servlet in > > web.xml. If you want to modify the GWT host page take a look at > > GwtDynamicHostPageServlet.java and its sub classes (for user portal and > > webadmin). As well as GwtHostPage.jsp. You will find there is almost > > nothing in > > that page as all the HTML is being generated at runtime using GWT. > > > > Since you are not really explaining what you are trying to do we can't > > help > > you better on the best strategy to achieve what you want. > > > > Alexander > > > > On Saturday, March 15, 2014 06:00:21 PM Aditya Mamidwar wrote: > > > Hey thanks on the previous issue. > > > Also is there a way i can access WebAdmin.Html to add custom buttons and > > > make few tweaks for personal use? I just cant find that file after using > > > git. > > > > > > Aditya Mamidwar > > > > > > -Original Message- > > > From: "Einav Cohen" > > > Sent: 14-03-2014 01:21 > > > To: "aditya mamidwar" ; "Vojtech Szocs" > > > Cc: "us...@ovirt.org" ; > &
Re: [Engine-devel] NUMA Support - GUI Technical Session
On Tuesday, April 01, 2014 11:34:43 AM Gilad Chaplik wrote: > Hi all, > > Here are the resolutions from the meeting: > > * option 1 > 1) Use gwt-dnd lib for oVirt's dnd (drag and drop) infrastructure. > 2) Come up with a very simple POC that covers all of NUMA-support UX > requirements. 3) Either do a POC, or get UX maintainers approval, that > moving already existing dnd features to new infrastructure (setup-networks > and scheduling policy dialogs) is feasible and possible. > +1 for option 1. None of the drag and drop in the application now looks terribly hard. The gwt-dnd library simply makes things easier to control and maintain. > * option 2 > Extract setup network dnd capabilities to a common general infrastructure > and use that as an infrastructure. NOTE that setup-networks will not use it > in oVirt-3.5. > > I will start with option 1, just need UX team approval that [1] will be > added to ovirt-3.5, and be used for dnd for now on. In case I fail to > deliver option 1 (with the help and guidance of the UX team) in a quick > cycle (a week or so), I will peruse option 2, which is trivial. > > Moving forward, all new dnd enabled features will use the new > infrastructure, and the motivation is to migrate existing ones as well. > > Thanks, > Gilad. > > [1] http://code.google.com/p/gwt-dnd/ > > ----- Original Message - > > > From: "Gilad Chaplik" > > To: "Einav Cohen" , "Alexander Wels" > > , "Eyal Edri" , "Steve Gordon" > > , "Eli Mesika" , "Otavio Luiz > > Ferranti" , "Sandro Bonazzola" > > , "Greg Sheremeta" , "Doron > > Fediuck" , "Lior Vernia" , > > "engine-devel" , "Martin Sivak" > > , "chuan liao" , "xiao-lei shi" > > , "chegu vinod" , "da-huai tang" > > > > Sent: Sunday, March 30, 2014 2:06:59 AM > > Subject: NUMA Support - GUI Technical Session > > > > The following meeting has been modified: > > > > Subject: NUMA Support - GUI Technical Session [MODIFIED] > > Organizer: "Gilad Chaplik" > > > > Time: Tuesday, April 1, 2014, 5:00:00 PM - 6:00:00 PM GMT +02:00 Jerusalem > > [MODIFIED] > > > > Required: eco...@redhat.com; aw...@redhat.com; ee...@redhat.com; > > sgor...@redhat.com; emes...@redhat.com; otavio.ferra...@eldorado.org.br; > > sbona...@redhat.com; gsher...@redhat.com > > Optional: dfedi...@redhat.com; lver...@redhat.com; engine-devel@ovirt.org; > > msi...@redhat.com; chuan.l...@hp.com; xiao-lei@hp.com; > > chegu_vi...@hp.com; da-huai.t...@hp.com > > > > *~*~*~*~*~*~*~*~*~* > > > > We will discuss on how to implement NUMA support GUI in oVirt for version > > 3.5 (see attached sketches). > > > > Agenda: > > 1) Brainstorming > > 2) Resolution > > 3) Split work/tasks among volunteers :) > > > > GUI maintainers please join-in. > > > > Bluejeans (video conference) session to follow [maybe], currently dial in: > > > > https://www.intercallonline.com/listNumbersByCode.action?confCode=71288674 > > 05 > > > > conf id: 712 886 7405# ___ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel