multi-proc devstack sometimes fails on encryption key
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
congress |
Fix Released
|
Medium
|
Eric K |
Bug Description
Occasionally when starting multi-process Congress using devstack, the following error occurs. Gate is occasionally affected as a result.
Started Devstack <email address hidden>.
Traceback (most recent call last):
File "/usr/local/
sys.
File "/opt/stack/
encryption.
File "/opt/stack/
__fernet = Fernet(__key)
File "/usr/local/
"Fernet key must be 32 url-safe base64-encoded bytes."
ValueError: Fernet key must be 32 url-safe base64-encoded bytes.
The cause appears to be that the second Congress node reads the key file before the first Congress node finishes writing it.
https:/
Some possible fixes:
- change the devstack plugin script doing the launch
- change the encryption key initialization code to wait until a valid key is written to file
Fix proposed to branch: master /review. openstack. org/495989
Review: https:/