mysqlrouter.conf invalid characters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL Router Charm |
Fix Committed
|
Medium
|
Unassigned |
Bug Description
[Issue description]
Version => mysql-router 8.0/stable 35
After the unit's filesystem ran out of disk space, the config file => /var/lib/
[metadata_
ttl = 0.1
I tried to simulate this issue in other ways and tried to check a way to re-create a fresh mysqlrouter.conf file, I checked in the logs that the update-status makes the charm write to the file "Writing /var/lib/
[How to create the issue]
echo > /var/lib/
juju run -u glance-
cat mysqlrouter.conf
[metadata_
ttl = 0.1
auth_cache_ttl = -1
auth_cache_
After that, I was able possible to reproduce the issue with the file with invalid characters.
If the file is edited with some other character and "update-status" is executed the line with the invalidated characters will also be added
The configuration file is not completely recreated, only a few lines are added.
NOTE: The issue was created during the "full filesystem usage" but I was only able to simulate the issue in my lab by doing the above procedure.
1 - Is this expected behavior?
2 - The goal is to avoid this type of character insertion in the file.
tags: | added: sts |
Changed in charm-mysql-router: | |
status: | New → In Progress |
Changed in charm-mysql-router: | |
status: | Won't Fix → In Progress |
importance: | Undecided → Medium |
Just as a note it is not possible to do remove-relation and add-relation to fix the config file due to another BUG LP#2004089 I reported from the same environment.