Created attachment 779677 [details] logs and screenshot Description of problem: I have 2 hooks on my vdsm: [root@black-vds1 after_disk_hotplug]# vdsClient -s 0 getVdsCaps |grep 1.py hooks = {'after_disk_hotplug': {'1.py': {'md5': '511d276c47d15d0e3f42098abdc95c6d'}}, 'before_disk_hotunplug': {'1.py': {'md5': '511d276c47d15d0e3f42098abdc95c6d'}}} They are also present on DB: psql -U postgres engine -c 'select hooks from vds_with_tags ;' | less -S hooks ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- {} {after_disk_hotplug={1.py={md5=f9000be851a7b652102639ce691ffd24}}} {} {} {after_disk_hotplug={1.sh={md5=7484ddd871f4b3db789675922a66e17f}}, before_disk_hotplug={2.sh={md5=e5e1ea20dea2b5a873216a2af2d1f1d4}}, after_disk_hotunplug={1.sh={md5=4b10ea6dff25a5be55e8e1d4e5e63295}}} (5 rows) But engine shows only one of them under the 'host hooks' sub-tab under 'hosts' tab on UI. (screenshot attached) Version-Release number of selected component (if applicable): rhevm-3.3.0-0.11.master.el6ev.noarch Steps to Reproduce: 1. add several scripts to vdsm under one of the hooks directories (/usr/libexec/vdsm/hooks) Actual results: vdsm proceed hooks information to engine by vdsCaps, the hooks present on DB, but not all of them reprted to user in UI Expected results: All hooks should be presented on UI Additional info: logs and screenshot
Can you please attach the hooks that you are trying to add. I added simple hooks with file name 1.py in after_nic_hotplug and after_nic_hotunplug and I see them on the webadmin. Contents of 1.py below #!/usr/bin/python import os import sys sys.stderr.write('after nic hot unplug\n') sys.exit(2)
Can you try please with several hooks? check if all of them are presented on UI
I haved added serveral hooks, same file as above to several hook directorties and they all show up on the webadmin both on is7 and current master.
On latest build (is19), engine reveals all vdsm hooks, as you said. I'm closing the bug for now.