Functional Test script results in an authentication error

Bug #1836028 reported by Sara Nierodzik on 2019-07-10
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Medium
Sara Nierodzik

Bug Description

The script is the "configure_for_func_testing.sh" located in /opt/stack/neutron/tools folder.
When the guidelines are followed from the following link:https://docs.openstack.org/neutron/ocata/devref/development.environment.html the test script displays the following error:

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

Possibly due to the version of MySQL version being used:
"Since version 5.7, MySQL is secure-by-default: a random root password is generated upon installation; you need to read this password from the server log. you have to change this password the first time you connect. you cannot use a blank password because of the validate_password plugin."

The fix for this is to include the already set password in order to access the MySQL database.

Changed in neutron:
assignee: nobody → Sara Nierodzik (snierodz)
status: New → Incomplete
status: Incomplete → In Progress
Sara Nierodzik (snierodz) wrote :

The commit which includes the fix for this issue:
https://review.opendev.org/#/c/670021/

There might be a better way of fixing the bug rather than copying and pasting in the password on a different line however this fix gets rid of the error.

Changed in neutron:
status: In Progress → Fix Committed
tags: added: functional-tests
Changed in neutron:
status: Fix Committed → In Progress
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers