manila db sync error

asked 2016-08-02 01:40:45 -0500

openstackstarter gravatar image

Hi, I'm following Openstack Guide Mitaka for Ubuntu, and while configuring Manila, when I try to sync db, I get this error :

su -s /bin/sh -c "manila-manage db sync" manila

Traceback (most recent call last):
  File "/usr/bin/manila-manage", line 6, in <module>
    from manila.cmd.manage import main
  File "/usr/lib/python2.7/dist-packages/manila/cmd/manage.py", line 65, in <module>
    from oslo_log import log
  File "/usr/lib/python2.7/dist-packages/oslo_log/log.py", line 49, in <module>
    from oslo_log import _options
  File "/usr/lib/python2.7/dist-packages/oslo_log/_options.py", line 15, in <module>
    from oslo_log import versionutils
  File "/usr/lib/python2.7/dist-packages/oslo_log/versionutils.py", line 52, in <module>
    class deprecated(object):
  File "/usr/lib/python2.7/dist-packages/oslo_log/versionutils.py", line 125, in deprecated
    '%(what)s is deprecated as of %(as_of)s in favor of '
  File "/usr/lib/python2.7/dist-packages/oslo_i18n/_factory.py", line 83, in f
    return _message.Message(msg, domain=domain)
  File "/usr/lib/python2.7/dist-packages/oslo_i18n/_message.py", line 60, in __new__
    msgtext = Message._translate_msgid(msgid, domain)
  File "/usr/lib/python2.7/dist-packages/oslo_i18n/_message.py", line 104, in _translate_msgid
    system_locale = locale.getdefaultlocale()
  File "/usr/lib/python2.7/locale.py", line 543, in getdefaultlocale
    return _parse_localename(localename)
  File "/usr/lib/python2.7/locale.py", line 475, in _parse_localename
    raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: UTF-8

and, can't figure out what's wrong.. I assume that the problem is with database since manila service-list returns as the document says to be. So I did this:

root@control-node:/home/control-node# mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 74
Server version: 5.5.49-MariaDB-1ubuntu0.14.04.1 (Ubuntu)

Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> CREATE DATABASE manila;
ERROR 1007 (HY000): Can't create database 'manila'; database exists
MariaDB [(none)]> GRANT ALL PRIVILEGES ON manila.* TO 'manila'@'localhost' IDENTIFIED BY 'maniladbpass';
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> GRANT ALL PRIVILEGES ON manila.* TO 'manila'@'%' IDENTIFIED BY 'maniladbpass';
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> exit

but it still shows an error. What should I do? or Where should I be looking to?

edit retag flag offensive close merge delete