Fix mysql_access duplicate declaration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Confirmed
|
Medium
|
Dmitry Ilyin | ||
Mitaka |
Confirmed
|
Medium
|
Dmitry Ilyin |
Bug Description
deployment/
# ensure_
This ensure is here to create the File resource for the default .my.cnf config if it's not present
so the collector
File <| title == $default_file_path |> {
ensure => 'symlink',
content => undef,
path => $default_file_path,
target => $host_file_path,
}
would be able to set it to be a symlink to the current custom database config file.
This ensure may be needed in case of an external database setup when the mysql server and it's
my.cnf management class is not applied on the controller. But with the normal deployment
this ensure creates a duplicate declaration if the mysq server class evaluates after this ensure have already been evaluated. There is no reliable control of the evaluation order so it's pure luck which one will evaluate first and if the catalog will break or not.
The proper solution would be to move the my.cnf management to a separate class and include it on both sides so there will be no duplicates or, at least, wrap both sides into the !defined as a dirty hack, but both solutions will requires committing to the upstream mysql module.
I'll start this process but it will take time.
Changed in fuel: | |
assignee: | nobody → Dmitry Ilyin (idv1985) |
milestone: | none → 9.1 |
status: | New → Confirmed |
Changed in fuel: | |
milestone: | 9.1 → 10.0 |
importance: | Undecided → High |
tags: | added: area-library |
Changed in fuel: | |
importance: | High → Medium |
Related fix proposed to branch: master /review. openstack. org/365788
Review: https:/