Bug 1075903

Summary: [RFE]Add ovirt-node-config commandline tool to configure Node.
Product: Red Hat Enterprise Virtualization Manager Reporter: haiyang,dong <hadong>
Component: ovirt-nodeAssignee: Fabian Deutsch <fdeutsch>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: cshao, gklein, gouyang, hadong, huiwa, iheim, leiwang, sherold, yaniwang, ycui
Target Milestone: ---Keywords: FutureFeature
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: node
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 1075902 Environment:
Last Closed: 2015-02-11 20:53:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1075902, 1097295    
Bug Blocks: 1142923, 1156165    

Description haiyang,dong 2014-03-13 07:38:04 UTC
+++ This bug was initially created as a clone of Bug #1075902 +++

Description of problem:
ovirt-node-config is a commandline tool to configure Node.
Basically the tool exposes the classes of ovirt-node.config.defaults.
That way the system can basically configured using the commandline. The
same codepaths are shared between the CLI and TUI.
This is mainly intended for quality issue to check all codepaths.
Some examples:
General help:
$ ovirt-node-config -h
Help on a class:
$ ovirt-node-config help IPv6
Help on a function:
$ ovirt-node-config help IPv6.configure_dhcp
Run a function:
$ ovirt-node-config run IPv6.configure_dhcp
$ ovirt-node-config run Network.configure_static ens3 1.2.3.4 255.0.0.0
1.2.3.254

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 haiyang,dong 2014-03-13 07:38:19 UTC
clone this REF bug form upstream to also track it in rhevh

Comment 5 haiyang,dong 2014-10-13 06:40:50 UTC
Test version:
rhevh-7.0-20141006.0.el7ev.iso
ovirt-node-3.1.0-0.20.20141006gitc421e04.el7.noarch

Test steps:
1.[root@dhcp-8-124 admin]# ovirt-node-config h
Usage: ovirt-node-config [options] help|run [<CLASS>[.<FUNC> [<ARG> [<ARG>] ...]]]]

Options:
  -h, --help            show this help message and exit
  -m MODULE, --module=MODULE
                        Module to use
  --dry                 Enable dry mode
  --config=CFGFILE      Config file to use

Available classes in module 'ovirt.node.config.defaults':
- Collectd
- ConfigVersion
- Hostname
- IPv6
- Installation
- KDump
- Keyboard
- Logrotate
- Management
- NFSv4
- Nameservers
- Netconsole
- Network
- NetworkLayout
- NicBonding
- NodeConfigFileSection
- RuntimeImageState
- SCSIDhAlua
- SSH
- Syslog
- Timeservers
- iSCSI

2. [root@dhcp-8-124 admin]# ovirt-node-config h KDump
Functions in class 'KDump':

- configure_disable 
- configure_local 
- configure_nfs <NFS_LOCATION>
- configure_ssh <SSH_LOCATION> [<SSH_KEY=None>]

3.[root@dhcp-8-124 admin]# ovirt-node-config run KDump.configure_disable
Configuring kdump
-----------------
Checking pre-conditions ...
(1/3) Backing up config files
(2/3) Removing set kdump options
(3/3) Removing kdump backup

All changes were applied successfully.
[root@dhcp-8-124 admin]# ovirt-node-config run KDump.configure_local
Configuring kdump
-----------------
Checking pre-conditions ...
(1/4) Backing up config files
(2/4) Removing set kdump options
(3/4) Setting local kdump config
(4/4) Restarting kdump service

All changes were applied successfully.

4. [root@dhcp-8-124 admin]# ovirt-node-config help Hostname
Functions in class 'Hostname':

- configure_hostname <HOSTNAME>
Configure the hostname of this system
Args:
    hostname: Hostname to be set
[root@dhcp-8-124 admin]# ovirt-node-config run Hostname.configure_hostname redhat
Configuring hostname
--------------------
Checking pre-conditions ...
(1/1) Setting hostname

All changes were applied successfully.
[root@dhcp-8-124 admin]# hostname
redhat

so add ovirt-node-config commandline tool to configure Node basic functions feature can work well. change the status into "VERIFIED".

Comment 7 errata-xmlrpc 2015-02-11 20:53:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2015-0160.html