Bug 1358837
| Summary: | ovirt web interface displays incorrect size for gluster volumes | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [oVirt] ovirt-engine | Reporter: | Rob Sanders <rob> | ||||||||
| Component: | BLL.Gluster | Assignee: | Ramesh N <rnachimu> | ||||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | RamaKasturi <knarra> | ||||||||
| Severity: | medium | Docs Contact: | |||||||||
| Priority: | medium | ||||||||||
| Version: | 4.0.0 | CC: | bugs, sabose, sasundar | ||||||||
| Target Milestone: | ovirt-4.0.4 | Flags: | sabose:
ovirt-4.0.z?
rule-engine: planning_ack? rule-engine: devel_ack+ sasundar: testing_ack+ |
||||||||
| Target Release: | 4.0.4 | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2016-09-29 11:16:09 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: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Rob Sanders
2016-07-21 15:06:33 UTC
Created attachment 1182554 [details]
gluster volume
Created attachment 1182556 [details]
storage ovewview
This seems to be an issues with com.google.gwt.i18n.client.Messages.AlternateMessage.
We have defined some alternate messages using @Messages.Select with Enums for the SizeUnits. But its doesn't work any more.
We have following messages in the UIMessages.java.
@Messages.AlternateMessage(value = { "BYTES" , "{0} B" , "KiB" , "{0} KiB" , "MiB" , "{0} MiB" , "GiB" , "{0} GiB" , "TiB" , "{0} TiB" })
String sizeUnitString(String size, @Messages.Select
SizeConverter.SizeUnit sizeUnit);
But the generated UIMessages_.java doesn't use any of the condition.
public java.lang.String sizeUnitString(java.lang.String arg0,org.ovirt.engine.core.common.utils.SizeConverter.SizeUnit arg1) {
java.lang.String returnVal = null;
int arg1_ordinal = -1;
if (arg1 != null) {
arg1_ordinal = arg1.ordinal();
}
if (returnVal != null) {
return returnVal;
}
return arg0 + " TiB";
}
This issue is seen in many places like Create Brick Wizard, Volumes General Tab, Rebalance and Remove Brick status popups, etc. Everything is shown as "XXX TiB'. Verified and works fine with ovirt-engine-4.0.4.4-0.1.el7ev.noarch. Volume capacity is displayed correctly with out any issues. Created attachment 1205056 [details]
Attaching the screenshot for volume capacity
It's looking good. Thank you for fixing it! |