maas-deployer fails on unknown locale
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
maas-deployer |
Confirmed
|
Medium
|
Edward Hope-Morley |
Bug Description
maas-deployer fails when it doesn't know about my locale:
$ ./cli.py -c ~/maas-
2015-09-09 09:20:21,514 INFO Deleting domain 'juju-test' before define since force=True
2015-09-09 09:20:21,549 INFO Deleting volume 'juju-test.img' before create since force=True
2015-09-09 09:20:22,800 WARNING No MAAS cluster nodes provided
2015-09-09 09:20:22,845 INFO Deleting domain 'maas-test' before create since force=True
2015-09-09 09:20:22,890 INFO Downloading https:/
2015-09-09 09:20:50,308 INFO Deleting volume 'maas-test-
2015-09-09 09:20:58,331 INFO Seed volume 'maas-test-
2015-09-09 09:20:58,331 INFO Deleting volume 'maas-test-
2015-09-09 09:20:59,651 INFO ip_address was not specified in maas section of deployment yaml file.
Enter the IP address for the MAAS controller: aa.bb.cc.dd
2015-09-09 09:21:20,742 INFO Waiting for cloud-init to complete - this usually takes several minutes
2015-09-09 09:25:20,069 INFO done.
bash: warning: setlocale: LC_ALL: cannot change locale (en_GB.UTF-8)
Traceback (most recent call last):
File "/usr/lib/
"__main__", fname, loader, pkg_name)
File "/usr/lib/
exec code in run_globals
File "/usr/lib/
main()
File "/usr/lib/
locale.
File "/usr/lib/
return _setlocale(
locale.Error: unsupported locale setting
Traceback (most recent call last):
File "./cli.py", line 99, in <module>
main()
File "./cli.py", line 88, in main
engine.
File "/usr/lib/
ssh_
File "/usr/lib/
self.driver = self._get_
File "/usr/lib/
return SSHDriver(api_url, api_key, ssh_user=
File "/usr/lib/
self.
File "/usr/lib/
execc(cmd)
File "/usr/lib/
output=stderr)
subprocess.
Related branches
- Billy Olsen: Approve
-
Diff: 74 lines (+21/-4)2 files modifiedmaas_deployer/vmaas/maasclient/clidriver.py (+19/-2)
maas_deployer/vmaas/util.py (+2/-2)
Changed in maas-deployer: | |
status: | In Progress → Fix Committed |
Changed in maas-deployer: | |
status: | Fix Committed → Fix Released |
Changed in maas-deployer: | |
milestone: | 0.0.4 → none |
Sound like we can fix this with by setting env LC_ALL=C. The ssh connection will use whatever is set on the client side so this should cover all bases.