Bug 1388464
Summary: | throw warning to show that older tier commands are depricated and will be removed. | ||
---|---|---|---|
Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Atin Mukherjee <amukherj> |
Component: | tier | Assignee: | hari gowtham <hgowtham> |
Status: | CLOSED ERRATA | QA Contact: | Bala Konda Reddy M <bmekala> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | rhgs-3.2 | CC: | bugs, dlambrig, hgowtham, rhinduja, rhs-bugs, storage-qa-internal |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | RHGS 3.2.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | glusterfs-3.8.4-4 | Doc Type: | If docs needed, set a value |
Doc Text: |
The 'gluster volume attach-tier' and 'gluster volume detach-tier' commands are considered deprecated in favor of the new commands, 'gluster volume tier VOLNAME attach' and gluster volume tier VOLNAME detach'. This update includes extra warning message output when the older commands are used in order to give users advance notice of the deprecation and eventual removal of the older commands.
|
Story Points: | --- |
Clone Of: | 1388062 | Environment: | |
Last Closed: | 2017-03-23 06:14:37 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: | 1388062, 1388470 | ||
Bug Blocks: | 1351528, 1351530 |
Description
Atin Mukherjee
2016-10-25 12:24:23 UTC
upstream mainline : http://review.gluster.org/15713 (merged) upstream 3.9 : http://review.gluster.org/15723 (merged) downstream : https://code.engineering.redhat.com/gerrit/#/c/88375/ (pending for acks) 1. gluster volume attach-tier command While attaching tier to the volume using the old command, it is throwing correct warning message that the command will be deprecated in future. and asked to continue or not root@dhcp35-102 ~]# gluster volume attach-tier testvol replica 2 dhcp35-102.lab.eng.blr.redhat.com:/bricks/brick2/testvol_tier0 dhcp35-232.lab.eng.blr.redhat.com:/bricks/brick2/testvol_tier1 dhcp35-54.lab.eng.blr.redhat.com:/bricks/brick2/testvol_tier2 dhcp35-61.lab.eng.blr.redhat.com:/bricks/brick2/testvol_tier3 gluster volume attach-tier <VOLNAME> [<replica COUNT>] <NEW-BRICK>... is deprecated. Use the new command 'gluster volume tier <VOLNAME> attach [<replica COUNT>] <NEW-BRICK>... [force]' Do you want to Continue? (y/n) y volume attach-tier: success Tiering Migration Functionality: testvol: success: Attach tier is successful on testvol. use tier status to check the status. ID: c3434783-f9bb-40aa-bf36-4a4fe26a1ead 2. gluster volume detach-tier command a.When detach-tier start is issued, throwing expected warning message [root@dhcp35-102 brick2]# gluster volume detach-tier testvol start gluster volume detach-tier <VOLNAME> <start|stop|status|commit|force> is deprecated. Use the new command 'gluster volume tier <VOLNAME> detach <start|stop|status|commit|force>' Do you want to Continue? (y/n) y volume detach-tier start: success ID: 0278fada-2c0a-4d72-a5c7-8d37aaabd3cf b.When detach-tier stop is issued, throwing expected warning message [root@dhcp35-102 brick2]# gluster volume detach-tier testvol stop gluster volume detach-tier <VOLNAME> <start|stop|status|commit|force> is deprecated. Use the new command 'gluster volume tier <VOLNAME> detach <start|stop|status|commit|force>' Do you want to Continue? (y/n) y Node Rebalanced-files size scanned failures skipped status run time in h:m:s --------- ----------- ----------- ----------- ----------- ----------- ------------ -------------- localhost 0 0Bytes 0 0 0 in progress 0:0:0 dhcp35-232.lab.eng.blr.redhat.com 0 0Bytes 0 0 0 completed 0:0:7 dhcp35-54.lab.eng.blr.redhat.com 0 0Bytes 0 0 0 completed 0:0:7 dhcp35-61.lab.eng.blr.redhat.com 0 0Bytes 0 0 0 completed 0:0:7 'detach-tier' process may be in the middle of a file migration. The process will be fully stopped once the migration of the file is complete. Please check detach-tier process for completion before doing any further brick related tasks on the volume. c.When detach-tier status is issued, throwing expected warning message [root@dhcp35-102 brick2]# gluster volume detach-tier testvol status gluster volume detach-tier <VOLNAME> <start|stop|status|commit|force> is deprecated. Use the new command 'gluster volume tier <VOLNAME> detach <start|stop|status|commit|force>' Do you want to Continue? (y/n) y Node Rebalanced-files size scanned failures skipped status run time in h:m:s --------- ----------- ----------- ----------- ----------- ----------- ------------ -------------- localhost 0 0Bytes 0 0 0 completed 0:0:6 dhcp35-232.lab.eng.blr.redhat.com 0 0Bytes 0 0 0 completed 0:0:5 dhcp35-54.lab.eng.blr.redhat.com 0 0Bytes 0 0 0 completed 0:0:5 dhcp35-61.lab.eng.blr.redhat.com 0 0Bytes 0 0 0 completed 0:0:5 d. When detach-tier commit is issued after detach-tier start. [root@dhcp35-102 brick2]# gluster volume detach-tier testvol commit gluster volume detach-tier <VOLNAME> <start|stop|status|commit|force> is deprecated. Use the new command 'gluster volume tier <VOLNAME> detach <start|stop|status|commit|force>' Do you want to Continue? (y/n) y Removing tier can result in data loss. Do you want to Continue? (y/n) y volume detach-tier commit: success Check the detached bricks to ensure all files are migrated. If files with data are found on the brick path, copy them via a gluster mount point before re-purposing the removed brick. e. When force option is issued, throwing expected message. [root@dhcp35-102 ~]# gluster volume detach-tier testvol force gluster volume detach-tier <VOLNAME> <start|stop|status|commit|force> is deprecated. Use the new command 'gluster volume tier <VOLNAME> detach <start|stop|status|commit|force>' Do you want to Continue? (y/n) y Removing tier can result in data loss. Do you want to Continue? (y/n) y volume detach-tier commit force: success While using the old commands it is throwing warning that the old tiering commands will be deprecated in future. The new gluster tier commands are working fine. Hence marking the bug as verified verified with glusterfs version 3.8.4-13 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-2017-0486.html |