You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jclouds.apache.org by Adrian Cole <no...@github.com> on 2013/10/01 00:12:46 UTC

[jclouds] JCLOUDS-311. work around mixed versions in hpcloud-objectstorage regions (#162)

You can merge this Pull Request by running:

  git pull https://github.com/adriancole/jclouds hpcloud-objectstorage-mixed

Or you can view, comment on it, or merge it online at:

  https://github.com/jclouds/jclouds/pull/162

-- Commit Summary --

  * JCLOUDS-311. work around mixed versions in hpcloud-objectstorage regions

-- File Changes --

    M providers/hpcloud-objectstorage/pom.xml (5)
    M providers/hpcloud-objectstorage/src/main/java/org/jclouds/hpcloud/objectstorage/HPCloudObjectStorageApiMetadata.java (31)
    A providers/hpcloud-objectstorage/src/test/java/org/jclouds/hpcloud/objectstorage/HPCloudObjectStorageApiMockTest.java (87)
    A providers/hpcloud-objectstorage/src/test/java/org/jclouds/hpcloud/objectstorage/internal/BaseHPCloudObjectStorageMockTest.java (86)

-- Patch Links --

https://github.com/jclouds/jclouds/pull/162.patch
https://github.com/jclouds/jclouds/pull/162.diff

Re: [jclouds] JCLOUDS-311. work around mixed versions in hpcloud-objectstorage regions (#162)

Posted by Adrian Cole <no...@github.com>.
> @@ -115,4 +121,25 @@ protected void bindTemporaryUrlKeyApi() {
>           bindSyncToAsyncHttpApi(binder(), TemporaryUrlKeyApi.class, KeystoneTemporaryUrlKeyAsyncApi.class);
>        }
>     }
> +
> +   /**
> +    * Use this when the keystone configuration incorrectly mismatches api
> +    * versions across regions.

this is a cloud-specific provider, with a cloud-specific problem :)  I'd feel differently, if this were in shared code.

FWIW, the issue has been raised to hp.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/162/files#r6674602

Re: [jclouds] JCLOUDS-311. work around mixed versions in hpcloud-objectstorage regions (#162)

Posted by CloudBees pull request builder plugin <no...@github.com>.
[jclouds-pull-requests #259](https://jclouds.ci.cloudbees.com/job/jclouds-pull-requests/259/) SUCCESS
This pull request looks good

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/162#issuecomment-25412036

Re: [jclouds] JCLOUDS-311. work around mixed versions in hpcloud-objectstorage regions (#162)

Posted by Adrian Cole <no...@github.com>.
> @@ -115,4 +121,25 @@ protected void bindTemporaryUrlKeyApi() {
>           bindSyncToAsyncHttpApi(binder(), TemporaryUrlKeyApi.class, KeystoneTemporaryUrlKeyAsyncApi.class);
>        }
>     }
> +
> +   /**
> +    * Use this when the keystone configuration incorrectly mismatches api
> +    * versions across regions.

but to answer your question, I thought about that, but doing so would be a change in upstream keystone module, and this would be additional complexity considering other clouds haven't encountered this.  Hopefully, we can just revert this change when hp fixes its registration!

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/162/files#r6674673

Re: [jclouds] JCLOUDS-311. work around mixed versions in hpcloud-objectstorage regions (#162)

Posted by Adrian Cole <ad...@gmail.com>.
Asked HP for one.  Should be coming soon.

Re: [jclouds] JCLOUDS-311. work around mixed versions in hpcloud-objectstorage regions (#162)

Posted by Andrew Phillips <no...@github.com>.
> @@ -115,4 +121,25 @@ protected void bindTemporaryUrlKeyApi() {
>           bindSyncToAsyncHttpApi(binder(), TemporaryUrlKeyApi.class, KeystoneTemporaryUrlKeyAsyncApi.class);
>        }
>     }
> +
> +   /**
> +    * Use this when the keystone configuration incorrectly mismatches api
> +    * versions across regions.

> Hopefully, we can just revert this change when hp fixes its registration!

Indeed ;-) Is there some HP issue or ticket number we could reference here, so we can try to keep track of when this might no longer be needed..?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/162/files#r6680430

Re: [jclouds] JCLOUDS-311. work around mixed versions in hpcloud-objectstorage regions (#162)

Posted by Adrian Cole <no...@github.com>.
commit a25a7aa12c042f1ac2a6012079535656a3b2dbde
Author: Adrian Cole <ad...@gmail.com>
Date:   Mon Sep 30 15:11:31 2013 -0700

    JCLOUDS-311. work around mixed versions in hpcloud-objectstorage regions


---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/162#issuecomment-25413479

Re: [jclouds] JCLOUDS-311. work around mixed versions in hpcloud-objectstorage regions (#162)

Posted by CloudBees pull request builder plugin <no...@github.com>.
[jclouds-java-7-pull-requests #720](https://jclouds.ci.cloudbees.com/job/jclouds-java-7-pull-requests/720/) SUCCESS
This pull request looks good

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/162#issuecomment-25412043

Re: [jclouds] JCLOUDS-311. work around mixed versions in hpcloud-objectstorage regions (#162)

Posted by Andrew Phillips <no...@github.com>.
> @@ -115,4 +121,25 @@ protected void bindTemporaryUrlKeyApi() {
>           bindSyncToAsyncHttpApi(binder(), TemporaryUrlKeyApi.class, KeystoneTemporaryUrlKeyAsyncApi.class);
>        }
>     }
> +
> +   /**
> +    * Use this when the keystone configuration incorrectly mismatches api
> +    * versions across regions.

Should we be doing any kind of checking here to verify that the region versions given are even close to each other? I'm assuming from this commit that we can _always_ assume that this is a misconfiguration, and not some genuine version mismatch?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/162/files#r6674269