Bug 727194

Summary: matahari-sysconfig-console start unrecognized option '--daemon'
Product: Red Hat Enterprise Linux 6 Reporter: Dave Johnson <dajohnso>
Component: matahariAssignee: Adam Stokes <astokes>
Status: CLOSED ERRATA QA Contact: Dave Johnson <dajohnso>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2CC: abeekhof, astokes, matahari-maint, rbryant, whayutin
Target Milestone: rc   
Target Release: 6.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: matahari-0.4.2-9.el6 Doc Type: Bug Fix
Doc Text:
No description required
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 11:39:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Dave Johnson 2011-08-01 14:03:29 UTC
Description of problem:
starting matahari-sysconfig-console displays error

Version-Release number of selected component (if applicable):
matahari-0.4.2-2.el6.x86_64
matahari-agent-lib-0.4.2-2.el6.x86_64
matahari-broker-0.4.2-2.el6.x86_64
matahari-devel-0.4.2-2.el6.x86_64
matahari-host-0.4.2-2.el6.x86_64
matahari-lib-0.4.2-2.el6.x86_64
matahari-network-0.4.2-2.el6.x86_64
matahari-service-0.4.2-2.el6.x86_64
matahari-sysconfig-0.4.2-2.el6.x86_64
python-qpid-0.10-1.el6.noarch
python-qpid-qmf-0.10-6.el6.x86_64
qpid-cpp-client-0.10-6.el6.x86_64
qpid-cpp-client-devel-0.10-6.el6.x86_64
qpid-cpp-client-ssl-0.10-6.el6.x86_64
qpid-cpp-server-0.10-6.el6.x86_64
qpid-cpp-server-ssl-0.10-6.el6.x86_64
qpid-qmf-0.10-6.el6.x86_64
qpid-qmf-devel-0.10-6.el6.x86_64
qpid-tools-0.10-3.el6.noarch
ruby-qpid-qmf-0.10-6.el6.x86_64


How reproducible:
100%

Steps to Reproduce:
1.  install local matahari broker and sysconfig agent
2.  start broker
3.  start matahari-sysconfig-console
  
Actual results:
unrecognized option error

Expected results:
service starts

Additional info:

[root@hp-bl460c-02 init.d]# ./matahari-sysconfig-console start
Starting the matahari-sysconfig-console daemon: matahari-qmf-sysconfig-consoled: unrecognized option '--daemon'
Usage:	matahari-sysconfig-consoled <options>

Common options:
	-h | --help             print this help message.
	-b | --broker value     specify broker host name..
	-p | --port value       specify broker port.
	-u | --username value   username to use for authentication purproses.
	-P | --password value   password to use for authentication purproses.
	-s | --service value    service name to use for authentication purproses.
	-r | --reconnect value  attempt to reconnect on failure.

Custom options:
[FAILED]

Comment 1 Adam Stokes 2011-08-01 19:01:24 UTC
This bug exists in sysconfig-console and service-cli for the service agent.

Comment 2 Adam Stokes 2011-08-04 20:21:06 UTC
The matahari team will be splitting all consoles into a separate package with a different initscript. Once that is pushed Ill update the bug as this will not be relevant any longer

Thanks

Comment 3 Adam Stokes 2011-08-09 17:53:25 UTC
Changes found here:
https://github.com/matahari/matahari/blob/master/matahari.spec

Comment 4 Andrew Beekhof 2011-08-10 12:08:08 UTC
That doesn't resolve the problem though.
matahari-qmf-sysconfig-consoled still needs an init script and needs to understand the --daemon option.  Spec file changes aren't going to resolve that - moving back to assigned.

Comment 5 Adam Stokes 2011-08-11 15:03:54 UTC
Posted patches to ML for review

Comment 7 Dave Johnson 2011-08-16 23:05:57 UTC
Different error in v0.4.2-6...

[root@dell-pe2900-01 init.d]# ./matahari-sysconfig-console start
Starting the matahari-sysconfig-console daemon: matahari-qmf-sysconfig-consoled: invalid option -- 'c'
Usage:	matahari-sysconfig-consoled <options>

Common options:
	-h | --help             print this help message.
	-b | --broker value     specify broker host name..
	-p | --port value       specify broker port.
	-u | --username value   username to use for authentication purproses.
	-P | --password value   password to use for authentication purproses.
	-s | --service value    service name to use for authentication purproses.
	-r | --reconnect value  attempt to reconnect on failure.

Custom options:
	-d | --daemon	 run as a daemon
[FAILED]
[root@dell-pe2900-01 init.d]#

Comment 8 Adam Stokes 2011-08-17 13:47:32 UTC
what options are you running with in your sysconfig/matahari?

Comment 9 Dave Johnson 2011-08-17 13:52:55 UTC
The default settings...

# Connect to a broker on the named host
# If this is not defined, agents will attempt to connect to localhost 
#  and/or the contents of a _matahari._tcp SRV record if it exists
#MATAHARI_BROKER=127.0.0.1

# Connect to a broker on a non-standard port
#MATAHARI_PORT=49000

# Other options that all agents should observe
MATAHARI_AGENT_ARGS="--reconnect=yes"

# Other options that all consoles should observe
# MATAHARI_CONSOLE_ARGS=...

# Per agent options
# host_AGENT_ARGS=...
# network_AGENT_ARGS=...

# Per console options
# sysconfig_CONSOLE_ARGS=...

Comment 10 Adam Stokes 2011-08-17 15:38:30 UTC
WFM

[root@localhost ~]# service matahari-broker start
Starting Matahari broker daemon:                           [  OK  ]
[root@localhost ~]# service matahari-sysconfig start
Starting the matahari-sysconfig daemon:                    [  OK  ]
[root@localhost ~]# cat /etc/sysconfig/matahari
# Connect to a broker on the named host
# If this is not defined, agents will attempt to connect to localhost 
#  and/or the contents of a _matahari._tcp SRV record if it exists
#MATAHARI_BROKER=127.0.0.1

# Connect to a broker on a non-standard port
#MATAHARI_PORT=49000

# Other options that all agents should observe
MATAHARI_AGENT_ARGS="--reconnect=yes"

# Other options that all consoles should observe
# MATAHARI_CONSOLE_ARGS=...

# Per agent options
# host_AGENT_ARGS=...
# network_AGENT_ARGS=...

# Per console options
# sysconfig_CONSOLE_ARGS=...
[root@localhost ~]# rpm -q matahari-sysconfig
matahari-sysconfig-0.4.2-6.el6.x86_64
[root@localhost ~]# cd /etc/init.d/
[root@localhost init.d]# ./matahari-sysconfig start
Starting the matahari-sysconfig daemon:                    [  OK  ]

Comment 11 Dave Johnson 2011-09-09 18:47:57 UTC
good 2 go in 0.4.4-2

[root@dell-pem600-01 init.d]# ./matahari-sysconfig-console start
Starting the matahari-sysconfig-console daemon: [  OK  ]
[root@dell-pem600-01 init.d]#

Comment 12 Russell Bryant 2011-11-16 21:18:32 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
No description required

Comment 13 errata-xmlrpc 2011-12-06 11:39:11 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.

http://rhn.redhat.com/errata/RHBA-2011-1569.html