libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [1/3] libcloud git commit: google: Update generic auth error message
Date Fri, 25 Sep 2015 11:38:40 GMT
Repository: libcloud
Updated Branches:
  refs/heads/trunk f68a71920 -> 91c69db05


google: Update generic auth error message

Google authentication will fail if your time drift (difference between your local time and
time on google servers) is bigger than 5 minutes. This often happens on the VM instances running
in various cloud providers. Google itself doesn't provide any helpful indication of the issue,
the response is just {u'error': u'invalid_grant'}.

Closes #571

Signed-off-by: Tomaz Muraus <tomaz@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/3865e06e
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/3865e06e
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/3865e06e

Branch: refs/heads/trunk
Commit: 3865e06e0c00dfc130fb80741c6e033aaa2f9ce5
Parents: f68a719
Author: Michal Tekel <mtekel@gmail.com>
Authored: Wed Sep 2 12:03:40 2015 +0100
Committer: Tomaz Muraus <tomaz@apache.org>
Committed: Fri Sep 25 13:28:30 2015 +0200

----------------------------------------------------------------------
 libcloud/common/google.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/3865e06e/libcloud/common/google.py
----------------------------------------------------------------------
diff --git a/libcloud/common/google.py b/libcloud/common/google.py
index a7b4fc2..2856748 100644
--- a/libcloud/common/google.py
+++ b/libcloud/common/google.py
@@ -354,7 +354,7 @@ class GoogleBaseAuthConnection(ConnectionUserAndKey):
                                     data=data)
         except AttributeError:
             raise GoogleAuthError('Invalid authorization response, please '
-                                  'check your credentials.')
+                                  'check your credentials and time drift.')
         token_info = response.object
         if 'expires_in' in token_info:
             expire_time = now + datetime.timedelta(


Mime
View raw message