Skip to content
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

Migrating to AWS SDK V3 | Implementation In Account Server and Bucket Server #7478

Conversation

shirady
Copy link
Contributor

@shirady shirady commented Sep 6, 2023

Explain the changes

  1. Implementation of AWS SDK V3 in account server - check connection.
  2. Implementation of AWS SDK V3 in bucket server - check get cloud buckets.
  3. Add missing action in AWS SDK V2 of listBuckets.
  4. In the bucket server inside get_cloud_buckets changing deprecated P.fcall with promise chain to async-await with try-catch.
  5. Update occurrences of deprecated functions in promise.js.

Issues: Fixed #xxx / Gap #xxx

  1. none

Testing Instructions:

  1. Deploy noobaa on MInikube or Rancher Desktop (see guide).
    Note: nb is an alias that runs the local operator from build/_output/bin (alias created by devenv).
  2. Create namespacestores:
    nb namespacestore create aws-s3 <namespace-store-name> --region=<target-bucket-region>.
    nb namespacestore create aws-s3 <namespace-store-name>
    nb namespacestore create s3-compatible <namespace-store-name>
  3. Check in the logs of noobaa core: kubectl logs pod/noobaa-core-0 the printings of check_external_connection, get cloud buckets (easiest way is to search by the namespacestore name).
  • Doc added/updated
  • Tests added

@shirady shirady self-assigned this Sep 6, 2023
@shirady shirady force-pushed the migrate-aws-sdk-imp-account-server-bucket-server branch from f2f75b8 to 5d43f67 Compare September 7, 2023 11:20
@shirady shirady force-pushed the migrate-aws-sdk-imp-account-server-bucket-server branch 2 times, most recently from a50ecb1 to 6ac906c Compare September 26, 2023 05:56
1. Implementation of AWS SDK V3 in account server - check connection
2. Implementation of AWS SDK V3 in bucket server - check get cloud buckets
3. In the bucket server inside get_cloud_buckets changing deprecated P.fcall with resolve and reject promise to async-await with try-catch
3. Add missing action in AWS SDK V2 of listBuckets.
4. Update occurrences of deprecated functions in promise.js

Signed-off-by: shirady <57721533+shirady@users.noreply.github.com>
@shirady shirady force-pushed the migrate-aws-sdk-imp-account-server-bucket-server branch from 6ac906c to 398a579 Compare September 26, 2023 13:07
@shirady shirady merged commit a1d1429 into noobaa:master Sep 26, 2023
8 checks passed
@shirady shirady deleted the migrate-aws-sdk-imp-account-server-bucket-server branch September 26, 2023 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants