Skip to content

Conversation

@alexanderchan-scality
Copy link
Contributor

@alexanderchan-scality alexanderchan-scality commented Apr 13, 2018

Adds more support options for S3 location constraints:

  • optional versioning for S3 backend
  • path style

@ironman-machine
Copy link
Contributor

PR has been updated. Reviewers, please be cautious.

@alexanderchan-scality alexanderchan-scality force-pushed the ft/more-s3-locations-support branch from fdabde3 to 4011d20 Compare April 13, 2018 16:54
@ironman-machine
Copy link
Contributor

PR has been updated. Reviewers, please be cautious.

Copy link
Contributor

@philipyoo philipyoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, but may need to consider using a different whatwg url lib

@@ -1,3 +1,4 @@
const { URL } = require('url');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think url.URL is supported in Node v6. Instead there is a property: url.Url but it doesn't seem to work as intended.

Based on this blog: https://www.contentful.com/blog/2016/11/02/node-v7-urls-deprecations-warnings-and-developer-experience/
Looks like support was added in v7?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

philipyoo
philipyoo previously approved these changes Apr 13, 2018
Copy link
Contributor

@jonathan-gramain jonathan-gramain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one style comment, but it looks good to me

break;
case 'location-do-spaces-v1':
case 'location-scality-ring-s3-v1':
pathStyle = true; // fallthrough
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would recommend not relying on fallthrough capability of switch, instead using a map of properties per location name ({ 'location-scality-bleh': { pathStyle: true, ...} }) would be more readable and less error-prone.

@alexanderchan-scality
Copy link
Contributor Author

@ironman-machine try
RUN_BACKBEAT_CRR_TESTS=true

@ironman-machine
Copy link
Contributor

Hello @alexanderchan-scality

"try": Success: Try build successfully launched on 'http://ci.ironmann.io/gh/scality/Integration/21189' with the following env. args:

{
    "DEFAULT_BRANCH": "master",
    "SCALITY_INTEGRATION_BRANCH": "ultron/master",
    "REPO_NAME": "S3",
    "SCALITY_S3_BRANCH": "ft/more-s3-locations-support"
}

"RUN_BACKBEAT_CRR_TESTS=true": Success

@alexanderchan-scality
Copy link
Contributor Author

@ironman-machine
RUN_BACKBEAT_CRR_TESTS=true
try

@ironman-machine
Copy link
Contributor

Hello @alexanderchan-scality

"RUN_BACKBEAT_CRR_TESTS=true": Success
"try": Success: Try build successfully launched on 'http://ci.ironmann.io/gh/scality/Integration/21190' with the following env. args:

{
    "DEFAULT_BRANCH": "master",
    "SCALITY_INTEGRATION_BRANCH": "ultron/master",
    "REPO_NAME": "S3",
    "SCALITY_S3_BRANCH": "ft/more-s3-locations-support",
    "RUN_BACKBEAT_CRR_TESTS": "true"
}

@rahulreddy rahulreddy force-pushed the ft/more-s3-locations-support branch from 4011d20 to c30f901 Compare April 14, 2018 00:04
@ironman-machine
Copy link
Contributor

PR has been updated. Reviewers, please be cautious.

rahulreddy
rahulreddy previously approved these changes Apr 14, 2018
@ironman-machine
Copy link
Contributor

PR has been updated. Reviewers, please be cautious.

rahulreddy
rahulreddy previously approved these changes Apr 16, 2018
philipyoo
philipyoo previously approved these changes Apr 16, 2018
break;
case 'location-do-spaces-v1':
case 'location-scality-ring-s3-v1':
pathStyle = true; // fallthrough
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reporting the style comment about using a mapping object rather than relying on fallthrough of a switch.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a good cleanup, we'll follow up on it

@ironman-machine
Copy link
Contributor

PR has been updated. Reviewers, please be cautious.

@ironman-machine
Copy link
Contributor

CONFLICT (add/add): Merge conflict in lib/management/configuration.js
CONFLICT (add/add): Merge conflict in docker-entrypoint.sh

@alexanderchan-scality alexanderchan-scality force-pushed the ft/more-s3-locations-support branch from 7409532 to 09a5f3d Compare April 17, 2018 17:07
@ironman-machine
Copy link
Contributor

PR has been updated. Reviewers, please be cautious.

@alexanderchan-scality alexanderchan-scality force-pushed the ft/more-s3-locations-support branch from 09a5f3d to bf3a60f Compare April 17, 2018 18:27
@ironman-machine
Copy link
Contributor

PR has been updated. Reviewers, please be cautious.

@ironman-machine
Copy link
Contributor

PR has been updated. Reviewers, please be cautious.

@rahulreddy rahulreddy merged commit eb97296 into master Apr 18, 2018
@rahulreddy rahulreddy deleted the ft/more-s3-locations-support branch April 18, 2018 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants