Bug #13992
openVNIC in Zone loses access to properties
0%
Description
TL;DR: When using a VNIC within a Zone that uses an exclusive netstack, nearly all link properties are missing (shown as "?").
Here's my setup:
In the Global zone, I have a physical ethernet data link, on top of which I have created a VNIC (named "vnic_propolis0"):
(GZ) $ dladm LINK CLASS MTU STATE BRIDGE OVER igb0 phys 1500 up -- -- vnic_propolis0 vnic 1500 up -- igb0
Meanwhile, I have a running zone:
(GZ) $ zoneadm list -cv ID NAME STATUS PATH BRAND IP 0 global running / ipkg shared 47 instance_zone running /zone/instance_zone sparse excl
And, again from the global zone, I can see link properties on the VNIC - such as the "zone" property, indicating it is being used by a non-global zone:
(GZ) $ dladm show-linkprop vnic_propolis0 LINK PROPERTY PERM VALUE DEFAULT POSSIBLE vnic_propolis0 autopush rw -- -- -- vnic_propolis0 zone rw instance_zone -- -- vnic_propolis0 state r- up up up,down vnic_propolis0 mtu rw 1500 1500 60-1500 ...
This is all, as far as I can tell, expected behavior. However, when I zlogin to the zone, and try to show the link properties:
(Non-Global Zone) # dladm show-linkprop LINK PROPERTY PERM VALUE DEFAULT POSSIBLE vnic_propolis0 state r- ? up up,down vnic_propolis0 secondary-macs ? ? -- -- vnic_propolis0 maxbw ? ? -- -- vnic_propolis0 cpus ? ? -- -- vnic_propolis0 cpus-effective r- ? -- -- vnic_propolis0 pool ? ? -- -- vnic_propolis0 pool-effective r- ? -- -- vnic_propolis0 priority ? ? high low,medium,high vnic_propolis0 tagmode ? ? vlanonly normal,vlanonly
The properties are not visible.
Using truss, I see many invocations of:
ioctl(3, DLDIOC_GETMACPROP, 0x08111A48) Err#2 ENOENT
Implying some visibility mismatch here.
Is this a bug? Is there a configuration I need to tweak to make data link properties accessible in the non-global zone?