Skip to content

remove_exporter class not idempoptent #48

@MartyEwings

Description

@MartyEwings

Once the the exporter remove class has been run on a primary or replica, subsequent runs show failures:

Error: Error executing SQL; psql returned pid 23460 exit 1: 'ERROR: role "rsan" does not exist
'
Error: /Stage[main]/Rsan::Remove_exporter/Pe_postgresql_psql[DROP OWNED BY rsan on pe-activity]/command: change from to 'DROP OWNED BY rsan' failed: Error executing SQL; psql returned pid 23460 exit 1: 'ERROR: role "rsan" does not exist
' (corrective)
Error: Error executing SQL; psql returned pid 23462 exit 1: 'ERROR: role "rsan" does not exist
'
Error: /Stage[main]/Rsan::Remove_exporter/Pe_postgresql_psql[DROP OWNED BY rsan on pe-classifier]/command: change from to 'DROP OWNED BY rsan' failed: Error executing SQL; psql returned pid 23462 exit 1: 'ERROR: role "rsan" does not exist
' (corrective)
Error: Error executing SQL; psql returned pid 23464 exit 1: 'ERROR: role "rsan" does not exist
'
Error: /Stage[main]/Rsan::Remove_exporter/Pe_postgresql_psql[DROP OWNED BY rsan on pe-inventory]/command: change from to 'DROP OWNED BY rsan' failed: Error executing SQL; psql returned pid 23464 exit 1: 'ERROR: role "rsan" does not exist
' (corrective)
Error: Error executing SQL; psql returned pid 23466 exit 1: 'ERROR: role "rsan" does not exist
'
Error: /Stage[main]/Rsan::Remove_exporter/Pe_postgresql_psql[DROP OWNED BY rsan on pe-puppetdb]/command: change from to 'DROP OWNED BY rsan' failed: Error executing SQL; psql returned pid 23466 exit 1: 'ERROR: role "rsan" does not exist
' (corrective)
Error: Error executing SQL; psql returned pid 23469 exit 1: 'ERROR: role "rsan" does not exist
'
Error: /Stage[main]/Rsan::Remove_exporter/Pe_postgresql_psql[DROP OWNED BY rsan on pe-rbac]/command: change from to 'DROP OWNED BY rsan' failed: Error executing SQL; psql returned pid 23469 exit 1: 'ERROR: role "rsan" does not exist
' (corrective)
Error: Error executing SQL; psql returned pid 23472 exit 1: 'ERROR: role "rsan" does not exist
'
Error: /Stage[main]/Rsan::Remove_exporter/Pe_postgresql_psql[DROP OWNED BY rsan on pe-orchestrator]/command: change from to 'DROP OWNED BY rsan' failed: Error executing SQL; psql returned pid 23472 exit 1: 'ERROR: role "rsan" does not exist
' (corrective)

the class is supposed to be removed to uninstall the module so this is low priority

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions