On Sun, Nov 15, 2020 at 1:15 AM Gianluca Cecchi <gianluca.cecchi@gmail.com> wrote:
Hello,
I have an Openstack Queens environment that is composed by VMs inside oVirt.
Initially this oVirt environment was on 4.3 and on director I had to set vdsm mac spoof to be able to give dhcp address to the overcloud nodes.
I tried something at that time with vnic profiles but I was not able to have it work as expected, so I used the hook.
Now I have migrated this same environment to 4.4.2 and I see that vdsm mac spoof is no more an option:
https://bugzilla.redhat.com/show_bug.cgi?id=1703840

I tried some combinations of vnic profiles on director vnic but it seems not to work as a dhcpserver as before.
I see DHCPDISCOVER from overcloud node in director messages (while before I saw DHCPREQUEST), I see the DHCPOFFER from director, but I don't see the DHCPACK from the overcloud node...


The vnic that should give dhcp address is vlan23
If I shutdown all VMs and set vnic profile with Network Filter "clean-traffic" and run the VM, the xml of the director VM is of this type:

. . .
    <ovirt-vm:device mac_address="56:6f:3d:48:00:14">
        <ovirt-vm:network>vlan19</ovirt-vm:network>
        <ovirt-vm:custom>
            <ovirt-vm:queues>4</ovirt-vm:queues>
        </ovirt-vm:custom>
    </ovirt-vm:device>
    <ovirt-vm:device mac_address="56:6f:3d:48:00:13">
        <ovirt-vm:network>vlan23</ovirt-vm:network>
        <ovirt-vm:custom>
            <ovirt-vm:queues>4</ovirt-vm:queues>
        </ovirt-vm:custom>
    </ovirt-vm:device>
. . .
    <interface type='bridge'>
      <mac address='56:6f:3d:48:00:13'/>
      <source bridge='vlan23'/>
      <target dev='vnet18'/>
      <model type='virtio'/>
      <driver name='vhost' queues='4'/>
      <filterref filter='clean-traffic'/>
      <link state='up'/>
      <mtu size='1500'/>
      <alias name='ua-efd7297e-5fe3-47bb-b945-9e14dc68be10'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
    </interface>
    <interface type='bridge'>
      <mac address='56:6f:3d:48:00:14'/>
      <source bridge='vlan19'/>
      <target dev='vnet19'/>
      <model type='virtio'/>
      <driver name='vhost' queues='4'/>
      <filterref filter='vdsm-no-mac-spoofing'/>
      <link state='up'/>
      <mtu size='1500'/>
      <alias name='ua-36de0aa2-7902-4e71-9a24-a379f6af7539'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </interface>
. . .