can not connect to the database
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
when I edit the /etc/hosts file on the controller node, the openstack get down,and the log of nova-manage.log is:
2014-04-16 09:56:38.768 4369 TRACE nova Traceback (most recent call last):
2014-04-16 09:56:38.768 4369 TRACE nova File "/usr/bin/
2014-04-16 09:56:38.768 4369 TRACE nova main()
2014-04-16 09:56:38.768 4369 TRACE nova File "/usr/bin/
2014-04-16 09:56:38.768 4369 TRACE nova fn(*fn_args, **fn_kwargs)
2014-04-16 09:56:38.768 4369 TRACE nova File "/usr/bin/
2014-04-16 09:56:38.768 4369 TRACE nova services = db.service_
2014-04-16 09:56:38.768 4369 TRACE nova File "/usr/lib/
2014-04-16 09:56:38.768 4369 TRACE nova return IMPL.service_
2014-04-16 09:56:38.768 4369 TRACE nova File "/usr/lib/
2014-04-16 09:56:38.768 4369 TRACE nova return f(*args, **kwargs)
2014-04-16 09:56:38.768 4369 TRACE nova File "/usr/lib/
2014-04-16 09:56:38.768 4369 TRACE nova query = model_query(
2014-04-16 09:56:38.768 4369 TRACE nova File "/usr/lib/
2014-04-16 09:56:38.768 4369 TRACE nova session = kwargs.
2014-04-16 09:56:38.768 4369 TRACE nova File "/usr/lib/
2014-04-16 09:56:38.768 4369 TRACE nova engine = get_engine()
2014-04-16 09:56:38.768 4369 TRACE nova File "/usr/lib/
2014-04-16 09:56:38.768 4369 TRACE nova _ENGINE = create_
2014-04-16 09:56:38.768 4369 TRACE nova File "/usr/lib/
2014-04-16 09:56:38.768 4369 TRACE nova engine.connect()
2014-04-16 09:56:38.768 4369 TRACE nova File "/usr/lib/
2014-04-16 09:56:38.768 4369 TRACE nova return self._connectio
2014-04-16 09:56:38.768 4369 TRACE nova File "/usr/lib/
2014-04-16 09:56:38.768 4369 TRACE nova self.__connection = connection or engine.
2014-04-16 09:56:38.768 4369 TRACE nova File "/usr/lib/
2014-04-16 09:56:38.768 4369 TRACE nova return self.pool.
2014-04-16 09:56:38.768 4369 TRACE nova File "/usr/lib/
2014-04-16 09:56:38.768 4369 TRACE nova return _ConnectionFair
2014-04-16 09:56:38.768 4369 TRACE nova File "/usr/lib/
2014-04-16 09:56:38.768 4369 TRACE nova rec = self._connectio
2014-04-16 09:56:38.768 4369 TRACE nova File "/usr/lib/
2014-04-16 09:56:38.768 4369 TRACE nova con = self._create_
2014-04-16 09:56:38.768 4369 TRACE nova File "/usr/lib/
2014-04-16 09:56:38.768 4369 TRACE nova return _ConnectionReco
2014-04-16 09:56:38.768 4369 TRACE nova File "/usr/lib/
2014-04-16 09:56:38.768 4369 TRACE nova self.connection = self.__connect()
2014-04-16 09:56:38.768 4369 TRACE nova File "/usr/lib/
2014-04-16 09:56:38.768 4369 TRACE nova connection = self.__
2014-04-16 09:56:38.768 4369 TRACE nova File "/usr/lib/
2014-04-16 09:56:38.768 4369 TRACE nova return dialect.
2014-04-16 09:56:38.768 4369 TRACE nova File "/usr/lib/
2014-04-16 09:56:38.768 4369 TRACE nova return self.dbapi.
2014-04-16 09:56:38.768 4369 TRACE nova File "/usr/lib/
2014-04-16 09:56:38.768 4369 TRACE nova return Connection(*args, **kwargs)
2014-04-16 09:56:38.768 4369 TRACE nova File "/usr/lib/
2014-04-16 09:56:38.768 4369 TRACE nova super(Connection, self)._
2014-04-16 09:56:38.768 4369 TRACE nova OperationalError: (OperationalError) (1045, "Access denied for user 'novaUser'
the problem is not simply about the openstack, it is about the mysql or other database. we need to delete the default user from the corresponding database to avoid the possible trap.
Changed in nova: | |
status: | New → Invalid |