Need option in frostfs-cli to show nodes for storage policy without real create container #227

Closed
opened 2023-04-07 10:46:14 +00:00 by anikeev-yadro · 4 comments

Problem

I want to know container nodes before create a container to check that policy meets my expectations.

Solution

Need option in frostfs-cli to show nodes for storage policy without real create container.

## Problem I want to know container nodes before create a container to check that policy meets my expectations. ## Solution Need option in frostfs-cli to show nodes for storage policy without real create container.
anikeev-yadro added the
triage
label 2023-04-07 10:46:14 +00:00
fyrchik added the
frostfs-cli
label 2023-04-07 11:36:44 +00:00

netmap view-policy?
Or, maybe a flag to container nodes which takes a policy?

The problem is that we cannot know for sure without a container ID, but we can build an approximation.

`netmap view-policy`? Or, maybe a flag to `container nodes` which takes a policy? The problem is that we cannot know _for sure_ without a container ID, but we can build an approximation.
fyrchik added this to the v0.37.0 milestone 2023-04-11 08:20:36 +00:00

In technical terms, this involves creating a container structure locally without adding the result to the container contract. The placement vector is computed using the most recent network map.

If the generated output meets the necessary requirements, the container must be produced precisely the same way, with the Nonce and Timestamp fields included to obtain the same resulting ContainerID. This process adds an interactive dimension to the command.

In technical terms, this involves creating a container structure locally without adding the result to the container contract. The placement vector is computed using the most recent network map. If the generated output meets the necessary requirements, the container must be produced precisely the same way, with the Nonce and Timestamp fields included to obtain the same resulting ContainerID. This process adds an interactive dimension to the command.
snegurochka added the
enhancement
label 2023-05-03 17:14:43 +00:00
Collaborator

@anikeev-yadro @realloc is the policy-playground command in #416 sufficient for closing this? or do we want some additional tooling?

@anikeev-yadro @realloc is the `policy-playground` command in https://git.frostfs.info/TrueCloudLab/frostfs-node/pulls/416 sufficient for closing this? or do we want some additional tooling?

I think yes, that sufficient. You can close this.

I think yes, that sufficient. You can close this.
Sign in to join this conversation.
No Milestone
No Assignees
4 Participants
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: TrueCloudLab/frostfs-node#227
There is no content yet.