Sunday, June 9, 2013

oVirt UI-VDSM-Hooks Plugin

Using CGI scripts located on the host's web-server, VDSM commands (vdsClient)
can be invoked directly from the WebAdmin UI. This solution is useful for commonly
used commands, scripts that are based on vdsClient API or as a shell replacement...
Following are some screenshots and code snippets to illustrate the technique capabilities
(UI-Plugin's infrastructure and hooks examples can be fetched here).

Hooks Examples

right-click on a host


GetAllTasks


GetConnectedStoragePool

 

GetStorageDomainsList



VdsClient API

UI for all VdsClient API commands


VdsClient - 'list' command


VdsClient - list table



Main CGI Script

/var/www/cgi-bin/ui-vdsm-hooks/ui-vdsm-hooks.cgi


 VdsClient API Script

/var/www/cgi-bin/ui-vdsm-hooks/scripts/vdsClientApi.py


    Plugin's start HTML

    /usr/share/ovirt-engine/ui-plugins/ui-vdsm-hooks-files/start.html



    Full Source Code


    No comments:

    Post a Comment