Provide storage policy probe util #1518

Open
opened 2025-12-28 17:35:42 +00:00 by sami · 0 comments
Owner

Originally created by @cthulhu-rider on GitHub (Oct 7, 2025).

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

Originally created by @cthulhu-rider on GitHub (Oct 7, 2025). ## 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
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/neofs-node#1518
No description provided.