Value Error for Multiple Swift Services
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Fix Released
|
High
|
Dmitriy Rabotyagov |
Bug Description
The following behaviour occured on OpenStack Ansible Victoria (22.1.0):
On my swift host, for the swift-container
(the same is true for the swift-container
Mar 22 08:42:19 bc1bl12 systemd[1]: swift-container
process exited, code=exited, status=1/FAILURE
Mar 22 08:42:19 bc1bl12 systemd[1]: swift-container
result 'exit-code'.
Mar 22 08:42:21 bc1bl12 systemd[1]: swift-container
restart job, restart counter is at 162982.
Mar 22 08:42:21 bc1bl12 systemd[1]: Stopped swift-container
Mar 22 08:42:21 bc1bl12 systemd[1]: Started swift-container
Mar 22 08:42:22 bc1bl12 swift-container
call last):
Mar 22 08:42:22 bc1bl12 swift-container
"/openstack/
line 803, in config_
Mar 22 08:42:22 bc1bl12 swift-container
float(reserve_
Mar 22 08:42:22 bc1bl12 swift-container
convert string to float: '1%'
Mar 22 08:42:22 bc1bl12 swift-container
above exception, another exception occurred:
Mar 22 08:42:22 bc1bl12 swift-container
call last):
Mar 22 08:42:22 bc1bl12 swift-container
"/openstack/
<module>
Mar 22 08:42:22 bc1bl12 swift-container
run_
Mar 22 08:42:22 bc1bl12 swift-container
"/openstack/
line 304, in run_daemon
Mar 22 08:42:22 bc1bl12 swift-container
utils.
Mar 22 08:42:22 bc1bl12 swift-container
"/openstack/
line 809, in config_
Mar 22 08:42:22 bc1bl12 swift-container
ValueError('Error: %s is an invalid value for fallocate'
Mar 22 08:42:22 bc1bl12 swift-container
is an invalid value for fallocate_reserve.
On the swift host, I found that '1%%' had been written to the respective .conf files under /etc/swift/
In the user_variables.yml I didn't override any swift values except for 'swift_
Kind regards,
Oliver
Having a fresh look into swift role, I found what caused that. So I just tried to revert wrong commit in ML. /review. opendev. org/c/openstack /openstack- ansible- os_swift/ +/782956
So the correct revert is https:/
Would be great if you could try it out (preferably in the sandbox :P)