Integration tests are not able to run in an environment with SSL enabled

Bug #1474503 reported by Edmond Kotowski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Fix Released
Medium
Edmond Kotowski

Bug Description

When runnning ./redstack int-tests in an environment with SSL enabled the tests will raise an exception:

SSLError: [Errno 1] _ssl.c:510: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

Fix is to add a cacert variable on the test configuration and to set the cacert constructor parameter when creating the nova client.

Changed in trove:
assignee: nobody → Edmond Kotowski (ekotowski)
importance: Undecided → Medium
importance: Medium → Low
importance: Low → Medium
status: New → Triaged
Changed in trove:
milestone: none → next
milestone: next → ongoing
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to trove (master)

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

Changed in trove:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to trove (master)

Reviewed: https://review.openstack.org/201787
Committed: https://git.openstack.org/cgit/openstack/trove/commit/?id=e4eadd281db13fb89c2acd49ade8a204d1e76db2
Submitter: Jenkins
Branch: master

commit e4eadd281db13fb89c2acd49ade8a204d1e76db2
Author: Edmond Kotowski <email address hidden>
Date: Tue Jul 14 14:32:13 2015 -0700

    Allow int tests to run in SSL environment

    - int tests would raise an SSLError because
    we had no way to set the cacert when creating the
    nova client.
    - Added "cacert" parameter on the integration test
    config file.
    - Setting the cacert parameter on nova_client.Client
    constructor in create_nova_client method.
    - Defaulting cacert to None if none specified.

    Change-Id: Ia16bc9d52ba146d92b165e6ee046062a90f7b10c
    Closes-Bug: #1474503

Changed in trove:
status: In Progress → Fix Committed
Changed in trove:
milestone: ongoing → liberty-2
Thierry Carrez (ttx)
Changed in trove:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in trove:
milestone: liberty-2 → 4.0.0
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.