Fixing Nova configuration (Devstack)
I've been struggling getting Devstack to run to completion, both Stein and Rocky. Yesterday I discovered "journalctl" and it tells me that I'm having trouble with DBConnection using 127.0.0.1 as the address.
ERROR nova.servicegroup.drivers.db DBConnectionError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on '127.0.0.1'
When I was trying to install every component by hand, the connection was always to the named host ("controller"), so this is surprising to me. What's the best way to fix this (if in fact, it's fixable)?
I changed four files in /etc/nova to reference 'controller' instead of '127.0.0.1'. Now at the end of ./stack.sh, I get "g-api did not start and a series of "Service N could not be found", where N is a small integer. "openstack service list" does not show nova-compute. Where should I look next?
And further back up the journalctl display I found this:
ProgrammingError: (pymysql.err.ProgrammingError) (1146, u"Table 'nova_cell0.services' doesn't exist")
And then further still, after a lot of DEBUG lines this:
AMQP server on 192.168.2.192:5672 is unreachable: Too many heartbeats