Skip to content

Route: "default" destination should not be unique #2182

Description

@Yenya

For dual-stack clustered routers, the cluster surely can have two ocf:heartbeat:Route resources with destination=default, one with family=ip4, and another one with family=ip6. Current implementation does not allow this, as Route declares the destination parameter with unique=1:

https://github.com/ClusterLabs/resource-agents/blob/main/heartbeat/Route#L111

To reproduce:

# pcs resource create defgw6 Route destination=default device=uplink gateway=fe80::1 family=ip6
# pcs resource create defgw4 Route destination=default device=uplink gateway=10.0.0.1 family=ip4
Error: Value 'default' of option 'destination' is not unique across 'ocf:heartbeat:Route' resources. Following resources are configured with the same value of the instance attribute: 'defgw6', use --force to override

It is of course possible to use the --force option, which converts the above error to a warning, or to use 0.0.0.0/0 or ::/0 instead of one or both default values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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