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

Bug 873236

Summary: When creating gluster volume via RESTAPI, it fails on 'Invalid server id in brick'
Product: Red Hat Enterprise Virtualization Manager Reporter: Petr Dufek <pdufek>
Component: ovirt-engineAssignee: Nobody's working on this, feel free to take it <nobody>
Status: CLOSED NOTABUG QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: bugzilla-qe-tlv, dyasny, iheim, lpeer, Rhev-m-bugs, yeylon, ykaul
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-05 13:22:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
logs none

Description Petr Dufek 2012-11-05 12:04:24 UTC
Created attachment 638530 [details]
logs

Description of problem:
-----------------------
When creating gluster volume consisting of 4 bricks supposed to lie on 2 hosts, 'Invalid server id in brick' error is raised.


Version-Release number of selected component (if applicable):
-------------------------------------------------------------
vdsm-bootstrap-4.9.6-40.0.el6_3.noarch
rhevm-3.1.0-25.el6ev.noarch
vdsm-4.9.6-40.0.el6_3.x86_64 (on both used hosts)


Steps to Reproduce:
-------------------
1. send via RESTAPI CREATE request to create gluster volume (see testcase.log on line 591 (too long to put it here)
2. error message is returned: (can be seen in testcase.log as well)
<fault>$
    <reason>Operation Failed</reason>$
    <detail>[Cannot create Gluster Volume. Invalid server id in brick.]         </detail>$
</fault>

  
Actual results:
--------------
2012-11-05 12:51:25,553 WARN  [org.ovirt.engine.core.bll.GetConfigurationValueQuery] (ajp-/127.0.0.1:8702-1) calling GetConfigurationValueQuery (ApplicationMode) with null version, using default general for version
2012-11-05 12:51:27,018 WARN  [org.ovirt.engine.core.dal.job.ExecutionMessageDirector] (ajp-/127.0.0.1:8702-5) [14945e7c] The message key CreateGlusterVolume is missing from bundles/ExecutionMessages
2012-11-05 12:51:27,065 WARN  [org.ovirt.engine.core.bll.gluster.CreateGlusterVolumeCommand] (ajp-/127.0.0.1:8702-5) [14945e7c] CanDoAction of action CreateGlusterVolume failed. Reasons:VAR__ACTION__CREATE,VAR__TYPE__GLUSTER_VOLUME,ACTION_TYPE_FAILED_INVALID_BRICK_SERVER_ID
2012-11-05 12:51:27,078 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (ajp-/127.0.0.1:8702-5) Operation Failed: [Cannot create Gluster Volume. Invalid server id in brick.]


Expected results:
-----------------
gluster volume successfully created

Comment 1 Petr Dufek 2012-11-05 13:22:29 UTC
sorry, my fault, hosts were assigned to cluster with not explicitely enabled gluster support.

But the error message could be of better help in this case.