key_write() is the only function that creates the /etc/keystone/fernet-keys/ directory and it only runs for non leaders so I'm not sure how leaders ever had /etc/keystone/fernet-keys/ created. It's possible that we had more leader settings changes in the past that allowed the directory to be created on the eventual leader prior to it becoming leader.
I think really the package should be creating that directory but a charm fix seems appropriate too since it is creating the directory already.
key_write() is the only function that creates the /etc/keystone/ fernet- keys/ directory and it only runs for non leaders so I'm not sure how leaders ever had /etc/keystone/ fernet- keys/ created. It's possible that we had more leader settings changes in the past that allowed the directory to be created on the eventual leader prior to it becoming leader.
I think really the package should be creating that directory but a charm fix seems appropriate too since it is creating the directory already.