fallocate_reserve cannot be specified as a percentage running under python3
Bug #1844368 reported by
Jonathan Rosser
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
High
|
Unassigned |
Bug Description
openstack-ansible sets a default value of "1%" for fallocate_reserve, and this has caused our swift tests to fail after switching to python3.
config:
[DEFAULT]
# Disable stderr logging
use_stderr = False
bind_ip = 172.29.244.100
bind_port = 6002
workers = 1
user = swift
devices = /srv
disable_fallocate = False
fallocate_reserve = 1%
<snip>
log:
Sep 17 11:43:57 aio1 swift-account-
To post a comment you must log in.
I guess this comes from python config parser https:/ /docs.python. org/3.6/ library/ configparser. html#configpars er.ConfigParser .get
So there's a possible workaround in placing double %%, like "fallocate_reserve = 1%%", or pass "raw=true" to config parser.
I'm a bit worried, that changing behaviour might influence negatively on working environments.