Do you have a ~/.cloud-locale-test.skip file present? If not, do you see a /etc/profile.d/Z99-cloud-locale-test.sh file? The warning is provided by cloud-init; I wonder what version provides it, and if we need to SRU it? What version of cloud-init do you have?
I think the root cause is:
1. A user remote to the system has a different locale set that isn't configured on the system. This seems reasonable to me, and perhaps is going to become even more common that it is now.
2. This user uses ssh to install maas.
3. The postgresql-9.1 postinst fails with:
Error: The locale requested by the environment is invalid.
Error: could not create default cluster. Please create it manually with
pg_createcluster 9.1 main --start
or a similar command (see 'man pg_createcluster').
4. The subsequent DB initialisation needed by maas fails.
Solutions (one more added):
1) Tell the user to generate the locale, and do nothing else.
2) Switch the locale to C or C.UTF-8 (not sure which) so that at least things will work until the system locale is configured as required.
3) Require that everything functions correctly with an invalid locale set, including the postgresql-9.1 postinst.
The second option would require a modification to cloud-init, so adding a task for that and for feedback.
@Julian
Do you have a ~/.cloud- locale- test.skip file present? If not, do you see a /etc/profile. d/Z99-cloud- locale- test.sh file? The warning is provided by cloud-init; I wonder what version provides it, and if we need to SRU it? What version of cloud-init do you have?
I think the root cause is:
1. A user remote to the system has a different locale set that isn't configured on the system. This seems reasonable to me, and perhaps is going to become even more common that it is now.
2. This user uses ssh to install maas.
3. The postgresql-9.1 postinst fails with:
Error: The locale requested by the environment is invalid.
Error: could not create default cluster. Please create it manually with
pg_ createcluster 9.1 main --start
or a similar command (see 'man pg_createcluster').
4. The subsequent DB initialisation needed by maas fails.
Solutions (one more added):
1) Tell the user to generate the locale, and do nothing else.
2) Switch the locale to C or C.UTF-8 (not sure which) so that at least things will work until the system locale is configured as required.
3) Require that everything functions correctly with an invalid locale set, including the postgresql-9.1 postinst.
The second option would require a modification to cloud-init, so adding a task for that and for feedback.