Hi,
Following is a summery of testing the Network custom properties feature as
detailed the link at the bottom.
setUp:
======
engine: F19
Hosts:
F20 (virtual)
REHL 6.5 (physical)
- in separate clusters
Network custom properties:
==========================
1. I have defined a custom property entry via 'engine-config' cli and verified
it consisted.
* The property was defined with a validation regular expression
* note that this requires an engine restart.
2. Added a new network to the DC and set the new property with the new
drop-down value of 'custom properties'.
- verified that violating the regular expression validation fails the network
set up (client side validation).
- verified that a legal value is passed to the server using a custom hook at
before_network_setup stage.
[hook code attached]
3. removed the value from the DB
-- verified it is no longer available in the set up networks custom properties
drop down.
bridge options:
===============
1. changed the bridge options at the OS level (via editing
/sys/class/net/<bridge>/bridge/<options>)
2. defined overrides in the logical level using the bridge_opts drop down value
(key=value comma separated list)
--verified that the values are changed after setting up network
3. removed the logical level settings
-- verified that the values are set back to the original ones
ethtool options:
================
* note- testing this on a virtual host, or on a virtual NIC on a physical host
is pretty useless. For the NIC driver
to be capable of actually allowing NIC changes you need a bare metal NIC.
1. installed the vdsm-hook-ethtool-options hook on a physical host
2. set up network with the following ethtool command line arguments added: "-s
eth1 speed 100 autoneg off"
-- verified using ethtool that changes took place
3. set up network with the following ethtool command line arguments added: "-s
eth1 autoneg on"
-- verified using ethtool that changes took place
feature page: http://www.ovirt.org/Features/Network_Custom_Properties
Thanks,
Ido
#!/usr/bin/python
import os
import hooking
def main():
setup_nets_config = hooking.read_json()
hooking.log('keys:'+ str(setup_nets_config.keys()))
for network, attrs in setup_nets_config['request']['networks'].items():
if 'custom' in attrs and 'hostonly' in attrs['custom']:
value = attrs['custom']['hostonly']
else:
value = 'not found'
hooking.log('TESTING: {0}'.format(value))
if __name__ == '__main__':
main()_______________________________________________
Users mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/users