Details

      Activity

      Hide
      zreal zreal added a comment -

      Hi, I want to know when jclouds will support China beijing region. And if I want to resolve this issue, how to do?

      Show
      zreal zreal added a comment - Hi, I want to know when jclouds will support China beijing region. And if I want to resolve this issue, how to do?
      Hide
      nacx Ignasi Barrera added a comment -

      HI zreal. There is no official date when this will be supported, but it will be as soon as possible. If you want to contribute the change, that's the better way to make sure that happens in the next release!

      You can read how to contribute to the project in our wiki:
      https://cwiki.apache.org/confluence/display/JCLOUDS/How+to+Contribute

      Regarding the changes required here, they should be pretty straightforward, you could take this pull request as an example of the changes required to add a region:
      https://github.com/jclouds/jclouds/pull/1013

      If you're going to add this regions, you could perhaps add too the missing Canada and London regions, referenced in JCLOUDS-1217?

      Show
      nacx Ignasi Barrera added a comment - HI zreal . There is no official date when this will be supported, but it will be as soon as possible. If you want to contribute the change, that's the better way to make sure that happens in the next release! You can read how to contribute to the project in our wiki: https://cwiki.apache.org/confluence/display/JCLOUDS/How+to+Contribute Regarding the changes required here, they should be pretty straightforward, you could take this pull request as an example of the changes required to add a region: https://github.com/jclouds/jclouds/pull/1013 If you're going to add this regions, you could perhaps add too the missing Canada and London regions, referenced in JCLOUDS-1217 ?
      Hide
      zreal zreal added a comment -

      Thank you, Ignasi. I will learn the links you give me.

      Show
      zreal zreal added a comment - Thank you, Ignasi. I will learn the links you give me.
      Hide
      xiaobazhang Michelle Zhang added a comment -

      Hello,
      I already have a pull request for this issue. https://github.com/jclouds/jclouds/pull/1081 ptal. Thank you!

      Show
      xiaobazhang Michelle Zhang added a comment - Hello, I already have a pull request for this issue. https://github.com/jclouds/jclouds/pull/1081 ptal. Thank you!
      Hide
      zreal zreal added a comment -

      Hi, Michelle. I get the codes from github, and how to compile the codes using maven? Could you please show me the detail steps to get the jar files?

      Show
      zreal zreal added a comment - Hi, Michelle. I get the codes from github, and how to compile the codes using maven? Could you please show me the detail steps to get the jar files?
      Hide
      jira-bot ASF subversion and git services added a comment -

      Commit 96a1c4427e48cae34117b8f23cf92abad4616b80 in jclouds's branch refs/heads/master from Michelle Zhang
      [ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=96a1c44 ]

      JCLOUDS-1217/JCLOUDS-1258: Add Canada, London and China regions to AWS

      Show
      jira-bot ASF subversion and git services added a comment - Commit 96a1c4427e48cae34117b8f23cf92abad4616b80 in jclouds's branch refs/heads/master from Michelle Zhang [ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=96a1c44 ] JCLOUDS-1217 / JCLOUDS-1258 : Add Canada, London and China regions to AWS
      Hide
      jira-bot ASF subversion and git services added a comment -

      Commit 73875884b58e93a88676ecc20b174db17efd13cd in jclouds's branch refs/heads/2.0.x from Michelle Zhang
      [ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=7387588 ]

      JCLOUDS-1217/JCLOUDS-1258: Add Canada, London and China regions to AWS

      Show
      jira-bot ASF subversion and git services added a comment - Commit 73875884b58e93a88676ecc20b174db17efd13cd in jclouds's branch refs/heads/2.0.x from Michelle Zhang [ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=7387588 ] JCLOUDS-1217 / JCLOUDS-1258 : Add Canada, London and China regions to AWS
      Hide
      zreal zreal added a comment -

      Hi, Michelle Zhang.
      when I create a bucket using blobStore.createContainerInLocation(locationCN, "test0518"), the host is "test0518.s3.amazonaws.com" , so as same when I change the locationCN parameter to null.
      But blobStore.containerExists("test1") will be executed correctly, and the host is "test1.s3.cn-north-1.amazonaws.com.cn".
      Could you please help me fix this bug? And I can offer the aws-s3 access key of the cn-north-1 region which you may use to run a test.

      Show
      zreal zreal added a comment - Hi, Michelle Zhang. when I create a bucket using blobStore.createContainerInLocation(locationCN, "test0518"), the host is "test0518.s3.amazonaws.com" , so as same when I change the locationCN parameter to null. But blobStore.containerExists("test1") will be executed correctly, and the host is "test1.s3.cn-north-1.amazonaws.com.cn". Could you please help me fix this bug? And I can offer the aws-s3 access key of the cn-north-1 region which you may use to run a test.
      Hide
      zreal zreal added a comment -

      when I change the org.jclouds.rest.internal.RestAnnotationProcessor.addHostIfMissing method as follow:
      @VisibleForTesting
      static URI addHostIfMissing(URI original, URI withHost) {
      checkNotNull(withHost, "URI withHost cannot be null");
      checkArgument(withHost.getHost() != null, "URI withHost must have host:" + withHost);
      if (original == null)
      return null;
      //if (original.getHost() != null)
      // return original;
      if (original.getHost() != null)

      { /* * zreal 04-18-2017 change original's host, and make it be * s3.cn-north-1.amazonaws.com.cn */ original = Uris.uriBuilder(original) .host("s3.cn-north-1.amazonaws.com.cn").build(); return original; }

      return withHost.resolve(original);
      }

      The blobStore.createContainerInLocation(locationCN, "test0518") will be executed correcthly.

      Show
      zreal zreal added a comment - when I change the org.jclouds.rest.internal.RestAnnotationProcessor.addHostIfMissing method as follow: @VisibleForTesting static URI addHostIfMissing(URI original, URI withHost) { checkNotNull(withHost, "URI withHost cannot be null"); checkArgument(withHost.getHost() != null, "URI withHost must have host:" + withHost); if (original == null) return null; //if (original.getHost() != null) // return original; if (original.getHost() != null) { /* * zreal 04-18-2017 change original's host, and make it be * s3.cn-north-1.amazonaws.com.cn */ original = Uris.uriBuilder(original) .host("s3.cn-north-1.amazonaws.com.cn").build(); return original; } return withHost.resolve(original); } The blobStore.createContainerInLocation(locationCN, "test0518") will be executed correcthly.
      Hide
      nacx Ignasi Barrera added a comment -

      This is still an issue. It fails to create a compute context for China since the FormSignerV4 validates the endpoint without taking into account the .cn suffix of the China regions.

      Show
      nacx Ignasi Barrera added a comment - This is still an issue. It fails to create a compute context for China since the FormSignerV4 validates the endpoint without taking into account the .cn suffix of the China regions.
      Hide
      nacx Ignasi Barrera added a comment -
      Show
      nacx Ignasi Barrera added a comment - Fix for the FormSignerV4: https://github.com/jclouds/jclouds/pull/1142
      Hide
      jira-bot ASF subversion and git services added a comment -

      Commit 1c1f81c3733dd5b3123d5135ffda349a8c779b76 in jclouds's branch refs/heads/master from Ignasi Barrera
      [ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=1c1f81c ]

      JCLOUDS-1258: Allow China endpoints in FormSignerV4

      Show
      jira-bot ASF subversion and git services added a comment - Commit 1c1f81c3733dd5b3123d5135ffda349a8c779b76 in jclouds's branch refs/heads/master from Ignasi Barrera [ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=1c1f81c ] JCLOUDS-1258 : Allow China endpoints in FormSignerV4
      Hide
      jira-bot ASF subversion and git services added a comment -

      Commit cfdbc810b348287cf94bbf6bd8c6f83e76ba112e in jclouds's branch refs/heads/2.0.x from Ignasi Barrera
      [ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=cfdbc81 ]

      JCLOUDS-1258: Allow China endpoints in FormSignerV4

      Show
      jira-bot ASF subversion and git services added a comment - Commit cfdbc810b348287cf94bbf6bd8c6f83e76ba112e in jclouds's branch refs/heads/2.0.x from Ignasi Barrera [ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=cfdbc81 ] JCLOUDS-1258 : Allow China endpoints in FormSignerV4

        People

        • Assignee:
          Unassigned
          Reporter:
          archupsg03 Archana Chinnaiah
        • Votes:
          0 Vote for this issue
          Watchers:
          6 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved:

            Development