mirror of
https://github.com/nspcc-dev/neofs-s3-gw.git
synced 2026-03-01 04:29:15 +00:00
s3-gateway doesn't work correctly with containers created from neo-cli #332
Labels
No labels
I2
I2
I3
I4
S2
S3
S4
S4
U0
U1
U2
U2
U3
U4
U4
auth-mate
blocked
bug
config
dependencies
discussion
documentation
enhancement
epic
feature
go
good first issue
help wanted
performance
question
security
test
tree-service
tree-service
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neofs-s3-gw#332
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @anikeev-yadro on GitHub (Sep 6, 2022).
Originally assigned to: @KirillovDenis on GitHub.
Steps to reproduce:
1.Create container
Errors in logs:
Errors in logs:
Product versions:
s3 gateway config:
@KirillovDenis commented on GitHub (Sep 6, 2022):
We should check this after https://github.com/nspcc-dev/neofs-node/pull/1753 and https://github.com/nspcc-dev/neofs-s3-gw/pull/698. These PRs should solve some problems (e.g. rpc error: code = Unknown desc = database not open).
But additionally we need use here
__NEOFS__NAMEattribute to get name and useCIDif such attribute is missed.Also we need properly handle
eACL not founderror and return some default bucket acl onget-bucket-aclin such cases.@alexvanin commented on GitHub (Sep 8, 2022):
Also it seems that created container is private. S3 gateway can't operate with private containers in any way. Try to create at least
public-reador evenpublic-read-writecontainer.S3 Gateway creates
eacl-public-read-writecontainers and manage access control by setting proper extended ACL.@alexvanin commented on GitHub (Sep 15, 2022):
Possible UX improvement:
@alexvanin commented on GitHub (Sep 19, 2022):
Can you look at it once again? @anikeev-yadro
@anikeev-yadro commented on GitHub (Sep 20, 2022):
On the following versions I don't see the DB open errors:
Howewer command
put-objectcan use bucket name, but other commands likehead-bucketandlist-objectscannot.I think we need to fix it because all commands should have the same bahavior.
@KirillovDenis commented on GitHub (Sep 23, 2022):
It's strange. Because on the same version of
neofs-s3-gw:I didn't get any error:
@anikeev-yadro commented on GitHub (Sep 27, 2022):
@KirillovDenis Are there parameters
--attributes __NEOFS__NAME=cnr1,__NEOFS__ZONE=containerimportant when we create container?Because I didn't use it in previuos comment.
@KirillovDenis commented on GitHub (Sep 27, 2022):
Yes, this attributes are required. This allows the container to be available in NNS.
@alexvanin commented on GitHub (Oct 3, 2022):
@anikeev-yadro Those
__NEOFS__prefixed attributes are system attributes. They are used to register container nice name as a domain (NAME.ZONE) in the global scope (NNS contract). The same mechanism is used in S3 Gateway to create buckets (containers with global names).Can you confirm, that the issue is gone now?
@anikeev-yadro commented on GitHub (Oct 4, 2022):
@alexvanin yes