Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1238093

Summary: vdsm doesn't support workflow with replica 1 as gluster storage domain
Product: [oVirt] vdsm Reporter: Sandro Bonazzola <sbonazzo>
Component: GeneralAssignee: Allon Mureinik <amureini>
Status: CLOSED CURRENTRELEASE QA Contact: Raz Tamir <ratamir>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.17.0CC: acanan, amureini, bazulay, bugs, dfediuck, didi, ecohen, gklein, lsurette, mgoldboi, rbalakri, stirabos, ycui, yeylon, ylavi
Target Milestone: ovirt-3.6.0-rcKeywords: Regression
Target Release: 4.17.8Flags: rule-engine: ovirt-3.6.0+
rule-engine: blocker+
ylavi: planning_ack+
amureini: devel_ack+
rule-engine: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: v4.17.2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-27 07:49:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sandro Bonazzola 2015-07-01 08:06:37 UTC
VDSM is not supporting anymore deploying gluster storage with only 1 brick.

Traceback (most recent call last):
  File "/usr/share/vdsm/storage/hsm.py", line 2461, in connectStorageServer
    conObj.connect()
  File "/usr/share/vdsm/storage/storageServer.py", line 213, in connect
    self.validate()
  File "/usr/share/vdsm/storage/storageServer.py", line 313, in validate
    raise se.UnsupportedGlusterVolumeReplicaCountError(replicaCount)
UnsupportedGlusterVolumeReplicaCountError: Gluster volume replica count is not supported: 'replica count = 1'

so moving to replica 3 deployment is now mandatory.

Comment 1 Sandro Bonazzola 2015-07-01 13:54:22 UTC
After discussing this with Nir, Allon and Yaniv, moving to VDSM.
Single brick on a single host in HC configuration must be allowed as it should be allowed to grow to replica 3 in a second step.

Comment 2 Allon Mureinik 2015-07-07 07:30:25 UTC
This is actually an intentional changed introduced for bug 1123052.

For a quick relief, a manual step for overriding this is to edit /etc/vdsm/vdsm.conf, uncomment allowed_replica_counts and set it to "allowed_replica_counts=1,3".

For a "real" solution, we need to think about this, but perhaps the installer could enable the conf value just to get things running

Comment 3 Yaniv Lavi 2015-08-03 14:51:39 UTC
*** Bug 1243323 has been marked as a duplicate of this bug. ***

Comment 4 Allon Mureinik 2015-08-04 15:25:01 UTC
(In reply to Allon Mureinik from comment #2)
> This is actually an intentional changed introduced for bug 1123052.
> 
> For a quick relief, a manual step for overriding this is to edit
> /etc/vdsm/vdsm.conf, uncomment allowed_replica_counts and set it to
> "allowed_replica_counts=1,3".
> 
> For a "real" solution, we need to think about this, but perhaps the
> installer could enable the conf value just to get things running

Discussed with Yaniv Dary - Replica 1 is important to existing users, we'll return the built-in support for it (see attached patch).

Comment 5 Yaniv Lavi 2015-08-09 14:42:18 UTC
was this backported to 3.6? Can you attach the patch?

Comment 6 Allon Mureinik 2015-08-09 14:46:03 UTC
(In reply to Yaniv Dary from comment #5)
> was this backported to 3.6? 
No need to, the patch referenced in the external tracker was commited to master before the ovirt-3.6 branch was forked from it:

amureini@dhcp-0-202 ~/src/git/vdsm [ovirt-3.6] $ git branch --contains c9e52d070f5414d39d53499f61fa51218543c023
  master
* ovirt-3.6

Comment 7 Allon Mureinik 2015-08-10 08:44:21 UTC
Let's handle the doctext in one place - bug 1238093.
I'm flagging this BZ with requires-doctext-.

Comment 8 Red Hat Bugzilla Rules Engine 2015-09-22 07:43:40 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 9 Raz Tamir 2015-11-16 14:46:28 UTC
Verified on rhevm-3.6.0.3-0.1.el6.noarch

Volume:
# gluster volume info test_for_bug
 
Volume Name: test_for_bug
Type: Distribute
Volume ID: 8a364ff5-f016-4bff-b373-06a9bc1ae37e
Status: Started
Number of Bricks: 1
Transport-type: tcp
Bricks:
Brick1: 10.35.160.202:/gluster_volumes/test_for_bug
Options Reconfigured:
performance.readdir-ahead: on

On vdsm:
# mount | grep 10.35.160.202
10.35.160.202:/test_for_bug on /rhev/data-center/mnt/glusterSD/10.35.160.202:_test__for__bug type fuse.glusterfs (rw,relatime,user_id=0,group_id=0,default_permissions,allow_other,max_read=131072)

The storage domain created successfully

Comment 10 Sandro Bonazzola 2015-11-27 07:49:09 UTC
Since oVirt 3.6.0 has been released, moving from verified to closed current release.