<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body>
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
<div class="WordSection1">
<p class="MsoNormal">Hi Dan,</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks for getting back to me & for your help. The script is 755 permissions and oVirt sees it under the host hooks as well. The dump is below:</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">(I replaced our node IP with “mynodeIP” for privacy) I don’t see the IP’s from the custom property listed in the dump and I also don’t see any errors in the vdsm log. If I grep multiips in the vdsm log I can see entries, but none appear
to be errors.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b>Grep vdsm log for before_vm_start shows:<o:p></o:p></b></p>
<p class="MsoNormal"><b><o:p> </o:p></b></p>
<p class="MsoNormal">Thread-79534::DEBUG::2016-12-18 12:24:45,006::commands::68::root::(execCmd) /usr/bin/taskset --cpu-list 0-23 /usr/libexec/vdsm/hooks/before_vm_start/multiips (cwd None)</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b>Then if I grep the path:<o:p></o:p></b></p>
<p class="MsoNormal"><b><o:p> </o:p></b></p>
<p class="MsoNormal">cat /var/log/vdsm/vdsm.log | /usr/libexec/vdsm/hooks/before_vm_start/multiips</p>
<p class="MsoNormal">Traceback (most recent call last):</p>
<p class="MsoNormal"> File "/usr/libexec/vdsm/hooks/before_vm_start/multiips", line 6, in <module></p>
<p class="MsoNormal"> import hooking</p>
<p class="MsoNormal">ImportError: No module named hooking</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">///////////////////////</p>
<p class="MsoNormal">///////////////////////</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><domain type='kvm' id='24'></p>
<p class="MsoNormal"> <name>vpsclass1vm-user2-3</name></p>
<p class="MsoNormal"> <uuid>84100056-5bb7-4904-aff6-ef0a51ffd7b1</uuid></p>
<p class="MsoNormal"> <metadata xmlns:ovirt="http://ovirt.org/vm/tune/1.0"></p>
<p class="MsoNormal"> <ovirt:qos/></p>
<p class="MsoNormal"> </metadata></p>
<p class="MsoNormal"> <maxMemory slots='16' unit='KiB'>4294967296</maxMemory></p>
<p class="MsoNormal"> <memory unit='KiB'>1048576</memory></p>
<p class="MsoNormal"> <currentMemory unit='KiB'>1048576</currentMemory></p>
<p class="MsoNormal"> <vcpu placement='static' current='1'>16</vcpu></p>
<p class="MsoNormal"> <cputune></p>
<p class="MsoNormal"> <shares>1020</shares></p>
<p class="MsoNormal"> </cputune></p>
<p class="MsoNormal"> <resource></p>
<p class="MsoNormal"> <partition>/machine</partition></p>
<p class="MsoNormal"> </resource></p>
<p class="MsoNormal"> <sysinfo type='smbios'></p>
<p class="MsoNormal"> <system></p>
<p class="MsoNormal"> <entry name='manufacturer'>oVirt</entry></p>
<p class="MsoNormal"> <entry name='product'>oVirt Node</entry></p>
<p class="MsoNormal"> <entry name='version'>7-0.1406.el7.centos.2.3</entry></p>
<p class="MsoNormal"> <entry name='serial'>00000000-0000-0000-0000-0CC47A7ED960</entry></p>
<p class="MsoNormal"> <entry name='uuid'>84100056-5bb7-4904-aff6-ef0a51ffd7b1</entry></p>
<p class="MsoNormal"> </system></p>
<p class="MsoNormal"> </sysinfo></p>
<p class="MsoNormal"> <os></p>
<p class="MsoNormal"> <type arch='x86_64' machine='pc-i440fx-rhel7.2.0'>hvm</type></p>
<p class="MsoNormal"> <boot dev='hd'/></p>
<p class="MsoNormal"> <smbios mode='sysinfo'/></p>
<p class="MsoNormal"> </os></p>
<p class="MsoNormal"> <features></p>
<p class="MsoNormal"> <acpi/></p>
<p class="MsoNormal"> </features></p>
<p class="MsoNormal"> <cpu mode='custom' match='exact'></p>
<p class="MsoNormal"> <model fallback='allow'>Haswell-noTSX</model></p>
<p class="MsoNormal"> <topology sockets='16' cores='1' threads='1'/></p>
<p class="MsoNormal"> <numa></p>
<p class="MsoNormal"> <cell id='0' cpus='0' memory='1048576' unit='KiB'/></p>
<p class="MsoNormal"> </numa></p>
<p class="MsoNormal"> </cpu></p>
<p class="MsoNormal"> <clock offset='variable' adjustment='-18000' basis='utc'></p>
<p class="MsoNormal"> <timer name='rtc' tickpolicy='catchup'/></p>
<p class="MsoNormal"> <timer name='pit' tickpolicy='delay'/></p>
<p class="MsoNormal"> <timer name='hpet' present='no'/></p>
<p class="MsoNormal"> </clock></p>
<p class="MsoNormal"> <on_poweroff>destroy</on_poweroff></p>
<p class="MsoNormal"> <on_reboot>restart</on_reboot></p>
<p class="MsoNormal"> <on_crash>destroy</on_crash></p>
<p class="MsoNormal"> <devices></p>
<p class="MsoNormal"> <emulator>/usr/libexec/qemu-kvm</emulator></p>
<p class="MsoNormal"> <disk type='file' device='cdrom'></p>
<p class="MsoNormal"> <driver name='qemu' type='raw'/></p>
<p class="MsoNormal"> <source startupPolicy='optional'/></p>
<p class="MsoNormal"> <backingStore/></p>
<p class="MsoNormal"> <target dev='hdc' bus='ide'/></p>
<p class="MsoNormal"> <readonly/></p>
<p class="MsoNormal"> <alias name='ide0-1-0'/></p>
<p class="MsoNormal"> <address type='drive' controller='0' bus='1' target='0' unit='0'/></p>
<p class="MsoNormal"> </disk></p>
<p class="MsoNormal"> <disk type='file' device='disk' snapshot='no'></p>
<p class="MsoNormal"> <driver name='qemu' type='qcow2' cache='none' error_policy='stop' io='threads'/></p>
<p class="MsoNormal"> <source file='/rhev/data-center/3fd2ad92-e1eb-49c2-906d-00ec233f610a/d8a0172e-837f-4552-92c7-566dc4e548e4/images/f64b31f1-1e28-4067-9776-c8cdedd039dc/bab16012-9bd5-4005-bee4-2512a8c6c6a3'></p>
<p class="MsoNormal"> <seclabel model='selinux' labelskip='yes'/></p>
<p class="MsoNormal"> </source></p>
<p class="MsoNormal"> <backingStore type='file' index='1'></p>
<p class="MsoNormal"> <format type='raw'/></p>
<p class="MsoNormal"> <source file='/rhev/data-center/3fd2ad92-e1eb-49c2-906d-00ec233f610a/d8a0172e-837f-4552-92c7-566dc4e548e4/images/f64b31f1-1e28-4067-9776-c8cdedd039dc/8c053bcf-c1cc-4c7d-80e1-7bd937785fc4'/></p>
<p class="MsoNormal"> <backingStore/></p>
<p class="MsoNormal"> </backingStore></p>
<p class="MsoNormal"> <target dev='vda' bus='virtio'/></p>
<p class="MsoNormal"> <serial>f64b31f1-1e28-4067-9776-c8cdedd039dc</serial></p>
<p class="MsoNormal"> <alias name='virtio-disk0'/></p>
<p class="MsoNormal"> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/></p>
<p class="MsoNormal"> </disk></p>
<p class="MsoNormal"> <controller type='scsi' index='0' model='virtio-scsi'></p>
<p class="MsoNormal"> <alias name='scsi0'/></p>
<p class="MsoNormal"> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/></p>
<p class="MsoNormal"> </controller></p>
<p class="MsoNormal"> <controller type='virtio-serial' index='0' ports='16'></p>
<p class="MsoNormal"> <alias name='virtio-serial0'/></p>
<p class="MsoNormal"> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/></p>
<p class="MsoNormal"> </controller></p>
<p class="MsoNormal"> <controller type='usb' index='0'></p>
<p class="MsoNormal"> <alias name='usb'/></p>
<p class="MsoNormal"> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/></p>
<p class="MsoNormal"> </controller></p>
<p class="MsoNormal"> <controller type='pci' index='0' model='pci-root'></p>
<p class="MsoNormal"> <alias name='pci.0'/></p>
<p class="MsoNormal"> </controller></p>
<p class="MsoNormal"> <controller type='ide' index='0'></p>
<p class="MsoNormal"> <alias name='ide'/></p>
<p class="MsoNormal"> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/></p>
<p class="MsoNormal"> </controller></p>
<p class="MsoNormal"> <interface type='bridge'></p>
<p class="MsoNormal"> <mac address='00:1a:4a:16:01:81'/></p>
<p class="MsoNormal"> <source bridge='Public'/></p>
<p class="MsoNormal"> <target dev='vnet0'/></p>
<p class="MsoNormal"> <model type='virtio'/></p>
<p class="MsoNormal"> <filterref filter='clean-traffic'/></p>
<p class="MsoNormal"> <link state='up'/></p>
<p class="MsoNormal"> <alias name='net0'/></p>
<p class="MsoNormal"> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/></p>
<p class="MsoNormal"> </interface></p>
<p class="MsoNormal"> <channel type='unix'></p>
<p class="MsoNormal"> <source mode='bind' path='/var/lib/libvirt/qemu/channels/84100056-5bb7-4904-aff6-ef0a51ffd7b1.com.redhat.rhevm.vdsm'/></p>
<p class="MsoNormal"> <target type='virtio' name='com.redhat.rhevm.vdsm' state='connected'/></p>
<p class="MsoNormal"> <alias name='channel0'/></p>
<p class="MsoNormal"> <address type='virtio-serial' controller='0' bus='0' port='1'/></p>
<p class="MsoNormal"> </channel></p>
<p class="MsoNormal"> <channel type='unix'></p>
<p class="MsoNormal"> <source mode='bind' path='/var/lib/libvirt/qemu/channels/84100056-5bb7-4904-aff6-ef0a51ffd7b1.org.qemu.guest_agent.0'/></p>
<p class="MsoNormal"> <target type='virtio' name='org.qemu.guest_agent.0' state='connected'/></p>
<p class="MsoNormal"> <alias name='channel1'/></p>
<p class="MsoNormal"> <address type='virtio-serial' controller='0' bus='0' port='2'/></p>
<p class="MsoNormal"> </channel></p>
<p class="MsoNormal"> <channel type='spicevmc'></p>
<p class="MsoNormal"> <target type='virtio' name='com.redhat.spice.0' state='disconnected'/></p>
<p class="MsoNormal"> <alias name='channel2'/></p>
<p class="MsoNormal"> <address type='virtio-serial' controller='0' bus='0' port='3'/></p>
<p class="MsoNormal"> </channel></p>
<p class="MsoNormal"> <input type='mouse' bus='ps2'></p>
<p class="MsoNormal"> <alias name='input0'/></p>
<p class="MsoNormal"> </input></p>
<p class="MsoNormal"> <input type='keyboard' bus='ps2'></p>
<p class="MsoNormal"> <alias name='input1'/></p>
<p class="MsoNormal"> </input></p>
<p class="MsoNormal"> <graphics type='vnc' port='5900' autoport='yes' listen='mynodeIP' keymap='en-us' passwdValidTo='1970-01-01T00:00:01'></p>
<p class="MsoNormal"> <listen type='network' address='mynodeIP' network='vdsm-Public'/></p>
<p class="MsoNormal"> </graphics></p>
<p class="MsoNormal"> <graphics type='spice' tlsPort='5901' autoport='yes' listen='mynodeIP' keymap='en-us' defaultMode='secure' passwdValidTo='1970-01-01T00:00:01'></p>
<p class="MsoNormal"> <listen type='network' address='mynodeIP' network='vdsm-Public'/></p>
<p class="MsoNormal"> <channel name='main' mode='secure'/></p>
<p class="MsoNormal"> <channel name='display' mode='secure'/></p>
<p class="MsoNormal"> <channel name='inputs' mode='secure'/></p>
<p class="MsoNormal"> <channel name='cursor' mode='secure'/></p>
<p class="MsoNormal"> <channel name='playback' mode='secure'/></p>
<p class="MsoNormal"> <channel name='record' mode='secure'/></p>
<p class="MsoNormal"> <channel name='smartcard' mode='secure'/></p>
<p class="MsoNormal"> <channel name='usbredir' mode='secure'/></p>
<p class="MsoNormal"> </graphics></p>
<p class="MsoNormal"> <video></p>
<p class="MsoNormal"> <model type='qxl' ram='65536' vram='8192' vgamem='16384' heads='1' primary='yes'/></p>
<p class="MsoNormal"> <alias name='video0'/></p>
<p class="MsoNormal"> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/></p>
<p class="MsoNormal"> </video></p>
<p class="MsoNormal"> <memballoon model='virtio'></p>
<p class="MsoNormal"> <alias name='balloon0'/></p>
<p class="MsoNormal"> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/></p>
<p class="MsoNormal"> </memballoon></p>
<p class="MsoNormal"> </devices></p>
<p class="MsoNormal"> <seclabel type='dynamic' model='selinux' relabel='yes'></p>
<p class="MsoNormal"> <label>system_u:system_r:svirt_t:s0:c310,c350</label></p>
<p class="MsoNormal"> <imagelabel>system_u:object_r:svirt_image_t:s0:c310,c350</imagelabel></p>
<p class="MsoNormal"> </seclabel></p>
<p class="MsoNormal"> <seclabel type='dynamic' model='dac' relabel='yes'></p>
<p class="MsoNormal"> <label>+107:+107</label></p>
<p class="MsoNormal"> <imagelabel>+107:+107</imagelabel></p>
<p class="MsoNormal"> </seclabel></p>
<p class="MsoNormal"></domain></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">///////////////////////</p>
<p class="MsoNormal">///////////////////////</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Sent from <a href="https://go.microsoft.com/fwlink/?LinkId=550986">
Mail</a> for Windows 10</p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="border:none;padding:0in"><b>From: </b><a href="mailto:danken@redhat.com">Dan Kenigsberg</a><br>
<b>Sent: </b>Sunday, December 18, 2016 10:59 AM<br>
<b>To: </b><a href="mailto:jax2568@outlook.com">Bill Bill</a><br>
<b>Cc: </b><a href="mailto:users@ovirt.org">users</a>; <a href="mailto:dholler@redhat.com">
Dominik Holler</a><br>
<b>Subject: </b>Re: oVirt multiips hook</p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div dir="auto">
<div><br>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Dec 15, 2016 22:40, "Bill Bill" <<a href="mailto:jax2568@outlook.com">jax2568@outlook.com</a>> wrote:<br type="attribution">
<blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="#954F72">
<div class="m_-264054471904238718WordSection1">
<p class="MsoNormal">Hello,</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Following up on the users list as opposed to Bugzilla.</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks for helping out with this, much appreciated. I was able to get the custom property added in the engine & I can select the property, then enter in the IP’s.</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’m not sure if I created the hook correctly, as it doesn’t appear to have made any changes so far, only one IP communicates.</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I created a file called “multiips” in the /usr/libexec/vdsm/hooks/<wbr>before_vm_start/ directory containing the info from the Bugzilla thread.</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Is there another step I should take or perhaps I’m missing something?</p>
</div>
</div>
</blockquote>
</div>
It should have been enough, but apparently something's missing.</div>
</div>
<div class="gmail_extra" dir="auto"><br>
</div>
<div class="gmail_extra" dir="auto">Is the multiip script readable and executable?</div>
<div class="gmail_extra" dir="auto"><br>
</div>
<div class="gmail_extra" dir="auto">Do you see any errors in vdsm.log when you start the VM?</div>
<div class="gmail_extra" dir="auto"><br>
</div>
<div class="gmail_extra" dir="auto">Do you see the requested ips in the output of</div>
<div class="gmail_extra" dir="auto"><br>
</div>
<div class="gmail_extra" dir="auto">Virsh -r dumpxml yourvm</div>
</div>
</div>
</body>
</html>