Bug 143747

Summary: Graphical VG representation not shown in localized GUI
Product: [Fedora] Fedora Reporter: Andrew Martynov <andrewm>
Component: system-config-lvmAssignee: Jim Parsons <jparsons>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: agk, dwysocha, kupcevic, mbroz, mclasen, prockai, p.van.egdom
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: system-config-lvm-1.1.1-2.0.fc8 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-01-26 14:17:11 UTC Type: ---
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
screenshot in C locale
none
screenshot in ru_RU.UTF-8 locale
none
screenshot in ru_RU.UTF-8 locale (corrected mime type)
none
Screenshot in "ru_RU.UTF-8" language.
none
Screenshot in "de_DE.UTF-8" language. none

Description Andrew Martynov 2004-12-26 18:49:48 UTC
Description of problem:
Graphical representation of PV is not shown.
Python traceback is occured when focus moved 
between tree item in left panel.

Version-Release number of selected component (if applicable):
system-config-lvm-0.9.18-1.0
rhpl-0.151-1
python-2.3.4-14

How reproducible:
Often

Steps to Reproduce:
1. Install FC3 or RHEL4-beta2
2. Upgrare rhpl and system-config-lvm from CVS
3. Put localized messages
# msgfmt ./po/ru.po -o
/usr/share/locale/ru/LC_MESSAGES/system-config-lvm.mo
4. run LANG=C system-config-lvm
5. Open "Volume Groups", "VolGroup00", "VolGroup00 Physical View", "hdb3"
6. You can see red&blue bars and footnotes as in attachement #1
7. run LANG=ru_RU.UTF-8 system-config-lvm
8. Open "Volume Groups", "VolGroup00", "VolGroup00 Physical View", "hdb3"
9. You can see blinked windows and no bars (as in attachement #2)
  
Actual results:
No graphical representations og Volumes

Expected results:
Red and Blue bars with footnotes

Additional info:

The same results can be recieved with de_DE.UTF-8.

Python traceback is attached
-----------------------------------------------------------------
[andrewm@rhel4 fedora-translate]$ LANG=ru_RU.UTF-8 system-config-lvm
Traceback (most recent call last):
  File "/usr/share/system-config-lvm/Volume_Tab_View.py", line 303, in
on_tree_selection_changed
    self.vr.render(pv_list, 0)
  File "/usr/share/system-config-lvm/renderer.py", line 150, in render
    self.divide_volume(self.viewable_vols)
  File "/usr/share/system-config-lvm/renderer.py", line 1202, in
divide_volume
    extent_multiplier = operator.div(span, total)
ZeroDivisionError: float division
Traceback (most recent call last):
  File "/usr/share/system-config-lvm/Volume_Tab_View.py", line 342, in
on_tree_selection_changed
    self.vr.render_single_volume(pv, type)
  File "/usr/share/system-config-lvm/renderer.py", line 376, in
render_single_volume
    self.divide_single_volume(self.viewable_volume)
  File "/usr/share/system-config-lvm/renderer.py", line 1220, in
divide_single_volume
    extent_multiplier = operator.div(float(span), float(total))
ZeroDivisionError: float division

Comment 1 Andrew Martynov 2004-12-26 18:50:55 UTC
Created attachment 109126 [details]
screenshot in C locale

Comment 2 Andrew Martynov 2004-12-26 18:52:05 UTC
Created attachment 109127 [details]
screenshot in ru_RU.UTF-8 locale

Comment 3 Andrew Martynov 2004-12-26 18:56:43 UTC
Created attachment 109128 [details]
screenshot in ru_RU.UTF-8 locale (corrected mime type)

Comment 4 Stanko Kupcevic 2005-05-16 20:31:52 UTC
Fixed in 0.9.27

Comment 5 David Lawrence 2006-07-18 03:10:43 UTC
QA_READY has been deprecated in favor of ON_QA. Please use ON_QA in the future.
Moving to ON_QA.

Comment 6 Peter van Egdom 2008-01-26 14:17:11 UTC
Confirmed fixed in "system-config-lvm-1.1.1-2.0.fc8". See attached screenshots.

Comment 7 Peter van Egdom 2008-01-26 14:18:22 UTC
Created attachment 293050 [details]
Screenshot in "ru_RU.UTF-8" language.

Comment 8 Peter van Egdom 2008-01-26 14:18:53 UTC
Created attachment 293051 [details]
Screenshot in "de_DE.UTF-8" language.