"make test" fails when invoked via an ssh session when the local user's locales are not available on the MAAS development machine
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Medium
|
Ricardo Bánffy |
Bug Description
When attempting to replicate the issues I was having on my development machine (running 14.10) on a clean environment, I set up a VM with 14.04.1 and ran the tests through ssh. One of the tests failed with:
=======
FAIL: maascli.
-------
_StringException: Traceback (most recent call last):
File "/home/
e.output)
File "/usr/lib/
self.
File "/usr/lib/
raise mismatch_error
MismatchError: u'Run /home/ubuntu/
Running locale from the ssh session, I get:
ubuntu@
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE=
LC_NUMERIC=
LC_TIME=pt_BR.UTF-8
LC_COLLATE=
LC_MONETARY=
LC_MESSAGES=
LC_PAPER=
LC_NAME=pt_BR.UTF-8
LC_ADDRESS=
LC_TELEPHONE=
LC_MEASUREMENT=
LC_IDENTIFICATI
LC_ALL=
but running it from the console, shows the expected output:
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE=
LC_NUMERIC=
LC_TIME=
LC_COLLATE=
LC_MONETARY=
LC_MESSAGES=
LC_PAPER=
LC_NAME=
LC_ADDRESS=
LC_TELEPHONE=
LC_MEASUREMENT=
LC_IDENTIFICATI
LC_ALL=
Running locale-gen for the missing locale or running the tests from the machine console solves the problem, but the dependence on locale data coming from the ssh session may have other implications.
This was done on a fresh server install, from a fresh "bzr branch lp:maas" checkout. No MAAS packages were installed except the ones provided with "make install-
Related branches
- Mike Pontillo (community): Approve
- Blake Rouse (community): Approve
-
Diff: 18 lines (+8/-0)1 file modifiedHACKING.txt (+8/-0)
summary: |
- make test fails when invoked via an ssh session when the local user's + "make test" fails when invoked via an ssh session when the local user's locales are not available on the MAAS development machine |
Changed in maas: | |
assignee: | nobody → Ricardo Bánffy (rbanffy) |
status: | New → In Progress |
importance: | Undecided → Medium |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |