I met the same problem while running keystone on separate host. I have moved relevant code sections around with the following patch and it worked well for me.
I met the same problem while running keystone on separate host. I have moved relevant code sections around with the following patch and it worked well for me.