-
Describe the issue
Every restart of the orchestrator pod adds a new set of authentication settings. I expect it to add if the setting does not exist, update if the setting exists for the resource (resource_type & resource_id combination)
-
Describe steps to reproduce
restart the orchestration pod.
- ManageIQ version: Kasparov, issue still present in main branch
The line
|
MiqRegion.my_region.add_settings_for_resource(settings) |
This line adds a new set of authentication settings for the region, not updating current settings.
This causes multiple values for the same key and resource.
select count(*) from settings_changes where key='/authentication/provider_type' and resource_type='MiqRegion' and resource_id=9;
count
-------
43
(1 row)
The count should be always 1 (or 0) for a specific key and resource.
@miq-bot add-label bug