Bug 1350185 - Cannot create or run any VM: broken it.po causes: KeyError: 'nome-mv'
Summary: Cannot create or run any VM: broken it.po causes: KeyError: 'nome-mv'
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: virt-manager
Version: 25
Hardware: All
OS: All
unspecified
urgent
Target Milestone: ---
Assignee: Cole Robinson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1351497 1351906 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-26 11:02 UTC by lordbyte
Modified: 2017-03-24 16:23 UTC (History)
10 users (show)

Fixed In Version: virt-manager-1.4.0-3.fc24
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1434782 (view as bug list)
Environment:
Last Closed: 2017-03-24 16:23:30 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Screenshot of error (23.31 KB, image/png)
2016-06-26 11:02 UTC, lordbyte
no flags Details
Debug log with error (32.51 KB, text/plain)
2016-06-27 22:30 UTC, lordbyte
no flags Details

Description lordbyte 2016-06-26 11:02:20 UTC
Created attachment 1172503 [details]
Screenshot of error

Description of problem:
After upgrade to fedora 24 if I try to run any existent VM or if I try to create new vm i receive an error 

Errore nell'avvio dell'installazione: 'nome-mv'

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/create.py", line 2199, in _finish_clicked
    self._show_customize_dialog(guest)
  File "/usr/share/virt-manager/virtManager/create.py", line 2230, in _show_customize_dialog
    self._customize_window = vmmDetails(virtinst_guest, self.topwin)
  File "/usr/share/virt-manager/virtManager/details.py", line 363, in __init__
    self.console = vmmConsolePages(self.vm, self.builder, self.topwin)
  File "/usr/share/virt-manager/virtManager/console.py", line 128, in __init__
    self._change_title()
  File "/usr/share/virt-manager/virtManager/console.py", line 291, in _change_title
    "connection-name": self.vm.conn.get_pretty_desc(),
KeyError: 'nome-mv'


Version-Release number of selected component (if applicable):
virt-manager-1.4.0-2.fc24.noarch
virt-manager-common-1.4.0-2.fc24.noarch


How reproducible:
Create new VM or run any vm


Steps to Reproduce:
1. Start Virt Manager
2. Create new vm
3. after wizard try to start vm 

Actual results:

Errore nell'avvio dell'installazione: 'nome-mv'

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/create.py", line 2199, in _finish_clicked
    self._show_customize_dialog(guest)
  File "/usr/share/virt-manager/virtManager/create.py", line 2230, in _show_customize_dialog
    self._customize_window = vmmDetails(virtinst_guest, self.topwin)
  File "/usr/share/virt-manager/virtManager/details.py", line 363, in __init__
    self.console = vmmConsolePages(self.vm, self.builder, self.topwin)
  File "/usr/share/virt-manager/virtManager/console.py", line 128, in __init__
    self._change_title()
  File "/usr/share/virt-manager/virtManager/console.py", line 291, in _change_title
    "connection-name": self.vm.conn.get_pretty_desc(),
KeyError: 'nome-mv'




Expected results:

VM Normal start



Additional info:

Comment 1 lordbyte 2016-06-26 17:33:26 UTC
Note: I use virt-manager from very long time and my installation work fine up to fedora 23 . After update to Fedora 24 (with dnf system-upgrade) virt-manager can't start or create any VM

Comment 2 Cole Robinson 2016-06-27 18:38:44 UTC
Looks like someone mistranslated the translation string and messed up variable names. If you run LOCALE=C virt-manager --debug it should avoid the issue, I'll try to follow up with the translators

Comment 3 lordbyte 2016-06-27 22:30:53 UTC
Created attachment 1173195 [details]
Debug log with error

Comment 4 lordbyte 2016-06-27 22:42:39 UTC
Hi
Yes, it's a translation problem 

I have try to run 

LOCALE=C virt-manager --debug

but I receive the same error (See attach Debug log with error)

Then I have try to create this little script for changing it_IT  (My language) in en_US 

If i launch this script virt-manager display in english but work fine with no error
-----------------------------------
#!/bin/bash

export GDM_LANG=en_US.utf8
export LANG=en_US.utf8
export LC_MEASUREMENT=en_US.utf8
export LC_MONETARY=en_US.utf8
export LC_NUMERIC=en_US.utf8
export LC_PAPER=en_US.utf8
export LC_TIME=en_US.utf8

LOCALE=C virt-manager --debug
-------------------------------------

Thank you for hour help. 
It's necessary to open a new translation bug or you can send this bug to the translators team ?

Comment 5 Dario Lesca 2016-06-28 12:21:13 UTC
Me too have this problem (LANG=it_IT.utf8)

In my case, this command is sufficient to bypass the problem:

LANG=en_US.utf8 virt-manager

Thanks
Dario

Comment 6 Cole Robinson 2016-06-28 13:50:16 UTC
The translator in the po file is listed as tchuang, who I've emailed. But if anyone else is a translator the place to fix it is fedora.zanata.org, then I can pull the updated file into fedora virt-manager

Comment 7 Dario Lesca 2016-06-28 14:02:04 UTC
I have send today (28/06/2016, 14.43 +0200) this email to  tchuang:

------------------------
Hi Terry,

At line 1463 of this file:
https://github.com/virt-manager/virt-manager/blob/master/po/it.po

There is a bug:
> msgid "%(vm-name)s on %(connection-name)s"
> msgstr "%(nome-mv)s su %(nome-connessione)s"

the translation line must be: 
> msgid "%(vm-name)s su %(connection-name)s"

This error produce on Fedora 24 this bug:

https://bugzilla.redhat.com/show_bug.cgi?id=1350185

Thanks
-------------------

I'm a simple user, I'm not able to rebuild the package with patch.

Sorry

Comment 8 Andrea Perotti 2016-06-29 07:55:17 UTC
Hi, I've fixed on Zanata the translation: now variable is correct.

Can you please regenerate the package  before the myth that F24 break virt-manager spread? This issue is affecting all italian virt-manager users.

thanks

Comment 9 Cole Robinson 2016-06-29 13:02:38 UTC
(In reply to Andrea Perotti from comment #8)
> Hi, I've fixed on Zanata the translation: now variable is correct.
> 

There was another instance in the file of the same issue that was missed, I fixed it manually

FWIW I also filed a zanata bug to catch this type of issue: https://zanata.atlassian.net/browse/ZNTA-1212

> Can you please regenerate the package  before the myth that F24 break
> virt-manager spread? This issue is affecting all italian virt-manager users.
> 

Working on it

Comment 10 Fedora Update System 2016-06-29 13:24:16 UTC
virt-manager-1.4.0-3.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-9dbdf1caaa

Comment 11 Andrea Perotti 2016-06-29 14:19:16 UTC
Waiting for virt-manager-common-1.4.0-3.fc24, if you running dnf upgrade virt-manager-common does not yet provide you the updated package, a quick workaround is to remove the faulty translation file:

# rm /usr/share/locale/it/LC_MESSAGES/virt-manager.mo

thanks Cole for your quick help and for spotting another similar issue.

cheers

Comment 12 Cole Robinson 2016-06-30 16:41:07 UTC
*** Bug 1351497 has been marked as a duplicate of this bug. ***

Comment 13 Fedora Update System 2016-06-30 22:26:51 UTC
virt-manager-1.4.0-3.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-9dbdf1caaa

Comment 14 Dario Lesca 2016-07-01 08:23:46 UTC
I have update now with:

 sudo dnf update virt-manager* --enablerepo updates-testing

and all work fine.

Thank to all!

Comment 15 Fedora Update System 2016-07-02 15:24:45 UTC
virt-manager-1.4.0-3.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 16 Cole Robinson 2016-07-06 14:09:37 UTC
*** Bug 1351906 has been marked as a duplicate of this bug. ***

Comment 17 Germano Massullo 2017-03-24 10:07:06 UTC
While trying to open detail window of running virtual machine, I get error message

==========
Errore nell'avvio dei dettagli: 'nome-mv'

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/engine.py", line 820, in _show_vm_helper
    details = self._get_details_dialog(uri, vm.get_connkey())
  File "/usr/share/virt-manager/virtManager/engine.py", line 797, in _get_details_dialog
    obj = vmmDetails(conn.get_vm(connkey))
  File "/usr/share/virt-manager/virtManager/details.py", line 395, in __init__
    self.console = vmmConsolePages(self.vm, self.builder, self.topwin)
  File "/usr/share/virt-manager/virtManager/console.py", line 128, in __init__
    self._change_title()
  File "/usr/share/virt-manager/virtManager/console.py", line 291, in _change_title
    "connection-name": self.vm.conn.get_pretty_desc(),
KeyError: 'nome-mv'
==========

virt-manager-1.4.1-1.fc25.noarch

Comment 18 Germano Massullo 2017-03-24 10:07:26 UTC
While trying to open detail window of running virtual machine, I get error message

==========
Errore nell'avvio dei dettagli: 'nome-mv'

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/engine.py", line 820, in _show_vm_helper
    details = self._get_details_dialog(uri, vm.get_connkey())
  File "/usr/share/virt-manager/virtManager/engine.py", line 797, in _get_details_dialog
    obj = vmmDetails(conn.get_vm(connkey))
  File "/usr/share/virt-manager/virtManager/details.py", line 395, in __init__
    self.console = vmmConsolePages(self.vm, self.builder, self.topwin)
  File "/usr/share/virt-manager/virtManager/console.py", line 128, in __init__
    self._change_title()
  File "/usr/share/virt-manager/virtManager/console.py", line 291, in _change_title
    "connection-name": self.vm.conn.get_pretty_desc(),
KeyError: 'nome-mv'
==========

virt-manager-1.4.1-1.fc25.noarch

Comment 19 Cole Robinson 2017-03-24 16:23:30 UTC
The regression is being tracked in bug 1433800

Check updates-testing


Note You need to log in before you can comment on or make changes to this bug.