[Bugs] [Bug 1388464] throw warning to show that older tier commands are depricated and will be removed.

bugzilla at redhat.com bugzilla at redhat.com
Mon Feb 6 15:50:07 UTC 2017


https://bugzilla.redhat.com/show_bug.cgi?id=1388464

Bala Konda Reddy M <bmekala at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ON_QA                       |VERIFIED



--- Comment #6 from Bala Konda Reddy M <bmekala at redhat.com> ---
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 at 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 at 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 at 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 at 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 at 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 at 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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=Jk75UCBlvS&a=cc_unsubscribe


More information about the Bugs mailing list