The hostname used in configuration files is the same name from /etc/hosts file.
192.168.1.11 newton01
Also I've changed the hostname by the IP in configuration files, and the same result. The parameter is being ignored.
This is the content of api.log file:
2017-03-30 11:07:39.078 27711 CRITICAL glance [-] OperationalError: (_mysql_exceptions.OperationalError) (1045, "Access denied for user 'glance'@'localhost' (using password: YES)")
2017-03-30 11:07:39.078 27711 ERROR glance Traceback (most recent call last):
2017-03-30 11:07:39.078 27711 ERROR glance File "/usr/bin/glance-manage", line 10, in <module>
2017-03-30 11:07:39.078 27711 ERROR glance sys.exit(main())
...
...
...
2017-03-30 11:07:39.078 27711 ERROR glance return Connection(*args, **kwargs)
2017-03-30 11:07:39.078 27711 ERROR glance File "/usr/lib64/python2.7/site-packages/MySQLdb/connections.py", line 193, in __init__
2017-03-30 11:07:39.078 27711 ERROR glance super(Connection, self).__init__(*args, **kwargs2)
2017-03-30 11:07:39.078 27711 ERROR glance OperationalError: (_mysql_exceptions.OperationalError) (1045, "Access denied for user 'glance'@'localhost' (using password: YES)")
2017-03-30 11:07:39.078 27711 ERROR glance
This is the content of glance-api.conf :
[DEFAULT]
debug = true
verbose = true
[cors]
[cors.subdomain]
[database]
connection mysql+pymysql://glance:glancedbpassword@newton01/glance
[glance_store]
stores = file
default_store = file
filesystem_store_datadir = /var/lib/glance/images/
[image_format]
[keystone_authtoken]
auth_uri = http://newton01:5000
auth_url = http://newton01:35357
memcached_servers = newton01:11211
auth_type = password
project_domain_name = Default
user_domain_name = Default
project_name = service
username = glance
password = glancepassword
[matchmaker_redis]
[oslo_concurrency]
[oslo_messaging_amqp]
[oslo_messaging_notifications]
[oslo_messaging_rabbit]
[oslo_messaging_zmq]
[oslo_middleware]
[oslo_policy]
[paste_deploy]
flavor = keystone
[profiler]
[store_type_location_strategy]
[task]
[taskflow_executor]
And this is the content of glance-registry.conf :
[DEFAULT]
debug = true
verbose = true
[database]
connection = mysql+pymysql://glance:glancedbpassword@newton01/glance
[keystone_authtoken]
auth_uri = http://newton01:5000
auth_url = http://newton01:35357
memcached_servers = newton01:11211
auth_type = password
project_domain_name = Default
user_domain_name = Default
project_name = service
username = glance
password = glancepassword
[matchmaker_redis]
[oslo_messaging_amqp]
[oslo_messaging_notifications]
[oslo_messaging_rabbit]
[oslo_messaging_zmq]
[oslo_policy]
[paste_deploy]
flavor = keystone
[profiler]
Regards,
Jorge.