Description of problem: When a snapshot is created and if quota is not enabled for that particular volume then ideally there should not be a presence of quota.conf in /var/lib/glusterd/snaps/<snapname>/<snap-id>. Problem here is when is snapshot is taken quota.conf if not present initially, but during handshake betweeen glusterd, there is check made for presence of quota.conf. If quota.conf is not present then a 0 byte file is automatically created. Because of this snapshot restore fails. As presence of quota.conf and absence of quota.cksum is considered as an invalid scenario, we thought of failing the command. Version-Release number of selected component (if applicable): How reproducible: Everytime Steps to Reproduce: 1. Create a volume (with quota disabled) 2. Start the volume. 3. Take a snapshot. 4. wait for handshake to take place completely (takes around 1-2 mins) 5. Stop the volume 6. restore the snap (restore fails) Actual results: Snapshot restore is failing. Expected results: Snapshot restore should be successful. Additional info: This is very much related to quota, so ideally if quota is not enabled, then 0 byte quota.conf should not be created.
I am not able to reproduce this with latest repo, I'll try to find out which patch has corrected this issue. I'll update about the same here very shortly.
A patch which fixes this issue has been posted upstream. Once that patch is merged upstream, I'll send the relevant patch downstream.
https://code.engineering.redhat.com/gerrit/#/c/26641/
https://code.engineering.redhat.com/gerrit/#/c/26641/1
Version: glusterfs-3.6.0.16-1.el6rhs.x86_64 ======= Repeated the same steps as mentioned in "Steps to Reproduce", Snapshot restore is successful. Marking the bug as 'Verified'
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. http://rhn.redhat.com/errata/RHEA-2014-1278.html