[Bugs] [Bug 1493893] New: gluster volume asks for confirmation for disperse volume even with force

bugzilla at redhat.com bugzilla at redhat.com
Thu Sep 21 06:49:43 UTC 2017


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

            Bug ID: 1493893
           Summary: gluster volume asks for confirmation for disperse
                    volume even with force
           Product: GlusterFS
           Version: mainline
         Component: cli
          Keywords: Reopened
          Severity: high
          Assignee: ksubrahm at redhat.com
          Reporter: ksubrahm at redhat.com
                CC: amukherj at redhat.com, bugs at gluster.org,
                    ksubrahm at redhat.com, zdenek.styblik at gmail.com
            Blocks: 1493166



+++ This bug was initially created as a clone of Bug #1493166 +++

Description of problem:

When creating dispersed volume, replica 2, cli asks for confirmation even when
force is give. This is a breaking change as it used to work before and even
without force, although I cannot confirm this, because we don't have 3.4
anymore.


Version-Release number of selected component (if applicable):

Debian Jessie 3.11.3-2

How reproducible:

Every time/easy.


Steps to Reproduce:

gluster volume create myvolume replica 2 transport tcp
host01.example.com:/brick/myvolume host02.example.com:/brick/myvolume force
Replica 2 volumes are prone to split-brain. Use Arbiter or Replica 3 to avoid
this. See: 
https://gluster.readthedocs.io/en/latest/Administrator%20Guide/Split%20brain%20and%20ways%20to%20deal%20with%20it/.
Do you still want to continue?
 (y/n)

Actual results:

GlusterFS volume not created.

Expected results:

GlusterFS volume is created at least when force is given.

Additional info:

Breaking change which breaks tooling built around cli.

--- Additional comment from Atin Mukherjee on 2017-09-20 00:27:41 EDT ---

Please note that the command you have mentioned here refers to creating a
replica 2 volume (not disperse one) and that's the expected behavior. We
encourage users to use arbiter or replica 3 volumes instead of replica 2 and
this confirmation is in place even with a force option.

--- Additional comment from Zdenek Styblik on 2017-09-20 00:42:30 EDT ---

(In reply to Atin Mukherjee from comment #1)
> Please note that the command you have mentioned here refers to creating a
> replica 2 volume (not disperse one) and that's the expected behavior. We
> encourage users to use arbiter or replica 3 volumes instead of replica 2 and
> this confirmation is in place even with a force option.

I'm sorry, but WHAT? Alright, I understand I got terminology mixed up, but you
what? Are you serious? It kind of feels like #NotABugFeature to me.

Let me repeat. You've broken backwards compatibility of CLI **EVEN** when force
is provided. Since you want to encourage users, why not to document it or just
a print notification and link to documentation. But to add confirmation which
1. wasn't there before and breaks stuff 2. which appears even with force makes
no sense to me.

Have a good day.

--- Additional comment from Atin Mukherjee on 2017-09-20 04:26:57 EDT ---

I think your concern is valid. I'm passing down this issue to the author of the
patch, Karthick. Ideally the force option should bypass this validation.

@Karthick - Would you send a patch for the same?


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1493166
[Bug 1493166] gluster volume asks for confirmation for disperse volume even
with force
-- 
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=9f8PkohuQg&a=cc_unsubscribe


More information about the Bugs mailing list