Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1541323 - [GSS] Glusterfs pvc bound fail with error creating volume Token used before issued
[GSS] Glusterfs pvc bound fail with error creating volume Token used before i...
Status: CLOSED ERRATA
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: heketi (Show other bugs)
cns-3.6
Unspecified Unspecified
high Severity high
: ---
: CNS 3.10
Assigned To: Raghavendra Talur
vinutha
:
Depends On:
Blocks: 1568861
  Show dependency treegraph
 
Reported: 2018-02-02 04:43 EST by Rajnikant
Modified: 2018-10-29 14:17 EDT (History)
29 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Previously, some heketi client requests failed with ‘Token used before issued’ error because time synchronization was not properly handled by JSON web tokens. This update adds a margin of 120 seconds to iat claim validation to ensure that client requests can succeed in this situation. This margin can be changed by editing the ‘HEKETI_JWT_IAT_LEEWAY_SECONDS’ environment variable.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-09-12 05:22:12 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Github kubevirt/kubevirt-ansible/issues/274#issuecomment-396489727 None None None 2018-06-14 07:13 EDT
Red Hat Product Errata RHEA-2018:2686 None None None 2018-09-12 05:23 EDT

  None (edit)
Description Rajnikant 2018-02-02 04:43:33 EST
Description of problem:
Glusterfs pvc bound fail with error creating volume Token used before issued

Version-Release number of selected component (if applicable):
OpenShift Container Platform 3.6

How reproducible:
- Glusterfs pvc provisioning fail with such error[0]

- Tried with fresh OSE-3.6 installation on glusterfs fails with error, it is unable to bound PVC and installation fail.

[0]
--
54s        3d          17434     registry-claim            PersistentVolumeClaim               Warning   ProvisioningFailed   persistentvolume-controller   Failed to provision volume with StorageClass "glusterfs-storage": glusterfs: create volume err: error creating volume Token used before issued.
---

Steps to Reproduce:
1.
2.
3.

Actual results:
PVC bound fail with error
54s        3d          17434     registry-claim            PersistentVolumeClaim               Warning   ProvisioningFailed   persistentvolume-controller   Failed to provision volume with StorageClass "glusterfs-storage": glusterfs: create volume err: error creating volume Token used before issued.

Expected results:
PVC proviosinign should happen

Additional info:
Please let me know is any further log/information required.
Comment 2 Humble Chirammal 2018-02-02 04:58:57 EST
The error is thrown from heketi when trying authentication. Mostly due to time sync issue.
Comment 3 Humble Chirammal 2018-02-02 05:00:02 EST
Ref#https://github.com/heketi/heketi/issues/646
Comment 9 Humble Chirammal 2018-03-16 01:56:37 EDT
Rajnikant, can  you try step in c#8?
Comment 22 Raghavendra Talur 2018-06-04 13:14:45 EDT
Make sure the node has a time synchronization service running. Gluster pods don't run any time sync service within them anymore.
Comment 25 Nitin Goyal 2018-07-31 04:33:27 EDT
I was creating block device when i hit this bug again in cns 3.10.

rpm ->
heketi-7.0.0-5.el7rhgs.x86_64
glusterfs-client-xlators-3.8.4-54.15.el7rhgs.x86_64
glusterfs-fuse-3.8.4-54.15.el7rhgs.x86_64
glusterfs-geo-replication-3.8.4-54.15.el7rhgs.x86_64
glusterfs-libs-3.8.4-54.15.el7rhgs.x86_64
glusterfs-3.8.4-54.15.el7rhgs.x86_64
glusterfs-api-3.8.4-54.15.el7rhgs.x86_64
glusterfs-cli-3.8.4-54.15.el7rhgs.x86_64
glusterfs-server-3.8.4-54.15.el7rhgs.x86_64
gluster-block-0.2.1-23.el7rhgs.x86_64

container images ->
rhgs-volmanager-rhel7           3.3.1-22
rhgs-server-rhel7               3.3.1-28

[root@dhcp47-153 ~]# oc describe pvc c101 
Name:          c101
Namespace:     glusterfs
StorageClass:  block-sc
Status:        Pending
Volume:        
Labels:        <none>
Annotations:   control-plane.alpha.kubernetes.io/leader={"holderIdentity":"aaabf029-948d-11e8-8b97-0a580a830006","leaseDurationSeconds":15,"acquireTime":"2018-07-31T07:02:39Z","renewTime":"2018-07-31T07:19:53Z","lea...
               volume.beta.kubernetes.io/storage-class=block-sc
               volume.beta.kubernetes.io/storage-provisioner=gluster.org/glusterblock
Finalizers:    [kubernetes.io/pvc-protection]
Capacity:      
Access Modes:  
Events:
  Type     Reason              Age               From                                                           Message
  ----     ------              ----              ----                                                           -------
  Warning  ProvisioningFailed  1h (x13 over 1h)  gluster.org/glusterblock aaabf029-948d-11e8-8b97-0a580a830006  Failed to provision volume with StorageClass "block-sc": failed to create volume: [heketi] failed to create volume: Invalid JWT token: Token used before issued


Time was in sync in all the nodes. Hence marking this as failed Qa.

[root@dhcp47-153 ~]# date
Tue Jul 31 13:54:49 IST 2018
[root@dhcp47-165 ~]# date
Tue Jul 31 13:54:49 IST 2018
[root@dhcp46-217 ~]# date
Tue Jul 31 13:54:49 IST 2018
[root@dhcp47-138 ~]# date
Tue Jul 31 13:54:49 IST 2018

logs and sosreports
http://rhsqe-repo.lab.eng.blr.redhat.com/cns/bugs/BZ-1541323/
Comment 27 Raghavendra Talur 2018-08-10 13:25:05 EDT
patch merged upstream at https://github.com/heketi/heketi/pull/1303
Comment 29 Humble Chirammal 2018-08-14 02:02:53 EDT
Fixed in version: rhgs-volmanager-rhel7:3.4.0-1
Comment 33 Anjana 2018-08-30 09:15:30 EDT
Updated doc text in the Doc Text field. Please review for technical accuracy.
Comment 34 Humble Chirammal 2018-08-30 11:27:38 EDT
John/Talur, can you please help QE with the steps to validate this fix ?
Comment 42 John Mulligan 2018-09-07 13:50:33 EDT
Doc Text looks OK
Comment 45 errata-xmlrpc 2018-09-12 05:22:12 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2018:2686

Note You need to log in before you can comment on or make changes to this bug.