Duplicate keystone endpoints when keystone API blips
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
puppet-openstacklib |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
(Creating a bug for this, which was discussed on the ML: https:/
Details originally posted by Matthew Black:
I was digging around in the icehouse puppet code and I found what I believe is the cause of a duplicate endpoint creation during a short network disruption. In my environments the keystone servers do not reside in the same network as the regions. It looks like the puppet code fails the first request, sleeps 10 seconds, tries again and if that fails it then returns with a nil. The code then returns an empty array to the provider which then is assumed to mean that the endpoint does not exist. If the network blip is over by that point it will attempt to create the endpoint and thus a duplicate endpoint in the catalog.
Looking at the juno code, which it is using the openstacklib, the issue still exists but in a slightly different fashion.
I believe this should be changed that instead of a breaking out of the loop it should throw an exception.
I went ahead and marked this as "Won't Fix" since it affects icehouse, which is EOL and references code was heavily modified during the Liberty and Mitaka cycles.