nova-manage gives mysql connection error if configuration file is not specified

asked 2017-04-07 10:48:28 -0500

juangallego gravatar image

I installed a controller host using packstack (OCATA release) and everything is running ok, instances can access external networks, etc. Next I ran packstack to configure a compute host but it failed with an error:

Notice: /Stage[main]/Nova::Cell_v2::Discover_hosts/Exec[nova-cell_v2-discover_hosts]/returns: OperationalError: (pymysql.err.OperationalError) (1045, u"***Access denied for user 'nova_api'@'hercules***' (using password: YES)")
Error: /Stage[main]/Nova::Cell_v2::Discover_hosts/Exec[nova-cell_v2-discover_hosts]: Failed to call refresh: nova-manage  cell_v2 discover_hosts returned 1 instead of one of [0]
Error: /Stage[main]/Nova::Cell_v2::Discover_hosts/Exec[nova-cell_v2-discover_hosts]: nova-manage  cell_v2 discover_hosts returned 1 instead of one of [0]

I logged in to the compute host and ran nova-manage cell_v2 discover_hosts and got the access denied mysql error. Ran it again but this time I specified on CLI the configuration file nova.conf and it ran without any errors. nova-manage --config-file /etc/nova/nova.conf cell_v2 discover_hosts

┬┐where is nova-manage getting the configuration file path when is not specified on CLI?

edit retag flag offensive close merge delete