Bug 1324843

Summary: stress_ refresh test fails in s390x and ppc64 archs
Product: Red Hat Enterprise Linux 6 Reporter: Steeve Goveas <sgoveas>
Component: sssdAssignee: Pavel Březina <pbrezina>
Status: CLOSED NOTABUG QA Contact: Steeve Goveas <sgoveas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.8CC: dlavu, grajaiya, jhrozek, lslebodn, mkosek, mzidek, pbrezina, preichl
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-04 13:42:16 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 Steeve Goveas 2016-04-07 12:44:17 UTC
Description of problem:
function client_sudo_user_is_allowed()
{
    su user1 -c "sudo -u user2 ${*-true}"
}

function client_sudo_user_is_denied()
{
    { ! client_sudo_user_is_allowed "$@"; }
}


for ((i = 1; i<= 5; i++)); do
        server_rule_modify test <<<"\
            replace:            sudoUser
            sudoUser:   user2"
        sleep "0"
        client_sudo_user_is_denied || { status=1; break; }
        server_rule_modify test <<<"\
            replace:            sudoUser
            sudoUser:   user1"
        sleep "2"
        client_sudo_user_is_allowed || { status=1; break; }
    done



::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: stress_refresh
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [  BEGIN   ] :: stress_refresh_attr_user :: actually running 'strict eval 'stress_attr User user2 0 user_is_denied            user1 2 user_is_allowed''
user1 is not in the sudoers file.  This incident will be reported.
user1 is not in the sudoers file.  This incident will be reported.
user1 is not in the sudoers file.  This incident will be reported.
:: [   FAIL   ] :: stress_refresh_attr_user (Expected 0, got 1)

Version-Release number of selected component (if applicable):
sssd-1.13.3-22.el6.s390x

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 Jakub Hrozek 2016-04-07 14:06:58 UTC
Pavel agreed he'd take a look.

Comment 6 Jakub Hrozek 2016-05-04 13:42:16 UTC
This turned out to be a bug in tests. Closing.