
Thanks for answering, all is logical now we found the reason. I think there is a lack of documentation about the hook scripts while there are very useful in my case, waiting for engine implementation in ovirt 3.1. I would have never found the good gerrit link without your help. How can I get a tree of an old version except by directly adding hb=v4.9.3.2 instead of hb=HEAD in the url? Le 06/06/2012 09:43, Dan Kenigsberg a écrit :
On Tue, Jun 05, 2012 at 06:12:37PM +0200, Nathanaël Blanchet wrote:
okay, but I was running vdsm 4.9.3.2 from the ovirt 3.0 stable repository and I'm not sure 4.9.6.x is compatible with engine 3.0. So I built rpm on a F17 host and then installed the rpm vdsm-hook-directlun-4.9.6-0.268.gitfc9e104.fc17.noarch.rpm to the host with vdsm 4.9.3.2. According to the logs, issues about "from vdsm import utils" are the same. I guess it must exist a way to make those scripts work with 4.9.3.2 because those scripts have been written before this first ovirt release had been available. Plus, vmdisk works fine but scripts invoking "from vdsm import utils" don't.
Do you have any idea? The vdsm package you are importing from is rather new and did not exist in vdsm-4.9.3.2. You should probably use the hooks from http://gerrit.ovirt.org/gitweb?p=vdsm.git;a=tree;f=vdsm_hooks;hb=v4.9.3.2 when vdsm-4.9.3.2 is installed.
Dan.
-- Nathanaël Blanchet Supervision réseau Pôle exploitation et maintenance Département des systèmes d'information 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 Tél. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 blanchet@abes.fr