Bug 1223206
Summary: | "Snap_scheduler disable" should have different return codes for different failures. | ||
---|---|---|---|
Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Avra Sengupta <asengupt> |
Component: | snapshot | Assignee: | Avra Sengupta <asengupt> |
Status: | CLOSED ERRATA | QA Contact: | senaik |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | rhgs-3.0 | CC: | annair, asengupt, asrivast, dnarayan, rcyriac, rhs-bugs, rjoseph, storage-qa-internal, vagarwal |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | RHGS 3.1.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | Scheduler | ||
Fixed In Version: | glusterfs-3.7.1-1 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | 1218055 | Environment: | |
Last Closed: | 2015-07-29 04:43:55 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1218055, 1227615 | ||
Bug Blocks: | 1202842, 1223636 |
Description
Avra Sengupta
2015-05-20 06:10:01 UTC
Mainline Patch Url: http://review.gluster.org/#/c/11005/ Release 3.7 Url: http://review.gluster.org/#/c/11057/ RHGS 3.1 Dev Branch Url: https://code.engineering.redhat.com/gerrit/#/c/49908/ FIxed on RHGS3.1 branch with https://code.engineering.redhat.com/gerrit/50090 Version : glusterfs-3.7.1-7.el6rhs.x86_64 Different failure scenarios with snap_scheduler disable : 1) Without initialising scheduler if snap_scheduler is executed snap_scheduler.py status snap_scheduler: Please run 'snap_scheduler.py' init to initialise the snap scheduler for the local node. snap_scheduler.py disable snap_scheduler: Please run 'snap_scheduler.py' init to initialise the snap scheduler for the local node. echo $? 9 2) Snap_scheduler is already disabled and trying to disable it again: snap_scheduler.py status snap_scheduler: Snapshot scheduling status: Disabled snap_scheduler.py disable snap_scheduler: Failed to disable scheduling. Error: Snapshot scheduling is already disabled. [root@inception post]# echo $? 7 3) Unmount or Delete the shared storage and disable snap_scheduler: [root@inception post]# snap_scheduler.py disable snap_scheduler: Failed: Shared storage is not mounted at /var/run/gluster/shared_storage [root@inception post]# echo $? 4 Delete the shared storage using "gluster v set all cluster.enable-shared-storage disable" and disable snap_scheduler: snap_scheduler.py disable snap_scheduler: Failed: Shared storage is not mounted at /var/run/gluster/shared_storage [root@inception post]# echo $? 4 4) Kill all the bricks in the shared storage and disable snap_scheduler snap_scheduler.py disable snap_scheduler: Failed: /var/run/gluster/shared_storage does not exist. [root@inception post]# echo $? 3 Marking the bug '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. https://rhn.redhat.com/errata/RHSA-2015-1495.html |