Bug 1571550

Summary: Update emulate512 in VDO section, to have 'on' for boolean true value
Product: [oVirt] cockpit-ovirt Reporter: SATHEESARAN <sasundar>
Component: GdeployAssignee: Gobinda Das <godas>
Status: CLOSED CURRENTRELEASE QA Contact: bipin <bshetty>
Severity: high Docs Contact:
Priority: unspecified    
Version: 0.11.20CC: bshetty, bugs, rhs-bugs, rreddy, sabose, sankarshan, sasundar
Target Milestone: ovirt-4.2.4Flags: sasundar: ovirt-4.2?
sasundar: planning_ack?
rule-engine: devel_ack+
rule-engine: testing_ack+
Target Release: 0.11.25   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: cockpit-ovirt-0.11.25-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1571547 Environment:
Last Closed: 2018-06-26 08:34:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Gluster RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1571547, 1582207    

Description SATHEESARAN 2018-04-25 06:21:36 UTC
+++ This bug was initially created as a clone of Bug #1571547 +++

Description of problem:
-----------------------
With the latest gdeploy, the value of 'enable' is not considered as boolean true.
This leads to failure in configuring VDO volume


Version-Release number of selected component (if applicable):
-------------------------------------------------------------
gdeploy-2.0.2-26.el7rhgs

How reproducible:
-----------------
Always

Steps to Reproduce:
--------------------
1. With the latest gdeploy, try to configure VDO via cockpit

Actual results:
----------------
Fails to configure VDO volume

Expected results:
-------------------
VDO volume should be configured successfully

Comment 1 SATHEESARAN 2018-04-25 06:21:57 UTC
Additional info:
----------------
Here is the VDO section in the config file:

[vdo1:10.70.45.32]
action=create
devices=sdb
names=vdo_sdb
logicalsize=164840G
blockmapcachesize=128M
readcache=enabled
readcachesize=20M
emulate512=enabled           <---------- This should be 'on'
writepolicy=sync
ignore_vdo_errors=no
slabsize=32G

Here is the snip of the failure:

<snip>
TASK [Create VDO with specified size] ******************************************
failed: [10.70.45.32] (item={u'disk': u'/dev/sdb', u'logicalsize': u'164840G', u'name': u'vdo_sdb'}) => {"changed": false, "item": {"disk": "/dev/sdb", "logicalsize": "164840G", "name": "vdo_sdb"}, "msg": "The value 'enabled' is not a valid boolean.  Valid booleans include: 0, 'on', 'f', 'false', 1, 'no', 'n', '1', '0', 't', 'y', 'off', 'yes', 'true'"}
	to retry, use: --limit @/tmp/tmpkKu6Lm/vdo-create.retry

PLAY RECAP *********************************************************************
10.70.45.32                : ok=0    changed=0    unreachable=0    failed=1   
</snip>

Comment 2 SATHEESARAN 2018-04-25 06:34:40 UTC
Note: only emulate512 value should be changed to 'on'. Do **not** change value of readcache, as value for readcache can be only enabled or disabled

Comment 6 Sandro Bonazzola 2018-06-26 08:34:44 UTC
This bugzilla is included in oVirt 4.2.4 release, published on June 26th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.4 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.