[sys test] Tests fails with: Cant establish connection to keystone with url http://...

Bug #1356418 reported by Dennis Dmitriev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Medium
Dennis Dmitriev

Bug Description

All Fuel CI tests constantly fail twice with connect to keystone in the very beginning of the test:

2014-08-13 12:13:41,393 - INFO nailgun_client.py:30 -- Initiate Nailgun client with url http://10.108.10.2:8000
2014-08-13 12:13:41,393 - INFO http.py:26 -- Initiate HTTPClient with url http://10.108.10.2:8000
2014-08-13 12:13:41,394 - INFO http.py:37 -- Initialize keystoneclient with url http://10.108.10.2:5000/v2.0
2014-08-13 12:15:48,650 - WARNING http.py:47 -- Cant establish connection to keystone with url http://10.108.10.2:5000/v2.0
Create environment and set up master node ... 2014-08-13 12:15:49,035 - INFO nailgun_client.py:30 -- Initiate Nailgun client with url http://10.108.10.2:8000
2014-08-13 12:15:49,035 - INFO http.py:26 -- Initiate HTTPClient with url http://10.108.10.2:8000
2014-08-13 12:15:49,035 - INFO http.py:37 -- Initialize keystoneclient with url http://10.108.10.2:5000/v2.0
2014-08-13 12:17:56,266 - WARNING http.py:47 -- Cant establish connection to keystone with url http://10.108.10.2:5000/v2.0

It happens because class HTTPClient tries to authenticate keystone client during the class initialisation.
The class HTTPClient is created only when the test has just started, but environment isn't running at this moment. This is caused delays for about 5 minutes while keystone is trying to authenticate at start of every system test.

Given that the class HTTPClient cannot perform authentication of keystone when it is created but each method of this class has workaround with re-trying of keystone authentication, I propose to remove self.authenticate() from __init__ method in HTTPClient.

There will be no loss of functionality because HTTPClient still cannot perform authentication of keystone, but keystone is authenticated by any method of HTTPClient class (for example: during ntpd time syncronisation) when environment has created.

Tags: system-tests
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-main (master)

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

Changed in fuel:
assignee: nobody → Dennis Dmitriev (ddmitriev)
status: New → In Progress
Changed in fuel:
milestone: none → 5.1
importance: Undecided → Medium
summary: - Cant establish connection to keystone with url http://...
+ [sys test] Tests fails with: Cant establish connection to keystone with
+ url http://...
tags: added: system-tests
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-main (master)

Reviewed: https://review.openstack.org/113926
Committed: https://git.openstack.org/cgit/stackforge/fuel-main/commit/?id=b65ef8093f95cc02cf63218e2a6ebb061d49e903
Submitter: Jenkins
Branch: master

commit b65ef8093f95cc02cf63218e2a6ebb061d49e903
Author: Dennis Dmitriev <email address hidden>
Date: Wed Aug 13 18:09:02 2014 +0300

    Remove premature authentication tries from HTTPClient class

    HTTPClient class is created in the very beginning of CI tests,
    when no environment exists. This is caused delays for about 5
    minutes while keystone is trying to authenticate at start of
    every system test.

    Change-Id: I3f729156b967e6bbcff7f1f733a671801477a2dd
    Closes-Bug: #1356418

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Dennis Dmitriev (ddmitriev) wrote :

{"build_id": "2014-08-15_02-01-17", "ostf_sha": "d2a894d228c1f3c22595a77f04b1e00d09d8e463", "build_number": "439", "auth_required": true, "api": "1.0", "nailgun_sha": "7d7e862ccbdbaa36785b95028d37ac91d7aca440", "production": "docker", "fuelmain_sha": "4f7f45d6a020cc5d49ff5c7ee249522a6de7a096", "astute_sha": "b52910642d6de941444901b0f20e95ebbcb2b2e9", "feature_groups": ["mirantis"], "release": "5.1", "fuellib_sha": "d72cd84468ad9846d4768c11df039c43978a5028"}

Changed in fuel:
importance: Medium → Undecided
milestone: 5.1 → none
status: Fix Committed → Fix Released
Revision history for this message
Dmitry Pyzhov (dpyzhov) wrote :

Dennis, why did you removed importance and milestone from this bug?

Changed in fuel:
importance: Undecided → Medium
milestone: none → 5.1
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.