nova-manage crashes when mysql root password contains special chars

Asked by Pierre-Olivier Vauboin

When the mysql root password contains special chars (especially $ and @), nova-manage fails when trying to synchronize the database.

root@host:~# nova-manage db sync
Command failed, please check log for more info

Please find attached an extract of /var/log/nova/nova-manage.log

(nova): TRACE: KeyError: 'ABCD'
The root mysql password would be in this case something like $ABCD@

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Thierry Carrez (ttx) said :
#1

This is in fact desired behavior: flags value are actually Template strings, and "$ABCD" serves to reference the value of the ABCD flag.

Revision history for this message
Thierry Carrez (ttx) said :
#2

Flag values are actually Python Template strings.

You should use "$$" to represent "$" in a flag value.

See for details: http://docs.python.org/library/string.html#template-strings

Can you help with this problem?

Provide an answer of your own, or ask Pierre-Olivier Vauboin for more information if necessary.

To post a message you must log in.