Skip to content

Role validation occures in cluster change only #820

@akram09

Description

@akram09

Steps to reproduce

Deploy an opensearch application with an invalid role (Example juju deploy --channel 2/edge opensearch --config roles="bad_role".

Expected behavior

The charm should be blocked complaining about an invalid role.

Actual behavior

The charm is not blocked and the role is set in the deployment description without any issues raised. The fix would be to validate the role based on a list of roles that are accepted by opensearch.

Charm revision:

LXD:

Log output

Juju debug log:

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    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