[ovirt-users] multiple NICs VLAN ID conflict

Edward Haas ehaas at redhat.com
Wed Mar 16 08:17:13 UTC 2016


On Tue, Mar 15, 2016 at 8:19 PM, Bill James <bill.james at j2.com> wrote:
> thank you very much for the reply.
> I'm trying to find more about how to setup a 'fake vlan id', but so far have
> not been able to find anything.  The link you mentioned mentioned a link
> about setup_network_hooks, but the link doesn't work any more.
>
> I have found there is a directory called
> /usr/libexec/vdsm/hooks/before_network_setup.
>
> This doc http://www.ovirt.org/develop/developer-guide/vdsm/hook/network-nat/
> suggests using "sudo engine-config -s CustomDeviceProperties"
> but I haven't found any descriptions on how to use it.
> This doc goes into a little detail:
>
> http://200.1.19.60/ovirt-engine/docs/manual/en_US/html/Administration_Guide/VDSM_hooks_defining_custom_properties.html

It's not a must to use the custom properties in your case, although it
will be more flexible.
The idea is to use a 'fake' vlan, say 999, and build a hook on the
host to intercept the request, detect that the vlan id is 999 and
replace it with the correct vlan id.
Using the custom properties just allows you to define the target vlan
id on the Engine and not in the hook code.

You can review this reference for the vdsm part:
http://www.ovirt.org/develop/developer-guide/vdsm/hooks/

>
>
> but what property define vlan number and how do I tell it that this number
> is really that number?

If you look at this hook as an example:
https://github.com/oVirt/vdsm/tree/master/vdsm_hooks/extra_ipv4_addrs
You need to look for the 'vlan' attribute, check it is 999 and
overwrite it with your ID.

>
>
> Thanks.
>
>
> On 03/15/2016 04:57 AM, Alona Kaplan wrote:
>
> Hi Bill,
>
> Currently the engine blocks adding two networks with the same vlan id to a
> data center.
> If you think there is a use case for having more than one network with the
> same vlan id in a DC, please open an RFE.
>
> As a workaround, you can add a network with a 'fake vlan id' (a vlan id that
> is not in use by the dc).
> And using 'vdsm before network setup hook'
> (https://bugzilla.redhat.com/1057637) translating the 'fake vlan id' to the
> desired one.
>
> Alona.
>
> ----- Original Message -----
>
> From: "Bill James" <bill.james at j2.com>
> To: "users" <users at ovirt.org>
> Sent: Tuesday, March 15, 2016 1:34:23 AM
> Subject: [ovirt-users] multiple NICs VLAN ID conflict
>
> We have DEV and QA is the same "data center" but on the network side of
> things they are on different switches, so they reused some VLAN IDs.
> No problem, my server has 4 NICS.
> But how do I tell ovirt its ok to have 2 networks with same vlan ID because
> I'm going to put them on different NICs?
>
> It says "specified VLAN ID is already in use".
>
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>



More information about the Users mailing list