yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #39810
[Bug 1504235] Re: Can't run instance with non-ascii symbols in user_data
This seems to go the same direction as bug 1472999. I guess the
novaclient has to encode the input as well as the nova api. Whoever
takes this bug could maybe also update the wiki page from 2013:
https://wiki.openstack.org/wiki/Encoding
** Also affects: python-novaclient
Importance: Undecided
Status: New
** Tags added: api
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1504235
Title:
Can't run instance with non-ascii symbols in user_data
Status in OpenStack Compute (nova):
New
Status in python-novaclient:
New
Bug description:
Gating of ec2api project has a test that runs instance with user data that contains non-ascii symbols under python 2.7.
And now it fails because of fix bug https://bugs.launchpad.net/nova/+bug/1502583
Version: master branch
stack trace from nova compute [1]:
2015-10-08 16:50:00.267 ERROR nova.compute.manager [req-eb417914-b76f-42b3-a825-7e86785d2bbe user-9eea8ece project-e7ccb1a9] [instance: 529a79f0-6707-4882-af0f-63a5af1fa111] Instance failed to spawn
2015-10-08 16:50:00.267 32724 ERROR nova.compute.manager [instance: 529a79f0-6707-4882-af0f-63a5af1fa111] Traceback (most recent call last):
2015-10-08 16:50:00.267 32724 ERROR nova.compute.manager [instance: 529a79f0-6707-4882-af0f-63a5af1fa111] File "/opt/stack/new/nova/nova/compute/manager.py", line 2172, in _build_resources
2015-10-08 16:50:00.267 32724 ERROR nova.compute.manager [instance: 529a79f0-6707-4882-af0f-63a5af1fa111] yield resources
2015-10-08 16:50:00.267 32724 ERROR nova.compute.manager [instance: 529a79f0-6707-4882-af0f-63a5af1fa111] File "/opt/stack/new/nova/nova/compute/manager.py", line 2019, in _build_and_run_instance
2015-10-08 16:50:00.267 32724 ERROR nova.compute.manager [instance: 529a79f0-6707-4882-af0f-63a5af1fa111] block_device_info=block_device_info)
2015-10-08 16:50:00.267 32724 ERROR nova.compute.manager [instance: 529a79f0-6707-4882-af0f-63a5af1fa111] File "/opt/stack/new/nova/nova/virt/libvirt/driver.py", line 2437, in spawn
2015-10-08 16:50:00.267 32724 ERROR nova.compute.manager [instance: 529a79f0-6707-4882-af0f-63a5af1fa111] admin_pass=admin_password)
2015-10-08 16:50:00.267 32724 ERROR nova.compute.manager [instance: 529a79f0-6707-4882-af0f-63a5af1fa111] File "/opt/stack/new/nova/nova/virt/libvirt/driver.py", line 2942, in _create_image
2015-10-08 16:50:00.267 32724 ERROR nova.compute.manager [instance: 529a79f0-6707-4882-af0f-63a5af1fa111] cdb.make_drive(configdrive_path)
2015-10-08 16:50:00.267 32724 ERROR nova.compute.manager [instance: 529a79f0-6707-4882-af0f-63a5af1fa111] File "/opt/stack/new/nova/nova/virt/configdrive.py", line 163, in make_drive
2015-10-08 16:50:00.267 32724 ERROR nova.compute.manager [instance: 529a79f0-6707-4882-af0f-63a5af1fa111] self._write_md_files(tmpdir)
2015-10-08 16:50:00.267 32724 ERROR nova.compute.manager [instance: 529a79f0-6707-4882-af0f-63a5af1fa111] File "/opt/stack/new/nova/nova/virt/configdrive.py", line 98, in _write_md_files
2015-10-08 16:50:00.267 32724 ERROR nova.compute.manager [instance: 529a79f0-6707-4882-af0f-63a5af1fa111] self._add_file(basedir, data[0], data[1])
2015-10-08 16:50:00.267 32724 ERROR nova.compute.manager [instance: 529a79f0-6707-4882-af0f-63a5af1fa111] File "/opt/stack/new/nova/nova/virt/configdrive.py", line 90, in _add_file
2015-10-08 16:50:00.267 32724 ERROR nova.compute.manager [instance: 529a79f0-6707-4882-af0f-63a5af1fa111] f.write(data.encode('utf-8'))
2015-10-08 16:50:00.267 32724 ERROR nova.compute.manager [instance: 529a79f0-6707-4882-af0f-63a5af1fa111] UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 36: ordinal not in range(128)
2015-10-08 16:50:00.267 32724 ERROR nova.compute.manager [instance: 529a79f0-6707-4882-af0f-63a5af1fa111]
[1] http://logs.openstack.org/50/232550/1/check/gate-functional-neutron-dsvm-ec2api/2eda628/logs/screen-n-cpu.txt.gz#_2015-10-08_16_50_00_267
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1504235/+subscriptions
References