Bug 950059

Summary: ovirt-engine-cli: Bad error when trying to add new brick and specifying cluster only .
Product: Red Hat Enterprise Virtualization Manager Reporter: Oded Ramraz <oramraz>
Component: ovirt-engine-cliAssignee: Sahina Bose <sabose>
Status: CLOSED DUPLICATE QA Contact: Shai Revivo <srevivo>
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: acathrow, iheim, jkt, juan.hernandez, oramraz, Rhev-m-bugs, sabose, scohen
Target Milestone: ---Flags: scohen: Triaged+
Target Release: 3.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: gluster
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-25 15:19:36 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:

Description Oded Ramraz 2013-04-09 14:34:25 UTC
Description of problem:

When trying to add brick and specifying cluster only I get the following error: 
'Cluster' object has no attribute 'bricks'
I would change this error to be more meaningful : 
e.g glustervolume parameter is mandatory. 


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


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

[RHEVM shell (connected)]# list clusters 

id         : 99408929-82cf-4dc7-a532-9d998063fa95
name       : Default
description: The default server cluster

id         : 300664d6-d0a6-4065-95ab-e1c43a484384
name       : test

id         : 60fb9cb7-4945-417a-9f68-e7cbb141e4c5
name       : test3

[RHEVM shell (connected)]# add brick --cluster-identifier 300664d6-d0a6-4065-95ab-e1c43a484384

unknown error: 'Cluster' object has no attribute 'bricks'

[RHEVM shell (connected)]#

Comment 2 Juan Hernández 2014-02-25 15:19:36 UTC

*** This bug has been marked as a duplicate of bug 1043500 ***