Skip to content

Provide storage policy probe util #3626

@cthulhu-rider

Description

@cthulhu-rider

Is your feature request related to a problem? Please describe.

sometimes I have to formulate a non-trivial container policy. I want to verify its correctness, i.e.:

  1. it has correct format
  2. being applied to the current netmap, it acts as needed to me

currently, all i can do is to

  1. create container with this policy. If succeeded, it has correct format
  2. call neofs-cli container nodes
  3. delete the container if SN are not selected as expected

1 and 3 are paid ops. It'd be nice to have a utility for testing policies

Describe the solution you'd like

provide

$ neofs-cli container test-policy -p policy.json -r s01.neofs.devenv:8080

with same output as container nodes

Describe alternatives you've considered

add --policy flag to container nodes cmd mutexed w/ currently required --cid one. Pros: no new cmd. Cons: input branching

Metadata

Metadata

Assignees

No one assigned

    Labels

    I3Minimal impactS4RoutineU4Nothing urgentfeatureCompletely new functionalityneofs-cliNeoFS CLI application issues

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions