-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(dynamodb): remove deprecated function #2888
base: main
Are you sure you want to change the base?
fix(dynamodb): remove deprecated function #2888
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, does it fix a specific issue?
The fact that here: #2853 users are getting 404 made me think that maybe this deprecated custom resolver func causes it? I'm not sure though, just a shot in the dark.
|
Signed-off-by: Petu Eusebiu <[email protected]>
969bd16
to
1fc8532
Compare
Hello @huynguyen-anduin, can you try this patch? |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2888 +/- ##
==========================================
- Coverage 91.89% 91.88% -0.02%
==========================================
Files 170 170
Lines 30291 30290 -1
==========================================
- Hits 27836 27832 -4
- Misses 1827 1828 +1
- Partials 628 630 +2 ☔ View full report in Codecov by Sentry. |
Also @xakraz? |
I will try it this week |
@eusebiu-constantin-petu-dbk I have built a container from your branch and deployed it for testing. {"level":"error","field":"apikeytablename","goroutine":1,"caller":"zotregistry.dev/zot/pkg/meta/meta.go:129","time":"2025-01-29T14:14:50.90971916Z","message":"failed to parse CacheDriver config, field is not present"}
{"level":"panic","goroutine":1,"caller":"zotregistry.dev/zot/pkg/meta/meta.go:110","time":"2025-01-29T14:14:50.909775609Z","message":"dynamo parameters are not specified correctly, can't proceed"}
panic: dynamo parameters are not specified correctly, can't proceed Here is the corresponding config {
"storage": {
"rootDirectory": "/var/lib/registry",
"storageDriver": {
"name": "s3",
"rootdirectory": "/zot",
"region": "eu-west-3",
"bucket": "test-zot-k7zw422",
"forcepathstyle": true,
"secure": true,
"skipverify": false
},
"dedupe": true,
"remoteCache": true,
"cacheDriver": {
"name": "dynamodb",
"endpoint": "https://dynamodb.eu-west-3.amazonaws.com",
"region": "eu-west-3",
"cacheTablename": "ZotBlobTable",
"imageMetaTablename": "ZotImageMetaTable",
"manifestDataTablename": "ZotManifestDataTable",
"repoBlobsInfoTablename": "ZotRepoBlobsInfoTable",
"repoMetaTablename": "ZotRepoMetadataTable",
"userDataTablename": "ZotUserDataTable",
"versionTablename": "ZotVersion"
}
},
...
} IAM Permissions (Terraform code 😅 )
|
This error is in our code: try to also define a table for api keys. "apikeyTablename":"ZotApiKeyTable" in dynamodb config and try again, thank you! |
We should be more explicit in that error message |
What type of PR is this?
Which issue does this PR fix:
What does this PR do / Why do we need it:
If an issue # is not available please add repro steps and logs showing the issue:
Testing done on this change:
Automation added to e2e:
Will this break upgrades or downgrades?
Does this PR introduce any user-facing change?:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.