]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: S3 always must use token format of Keystone v2.
authorRadoslaw Zarzynski <rzarzynski@mirantis.com>
Fri, 5 Feb 2016 15:07:17 +0000 (16:07 +0100)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 19 Feb 2016 20:16:36 +0000 (12:16 -0800)
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
src/rgw/rgw_rest_s3.h

index 97dbaf4b1abde0963744e2c3967c9a3654d90ce0..2132da204f168a4540fab3aa677c5a96b8d0f1a0 100644 (file)
@@ -357,7 +357,10 @@ private:
 public:
   explicit RGW_Auth_S3_Keystone_ValidateToken(CephContext *_cct)
       : RGWHTTPClient(_cct),
-        response(KeystoneToken(KeystoneService::get_api_version())) {
+        /* This is really crazy but S3Extension in Keystone always
+         * returns token conforming to v2 - regardless whether you
+         * have requested v3 or not. */
+        response(KeystoneToken(KeystoneApiVersion::VER_2)) {
     get_str_list(cct->_conf->rgw_keystone_accepted_roles, roles_list);
   }