-
Notifications
You must be signed in to change notification settings - Fork 50
Description
Is your feature request related to a problem? Please describe.
with #3733, container became dynamic. We have code that relies on the container's immutability. I accidentally noticed that neofs-cli container get outputs calculated ID, not the one entered by --cid flag
$ neofs-cli container get -r s04.neofs.devenv:8080 --cid 3x43ZKRW5dfSiYiVVEXrLN3Fpdtrk336ZA74ZB24bXZq
container ID: 5nC7hN9HCDoRgFZqah12pgo4uiW9D3oh9b68sFjZuvH
owner ID: NbUgTSFvPmsRxmGeWpuuGeJUoRoi6PErcM
basic ACL: 1fbf8cff (public-read)
RangeHASH Range Search Delete Put Head Get
0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 0 0 1 1 0 0 1 1 1 1 1 1 1 1
X F U S O B U S O B U S O B U S O B U S O B U S O B U S O B
X-Sticky F-Final U-User S-System O-Others B-Bearer
created: 2026-01-28 12:07:02 +0300 MSK
attributes:
Timestamp=1769591222
__NEOFS__LOCK_UNTIL=1769591443
placement policy:
REP 1
CBF 1
i've collected all such cases
neofs-cli container getneofs-cli container nodesneofs-adm fschain restore-containers- SN responding to creation request
- IR handling creation request
- SN meta handling
3 works with local file and creates containers. IDs entered via cmd flag just selects which ones to create. So, it's OK
4 and 5 work w/ to-be-created container, OK
1 just makes a confusing output, but it's still worth fixing
6 calculates placement depending on CID and tunes behavior depending on container affiliation. If CID changes, placement changes. But container placement should not change overall. So, i see it is a problem
2 is similar to 6, but less harmful
Describe the solution you'd like
calculate CID only when there is no other way. Currently, it is for 4/5 naturally, and 1/2 w/ file input