Nova may not start instances when OS is installed with locale not en_US

Bug #1419905 reported by Jorgegv
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Davanum Srinivas (DIMS)
Juno
Fix Released
Low
Matt Riedemann

Bug Description

Nova fails to start instances on compute nodes when the base OS (CentOS 7) is installed with a locale other than en_US.UTF-8 (e.g. es_ES.UTF-8).

To avoid this bug, the base system should always be installed with locale "en_US.UTF-8" (US English) on all nodes, esp. Compute nodes.

This has been reported to RedHat RDO here:

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

-----------------------------------
Built: 2015-02-05T19:26:09 00:00
git SHA: e41ca113a7d9a8d30e2fa7009f4da82a26c3222b
URL: http://docs.openstack.org/juno/install-guide/install/yum/content/ch_basic_environment.html
source File: file:/home/jenkins/workspace/openstack-manuals-tox-doc-publishdocs/doc/install-guide/ch_basic_environment.xml
xml:id: ch_basic_environment

Jorgegv (jorge-gonzalez)
description: updated
Revision history for this message
Matt Kassawara (ionosphere80) wrote :

Not a documentation issue. Moving upstream.

no longer affects: openstack-manuals
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

What's the error in the nova logs when it happens?

Changed in nova:
status: New → Incomplete
status: Incomplete → New
Revision history for this message
Jorgegv (jorge-gonzalez) wrote : Re: [Bug 1419905] Re: Nova may not start instances when OS is installed with locale not en_US

All tech info, including logs and explanation of why the error happens,
is included in the RH bug (link provided).

Shall I copy all info from there? Don't get me wrong, I have absolutely
no problem in doing so, it's just that it seemed more practical to add
a link from here to there...

Regards
J.

Jorge González Villalonga
Director Técnico

DAIKON Ingeniería de Sistemas S.L.
Telf: (+34) 91 188 08 28
www.daikon.es

La información contenida en este mensaje y/o archivo(s) adjunto(s) es
confidencial/privilegiada y está destinada a ser leída sólo por la(s)
persona(s) a la(s) que va dirigida. Si usted lee este mensaje y no es el
destinatario señalado, el empleado o el agente responsable de entregar
el mensaje al destinatario, o ha recibido esta comunicación por error,
le informamos que está totalmente prohibida, y puede ser ilegal,
cualquier divulgación, distribución o reproducción de esta comunicación,
y le rogamos que nos lo notifique inmediatamente y nos devuelva el
mensaje original a la dirección arriba mencionada. Gracias

El 25/02/15 a las 18:38, Davanum Srinivas (DIMS) escribió:
> What's the error in the nova logs when it happens?
>

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/159209

Changed in nova:
assignee: nobody → Davanum Srinivas (DIMS) (dims-v)
status: New → In Progress
Changed in nova:
importance: Undecided → Low
Changed in nova:
milestone: none → kilo-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/159209
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=0f65a294d90d69fe6ad2047dc5f63ad362787926
Submitter: Jenkins
Branch: master

commit 0f65a294d90d69fe6ad2047dc5f63ad362787926
Author: Davanum Srinivas <email address hidden>
Date: Wed Feb 25 13:03:29 2015 -0500

    Fix bad exception logging

    When the locale is not en_US, then we fail miserably.

    Closes-Bug: #1419905
    Change-Id: I5cd28308da9141fa8b2884b27209b5962543b0fd

Changed in nova:
status: In Progress → Fix Committed
Revision history for this message
Joe Gordon (jogo) wrote :

This bug is invalid and is a case of a bad translation

http://paste.openstack.org/show/190502

# -*- coding: utf-8 -*-

print("good:")
print(u"test %s" % u'á')
print("good:")
print("test %s" % 'á')
print("bad:")
print(u"test %s" % 'á')

Changed in nova:
status: Fix Committed → Invalid
Revision history for this message
Matt Riedemann (mriedem) wrote :

Concatenating the exception which might have a unicode string in it with the ascii debug log message is a bug and was fixed here, but there is a better way to fix this, which is bug 1430383.

Changed in nova:
status: Invalid → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to nova (master)

Reviewed: https://review.openstack.org/162282
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=7446d4065343fafa1f5e3452f78ae21b2f67ae3c
Submitter: Jenkins
Branch: master

commit 7446d4065343fafa1f5e3452f78ae21b2f67ae3c
Author: Joe Gordon <email address hidden>
Date: Fri Mar 6 11:51:01 2015 -0800

    Stop stacktracing in _get_filter_uuid

    I5cd28308da9141fa8b2884b27209b5962543b0fd mistakenly caused a stacktrace
    instead of just logging the libvirt error message.

    Related-Bug: 1419905
    Closes-Bug: 1430383
    Co-Authored-By: Matt Riedemann <email address hidden>
    Change-Id: Ifa28262aae87f9ddba48b0161b1e401a5d7d9c00

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to nova (stable/juno)

Related fix proposed to branch: stable/juno
Review: https://review.openstack.org/163456

Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to nova (stable/juno)

Reviewed: https://review.openstack.org/163456
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=6c86f8ec88447c8cffd142b5d6901c6c1038f1cc
Submitter: Jenkins
Branch: stable/juno

commit 6c86f8ec88447c8cffd142b5d6901c6c1038f1cc
Author: Joe Gordon <email address hidden>
Date: Fri Mar 6 11:51:01 2015 -0800

    Stop stacktracing in _get_filter_uuid

    I5cd28308da9141fa8b2884b27209b5962543b0fd mistakenly caused a stacktrace
    instead of just logging the libvirt error message.

    Conflicts:
            nova/tests/unit/virt/libvirt/test_firewall.py
            nova/virt/libvirt/firewall.py

    Related-Bug: 1419905
    Closes-Bug: 1430383
    Co-Authored-By: Matt Riedemann <email address hidden>
    Change-Id: Ifa28262aae87f9ddba48b0161b1e401a5d7d9c00
    (cherry picked from commit 7446d4065343fafa1f5e3452f78ae21b2f67ae3c)

tags: added: in-stable-juno
Thierry Carrez (ttx)
Changed in nova:
milestone: kilo-3 → 2015.1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.