You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Upstream pyVmomi doesn't allow for setting 'locale' in session connection #38402
P4Priority 4RIoTRelates to integration with cloud providers, hypervisors, API-based services, etc.Salt-Cloudbugbroken, incorrect, or confusing behaviorseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work aroundstale
When using the vmware salt-cloud driver it's not possible to specify the locale when making the connection to vmware. When connecting to an instance of vmware that's running with a non-english locale it causes parsing problems with salt-cloud
Setup
Install salt-cloud and configure it to talk to VMware running under a non-english locale
Steps to Reproduce Issue
Run any salt-cloud command under the above conditions
This workaround works fine for salt-cloud VM creation (I use the salt runner cloud.create), but other things listing snapshots or resetting VM still break.
# salt-cloud -f list_snapshots vmware -l trace
[...]
[ERROR ] There was an error running the function: 'ascii' codec can't encode character u'\xe9' in position 9: ordinal not in range(128)
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/salt/cloud/cli.py", line 274, in run
self.function_provider, self.function_name, kwargs
File "/usr/lib/python2.7/site-packages/salt/cloud/__init__.py", line 1611, in do_function
driver: self.clouds[fun](call='function')
File "/usr/lib/python2.7/site-packages/salt/cloud/clouds/vmware.py", line 1898, in list_snapshots
ret[vm["name"]] = _get_snapshots(vm["snapshot"].rootSnapshotList)
File "/usr/lib/python2.7/site-packages/salt/cloud/clouds/vmware.py", line 1181, in _get_snapshots
snapshot_path = "{0}/{1}".format(parent_snapshot_path, snapshot.name)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 9: ordinal not in range(128)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
P4Priority 4RIoTRelates to integration with cloud providers, hypervisors, API-based services, etc.Salt-Cloudbugbroken, incorrect, or confusing behaviorseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work aroundstale
Activity
UtahDave commentedon Dec 21, 2016
ZD-977
sebw commentedon Mar 15, 2017
This workaround works fine for salt-cloud VM creation (I use the salt runner cloud.create), but other things listing snapshots or resetting VM still break.
Would you have another workaround?
stale commentedon Sep 16, 2018
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.