Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1349305

Summary: [ovirt-engine-extension-aaa-ldap-setup] No timeout when server is down
Product: [oVirt] ovirt-engine-extension-aaa-ldap Reporter: Gonza <grafuls>
Component: SetupAssignee: Ondra Machacek <omachace>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Belka <jbelka>
Severity: high Docs Contact:
Priority: unspecified    
Version: 1.2.0CC: bugs, gklein, mperina, ncredi, pstehlik
Target Milestone: ovirt-4.0.1Keywords: Automation
Target Release: 1.2.1Flags: rule-engine: ovirt-4.0.z+
rule-engine: planning_ack+
mperina: devel_ack+
pstehlik: testing_ack+
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: 2016-08-22 12:29:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
ovirt-engine-extension-aaa-ldap-setup log none

Description Gonza 2016-06-23 08:02:30 UTC
Created attachment 1171328 [details]
ovirt-engine-extension-aaa-ldap-setup log

Description of problem:
When running ovirt-engine-extension-aaa-ldap-setup over a server that is down, there is no timeout and the process can run for ours.

Version-Release number of selected component (if applicable):
ovirt-engine-extension-aaa-ldap-setup-1.2.0-1.el7ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. run ovirt-engine-extension-aaa-ldap-setup pointing to a ldap server that is down
2. wait for timeout

Actual results:
ovirt-engine-extension-aaa-ldap-setup runs for ours

Expected results:
ovirt-engine-extension-aaa-ldap-setup timesout after a short period of time

Additional info:
logs attached

Comment 1 Martin Perina 2016-06-23 13:35:31 UTC
Fix will be included in ovirt-engine-extension-aaa-ldap-1.2.1

Comment 2 Jiri Belka 2016-08-18 10:00:39 UTC
ok, ovirt-engine-extension-aaa-ldap-setup-1.2.1-1.el7ev.noarch

...
          Please select protocol to use (startTLS, ldaps, plain) [startTLS]: plain
[ INFO  ] Connecting to LDAP using 'ldap://str-02.example.com:389'
[WARNING] Cannot connect using 'ldap://str-02.example.com:389': {'desc': "Can't contact LDAP server"}
[ ERROR ] Failed to execute stage 'Environment customization': Cannot connect using any of available options
[ INFO  ] Stage: Clean up
          Log file is available at /tmp/ovirt-engine-extension-aaa-ldap-setup-20160818095717-gt4q7o.log:
[ INFO  ] Stage: Pre-termination
[ INFO  ] Stage: Termination