Bug 1825195
| Summary: | [RHEL8.2] Snapshot Scheduler fails to create Snapshot . | ||
|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Mugdha Soni <musoni> |
| Component: | snapshot | Assignee: | Sunny Kumar <sunkumar> |
| Status: | CLOSED ERRATA | QA Contact: | Mugdha Soni <musoni> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rhgs-3.5 | CC: | pprakash, puebele, rhs-bugs, rkothiya, sheggodu, storage-qa-internal, sunkumar |
| Target Milestone: | --- | Keywords: | Regression, ZStream |
| Target Release: | RHGS 3.5.z Batch Update 2 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | glusterfs-6.0-33 | Doc Type: | No Doc Update |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-06-16 06:19:39 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: | |||
|
Description
Mugdha Soni
2020-04-17 11:07:33 UTC
This bug is a blocker as snapshots are not created when scheduled and the testing for this parameter(snapshot scheduling) is blocked. By default there is no "/usr/bin/python" present in RHEL 8,we have to create a soft link, should we create softlink using python3 or python2? So that I will create the soft link and re-try and let you know. You can follow this document[1] to proceed further. [1]. https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_basic_system_settings/using-python3_configuring-basic-system-settings [root@dhcp47-190 ~]# ls /usr/sbin/snap_scheduler.py /usr/sbin/snap_scheduler.py Created a new setup from the scratch. All the steps to reproduce mentioned in comment#0 were followed after creation a soft link but still the snapshot creation was failing. [root@dhcp47-190 ~]# gluster volume set all cluster.enable-shared-storage enable volume set: success [root@dhcp47-190 ~]# set - setsebool -P cron_system_cronjob_use_shares on [root@dhcp47-190 ~]# snap_scheduler.py init snap_scheduler: Successfully initialised snapshot scheduler for this node [root@dhcp47-190 ~]# snap_scheduler.py status snap_scheduler: Snapshot scheduling status: Enabled [root@dhcp47-190 ~]# snap_scheduler.py add "Job1" "*/5 * * * *" vol_rep snap_scheduler: Successfully added snapshot schedule [root@dhcp47-190 ~]# snap_scheduler.py list JOB_NAME SCHEDULE OPERATION VOLUME NAME -------------------------------------------------------------------- Job1 */5 * * * * Snapshot Create vol_rep [root@dhcp47-190 ~]# gluster snapshot list No snapshots present [root@dhcp47-190 ~]# gluster snapshot list No snapshots present [root@dhcp47-190 ~]# gluster snapshot list No snapshots present Upstream patch: https://review.gluster.org/#/c/glusterfs/+/24364/ Tested with the following:- 1.glusterfs-6.0-33.el8rhgs.x86_64 2.4.18.0-193.el8.x86_64 Steps to reproduce are same as mentioned in comment #0. The snapshots were being created as the scheduled timing which is after 2 minutes. 1.[root@dhcp47-62 ~]#snap_scheduler.py add "Job1" "*/2 * * * *" volume_replica2 snap_scheduler: Successfully added snapshot schedule 2.[root@dhcp47-62 ~]# gluster snapshot list Scheduled-Job1-volume_replica2_GMT-2020.05.06-12.58.01 Scheduled-Job1-volume_replica2_GMT-2020.05.06-13.00.02 Scheduled-Job1-volume_replica2_GMT-2020.05.06-13.02.02 Scheduled-Job1-volume_replica2_GMT-2020.05.06-13.04.01 3.[root@dhcp47-62 ~]# gluster snapshot activate Scheduled-Job1-volume_replica2_GMT-2020.05.06-12.58.01 Snapshot activate: Scheduled-Job1-volume_replica2_GMT-2020.05.06-12.58.01: Snap activated successfully Since the issue is fixed ,moving this bug to verified state. 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/RHBA-2020:2572 |