Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1685141 - update of QPIDD_OPTIONS in qpidd init script leads to not-starting broker
Summary: update of QPIDD_OPTIONS in qpidd init script leads to not-starting broker
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: Messaging_Installation_and_Configuration_Guide
Version: 3.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: mmurray
QA Contact: Messaging QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-04 13:20 UTC by Pavel Moravec
Modified: 2019-03-04 13:20 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)

Description Pavel Moravec 2019-03-04 13:20:03 UTC
Description of problem:
Following:

https://access.redhat.com/documentation/en-us/red_hat_enterprise_mrg/3/html-single/messaging_installation_and_configuration_guide/#Configure_Clustering_with_a_non-privileged_non-root_user

I should add to /etc/init.d/qpidd :

CFG_DIR=/var/lib/qpidd
QPIDD_OPTIONS="--config ${CFG_DIR}/qpidd.conf --client-config ${CFG_DIR}/qpidc.conf"

But adding also the 2nd line, qpidd is attempted to be started with:

runuser -s /bin/bash qpidd -c 'ulimit -S -c 0 >/dev/null 2>&1 ; /usr/sbin/qpidd --config /etc/qpid/qpidd.conf --daemon --config /var/lib/qpidd/qpidd.conf --client-config /var/lib/qpidd/qpidc.conf --data-dir=/var/lib/qpidd --close-fd 9 --pidfile /var/run/qpidd.pid'


See the duplicit --config there - that causes "Error in command line options: multiple_occurrences" fatal error during startup.

I am not sure why the QPIDD_OPTIONS should be added at all, but definitely the "--config ${CFG_DIR}/qpidd.conf" is bogus there.

 
Version-Release number of selected component (if applicable):
current MRG-M 3.2 doc


How reproducible:
100%


Steps to Reproduce:
1. Apply https://access.redhat.com/documentation/en-us/red_hat_enterprise_mrg/3/html-single/messaging_installation_and_configuration_guide/#Configure_Clustering_with_a_non-privileged_non-root_user
2. Try to start qpidd service (even outside cluster)


Actual results:
2. fails with "Error in command line options: multiple_occurrences" fatal error during startup.


Expected results:
1. to be updated such that startup succeeds (both manual and namely via clusterHA)


Additional info:


Note You need to log in before you can comment on or make changes to this bug.