Spaces in zookeeper configuration files prevent zkCleanup.sh from working
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla-ansible |
Triaged
|
Medium
|
Unassigned | ||
Wallaby |
Triaged
|
Medium
|
Unassigned |
Bug Description
Running zkCleanup.sh fails:
$ ZOOCFGDIR=
Path '/' does not exist.
Usage:
PurgeTxnLog dataLogDir [snapDir] -n count
dataLogDir -- path to the txn log directory
snapDir -- path to the snapshot directory
count -- the number of old snaps/logs you want to keep, value should be greater than or equal to 3
This is because it fails to parse the dataDir entry from zoo.cfg:
++ grep '^[[:space:
++ sed -e 's/.*=//'
+ ZOODATADIR=
zkCleanup.sh needs the = character to be directly next to dataDir, without space: https:/
The template zookeeper.cfg.j2 is already written this way, but I expect merge_config is adding the extra spaces. We may need a new option to merge_config to tell it to avoid using spaces.
Changed in kolla-ansible: | |
importance: | Undecided → Medium |
See also https:/ /bugs.launchpad .net/kolla- ansible/ +bug/1917491 for automating this.