Skip to content

enhance UX message when trying to deploy data-integrator on non-primary cluster #1812

Description

@wideawakening

on cross-DC replicated context, if trying to deploy data-integrator on the non-primary cluster the error is not very explanatory.

consider an error message like 'deployment not needed on replicated standby cluster', and/or add a note in the charm documentation

non-primary cluster

# this was successfully installed previous to replication setup
data-integrator-testdb                    active       1  data-integrator           latest/stable   418  no     

# this fails trying to install a new db, as day2 ops (after replication setup)
data-integrator-swarmmain1                blocked      1  data-integrator           latest/stable   418  no       Please relate the data-integrator with the desired product

...
data-integrator-swarmmain1/0*       blocked   idle   1/lxd/1  10.46.16.48               Please relate the data-integrator with the desired product

...
ddev-postgresql/0*                  blocked   idle   0        10.46.16.23     5432/tcp  Failed to initialize relation database
2026-06-24 11:45:22 ERROR unit.ddev-postgresql/0.juju-log server.go:405 database-peers:3: single_kernel_postgresql.compat.postgresql:Failed to create database: cannot execute CREATE DATABASE in a read-only transaction

similar to #1329 on different operation

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working as expected

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions