Bug 1238093 - vdsm doesn't support workflow with replica 1 as gluster storage domain
Summary: vdsm doesn't support workflow with replica 1 as gluster storage domain
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: vdsm
Classification: oVirt
Component: General
Version: 4.17.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ovirt-3.6.0-rc
: 4.17.8
Assignee: Allon Mureinik
QA Contact: Raz Tamir
URL:
Whiteboard: storage
: 1243323 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-01 08:06 UTC by Sandro Bonazzola
Modified: 2016-03-10 13:57 UTC (History)
15 users (show)

Fixed In Version: v4.17.2
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-27 07:49:09 UTC
oVirt Team: Storage
Embargoed:
rule-engine: ovirt-3.6.0+
rule-engine: blocker+
ylavi: planning_ack+
amureini: devel_ack+
rule-engine: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1217448 0 unspecified CLOSED [RFE][HC] - Add support to Hosted Engine for provisioning gluster replica 3 storage given 3 clean hosts. 2021-02-22 00:41:40 UTC
oVirt gerrit 44332 0 master MERGED gluster: Allow "Replica" 1 domains Never

Internal Links: 1217448

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.


Note You need to log in before you can comment on or make changes to this bug.