Can't deploy InfluxDB/Grafana plugin in a decidated environment with the detach-database plugin
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StackLight |
Fix Released
|
Medium
|
guillaume thouvenin | ||
0.9 |
Won't Fix
|
Medium
|
guillaume thouvenin |
Bug Description
The grafana_mysql.pp manifest doesn't run successfully in this configuration.
diff --git a/deployment_
index 6f27d7f..d3bb22f 100644
--- a/deployment_
+++ b/deployment_
@@ -15,7 +15,7 @@
$influxdb_grafana = hiera('
if $influxdb_
- $mysql = hiera('mysql')
+ $mysql = hiera_hash('mysql')
$db_vip = hiera('
$db_admin_user = 'root'
$db_admin_pass = $mysql[
@@ -38,7 +38,7 @@ host=<%= @db_vip %>
mysql::db { $db_name:
user => $db_username,
password => $db_password,
- host => $db_vip,
+ host => '%',
require => File[$db_
}
@@ -46,4 +46,4 @@ host=<%= @db_vip %>
command => "/bin/rm -f ${db_options_
require => Mysql::
}
-}
\ No newline at end of file
+}
Changed in lma-toolchain: | |
milestone: | 1.0.0 → 0.10.0 |
Changed in lma-toolchain: | |
assignee: | LMA-Toolchain Fuel Plugins (mos-lma-toolchain) → guillaume thouvenin (guillaume-thouvenin) |
Changed in lma-toolchain: | |
status: | Fix Committed → Fix Released |
+ $mysql = hiera_hash('mysql') related to this override
https:/ /github. com/openstack/ fuel-plugin- detach- database/ blob/stable/ 8.0/deployment_ scripts/ database_ hiera_override. pp#L87- L88
+ host => '%', Allow all source IPs when accessing DB. Related to multiple existing VIPs. And incorrect VIP used as SOURCE IP when accessing MySQL
root@node-4:~# ip netns exec haproxy ip r
default via 240.0.0.1 dev hapr-ns metric 10000
10.30.0.0/24 via 240.0.0.1 dev hapr-ns metric 10000
192.168.0.0/24 dev b_es_vip_mgmt proto kernel scope link src 192.168.0.248
192.168.0.0/24 dev b_influxdb proto kernel scope link src 192.168.0.247
192.168.0.0/24 dev b_database proto kernel scope link src 192.168.0.249
192.168.0.0/24 via 240.0.0.1 dev hapr-ns metric 10000
192.168.1.0/24 via 240.0.0.1 dev hapr-ns metric 10000
240.0.0.0/30 dev hapr-ns proto kernel scope link src 240.0.0.2