[ovirt-users] oVirt multiips hook
Dominik Holler
dholler at redhat.com
Mon Dec 19 10:31:55 UTC 2016
Hello,
to check where the hook script behaves unexpected, the hook is extended
[1] to be more verbose. What is the output in vdsm.log of the more
verbose hook script?
[1]
https://bugzilla.redhat.com/attachment.cgi?id=1233353
On Sun, 18 Dec 2016 17:38:50 +0000
Bill Bill <jax2568 at outlook.com> wrote:
> Hi Dan,
>
> 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:
>
> (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.
>
> Grep vdsm log for before_vm_start shows:
>
> 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)
>
> Then if I grep the path:
>
> cat /var/log/vdsm/vdsm.log
> | /usr/libexec/vdsm/hooks/before_vm_start/multiips Traceback (most
> recent call last): File
> "/usr/libexec/vdsm/hooks/before_vm_start/multiips", line 6, in
> <module> import hooking ImportError: No module named hooking
>
>
> ///////////////////////
> ///////////////////////
>
> <domain type='kvm' id='24'>
> <name>vpsclass1vm-user2-3</name>
> <uuid>84100056-5bb7-4904-aff6-ef0a51ffd7b1</uuid>
> <metadata xmlns:ovirt="http://ovirt.org/vm/tune/1.0">
> <ovirt:qos/>
> </metadata>
> <maxMemory slots='16' unit='KiB'>4294967296</maxMemory>
> <memory unit='KiB'>1048576</memory>
> <currentMemory unit='KiB'>1048576</currentMemory>
> <vcpu placement='static' current='1'>16</vcpu>
> <cputune>
> <shares>1020</shares>
> </cputune>
> <resource>
> <partition>/machine</partition>
> </resource>
> <sysinfo type='smbios'>
> <system>
> <entry name='manufacturer'>oVirt</entry>
> <entry name='product'>oVirt Node</entry>
> <entry name='version'>7-0.1406.el7.centos.2.3</entry>
> <entry
> name='serial'>00000000-0000-0000-0000-0CC47A7ED960</entry> <entry
> name='uuid'>84100056-5bb7-4904-aff6-ef0a51ffd7b1</entry> </system>
> </sysinfo>
> <os>
> <type arch='x86_64' machine='pc-i440fx-rhel7.2.0'>hvm</type>
> <boot dev='hd'/>
> <smbios mode='sysinfo'/>
> </os>
> <features>
> <acpi/>
> </features>
> <cpu mode='custom' match='exact'>
> <model fallback='allow'>Haswell-noTSX</model>
> <topology sockets='16' cores='1' threads='1'/>
> <numa>
> <cell id='0' cpus='0' memory='1048576' unit='KiB'/>
> </numa>
> </cpu>
> <clock offset='variable' adjustment='-18000' basis='utc'>
> <timer name='rtc' tickpolicy='catchup'/>
> <timer name='pit' tickpolicy='delay'/>
> <timer name='hpet' present='no'/>
> </clock>
> <on_poweroff>destroy</on_poweroff>
> <on_reboot>restart</on_reboot>
> <on_crash>destroy</on_crash>
> <devices>
> <emulator>/usr/libexec/qemu-kvm</emulator>
> <disk type='file' device='cdrom'>
> <driver name='qemu' type='raw'/>
> <source startupPolicy='optional'/>
> <backingStore/>
> <target dev='hdc' bus='ide'/>
> <readonly/>
> <alias name='ide0-1-0'/>
> <address type='drive' controller='0' bus='1' target='0'
> unit='0'/> </disk>
> <disk type='file' device='disk' snapshot='no'>
> <driver name='qemu' type='qcow2' cache='none'
> error_policy='stop' io='threads'/> <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'>
> <seclabel model='selinux' labelskip='yes'/> </source>
> <backingStore type='file' index='1'>
> <format type='raw'/>
> <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'/>
> <backingStore/> </backingStore>
> <target dev='vda' bus='virtio'/>
> <serial>f64b31f1-1e28-4067-9776-c8cdedd039dc</serial>
> <alias name='virtio-disk0'/>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x06'
> function='0x0'/> </disk>
> <controller type='scsi' index='0' model='virtio-scsi'>
> <alias name='scsi0'/>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x04'
> function='0x0'/> </controller>
> <controller type='virtio-serial' index='0' ports='16'>
> <alias name='virtio-serial0'/>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x05'
> function='0x0'/> </controller>
> <controller type='usb' index='0'>
> <alias name='usb'/>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x01'
> function='0x2'/> </controller>
> <controller type='pci' index='0' model='pci-root'>
> <alias name='pci.0'/>
> </controller>
> <controller type='ide' index='0'>
> <alias name='ide'/>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x01'
> function='0x1'/> </controller>
> <interface type='bridge'>
> <mac address='00:1a:4a:16:01:81'/>
> <source bridge='Public'/>
> <target dev='vnet0'/>
> <model type='virtio'/>
> <filterref filter='clean-traffic'/>
> <link state='up'/>
> <alias name='net0'/>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x03'
> function='0x0'/> </interface>
> <channel type='unix'>
> <source mode='bind'
> path='/var/lib/libvirt/qemu/channels/84100056-5bb7-4904-aff6-ef0a51ffd7b1.com.redhat.rhevm.vdsm'/>
> <target type='virtio' name='com.redhat.rhevm.vdsm'
> state='connected'/> <alias name='channel0'/> <address
> type='virtio-serial' controller='0' bus='0' port='1'/> </channel>
> <channel type='unix'>
> <source mode='bind'
> path='/var/lib/libvirt/qemu/channels/84100056-5bb7-4904-aff6-ef0a51ffd7b1.org.qemu.guest_agent.0'/>
> <target type='virtio' name='org.qemu.guest_agent.0'
> state='connected'/> <alias name='channel1'/> <address
> type='virtio-serial' controller='0' bus='0' port='2'/> </channel>
> <channel type='spicevmc'>
> <target type='virtio' name='com.redhat.spice.0'
> state='disconnected'/> <alias name='channel2'/>
> <address type='virtio-serial' controller='0' bus='0' port='3'/>
> </channel>
> <input type='mouse' bus='ps2'>
> <alias name='input0'/>
> </input>
> <input type='keyboard' bus='ps2'>
> <alias name='input1'/>
> </input>
> <graphics type='vnc' port='5900' autoport='yes' listen='mynodeIP'
> keymap='en-us' passwdValidTo='1970-01-01T00:00:01'> <listen
> type='network' address='mynodeIP' network='vdsm-Public'/> </graphics>
> <graphics type='spice' tlsPort='5901' autoport='yes'
> listen='mynodeIP' keymap='en-us' defaultMode='secure'
> passwdValidTo='1970-01-01T00:00:01'> <listen type='network'
> address='mynodeIP' network='vdsm-Public'/> <channel name='main'
> mode='secure'/> <channel name='display' mode='secure'/> <channel
> name='inputs' mode='secure'/> <channel name='cursor' mode='secure'/>
> <channel name='playback' mode='secure'/>
> <channel name='record' mode='secure'/>
> <channel name='smartcard' mode='secure'/>
> <channel name='usbredir' mode='secure'/>
> </graphics>
> <video>
> <model type='qxl' ram='65536' vram='8192' vgamem='16384'
> heads='1' primary='yes'/> <alias name='video0'/>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x02'
> function='0x0'/> </video>
> <memballoon model='virtio'>
> <alias name='balloon0'/>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x07'
> function='0x0'/> </memballoon>
> </devices>
> <seclabel type='dynamic' model='selinux' relabel='yes'>
> <label>system_u:system_r:svirt_t:s0:c310,c350</label>
> <imagelabel>system_u:object_r:svirt_image_t:s0:c310,c350</imagelabel>
> </seclabel>
> <seclabel type='dynamic' model='dac' relabel='yes'>
> <label>+107:+107</label>
> <imagelabel>+107:+107</imagelabel>
> </seclabel>
> </domain>
>
> ///////////////////////
> ///////////////////////
>
> Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for
> Windows 10
>
> From: Dan Kenigsberg<mailto:danken at redhat.com>
> Sent: Sunday, December 18, 2016 10:59 AM
> To: Bill Bill<mailto:jax2568 at outlook.com>
> Cc: users<mailto:users at ovirt.org>; Dominik
> Holler<mailto:dholler at redhat.com> Subject: Re: oVirt multiips hook
>
>
>
> On Dec 15, 2016 22:40, "Bill Bill"
> <jax2568 at outlook.com<mailto:jax2568 at outlook.com>> wrote: Hello,
>
> Following up on the users list as opposed to Bugzilla.
>
> 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.
>
> 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.
>
> I created a file called “multiips” in
> the /usr/libexec/vdsm/hooks/before_vm_start/ directory containing the
> info from the Bugzilla thread.
>
> Is there another step I should take or perhaps I’m missing something?
> It should have been enough, but apparently something's missing.
>
> Is the multiip script readable and executable?
>
> Do you see any errors in vdsm.log when you start the VM?
>
> Do you see the requested ips in the output of
>
> Virsh -r dumpxml yourvm
More information about the Users
mailing list