docker_config_scripts/ breaks with TLS everywhere

Bug #1813148 reported by Juan Antonio Osorio Robles on 2019-01-24
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juan Antonio Osorio Robles

Bug Description

With TLS everywhere, access to the database is denied unless TLS is enabled. This seems to be the issue with the aforementioned script. When we enable TLs everywhere, that script fails with the following error:

        " File \"/usr/lib64/python2.7/site-packages/sqlalchemy/engine/\", line 106, in connect",
        " return dialect.connect(*cargs, **cparams)",
        " File \"/usr/lib64/python2.7/site-packages/sqlalchemy/engine/\", line 410, in connect",
        " return self.dbapi.connect(*cargs, **cparams)",
        " File \"/usr/lib/python2.7/site-packages/pymysql/\", line 94, in Connect",
        " return Connection(*args, **kwargs)",
        " File \"/usr/lib/python2.7/site-packages/pymysql/\", line 327, in __init__",
        " self.connect()",
        " File \"/usr/lib/python2.7/site-packages/pymysql/\", line 598, in connect",
        " self._request_authentication()",
        " File \"/usr/lib/python2.7/site-packages/pymysql/\", line 862, in _request_authentication",
        " auth_packet = self._process_auth(plugin_name, auth_packet)",
        " File \"/usr/lib/python2.7/site-packages/pymysql/\", line 933, in _process_auth",
        " pkt = self._read_packet()",
        " File \"/usr/lib/python2.7/site-packages/pymysql/\", line 683, in _read_packet",
        " packet.check_error()",
        " File \"/usr/lib/python2.7/site-packages/pymysql/\", line 220, in check_error",
        " err.raise_mysql_exception(self._data)",
        " File \"/usr/lib/python2.7/site-packages/pymysql/\", line 109, in raise_mysql_exception",
        " raise errorclass(errno, errval)",
        "OperationalError: (pymysql.err.OperationalError) (1045, u\"Access denied for user 'nova_api'@'' (using password: YES)\") (Background on this error at:",
        "(cellv2) Service registered, running discovery",
        "stderr: + command -v python3",
        "+ command -v python2",
        "+ python2 /docker-config-scripts/"

Changed in tripleo:
importance: Undecided → Critical
status: New → Triaged
milestone: none → stein-3

Fix proposed to branch: master

Changed in tripleo:
assignee: nobody → Juan Antonio Osorio Robles (juan-osorio-robles)
status: Triaged → In Progress

Submitter: Zuul
Branch: master

commit ad81fba15da5bf6dc07153cc4c49ab48a334ee44
Author: Juan Antonio Osorio Robles <email address hidden>
Date: Thu Jan 24 13:14:49 2019 +0200

    Mount mysql client configuration in nova cell discovery container

    Without this it will ignore the TLS options (like the CA), and will fail
    when TLS everywhere is enabled.

    Change-Id: Ic0aa06afc61cf4536d476b429ac6cbf1a05dbfe0
    Closes-Bug: #1813148

Changed in tripleo:
status: In Progress → Fix Released

This issue was fixed in the openstack/tripleo-heat-templates 10.4.0 release.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers