Re: [ovirt-devel] SSO using remote-viewer
On 08/12/2014 03:01 PM, Denis Kirjanov wrote: Ok, vdsClient with the desktopLogin works pretty well on the first step. I found a weird behavior when closing remote-viewer window. Even a session remains open (no logout/switch user is performed), the subsequent connect with the _same ticket_ spits out a gdm window with a password... You mean the password is shown to the user? That would be pretty bad. As for the disconnect that surprises me a little bit. Can you please perform the connection to the VM and then disconnect and pass me the logs of vdsm /var/log/vdsm/vdsm.log for the host the vm is running on? Also it'd be great if you could before turn on debug logging on the VM for the guest agent /etc/ovirt-guest-agent.conf (replace INFO with DEBUG) and restart the service. # service ovirt-guest-agent restart and pass me the logs for it as well ( /var/log/ovirt-guest-agent/ovirt-guest-agent.log ) Thanks - Исходное сообщение - От: "Denis Kirjanov" Кому: "Vinzenz Feenstra" Копия: devel@ovirt.org Отправленные: Понедельник, 11 Август 2014 г 18:34:24 Тема: Re: [ovirt-devel] SSO using remote-viewer - Исходное сообщение - От: "Vinzenz Feenstra" Кому: "Denis Kirjanov" Копия: "Michal Skrivanek" , devel@ovirt.org Отправленные: Понедельник, 11 Август 2014 г 17:26:30 Тема: Re: [ovirt-devel] SSO using remote-viewer On 08/11/2014 03:12 PM, Denis Kirjanov wrote: - Исходное сообщение - От: "Vinzenz Feenstra" Кому: "Michal Skrivanek" , "Denis Kirjanov" Копия: devel@ovirt.org Отправленные: Понедельник, 11 Август 2014 г 17:07:40 Тема: Re: [ovirt-devel] SSO using remote-viewer On 08/11/2014 03:06 PM, Vinzenz Feenstra wrote: On 08/11/2014 03:01 PM, Michal Skrivanek wrote: On Aug 11, 2014, at 14:14 , Denis Kirjanov wrote: Hi guys, I'm trying to login to a virtual machine without using the web interface (User Portal) but through the remote-viewer and a small python script to gather all required info such a certificate subject, ticken and ports. The virtual machine has the rhevm sso package installed so I can get to the machine through the web UI, but I can't do the same thing using remote-viewer. What I do see is a gdm login window with my user account and 2 icons (Login into session and RHEV-M SSO login). Looks like I have to invoke something inside my python script to get an access but I can't figure out what is missing… you need to issue the "desktopLogin" command to actually perform the sign on. The viewer itself doesn't do anything If this is going through vdsm then it's the desktop login command. Via the REST API it'd be just /vms/{vmid}/logon Note: The REST API supports this from oVirt/RHEV 3.5 Thanks, but we're using oVirt/RHEV 3.1. Does the PythonAPI (or ReST API) support something like this in 3.1? Well only the XMLRPC api of the Host supports the desktopLogin verb, as Michal already said. vdsClient for example can do this, when it has the right certificates vdsClient -s desktopLogin HTH Could you please guide me on how to set a required certificates on a client? Thanks! Thanks, michal Thanks! ___ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel -- Regards, Vinzenz Feenstra | Senior Software Engineer RedHat Engineering Virtualization R & D Phone: +420 532 294 625 IRC: vfeenstr or evilissimo Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com ___ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel
[ovirt-devel] [QE][ACTION NEEDED] oVirt 3.4.4 RC status
Hi, We're going to start composing oVirt 3.4.4 RC on *2014-09-09 08:00 UTC* from 3.4 branch. Maintainers: - Please be sure that 3.4 snapshot allow to create VMs before *2014-09-08 15:00 UTC* - Please be sure that no pending patches are going to block the release before *2014-09-08 15:00 UTC* - If any patch must block the RC release please raise the issue as soon as possible. A bug tracker [1] has been opened and shows no open blockers. There are still 10 bugs [2] targeted to 3.4.4. Excluding node and documentation bugs we still have 6 bugs [3] targeted to 3.4.4. Whiteboard Bug ID Status Summary network 1001186 NEW With AIO installer and NetworkManager enabled, the ovirtmgmt bridge is not properly configured network 1048880 NEW [vdsm][openstacknet] Migration fails for vNIC using OVS + security groups network 1112688 NEW [Neutron integration] Log collection is missing for Neutron appliance node988341 NEW Should not create bond when report an error in configuration process node995321 NEW remove existing efi entries "oVirt Node Hypervisor" in UEFI menu failed node1023481 ASSIGNEDSane and working default libvirt config node1097735 NEW "Reboot" button failed to work in progress_page with serial console to install ovirt-node iso. sla 1059309 NEW [events] 'Available memory of host $host (...) under defined threshold...' is logged only once storage 655 NEW Disks imported from Export Domain to Data Domain are converted to Preallocated after upgrade... virt1126887 POSTrecovery of VMs after VDSM restart doesn't work on PPC Maintainers / Assignee: - Please add the bugs to the tracker if you think that 3.4.4 should not be released without them fixed. - Please update the target to 3.5.1 or later for bugs that won't be in 3.4.4: it will ease gathering the blocking bugs for next releases. - Please fill release notes, the page has been created here [4] Community: - If you're testing oVirt 3.4 nightly snapshot, please add yourself to the test page [5] [1] http://bugzilla.redhat.com/1118689 [2] http://red.ht/1qwhPXB [3] http://red.ht/1r8jnap [4] http://www.ovirt.org/OVirt_3.4.4_Release_Notes [5] http://www.ovirt.org/Testing/oVirt_3.4.4_Testing -- Sandro Bonazzola Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com ___ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel
[ovirt-devel] [QE][ACTION REQUIRED] oVirt 3.5.0 RC2 status (postponed)
Hi, since we have still too many blockers for oVirt 3.5.0 RC2 release, we need to postpone it again to Mon *2014-08-18 08:00 UTC* Maintainers: - Please be sure that 3.5 snapshot allow to create VMs before *2014-08-17 15:00 UTC* - Please be sure that no pending patches are going to block the release before *2014-08-17 15:00 UTC* - If any patch must block the RC release please raise the issue as soon as possible. The bug tracker [1] shows the following proposed blockers to be reviewed: Whiteboard Bug ID Status Summary infra 1114499 ASSIGNEDrefreshing iso list fails with: AttributeError: '_IOProcessFileUtils' object has no attribute... Infra 1127623 POST[AAA] Create user API fails in REST & Java - class cast exception infra 1127877 ASSIGNEDvdsm-tool configure --force does not configure qemu.conf properly in the first run on a fresh install storage 1109920 POSTLive Merge: Extend internal block volumes during merge storage 1127294 POSTLive Merge: Resolve unknown merge status in vdsm after host crash storage 1128776 NEW Can't change a vm disk's storage domain from a file domain to a block domain when creating a template... storage 1129261 NEW prepareImage api call fails with [Errno 2] No such file or directory virt1127460 NEW VM abnormal stop after extending when using thin provisioning on block storage And the following dependencies still open: Bug 1041569 - [NFR] libvirt: Returning the watermark for all the images opened for writing Bug 1102881 - virDomainBlockCommit fails with live snapshots on oVirt block storage Some of above blockers may be dropped on today oVirt sync meeting. Feature freeze is now effective, and branch has been created. All new patches must be backported to 3.5 branch too. Features completed are marked in green on Features Status Table [2] There are still 427 bugs [3] targeted to 3.5.0. Excluding node and documentation bugs we still have 384 bugs [4] targeted to 3.5.0. More in detail [5]: Whiteboard NEW ASSIGNEDPOSTTotal 7 . . 7 gluster 8 4 1 13 i18n. . 1 1 Infra . . 1 1 infra 16 3 6 25 integration 36 . 7 43 network 25 1 12 38 node21 7 4 32 ppc 2 . 4 6 sla 29 1 16 46 storage 78 8 6 92 storage/virt1 . . 1 ux 21 2 4 27 virt79 8 8 95 Total 323 34 70 427 Maintainers / Assignee: - Please ensure that completed features are marked in green on Features Status Table [2] - Please remember to rebuild your packages before *2014-08-17 15:00* if needed, otherwise nightly snapshot will be taken. - If you find a blocker bug please remember to add it to the tracker [1] - Please fill release notes, the page has been created here [6] - Please review and add test cases to oVirt 3.5 Third Test Day [7] - Please update the target to 3.5.1 or later for bugs that won't be in 3.5.0: it will ease gathering the blocking bugs for next releases. Community: - save the date for third test day scheduled on 2014-08-21! - You're welcome to join us testing next beta release and getting involved in oVirt Quality Assurance[8] [1] http://bugzilla.redhat.com/1073943 [2] http://bit.ly/17qBn6F [3] http://red.ht/1pVEk7H [4] http://red.ht/1zT2mSq [5] http://red.ht/1q7SqNL [6] http://www.ovirt.org/OVirt_3.5_Release_Notes [7] http://www.ovirt.org/OVirt_3.5_TestDay [8] http://www.ovirt.org/OVirt_Quality_Assurance Thanks, -- Sandro Bonazzola Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com ___ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel
[ovirt-devel] Why there is no "Ovirt Engine" register item on Ovirt Node
Hi Fabian and Ryan, Even though the ovirt-node that is built by myself on CentOS has boot successfully. However, When I test my ovirt-node, and find one problem. please take a look the follow two ovirt-node running pictures. 1, Offical ovirt-node running screenshot 2, My ovirt-node running screenshot There is no "Ovirt Engine" register function. Compare the size of this two ovirt-node iso, offical node is 250M, but my ovirt-node is 200M. I think "Ovirt Engine" register function isn't built into ovirt node. Who know how to resolve this problem? Thank you very much! Looking forward to anyone's feedback. Thanks! Best Regards! Tao At 2014-08-13 03:04:41, "Fabian Deutsch" wrote: >- Original Message - >> Hi fdeutsch and Ryan, >> >> I test the ovirt-node iso that is built by myself. It can boot successfully >> from hard disk on physical PC. >> >> Thanks very much for both's help recently! Have you a nice day! >> >> Best Regards! >> Tao > >Hey Tao, > >that is great news! > >Might I ask if you do something special with Node? > >Greetings >fabian ___ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel
Re: [ovirt-devel] Why there is no "Ovirt Engine" register item on Ovirt Node
Hi: yangtao, I think you miss the package ovirt-node-plugins-vdsm. Please check you ks file. 2014-08-13 16:44 GMT+08:00 yangtao : > Hi Fabian and Ryan, > > Even though the ovirt-node that is built by myself on CentOS has boot > successfully. However, > When I test my ovirt-node, and find one problem. please take a look the > follow two ovirt-node running pictures. > > 1, Offical ovirt-node running screenshot > > > > 2, My ovirt-node running screenshot > > > There is no "Ovirt Engine" register function. Compare the size of this two > ovirt-node iso, offical node is 250M, but my ovirt-node is 200M. > I think "Ovirt Engine" register function isn't built into ovirt node. Who > know how to resolve this problem? Thank you very much! > > Looking forward to anyone's feedback. Thanks! > > Best Regards! > Tao > > > > > > > > At 2014-08-13 03:04:41, "Fabian Deutsch" wrote: > >- Original Message - > >> Hi fdeutsch and Ryan, > >> > >> I test the ovirt-node iso that is built by myself. It can boot successfully > >> from hard disk on physical PC. > >> > >> Thanks very much for both's help recently! Have you a nice day! > >> > >> Best Regards! > >> Tao > > > >Hey Tao, > > > >that is great news! > > > >Might I ask if you do something special with Node? > > > >Greetings > >fabian > > > > > > > ___ > Devel mailing list > Devel@ovirt.org > http://lists.ovirt.org/mailman/listinfo/devel > -- 独立之思想,自由之精神。 --陈寅恪 ___ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel
Re: [ovirt-devel] Why there is no "Ovirt Engine" register item on Ovirt Node
- Original Message - > Hi Fabian and Ryan, > > Even though the ovirt-node that is built by myself on CentOS has boot > successfully. However, > When I test my ovirt-node, and find one problem. please take a look the > follow two ovirt-node running pictures. > > 1, Offical ovirt-node running screenshot > > > > > 2, My ovirt-node running screenshot > > > There is no "Ovirt Engine" register function. Compare the size of this two > ovirt-node iso, offical node is 250M, but my ovirt-node is 200M. > I think "Ovirt Engine" register function isn't built into ovirt node. Who > know how to resolve this problem? Thank you very much! > > Looking forward to anyone's feedback. Thanks! Hey Tao, the "Engine" part of Node is part of the ovirt-node-plugin-vdsm. To build the Node for Engine, you need to build that plugin too and use the kickstart provided in that plugin. - fbaian > Best Regards! > Tao > > > > > > > > > > > At 2014-08-13 03:04:41, "Fabian Deutsch" wrote: > >- Original Message - > >> Hi fdeutsch and Ryan, > >> > >> I test the ovirt-node iso that is built by myself. It can boot > >> successfully > >> from hard disk on physical PC. > >> > >> Thanks very much for both's help recently! Have you a nice day! > >> > >> Best Regards! > >> Tao > > > >Hey Tao, > > > >that is great news! > > > >Might I ask if you do something special with Node? > > > >Greetings > >fabian > > > > > ___ > Devel mailing list > Devel@ovirt.org > http://lists.ovirt.org/mailman/listinfo/devel ___ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel
Re: [ovirt-devel] Why there is no "Ovirt Engine" register item on Ovirt Node
Hi Fabian, How to build build plugin and use the kickstart provided in that plugin? What's more, I use 3.1.0 master version to build. The ovirt node master version doesn't include the VSDM plugin, right? Best Regards! Tao At 2014-08-13 04:53:55, "Fabian Deutsch" wrote: >- Original Message - >> Hi Fabian and Ryan, >> >> Even though the ovirt-node that is built by myself on CentOS has boot >> successfully. However, >> When I test my ovirt-node, and find one problem. please take a look the >> follow two ovirt-node running pictures. >> >> 1, Offical ovirt-node running screenshot >> >> >> >> >> 2, My ovirt-node running screenshot >> >> >> There is no "Ovirt Engine" register function. Compare the size of this two >> ovirt-node iso, offical node is 250M, but my ovirt-node is 200M. >> I think "Ovirt Engine" register function isn't built into ovirt node. Who >> know how to resolve this problem? Thank you very much! >> >> Looking forward to anyone's feedback. Thanks! > >Hey Tao, > >the "Engine" part of Node is part of the ovirt-node-plugin-vdsm. > >To build the Node for Engine, you need to build that plugin too and use the >kickstart provided in that plugin. > >- fbaian > > >> Best Regards! >> Tao >> >> >> >> >> >> >> >> >> >> >> At 2014-08-13 03:04:41, "Fabian Deutsch" wrote: >> >- Original Message - >> >> Hi fdeutsch and Ryan, >> >> >> >> I test the ovirt-node iso that is built by myself. It can boot >> >> successfully >> >> from hard disk on physical PC. >> >> >> >> Thanks very much for both's help recently! Have you a nice day! >> >> >> >> Best Regards! >> >> Tao >> > >> >Hey Tao, >> > >> >that is great news! >> > >> >Might I ask if you do something special with Node? >> > >> >Greetings >> >fabian >> >> >> >> >> ___ >> Devel mailing list >> Devel@ovirt.org >> http://lists.ovirt.org/mailman/listinfo/devel ___ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel
Re: [ovirt-devel] Why there is no "Ovirt Engine" register item on Ovirt Node
On 08/13/2014 05:12 AM, yangtao wrote: Hi Fabian, How to build build plugin and use the kickstart provided in that plugin? What's more, I use 3.1.0 master version to build. The ovirt node master version doesn't include the VSDM plugin, right? Hi Tao, In the below link there are steps how to build ovirt-node-plugin-vdsm and vdsm. Additionally, there is an example how to add these packages into the iso with edit-node tool: http://dougsland.livejournal.com/123418.html More info about VDSM, please consult: http://www.ovirt.org/Vdsm_Developers Best Regards! Tao At 2014-08-13 04:53:55, "Fabian Deutsch" wrote: - Original Message - Hi Fabian and Ryan, Even though the ovirt-node that is built by myself on CentOS has boot successfully. However, When I test my ovirt-node, and find one problem. please take a look the follow two ovirt-node running pictures. 1, Offical ovirt-node running screenshot 2, My ovirt-node running screenshot There is no "Ovirt Engine" register function. Compare the size of this two ovirt-node iso, offical node is 250M, but my ovirt-node is 200M. I think "Ovirt Engine" register function isn't built into ovirt node. Who know how to resolve this problem? Thank you very much! Looking forward to anyone's feedback. Thanks! Hey Tao, the "Engine" part of Node is part of the ovirt-node-plugin-vdsm. To build the Node for Engine, you need to build that plugin too and use the kickstart provided in that plugin. - fbaian Best Regards! Tao At 2014-08-13 03:04:41, "Fabian Deutsch" wrote: >- Original Message - >> Hi fdeutsch and Ryan, >> >> I test the ovirt-node iso that is built by myself. It can boot >> successfully >> from hard disk on physical PC. >> >> Thanks very much for both's help recently! Have you a nice day! >> >> Best Regards! >> Tao > >Hey Tao, > >that is great news! > >Might I ask if you do something special with Node? > >Greetings >fabian ___ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel ___ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel -- Cheers Douglas ___ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel
[ovirt-devel] Command coordination deep-dive session
Hi everyone The youtube streaming link for this session is: http://www.youtube.com/watch?v=Zn2DlCDP6bY It will start in a few minutes. Enjoy! Oved ___ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel
Re: [ovirt-devel] popup dialog
Hi, in order to add new dialog, follow these steps: 1, create UiCommon model for the dialog, I see you already did this (TemplateBackupModel) - however from your code I don't understand why is there an unused "_asyncQuery" inside model constructor 2, modify existing list model to trigger your new dialog, I see you also did this (second code snippet), I assume you put that code inside TemplateListModel: // inside TemplateListModel#backup - this method should be private // since UI code executes this method via associated UICommand ... TemplateBackupModel model = new TemplateBackupModel(); setWindow(model); model.setTitle(ConstantsManager.getInstance().getConstants().templateBackupTitle()); model.setHelpTag(HelpTag.template_backup); model.setHashName("template_backup");//$NON-NLS-1$ ... now, expose UICommand that triggers your dialog like this: public UICommand getTemplateBackupCommand() { return privateTemplateBackupCommand; } private void setTemplateBackupCommand(UICommand value) { privateExportCommand = value; } // inside TemplateListModel constructor ... setTemplateBackupCommand(new UICommand("TemplateBackup", this)); //$NON-NLS-1$ ... // inside TemplateListModel#executeCommand ... else if (command == getTemplateBackupCommand()) { backup(); } ... 3, tell UI (GWTP) infra how to handle your dialog model - in this particular case, edit TemplateModule#getTemplateListProvider: ... if (lastExecutedCommand == model.getEditCommand()) { return popupProvider.get(); } else if (lastExecutedCommand == getModel().getExportCommand()) { return exportPopupProvider.get(); } else if (lastExecutedCommand == getModel().getTemplateBackupCommand()) { return templateBackupProvider.get(); } else { return super.getModelPopup(source, lastExecutedCommand, windowModel); } ... now, add parameter to TemplateModule#getTemplateListProvider: @Provides @Singleton public MainModelProvider getTemplateListProvider( ... final Provider templateBackupPopupProvider) { ... 4, create PresenterWidget & View for your dialog, this is the visual part of the dialog (dialog model just encapsulates the dialog logic) public class TemplateBackupPopupPresenterWidget extends AbstractModelBoundPopupPresenterWidget { public interface ViewDef extends AbstractModelBoundPopupPresenterWidget.ViewDef { } @Inject public TemplateBackupPopupPresenterWidget(EventBus eventBus, ViewDef view) { super(eventBus, view); } } --- public class TemplateBackupPopupView extends AbstractModelBoundPopupView implements TemplateBackupPopupPresenterWidget.ViewDef { // you can get some inspiration from VmExportPopupView } 5, you are done :) Vojtech - Original Message - > From: "力波 王" > To: devel@ovirt.org > Sent: Tuesday, August 12, 2014 7:57:24 AM > Subject: [ovirt-devel] popup dialog > > Hi, everyone: > I add a button, named backup in the Template Tab, > And the click event is ok. > Now I want add a dialog after clicked the button, > So, I add a model , but the dialog didn’t display at all. > > So, I want to know is there some necessary class need > To modify or add? > > The model code is like this: > TemplateBackupModel.java > > public class TemplateBackupModel extends Model { > > private EntityModel privatePassword; > > public EntityModel getPassword() > { > return privatePassword; > } > > public void setPassword(EntityModel value) > { > privatePassword = value; > } > > public TemplateBackupModel(){ > > setPassword(new EntityModel()); > > AsyncQuery _asyncQuery = new AsyncQuery(); > _asyncQuery.setModel(this); > _asyncQuery.asyncCallback = new INewAsyncCallback() { > @Override > public void onSuccess(Object model, Object result) > { > > } > }; > > } > > @Override > public void eventRaised(Event ev, Object sender, EventArgs args) { > super.eventRaised(ev, sender, args); > } > > public boolean validate(){ > return true; > } > } > > > And created a model in the backup button click callback like this: > > public void backup() > { > > if (getWindow() != null) > { > return; > } > > TemplateBackupModel model = new TemplateBackupModel(); > setWindow(model); > model.setTitle("TemplateBackup");//$NON-NLS-1$ > model.setHashName("TemplateBackup");//$NON-NLS-1$ > > > UICommand tempVar = new UICommand("OnBackup", this); //$NON-NLS-1$ > tempVar.setTitle(ConstantsManager.getInstance().getConstants().ok()); > tempVar.setIsDefault(true); > model.getCommands().add(tempVar); > UICommand tempVar2 = new UICommand("Cancel", this); //$NON-NLS-1$ > tempVar2.setTitle(ConstantsManager.getInstance().getConstants().cancel()); > tempVar2.setIsCancel(true); > model.getCommands().add(tempVar2); > > } > ==
Re: [ovirt-devel] popup dialog
Hi, forgot to mention, one more thing needs to be done: // in PresenterModule bindPresenterWidget(TemplateBackupPopupPresenterWidget.class, TemplateBackupPopupPresenterWidget.ViewDef.class, TemplateBackupPopupView.class); (Above binds popup PresenterWidget/View within GIN DI context.) Regards, Vojtech - Original Message - > From: "Vojtech Szocs" > To: "力波 王" > Cc: devel@ovirt.org > Sent: Wednesday, August 13, 2014 6:00:08 PM > Subject: Re: [ovirt-devel] popup dialog > > Hi, > > in order to add new dialog, follow these steps: > > 1, create UiCommon model for the dialog, I see you already did this >(TemplateBackupModel) - however from your code I don't understand >why is there an unused "_asyncQuery" inside model constructor > > 2, modify existing list model to trigger your new dialog, I see you >also did this (second code snippet), I assume you put that code >inside TemplateListModel: > > // inside TemplateListModel#backup - this method should be private > // since UI code executes this method via associated UICommand > ... > TemplateBackupModel model = new TemplateBackupModel(); > setWindow(model); > > model.setTitle(ConstantsManager.getInstance().getConstants().templateBackupTitle()); > model.setHelpTag(HelpTag.template_backup); > model.setHashName("template_backup");//$NON-NLS-1$ > ... > >now, expose UICommand that triggers your dialog like this: > > public UICommand getTemplateBackupCommand() { > return privateTemplateBackupCommand; > } > > private void setTemplateBackupCommand(UICommand value) { > privateExportCommand = value; > } > > // inside TemplateListModel constructor > ... > setTemplateBackupCommand(new UICommand("TemplateBackup", this)); > //$NON-NLS-1$ > ... > > // inside TemplateListModel#executeCommand > ... > else if (command == getTemplateBackupCommand()) { > backup(); > } > ... > > 3, tell UI (GWTP) infra how to handle your dialog model - in this >particular case, edit TemplateModule#getTemplateListProvider: > > ... > if (lastExecutedCommand == model.getEditCommand()) { > return popupProvider.get(); > } else if (lastExecutedCommand == getModel().getExportCommand()) { > return exportPopupProvider.get(); > } else if (lastExecutedCommand == getModel().getTemplateBackupCommand()) { > return templateBackupProvider.get(); > } else { > return super.getModelPopup(source, lastExecutedCommand, windowModel); > } > ... > >now, add parameter to TemplateModule#getTemplateListProvider: > > @Provides > @Singleton > public MainModelProvider > getTemplateListProvider( > ... > final Provider > templateBackupPopupProvider) { > ... > > 4, create PresenterWidget & View for your dialog, this is the visual >part of the dialog (dialog model just encapsulates the dialog logic) > > public class TemplateBackupPopupPresenterWidget extends > AbstractModelBoundPopupPresenterWidget TemplateBackupPopupPresenterWidget.ViewDef> { > > public interface ViewDef extends > AbstractModelBoundPopupPresenterWidget.ViewDef { > } > > @Inject > public TemplateBackupPopupPresenterWidget(EventBus eventBus, ViewDef > view) { > super(eventBus, view); > } > > } > > --- > > public class TemplateBackupPopupView extends > AbstractModelBoundPopupView implements > TemplateBackupPopupPresenterWidget.ViewDef { > > // you can get some inspiration from VmExportPopupView > > } > > 5, you are done :) > > Vojtech > > > - Original Message - > > From: "力波 王" > > To: devel@ovirt.org > > Sent: Tuesday, August 12, 2014 7:57:24 AM > > Subject: [ovirt-devel] popup dialog > > > > Hi, everyone: > > I add a button, named backup in the Template Tab, > > And the click event is ok. > > Now I want add a dialog after clicked the button, > > So, I add a model , but the dialog didn’t display at all. > > > > So, I want to know is there some necessary class need > > To modify or add? > > > > The model code is like this: > > TemplateBackupModel.java > > > > public class TemplateBackupModel extends Model { > > > > private EntityModel privatePassword; > > > > public EntityModel getPassword() > > { > > return privatePassword; > > } > > > > public void setPassword(EntityModel value) > > { > > privatePassword = value; > > } > > > > public TemplateBackupModel(){ > > > > setPassword(new EntityModel()); > > > > AsyncQuery _asyncQuery = new AsyncQuery(); > > _asyncQuery.setModel(this); > > _asyncQuery.asyncCallback = new INewAsyncCallback() { > > @Override > > public void onSuccess(Object model, Object result) > > { > > > > } > > }; > > > > } > > > > @Override > > public void eventRaised(Event ev, Object sender, EventArgs args) { > > super.eventRaised(ev, sender, args); > > } > > > > public boolean validate(){ > > return true; > > } > > } > > ==
Re: [ovirt-devel] Why there is no "Ovirt Engine" register item on Ovirt Node
Hi Dougsland, Thank very much for your information! Greeting! Tao At 2014-08-13 10:14:18, "Douglas Schilling Landgraf" wrote: >On 08/13/2014 05:12 AM, yangtao wrote: >> Hi Fabian, >> >> How to build build plugin and use the kickstart provided in that plugin? >> What's more, I use 3.1.0 master version to build. The ovirt node >> master version doesn't include the VSDM plugin, right? > >Hi Tao, > >In the below link there are steps how to build ovirt-node-plugin-vdsm >and vdsm. Additionally, there is an example how to add these packages >into the iso with edit-node tool: > >http://dougsland.livejournal.com/123418.html > >More info about VDSM, please consult: >http://www.ovirt.org/Vdsm_Developers > >> >> Best Regards! >> Tao >> >> >> >> >> >> At 2014-08-13 04:53:55, "Fabian Deutsch" wrote: >>>- Original Message - Hi Fabian and Ryan, Even though the ovirt-node that is built by myself on CentOS has boot successfully. However, When I test my ovirt-node, and find one problem. please take a look the follow two ovirt-node running pictures. 1, Offical ovirt-node running screenshot 2, My ovirt-node running screenshot There is no "Ovirt Engine" register function. Compare the size of this two ovirt-node iso, offical node is 250M, but my ovirt-node is 200M. I think "Ovirt Engine" register function isn't built into ovirt node. Who know how to resolve this problem? Thank you very much! Looking forward to anyone's feedback. Thanks! >>> >>>Hey Tao, >>> >>>the "Engine" part of Node is part of the ovirt-node-plugin-vdsm. >>> >>>To build the Node for Engine, you need to build that plugin too and use the >>>kickstart provided in that plugin. >>> >>>- fbaian >>> >>> Best Regards! Tao At 2014-08-13 03:04:41, "Fabian Deutsch" wrote: >- Original Message - >> Hi fdeutsch and Ryan, >> >> I test the ovirt-node iso that is built by myself. It can boot >> successfully >> from hard disk on physical PC. >> >> Thanks very much for both's help recently! Have you a nice day! >> >> Best Regards! >> Tao > >Hey Tao, > >that is great news! > >Might I ask if you do something special with Node? > >Greetings >fabian ___ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel >> >> >> >> >> >> ___ >> Devel mailing list >> Devel@ovirt.org >> http://lists.ovirt.org/mailman/listinfo/devel >> > > >-- >Cheers >Douglas ___ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel
Re: [ovirt-devel] Command coordination deep-dive session
Hi, Could you give the PPT for us? ^_^ 在 8/13/14, 21:22, "Oved Ourfali" 写入: >Hi everyone > >The youtube streaming link for this session is: > http://www.youtube.com/watch?v=Zn2DlCDP6bY > >It will start in a few minutes. > >Enjoy! >Oved >___ >Devel mailing list >Devel@ovirt.org >http://lists.ovirt.org/mailman/listinfo/devel ___ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel
Re: [ovirt-devel] popup dialog
Hi,Vojtech Szocs: Thanks for your help, I have let it work, The Error I got just because I miss the step 3 you noted. Another question is how could I got the returnValue after executeCommand , and let the returnValue display on the oher Popup dialog. 在 8/14/14, 0:07, "Vojtech Szocs" 写入: >Hi, > >forgot to mention, one more thing needs to be done: > > // in PresenterModule > bindPresenterWidget(TemplateBackupPopupPresenterWidget.class, >TemplateBackupPopupPresenterWidget.ViewDef.class, >TemplateBackupPopupView.class); > >(Above binds popup PresenterWidget/View within GIN DI context.) > >Regards, >Vojtech > > >- Original Message - >> From: "Vojtech Szocs" >> To: "力波 王" >> Cc: devel@ovirt.org >> Sent: Wednesday, August 13, 2014 6:00:08 PM >> Subject: Re: [ovirt-devel] popup dialog >> >> Hi, >> >> in order to add new dialog, follow these steps: >> >> 1, create UiCommon model for the dialog, I see you already did this >>(TemplateBackupModel) - however from your code I don't understand >>why is there an unused "_asyncQuery" inside model constructor >> >> 2, modify existing list model to trigger your new dialog, I see you >>also did this (second code snippet), I assume you put that code >>inside TemplateListModel: >> >> // inside TemplateListModel#backup - this method should be private >> // since UI code executes this method via associated UICommand >> ... >> TemplateBackupModel model = new TemplateBackupModel(); >> setWindow(model); >> >>model.setTitle(ConstantsManager.getInstance().getConstants().templateBack >>upTitle()); >> model.setHelpTag(HelpTag.template_backup); >> model.setHashName("template_backup");//$NON-NLS-1$ >> ... >> >>now, expose UICommand that triggers your dialog like this: >> >> public UICommand getTemplateBackupCommand() { >> return privateTemplateBackupCommand; >> } >> >> private void setTemplateBackupCommand(UICommand value) { >> privateExportCommand = value; >> } >> >> // inside TemplateListModel constructor >> ... >> setTemplateBackupCommand(new UICommand("TemplateBackup", this)); >> //$NON-NLS-1$ >> ... >> >> // inside TemplateListModel#executeCommand >> ... >> else if (command == getTemplateBackupCommand()) { >> backup(); >> } >> ... >> >> 3, tell UI (GWTP) infra how to handle your dialog model - in this >>particular case, edit TemplateModule#getTemplateListProvider: >> >> ... >> if (lastExecutedCommand == model.getEditCommand()) { >> return popupProvider.get(); >> } else if (lastExecutedCommand == getModel().getExportCommand()) { >> return exportPopupProvider.get(); >> } else if (lastExecutedCommand == >>getModel().getTemplateBackupCommand()) { >> return templateBackupProvider.get(); >> } else { >> return super.getModelPopup(source, lastExecutedCommand, >>windowModel); >> } >> ... >> >>now, add parameter to TemplateModule#getTemplateListProvider: >> >> @Provides >> @Singleton >> public MainModelProvider >> getTemplateListProvider( >> ... >> final Provider >> templateBackupPopupProvider) { >> ... >> >> 4, create PresenterWidget & View for your dialog, this is the visual >>part of the dialog (dialog model just encapsulates the dialog logic) >> >> public class TemplateBackupPopupPresenterWidget extends >> AbstractModelBoundPopupPresenterWidget> TemplateBackupPopupPresenterWidget.ViewDef> { >> >> public interface ViewDef extends >> AbstractModelBoundPopupPresenterWidget.ViewDef >>{ >> } >> >> @Inject >> public TemplateBackupPopupPresenterWidget(EventBus eventBus, ViewDef >> view) { >> super(eventBus, view); >> } >> >> } >> >> --- >> >> public class TemplateBackupPopupView extends >> AbstractModelBoundPopupView implements >> TemplateBackupPopupPresenterWidget.ViewDef { >> >> // you can get some inspiration from VmExportPopupView >> >> } >> >> 5, you are done :) >> >> Vojtech >> >> >> - Original Message - >> > From: "力波 王" >> > To: devel@ovirt.org >> > Sent: Tuesday, August 12, 2014 7:57:24 AM >> > Subject: [ovirt-devel] popup dialog >> > >> > Hi, everyone: >> > I add a button, named backup in the Template Tab, >> > And the click event is ok. >> > Now I want add a dialog after clicked the button, >> > So, I add a model , but the dialog didn’t display at all. >> > >> > So, I want to know is there some necessary class need >> > To modify or add? >> > >> > The model code is like this: >> > TemplateBackupModel.java >> > >> > public class TemplateBackupModel extends Model { >> > >> > private EntityModel privatePassword; >> > >> > public EntityModel getPassword() >> > { >> > return privatePassword; >> > } >> > >> > public void setPassword(EntityModel value) >> > { >> > privatePassword = value; >> > } >> > >> > public TemplateBackupModel(){ >> > >> > setPassword(new E