openstacklib::db::mysql['nova_cell0'] has no dependency on openstacklib::db::mysql['nova']

Bug #1787551 reported by Martin Schuppert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
puppet-nova
Invalid
Undecided
Martin Schuppert

Bug Description

If openstacklib::db::mysql['nova_cell0'] runs before openstacklib::db::mysql['nova'], as there is no dependency [1], we fail to grant privileges as nova_cell0 is executed with "create_user => false".

            "Error: Execution of '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf --host= --database=mysql -e GRANT ALL PRIVILEGES ON `nova_cell0`.* TO 'nova'@'cell0'' returned 1: ERROR 1133 (28000) at line 1: Can't find any matching row in the user table",
            "Error: /Stage[main]/Nova::Db::Mysql/Openstacklib::Db::Mysql[nova_cell0]/Openstacklib::Db::Mysql::Host_access[nova_cell0_]/Mysql_grant[nova@cell0/nova_cell0.*]/ensure: change from absent to present failed: Execution of '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf --host= --database=mysql -e GRANT ALL PRIVILEGES ON `nova_cell0`.* TO 'nova'@'cell0'' returned 1: ERROR 1133 (28000) at line 1: Can't find any matching row in the user table",
            "+ rc=6",

[1] https://github.com/openstack/puppet-nova/blob/master/manifests/db/mysql.pp#L63

Changed in puppet-nova:
assignee: nobody → Martin Schuppert (mschuppert)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/592936

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on puppet-nova (master)

Change abandoned by Martin Schuppert (<email address hidden>) on branch: master
Review: https://review.openstack.org/592936
Reason: the dep should be not required

Changed in puppet-nova:
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.