You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2015/09/25 13:38:40 UTC

[1/3] libcloud git commit: google: Update generic auth error message

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 <to...@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 <mt...@gmail.com>
Authored: Wed Sep 2 12:03:40 2015 +0100
Committer: Tomaz Muraus <to...@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(


[2/3] libcloud git commit: google: Update auth documentation with drift info

Posted by to...@apache.org.
google: Update auth documentation with drift info

Mention that large time drift will cause authentication failures in the documentation for GCE.

Closes #571

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


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

Branch: refs/heads/trunk
Commit: 24adde4d4d5f686c6b3c7fc99a48e845a2f97694
Parents: 3865e06
Author: Michal Tekel <mt...@gmail.com>
Authored: Thu Sep 10 15:06:43 2015 +0100
Committer: Tomaz Muraus <to...@apache.org>
Committed: Fri Sep 25 13:28:39 2015 +0200

----------------------------------------------------------------------
 docs/compute/drivers/gce.rst | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/24adde4d/docs/compute/drivers/gce.rst
----------------------------------------------------------------------
diff --git a/docs/compute/drivers/gce.rst b/docs/compute/drivers/gce.rst
index 079b6f8..5105f00 100644
--- a/docs/compute/drivers/gce.rst
+++ b/docs/compute/drivers/gce.rst
@@ -41,7 +41,9 @@ Which one should I use?
   authorization is your Project ID.
 
 Once you have set up the authentication as described below, you pass the
-authentication information to the driver as described in `Examples`_
+authentication information to the driver as described in `Examples`_. Also
+bear in mind that large clock drift (difference in time) between authenticating
+host and google will cause authentication to fail.
 
 
 Service Account


[3/3] libcloud git commit: Update changelog.

Posted by to...@apache.org.
Update changelog.


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

Branch: refs/heads/trunk
Commit: 91c69db0533ba2a8fd4c29b0b50b4003f3270c03
Parents: 24adde4
Author: Tomaz Muraus <to...@apache.org>
Authored: Fri Sep 25 13:29:46 2015 +0200
Committer: Tomaz Muraus <to...@apache.org>
Committed: Fri Sep 25 13:29:46 2015 +0200

----------------------------------------------------------------------
 CHANGES.rst | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/91c69db0/CHANGES.rst
----------------------------------------------------------------------
diff --git a/CHANGES.rst b/CHANGES.rst
index b9c0ef0..979d7de 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -23,6 +23,11 @@ General
   (GITHUB-585)
   [Anthony Shaw]
 
+- Document potential time drift issue which could cause authentication in the
+  GCE drivers to fail.
+  (GITHUB-571)
+  [Michal Tekel]
+
 Compute
 ~~~~~~~