Comments (9)
didn't comment reference to sqlite in /etc/keystone/keystone.conf
connection = sqlite:////var/lib/keystone/keystone.db
from coa.
Wrong controller hostname used in /etc/keystone/keystone.conf
[database]
connection = mysql+pymysql://keystone:openstack@controller/keystone
Mine is libcontroller
from coa.
Re-populate the identity service database after correcting the controller hostname in /etc/keystone/keystone.conf
su -s /bin/sh -c "keystone-manage db_sync" keystone
from coa.
Another issue with the same symptom:
tail /var/log/keystone/keystone-wsgi-admin.log
2016-11-09 00:53:31.757 2992 ERROR keystone.common.wsgi engine_args, maker_args)
2016-11-09 00:53:31.757 2992 ERROR keystone.common.wsgi File "/usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 362, in _setup_for_connection
2016-11-09 00:53:31.757 2992 ERROR keystone.common.wsgi sql_connection=sql_connection, **engine_kwargs)
2016-11-09 00:53:31.757 2992 ERROR keystone.common.wsgi File "/usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/engines.py", line 152, in create_engine
2016-11-09 00:53:31.757 2992 ERROR keystone.common.wsgi test_conn = _test_connection(engine, max_retries, retry_interval)
2016-11-09 00:53:31.757 2992 ERROR keystone.common.wsgi File "/usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/engines.py", line 334, in _test_connection
2016-11-09 00:53:31.757 2992 ERROR keystone.common.wsgi six.reraise(type(de_ref), de_ref)
2016-11-09 00:53:31.757 2992 ERROR keystone.common.wsgi File "<string>", line 2, in reraise
2016-11-09 00:53:31.757 2992 ERROR keystone.common.wsgi DBConnectionError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'controller' ([Errno -2] Name or service not known)")
2016-11-09 00:53:31.757 2992 ERROR keystone.common.wsgi
from coa.
tail /var/log/keystone/keystone-wsgi-admin.log
2016-11-09 01:01:54.514 2990 ERROR keystone.common.wsgi File "/usr/lib/python2.7/dist-packages/pymysql/connections.py", line 826, in _read_packet
2016-11-09 01:01:54.514 2990 ERROR keystone.common.wsgi packet.check_error()
2016-11-09 01:01:54.514 2990 ERROR keystone.common.wsgi File "/usr/lib/python2.7/dist-packages/pymysql/connections.py", line 370, in check_error
2016-11-09 01:01:54.514 2990 ERROR keystone.common.wsgi raise_mysql_exception(self._data)
2016-11-09 01:01:54.514 2990 ERROR keystone.common.wsgi File "/usr/lib/python2.7/dist-packages/pymysql/err.py", line 116, in raise_mysql_exception
2016-11-09 01:01:54.514 2990 ERROR keystone.common.wsgi _check_mysql_exception(errinfo)
2016-11-09 01:01:54.514 2990 ERROR keystone.common.wsgi File "/usr/lib/python2.7/dist-packages/pymysql/err.py", line 109, in _check_mysql_exception
2016-11-09 01:01:54.514 2990 ERROR keystone.common.wsgi raise errorclass(errno,errorvalue)
2016-11-09 01:01:54.514 2990 ERROR keystone.common.wsgi ProgrammingError: (pymysql.err.ProgrammingError) (1146, u"Table 'keystone.service' doesn't exist") [SQL: u'INSERT INTO service (id, type, enabled, extra) VALUES (%s, %s, %s, %s)'] [parameters: ('37fd60101e904ba8a8d5861d964a375a', u'identity', 1, '{"description": "OpenStack Identity", "name": "keystone"}')]
2016-11-09 01:01:54.514 2990 ERROR keystone.common.wsgi
from coa.
i thought this time i'm gonna follow the Newton installation guide step by step but i got the same, gonna go ahead and comment that sqlite line in keystone.conf
(strange how one step is to delete the sqlite db file and never mention this step)
what about compute / neutron...et.conf?
you think they should be commented as well?
from coa.
Hi @eriksh7 , sorry for the late reply.
I think it doesn't harm to comment that line, as it refer to a not used db backend which apparently can create confusion.
from coa.
hi i have the same error but servername is coreect there is no line for sqlite connection in database field so dont need for comment and i did every thing step by step on openstack piko installition but i just get thiss error help pleaseeee !!! @AJNOURI
i checked keystone databse tables and populate didnt make any tables at all .
from coa.
connection = mysql+pymysql://keystone:[email protected]/keystone (example)
change ip according to your config
from coa.
Related Issues (20)
- Heat: successful stack creation, but nothing happens HOT 2
- openstack command: HttpException: Bad Request
- cinder: Volume type with name LUKS could not be found. (HTTP 404) HOT 1
- openstack cli command: created user within a group, but it doesn't appear in the list of horizon. Cannot connect to horizon with new user. HOT 1
- Swift: Cannot set expiry date for a container HOT 1
- Creating an instance : aborted: Block Device Mapping is Invalid. HOT 1
- Error: Unable to retrieve instances. HOT 1
- Cannot reach floating IP from outside network HOT 3
- Consequence of Rabbitmq service stopped HOT 1
- Policy doesn't allow os_compute_api:os-quota-sets:update to be performed. (HTTP 403) (Request-ID: HOT 1
- volume backup error : volumes_backup 403 Forbidden [first 60 chars of response] <html><h1>Forbidden</h1><p>Access was denied to this resourc
- neutron: External network ... is not reachable from subnet ... Therefore, cannot associate Port ... with a Floating IP HOT 1
- Block Device Mapping is Invalid : When creating xenial instance
- Creating instance: Power state = "no state" HOT 1
- Cannot SSH access to Debian cloud image 9.1.1: HOT 1
- libvirt & guestfish : Cannot run the image : Original error from libvirt: Cannot access storage file '/root/debian-9.1.1-20170725-openstack-amd64.qcow2' (as uid:107, gid:107): Permission denied [code=38 int1=13] HOT 2
- Cannot ping outside world from instance HOT 1
- Issue deleting external network from Horizon
- Swift installation on centos
- Facing issue with "openstack token issue"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coa.