Skip to content

Authentications settings are inserted at every pod start causing multiple configuration values for the same key and resource  #781

@evertmulder

Description

@evertmulder
  1. 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)

  2. 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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions