← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1443562] [NEW] /etc/nova/nova.conf missing section: [database]

 

Public bug reported:

the docs tell you to add the 'connection=...' line after the [database]
section within /etc/nova/nova.conf

i then created and ran the bash script as follows:
OLD="^#connection=mysql.*"
NEW="connection = mysql://nova:$NOVA_DBPASS@controller/nova"
sed -i "/^\[database\]/,/^\[/{ s~$OLD~$NEW~ }" /etc/nova/nova.conf

unlike some of the other openstack config files that require a '[database]' section,
unbeknownst to me, there was no '[database]' section in /etc/nova/nova.conf so my script did nothing

i later kept getting the following error:
"Access denied for user 'nova'@'localhost' (using password: YES)") None None

googling I found many people faced the same error, but nothing lead me
to this issue.

i recommend adding a '[database]' section to /etc/nova/nova.conf

cheerz
kendal

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1443562

Title:
  /etc/nova/nova.conf missing section: [database]

Status in OpenStack Compute (Nova):
  New

Bug description:
  the docs tell you to add the 'connection=...' line after the
  [database] section within /etc/nova/nova.conf

  i then created and ran the bash script as follows:
  OLD="^#connection=mysql.*"
  NEW="connection = mysql://nova:$NOVA_DBPASS@controller/nova"
  sed -i "/^\[database\]/,/^\[/{ s~$OLD~$NEW~ }" /etc/nova/nova.conf

  unlike some of the other openstack config files that require a '[database]' section,
  unbeknownst to me, there was no '[database]' section in /etc/nova/nova.conf so my script did nothing

  i later kept getting the following error:
  "Access denied for user 'nova'@'localhost' (using password: YES)") None None

  googling I found many people faced the same error, but nothing lead me
  to this issue.

  i recommend adding a '[database]' section to /etc/nova/nova.conf

  cheerz
  kendal

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1443562/+subscriptions


Follow ups

References