OSTF hangs on selecting HTTP proxy for cloud

Bug #1499415 reported by Artem Panchenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Artem Panchenko
7.0.x
Fix Released
High
Denis Meltsaykin
8.0.x
Fix Released
High
Artem Panchenko

Bug Description

Fuel version info (7.0 build #301): http://paste.openstack.org/show/473891/

If some of HTTP proxies on controllers work incorrectly (e.g. Apache accepts connections, but doesn't reply on them) then OSTF hangs forever waiting for keystone client initialization:

https://github.com/stackforge/fuel-ostf/blob/master/fuel_health/config.py#L762-L767

2015-09-24 14:39:21 INFO (config) Online controllers ips is [u'10.109.0.5', u'10.109.0.6', u'10.109.0.3']
2015-09-24 14:39:21 INFO (config) Online compute ips is [u'10.109.0.7', u'10.109.0.4']
2015-09-24 14:39:21 INFO (config) COMPUTES IPS [u'10.109.0.7', u'10.109.0.4']
2015-09-24 14:39:21 INFO (config) parse node cluster successful
2015-09-24 14:39:21 INFO (config) parse network configuration successful
2015-09-24 14:39:21 INFO (config) set endpoints successful
2015-09-24 14:39:21 WARNING (config) Try to check proxy on 10.109.0.5
2015-09-24 14:39:21 INFO (connectionpool) Starting new HTTP connection (1): 10.109.0.5
2015-09-24 14:39:21 WARNING (config) Try to check proxy on 10.109.0.6
2015-09-24 14:39:21 INFO (connectionpool) Starting new HTTP connection (1): 10.109.0.6
2015-09-24 14:39:21 INFO (config) parse network configuration successful
2015-09-24 14:39:21 INFO (config) set endpoints successful
2015-09-24 14:39:21 WARNING (config) Try to check proxy on 10.109.0.5
2015-09-24 14:39:21 INFO (connectionpool) Starting new HTTP connection (1): 10.109.0.5
2015-09-24 14:39:22 WARNING (config) Try to check proxy on 10.109.0.6
2015-09-24 14:39:22 INFO (connectionpool) Starting new HTTP connection (1): 10.109.0.6
2015-09-24 14:39:22 WARNING (config) Try to check proxy on 10.109.0.3
2015-09-24 14:39:22 INFO (connectionpool) Starting new HTTP connection (1): 10.109.0.3
2015-09-24 14:39:22 WARNING (config) Try to check proxy on 10.109.0.3
2015-09-24 14:39:22 INFO (connectionpool) Starting new HTTP connection (1): 10.109.0.3
2015-09-24 14:39:22 WARNING (config) Try to check proxy on 10.109.0.6
2015-09-24 14:39:22 INFO (connectionpool) Starting new HTTP connection (1): 10.109.0.6
2015-09-24 14:39:22 WARNING (config) Try to check proxy on 10.109.0.6
2015-09-24 14:39:22 INFO (connectionpool) Starting new HTTP connection (1): 10.109.0.6
2015-09-24 14:39:22 WARNING (config) Try to check proxy on 10.109.0.3
2015-09-24 14:39:22 INFO (connectionpool) Starting new HTTP connection (1): 10.109.0.3
2015-09-24 14:39:22 WARNING (config) Try to check proxy on 10.109.0.3
2015-09-24 14:39:22 INFO (connectionpool) Starting new HTTP connection (1): 10.109.0.3
...
2015-09-24 14:39:24 DEBUG (auth_token) Authenticating user token
2015-09-24 14:39:27 DEBUG (auth_token) Authenticating user token
2015-09-24 14:39:30 DEBUG (auth_token) Authenticating user token
2015-09-24 14:39:33 DEBUG (auth_token) Authenticating user token
2015-09-24 14:39:36 DEBUG (auth_token) Authenticating user token
2015-09-24 14:39:39 DEBUG (auth_token) Authenticating user token
2015-09-24 14:39:42 DEBUG (auth_token) Authenticating user token
2015-09-24 14:39:45 DEBUG (auth_token) Authenticating user token
2015-09-24 14:39:48 DEBUG (auth_token) Authenticating user token
2015-09-24 14:39:51 DEBUG (auth_token) Authenticating user token
2015-09-24 14:39:54 DEBUG (auth_token) Authenticating user token
2015-09-24 14:39:57 DEBUG (auth_token) Authenticating user token
2015-09-24 14:40:00 DEBUG (auth_token) Authenticating user token
2015-09-24 14:40:03 DEBUG (auth_token) Authenticating user token
2015-09-24 14:40:06 DEBUG (auth_token) Authenticating user token

We need to add connection timeout in order to avoid health check hang.

tags: added: module-ostf ostf
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-ostf (master)

Fix proposed to branch: master
Review: https://review.openstack.org/227355

Changed in fuel:
assignee: Fuel QA Team (fuel-qa) → Artem Panchenko (apanchenko-8)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-ostf (master)

Reviewed: https://review.openstack.org/227355
Committed: https://git.openstack.org/cgit/stackforge/fuel-ostf/commit/?id=0e7bc3d9e08f9b83f49b532613748790e4b4d84b
Submitter: Jenkins
Branch: master

commit 0e7bc3d9e08f9b83f49b532613748790e4b4d84b
Author: Artem Panchenko <email address hidden>
Date: Thu Sep 24 17:59:45 2015 +0300

    Add timeout for keystone client in proxy checker

    Add 10 seconds timeout for Keystone client initialization
    during HTTP proxy check, because otherwise it could hang
    forever.
    Also check that find_proxy returns IP address before
    using it.

    Change-Id: I4fabe0f5fee3d2acc3e7e2387ac858b2c56493c7
    Closes-bug: #1499415

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Nastya Urlapova (aurlapova) wrote :

I vote to fix it in 7.o-updates also.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-ostf (stable/7.0)

Fix proposed to branch: stable/7.0
Review: https://review.openstack.org/237925

Revision history for this message
Tatyanka (tatyana-leontovich) wrote :

verified on 8.0-167 kilo for 8.0

Dmitry Pyzhov (dpyzhov)
tags: added: area-qa
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-ostf (stable/7.0)

Reviewed: https://review.openstack.org/237925
Committed: https://git.openstack.org/cgit/openstack/fuel-ostf/commit/?id=1d0fe68fd84608d9a7821d199d12c2bd157fdcf3
Submitter: Jenkins
Branch: stable/7.0

commit 1d0fe68fd84608d9a7821d199d12c2bd157fdcf3
Author: Artem Panchenko <email address hidden>
Date: Thu Sep 24 17:59:45 2015 +0300

    [stable/7.0]Add timeout for keystone client in proxy checker

    Add 10 seconds timeout for Keystone client initialization
    during HTTP proxy check, because otherwise it could hang
    forever.
    Also check that find_proxy returns IP address before
    using it.

    Change-Id: I4fabe0f5fee3d2acc3e7e2387ac858b2c56493c7
    Closes-bug: #1499415
    (cherry picked from commit 0e7bc3d9e08f9b83f49b532613748790e4b4d84b)

Denis Puchkin (dpuchkin)
tags: added: on-verification
Revision history for this message
Denis Puchkin (dpuchkin) wrote :

Verified on 7.0

with fuel-ostf-7.0.0-825.2.git1d0fe68

tags: removed: on-verification
tags: added: 7.0-mu-2
tags: added: area-ostf
removed: area-qa module-ostf
tags: removed: ostf
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.