Error unicode encoder ascii with cinder when trying to launch an instance

asked 2019-05-23 20:58:44 -0500

Patrick MAMIA gravatar image

Hello My env is

  1. 3 nodes (controller, network, compute)
  2. the hypervisor is xenserver
  3. cinder is installed on controller node
  4. my cinder my configuration for backend is [lvm] volume_backend_name=lvm volume_driver=cinder.volume.drivers.lvm.LVMVolumeDriver iscsi_ip_address=controller iscsi_protocol=iscsi iscsi_helper=lioadm volume_group=cinder-volumes volumes_dir=/var/lib/cinder/volumes

i try to lauchn instances and get error at block device mapping step. When i look at the volume log of cinder i get

sudo cinder-rootwrap /etc/cinder/rootwrap.conf cinder-rtstool create /dev/cinder-volumes/volume-1fd8e239-7cf7-4607-9213-ca7d1c5831b3 iqn.2010-10.org.openstack:volume-1fd8e239-7cf7-4607-9213-ca7d1c5831b3 fNuAoqyQGh6dFiBYRKTn aSRMHhkRUDzds5iG False -p3260 -acontroller

> ERROR cinder.volume.targets.lio Stderr: u'Traceback (most recent call last):\n File "/bin/cinder-rtstool", line 10, in <module>\n sys.exit(main())\n File "/usr/lib/python2.7/site-packages/cinder/cmd/rtstool.py", line 287, in main\n **optional_args)\n File "/usr/lib/python2.7/site-packages/cinder/cmd/rtstool.py", line 92, in create\n % {\'msg_type\': msg_type, \'port\': portals_port, \'ip\': ip})\nUnicodeEncodeError: \'ascii\' codec can\'t encode character u\'\\xe9\' in position 10: ordinal not in range(128)\n'

When i try to launch an instance qithout creating a volume i got this error on nova-compute.log

Cannot find SR of content-type ISO

But i do have a NFS ISO on my xenserver hypervisor

edit retag flag offensive close merge delete

Comments

Hello for now i do not fix the issues about attaching volume. For the second one i find that even if got a SR NFS ISO on xenserver i need to update one setting to other-config:i18n-key=local-storage-iso and you can do that with xe sr-param-set uuid=*UUID* other-config:i18n-key=local-storage-iso

Patrick MAMIA gravatar imagePatrick MAMIA ( 2019-05-24 17:23:22 -0500 )edit

To retrive ur uuid you can doxe sr-list and copy the uuid of your nfs iso storage. Now i'm facing another issues to launch the instances 'XENAPI_PLUGIN_FAILURE', 'network_config', 'PluginError', 'add bridge failed: Package not installed If someone can help ... and about that cinder ascii bug.thk

Patrick MAMIA gravatar imagePatrick MAMIA ( 2019-05-24 17:25:47 -0500 )edit