yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #70913
[Bug 1743962] Re: UnicodeEncodeError occur when using chinese name to create load balancer
LBaaS is an individual project Octavia now. Bug tracking is done on the storyboard.
This report has been migrated to https://storyboard.openstack.org/#!/story/2001520
(Marking this as Invalid in the neutron launchpad)
** Changed in: neutron
Status: New => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1743962
Title:
UnicodeEncodeError occur when using chinese name to create load
balancer
Status in neutron:
Invalid
Bug description:
UnicodeEncodeError occur when I create load balancer using chinese
name, the log is below:
ERROR neutron_lbaas.agent.agent_manager [-] Unable to deploy instance for loadbalancer: 163a0cf5-d932-4aa9-bd35-9a01a369c9f0
ERROR neutron_lbaas.agent.agent_manager Traceback (most recent call last):
ERROR neutron_lbaas.agent.agent_manager File "/var/lib/kolla/venv/lib/python2.7/site-packages/neutron_lbaas/agent/agent_manager.py", line 189, in _reload_loadbalancer
ERROR neutron_lbaas.agent.agent_manager self.device_drivers[driver_name].deploy_instance(loadbalancer)
ERROR neutron_lbaas.agent.agent_manager File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 271, in inner
ERROR neutron_lbaas.agent.agent_manager return f(*args, **kwargs)
ERROR neutron_lbaas.agent.agent_manager File "/var/lib/kolla/venv/lib/python2.7/site-packages/neutron_lbaas/drivers/haproxy/namespace_driver.py", line 203, in deploy_instance
ERROR neutron_lbaas.agent.agent_manager self.update(loadbalancer)
ERROR neutron_lbaas.agent.agent_manager File "/var/lib/kolla/venv/lib/python2.7/site-packages/neutron_lbaas/drivers/haproxy/namespace_driver.py", line 212, in update
ERROR neutron_lbaas.agent.agent_manager self._spawn(loadbalancer, extra_args)
ERROR neutron_lbaas.agent.agent_manager File "/var/lib/kolla/venv/lib/python2.7/site-packages/neutron_lbaas/drivers/haproxy/namespace_driver.py", line 390, in _spawn
ERROR neutron_lbaas.agent.agent_manager haproxy_base_dir)
ERROR neutron_lbaas.agent.agent_manager File "/var/lib/kolla/venv/lib/python2.7/site-packages/neutron_lbaas/drivers/haproxy/jinja_cfg.py", line 91, in save_config
ERROR neutron_lbaas.agent.agent_manager n_utils.replace_file(conf_path, config_str)
ERROR neutron_lbaas.agent.agent_manager File "/var/lib/kolla/venv/lib/python2.7/site-packages/debtcollector/removals.py", line 242, in wrapper
ERROR neutron_lbaas.agent.agent_manager return f(*args, **kwargs)
ERROR neutron_lbaas.agent.agent_manager File "/var/lib/kolla/venv/lib/python2.7/site-packages/neutron/common/utils.py", line 385, in replace_file
ERROR neutron_lbaas.agent.agent_manager file_utils.replace_file(file_name, data, file_mode=file_mode)
ERROR neutron_lbaas.agent.agent_manager File "/var/lib/kolla/venv/lib/python2.7/site-packages/neutron_lib/utils/file.py", line 61, in replace_file
ERROR neutron_lbaas.agent.agent_manager tmp_file.write(data)
ERROR neutron_lbaas.agent.agent_manager File "/usr/lib64/python2.7/socket.py", line 316, in write
ERROR neutron_lbaas.agent.agent_manager data = str(data) # XXX Should really reject non-string non-buffers
ERROR neutron_lbaas.agent.agent_manager UnicodeEncodeError: 'ascii' codec can't encode characters in position 20-26: ordinal not in range(128)
ERROR neutron_lbaas.agent.agent_manager
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1743962/+subscriptions
References