Skip to content

Mutable container ID #3788

@cthulhu-rider

Description

@cthulhu-rider

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

  1. neofs-cli container get
  2. neofs-cli container nodes
  3. neofs-adm fschain restore-containers
  4. SN responding to creation request
  5. IR handling creation request
  6. 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

Metadata

Metadata

Assignees

Labels

I4No visible changesS4RoutineU1Critically important to resolve quicklybugSomething isn't workingneofs-cliNeoFS CLI application issuesneofs-storageStorage node application issues

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions