Hey Fabian, i found the patch http://gerrit.ovirt.org/#/c/24968/ didn't work well. for example: ovirt-node-config run [<CLASS>[.<FUNC> [<ARG> [<ARG>] ...]]]] didn't real work. eg: ./ovirt-node-config r KDump.configure_local <bound method KDump.configure_local of <ovirt.node.config.defaults.KDump object at 0x36ccf10>> Configuring kdump ----------------- Checking pre-conditions ... (1/2) Backing up config files (2/2) Removing kdump backup All changes were applied successfully. it will configure kdump with disable type, not configure with local type.
so i push a patch http://gerrit.ovirt.org/#/c/25300/ depends on parent's patch http://gerrit.ovirt.org/#/c/24968 to fix this issue. ----- Original Message ----- From: "Fabian Deutsch" <[email protected]> To: "node-devel" <[email protected]> Sent: Tuesday, March 4, 2014 12:34:50 AM Subject: [node-devel] Introduction of ovirt-node-config Hey, node 3.0 moved much of the configuration stuff to the ovirt-node-config module, but until now the whole configuration could only be done through the TUI or during auto-installation. ovirt-node-config is a small tool (or shall become one) which exposes all classes from ovirt.node.config and which can be used to: 1. Introspect the classes and see what they do 2. Run the classes to perform the configuration from the console I see two main use cases for this: 1. Test automation - This eases the testing of the functionalit ywhich does the actual configuration work. Basically we can write tests like: (Pseudo code) $ ovirt-node-config run Network.configure_disable_networking $ assert_no_files_like "/etc/sysconfig/network-scripts/ifcfg-*" or $ ovirt-node-config run SSH.configure_pw_auth true $ assert_file_contains /etc/ssh/sshd_config "PWAuth yes" 2. Reuse Other components can use this tool to perform high-level configuration on Node. The corresponding draft can be found here: http://gerrit.ovirt.org/#/c/24968/ The code is not yet fully functional. Thoughts suggestions and anything else is welcome :) - fabian _______________________________________________ node-devel mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/node-devel _______________________________________________ node-devel mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/node-devel
