Heat engine can not start after changing local language

Bug #1446958 reported by Ethan Lynn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
High
Ethan Lynn
Kilo
Fix Released
High
Angus Salkeld

Bug Description

After change local language to ja, heat-engine failed to start.

2015-04-21 08:50:44.422 11676 INFO heat.engine.environment [-] Registering OS::Heat::AutoScalingGroup -> <class 'heat.engine.resources.openstack.heat.autoscaling_group.AutoScalingResourceGroup'>
2015-04-21 08:50:44.423 11676 INFO heat.engine.environment [-] Registering OS::Heat::CloudConfig -> <class 'heat.engine.resources.openstack.heat.cloud_config.CloudConfig'>
2015-04-21 08:50:44.423 11676 INFO heat.engine.environment [-] Registering OS::Heat::CWLiteAlarm -> <class 'heat.engine.resources.openstack.heat.cloud_watch.CloudWatchAlarm'>
2015-04-21 08:50:44.423 11676 CRITICAL heat-engine [-] UnicodeEncodeError: 'ascii' codec can't encode characters in position 3-4: ordinal not in range(128)
2015-04-21 08:50:44.423 11676 TRACE heat-engine Traceback (most recent call last):
2015-04-21 08:50:44.423 11676 TRACE heat-engine File "/usr/bin/heat-engine", line 73, in <module>
2015-04-21 08:50:44.423 11676 TRACE heat-engine srv = engine.EngineService(cfg.CONF.host, rpc_api.ENGINE_TOPIC)
2015-04-21 08:50:44.423 11676 TRACE heat-engine File "/usr/lib/python2.7/site-packages/heat/engine/service.py", line 273, in __init__
2015-04-21 08:50:44.423 11676 TRACE heat-engine resources.initialise()
2015-04-21 08:50:44.423 11676 TRACE heat-engine File "/usr/lib/python2.7/site-packages/heat/engine/resources/__init__.py", line 62, in initialise
2015-04-21 08:50:44.423 11676 TRACE heat-engine _load_global_environment(global_env)
2015-04-21 08:50:44.423 11676 TRACE heat-engine File "/usr/lib/python2.7/site-packages/heat/engine/resources/__init__.py", line 67, in _load_global_environment
2015-04-21 08:50:44.423 11676 TRACE heat-engine _load_global_resources(env)
2015-04-21 08:50:44.423 11676 TRACE heat-engine File "/usr/lib/python2.7/site-packages/heat/engine/resources/__init__.py", line 86, in _load_global_resources
2015-04-21 08:50:44.423 11676 TRACE heat-engine _register_resources(env, resource_mapping.load_all(manager))
2015-04-21 08:50:44.423 11676 TRACE heat-engine File "/usr/lib/python2.7/site-packages/heat/engine/resources/__init__.py", line 23, in _register_resources
2015-04-21 08:50:44.423 11676 TRACE heat-engine env.register_class(res_name, res_class)
2015-04-21 08:50:44.423 11676 TRACE heat-engine File "/usr/lib/python2.7/site-packages/heat/engine/environment.py", line 500, in register_class
2015-04-21 08:50:44.423 11676 TRACE heat-engine self.registry.register_class(resource_type, resource_class)
2015-04-21 08:50:44.423 11676 TRACE heat-engine File "/usr/lib/python2.7/site-packages/heat/engine/environment.py", line 191, in register_class
2015-04-21 08:50:44.423 11676 TRACE heat-engine self._register_info([resource_type], ri)
2015-04-21 08:50:44.423 11676 TRACE heat-engine File "/usr/lib/python2.7/site-packages/heat/engine/environment.py", line 261, in _register_info
2015-04-21 08:50:44.423 11676 TRACE heat-engine warnings.warn(six.text_type(info.value.support_status.message))
2015-04-21 08:50:44.423 11676 TRACE heat-engine File "/usr/lib64/python2.7/warnings.py", line 29, in _show_warning
2015-04-21 08:50:44.423 11676 TRACE heat-engine file.write(formatwarning(message, category, filename, lineno, line))
2015-04-21 08:50:44.423 11676 TRACE heat-engine File "/usr/lib64/python2.7/warnings.py", line 38, in formatwarning
2015-04-21 08:50:44.423 11676 TRACE heat-engine s = "%s:%s: %s: %s\n" % (filename, lineno, category.__name__, message)
2015-04-21 08:50:44.423 11676 TRACE heat-engine UnicodeEncodeError: 'ascii' codec can't encode characters in position 3-4: ordinal not in range(128)
2015-04-21 08:50:44.423 11676 TRACE heat-engine

Revision history for this message
Ethan Lynn (ethanlynn) wrote :

Since I don't know whether is there any other place will raise error when in other local language, so I just upload a patch to fix this bug first.

tags: added: kilo-rc-potential
Changed in heat:
assignee: nobody → Ethan Lynn (ethanlynn)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (stable/kilo)

Fix proposed to branch: stable/kilo
Review: https://review.openstack.org/176176

Changed in heat:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on heat (stable/kilo)

Change abandoned by Ethan Lynn (<email address hidden>) on branch: stable/kilo
Review: https://review.openstack.org/176176
Reason: Waiting it merged into master and then repost it.

Angus Salkeld (asalkeld)
Changed in heat:
milestone: none → liberty-1
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/176175
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=0b3dd7be3d3cd9842616a16843d03e6c13cdcb08
Submitter: Jenkins
Branch: master

commit 0b3dd7be3d3cd9842616a16843d03e6c13cdcb08
Author: Ethan Lynn <email address hidden>
Date: Wed Apr 22 13:46:11 2015 +0800

    Fix unicodeerror when heat-engine start

    If change local language to other languages(like ja), heat-engine
    will failed to start.

    Closes-Bug: #1446958
    Change-Id: Ia3cbcebb86257bc1c52ea758c1583191e5a52a2d

Changed in heat:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (stable/kilo)

Reviewed: https://review.openstack.org/176176
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=c958ecb5b4b4fc5a0236b70c21d7d62864cd162b
Submitter: Jenkins
Branch: stable/kilo

commit c958ecb5b4b4fc5a0236b70c21d7d62864cd162b
Author: Ethan Lynn <email address hidden>
Date: Wed Apr 22 13:46:11 2015 +0800

    Fix unicodeerror when heat-engine start

    If change local language to other languages(like ja), heat-engine
    will failed to start.

    Closes-Bug: #1446958
    Change-Id: Ia3cbcebb86257bc1c52ea758c1583191e5a52a2d
    (cherry picked from commit 0b3dd7be3d3cd9842616a16843d03e6c13cdcb08)

Thierry Carrez (ttx)
tags: removed: kilo-rc-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)
Download full text (7.7 KiB)

Reviewed: https://review.openstack.org/179291
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=5d725ecd09a35e3d5fb042956c4ecebb309c0a41
Submitter: Jenkins
Branch: master

commit b5c32027e5f207cca51796ee2aba346413ad48da
Author: Steven Hardy <email address hidden>
Date: Thu Apr 23 14:14:26 2015 +1000

    Fix ResourceGroup validate when there are removal_policies

    We can't call child_template() from a validate in ResourceGroup
    as it accesses nested(). So move the validation to validate_nested_stack()
    so we can control the test template used for validation.

    Unfortunately coverage for this got removed during recent test rework
    and it looks like the interface has got broken.

    Co-Authored-by: Angus Salkeld <email address hidden>
    Change-Id: Ibea738a343847736b041cc49a2c486fa71e562d9
    Closes-Bug: #1446861

commit c958ecb5b4b4fc5a0236b70c21d7d62864cd162b
Author: Ethan Lynn <email address hidden>
Date: Wed Apr 22 13:46:11 2015 +0800

    Fix unicodeerror when heat-engine start

    If change local language to other languages(like ja), heat-engine
    will failed to start.

    Closes-Bug: #1446958
    Change-Id: Ia3cbcebb86257bc1c52ea758c1583191e5a52a2d
    (cherry picked from commit 0b3dd7be3d3cd9842616a16843d03e6c13cdcb08)

commit 94c4ae56e0fece995659d718ed1ab6e56b2deb9f
Author: Ethan Lynn <email address hidden>
Date: Tue Apr 21 17:09:42 2015 +0800

    Add v6-fixed-ip support for nova server

    Now nova server fixed-ip only support ipv4 address,
    this patch add IPv6 fixed ip support for nova server.

    Closes-Bug: #1446532
    Change-Id: I647abeedd36352f053a043d00ab87a84ee2470f3
    (cherry picked from commit 3e1a6f3b826bbc2a638ed7ea239221d13678024c)

commit d07f91615a159663261091e672ce62f90e6ad607
Author: Angus Salkeld <email address hidden>
Date: Tue Apr 7 09:25:50 2015 +1000

    Persist parent_resource_name and make sure it's available

    We are persisting for a number of reasons:
    - so we don't have to pass this through ever rpc call
    - the API exposes parent_resource (currently always None as
      it is not persisted)

    Closes-bug: #1438978
    Change-Id: Id2db36c0234a085ec4f0ce2ab114ec483ea29d81
    (cherry picked from commit edf86aeac2f7b68243b0eccc3c49fa1a579e664b)

commit f944c86d4c26877f4d8dab56790815af8e83ba45
Author: Michal Rostecki <email address hidden>
Date: Wed Mar 25 06:47:33 2015 +0100

    Novaclient v2 instead of v1_1

    Nova API v1.1 is now deprecated and causes warnings.

    Change-Id: Ib4b57a308b7637f4015a07b4e888ccd6347cb947
    Closes-Bug: #1437158
    (cherry picked from commit d9d68cf52bd7027e7d1cafd023a399c2a342b2c5)

commit 370f3c98c5eccf8bce1be425acc31af5e7224171
Author: Zane Bitter <email address hidden>
Date: Thu Apr 16 17:20:05 2015 -0400

    Don't re-bind environment for get_file during stack update

    While we're in the process of updating a stack, we set the stack's
    environment to the new, updated values. However, we don't want to change
    existing resources' idea of their own values until we have explivitly done
    an update of them to bring them into line with th...

Read more...

Thierry Carrez (ttx)
Changed in heat:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in heat:
milestone: liberty-1 → 5.0.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.