Bug 1415074

Summary: ccs_config_validate fails when called from cron (or a script invoked by cron)
Product: Red Hat Enterprise Linux 6 Reporter: Madison Kelly <mkelly>
Component: clusterAssignee: Christine Caulfield <ccaulfie>
Status: CLOSED WONTFIX QA Contact: cluster-qe <cluster-qe>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.8CC: ccaulfie, cluster-maint, rpeterso, teigland
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-06 11:58:28 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 Madison Kelly 2017-01-20 07:36:03 UTC
Description of problem:

If ccs_config_validate is called from cron (or by a script called by cron), PATH isn't set, and it calls ccs_update_schema without specifying the path. If cron doesn't set PATH, then the ccs_config_validate itself fails. 

==== line 190~192
if [ "$updaterelaxng" != 0 ]; then
        updateerr="$(ccs_update_schema 2>&1)"
        if [ $? != 0 ]; then
====

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

cman-3.0.12.1-78.el6.x86_64


How reproducible:

100%


Steps to Reproduce:
1. Call it from crontab
2.
3.

Actual results:


Expected results:


Additional info:

Comment 4 Jan Kurik 2017-12-06 11:58:28 UTC
Red Hat Enterprise Linux 6 is in the Production 3 Phase. During the Production 3 Phase, Critical impact Security Advisories (RHSAs) and selected Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available.

The official life cycle policy can be reviewed here:

http://redhat.com/rhel/lifecycle

This issue does not meet the inclusion criteria for the Production 3 Phase and will be marked as CLOSED/WONTFIX. If this remains a critical requirement, please contact Red Hat Customer Support to request a re-evaluation of the issue, citing a clear business justification. Note that a strong business justification will be required for re-evaluation. Red Hat Customer Support can be contacted via the Red Hat Customer Portal at the following URL:

https://access.redhat.com/