controller node reports invalid locale

Bug #1532028 reported by Alex Schultz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Low
Maksim Malchuk
8.0.x
Won't Fix
Low
Maksim Malchuk

Bug Description

After deploying and logging into one of the controller nodes, the following is reported to the user:

_____________________________________________________________________
WARNING! Your environment specifies an invalid locale.
 This can affect your user experience significantly, including the
 ability to manage packages. You may install the locales by running:

   sudo apt-get install language-pack-en
     or
   sudo locale-gen en_US.UTF-8

To see all available language packs, run:
   apt-cache search "^language-pack-[a-z][a-z]$"
To disable this message for all users, run:
   sudo touch /var/lib/cloud/instance/locale-check.skip
_____________________________________________________________________

Additionally attempting to install something may result in a bunch of locale warnings:

perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
 LANGUAGE = (unset),
 LC_ALL = (unset),
 LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
 LANGUAGE = (unset),
 LC_ALL = (unset),
 LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "8.0"
  api: "1.0"
  build_number: "399"
  build_id: "399"
  fuel-nailgun_sha: "c4ce9832b299a23f7b5399dde4b0ee33ad87dc5f"
  python-fuelclient_sha: "4f234669cfe88a9406f4e438b1e1f74f1ef484a5"
  fuel-agent_sha: "df16d41cd7a9445cf82ad9fd8f0d53824711fcd8"
  fuel-nailgun-agent_sha: "92ebd5ade6fab60897761bfa084aefc320bff246"
  astute_sha: "c7ca63a49216744e0bfdfff5cb527556aad2e2a5"
  fuel-library_sha: "4b88706dd871af9e33251d8d0a99ac6e3d5fecad"
  fuel-ostf_sha: "214e794835acc7aa0c1c5de936e93696a90bb57a"
  fuel-mirror_sha: "8bb8c70efc61bcf633e02d6054dbf5ec8dcf6699"
  fuelmenu_sha: "43c9c2c0a60d70c311e9107ea2e4ea5fcbe3bb80"
  shotgun_sha: "63645dea384a37dde5c01d4f8905566978e5d906"
  network-checker_sha: "9f0ba4577915ce1e77f5dc9c639a5ef66ca45896"
  fuel-upgrade_sha: "616a7490ec7199f69759e97e42f9b97dfc87e85b"
  fuelmain_sha: "b4196a448a68be81e1bda73617f4b83643392b67"

Tags: area-library
Revision history for this message
Alex Schultz (alex-schultz) wrote :

It appears this warning does eventually go away, not completely sure where it's coming from.

Changed in fuel:
importance: High → Undecided
summary: - node reports invalid locale
+ controller node reports invalid locale
description: updated
Revision history for this message
Alex Schultz (alex-schultz) wrote :
Artem Roma (aroma-x)
tags: added: area-library
Changed in fuel:
assignee: nobody → Fuel Library Team (fuel-library)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Maksim Malchuk (mmalchuk) wrote :

this is actually not a bug, this is incorrect configuration of your local and also fuel master node /etc/ssh_config:

$ grep SendEnv /etc/ssh_config
   SendEnv LANG LC_*

this setting will force to set locale after connecting to the remote node.

Changed in fuel:
assignee: Fuel Library Team (fuel-library) → Maksim Malchuk (mmalchuk)
importance: Medium → Low
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

Fix proposed to branch: master
Review: https://review.openstack.org/265654

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/265654
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=27e41b16a0f250040d8896ca1700c0ff42c31f90
Submitter: Jenkins
Branch: master

commit 27e41b16a0f250040d8896ca1700c0ff42c31f90
Author: Maksim Malchuk <email address hidden>
Date: Sun Jan 10 22:09:12 2016 +0300

    Remove ssh_config SendEnv defaults

    Remove from ssh_config all SendEnv parameters. They really don't need and
    mostly causes problems when ssh client used incorrect configuration of
    the system locale settings.

    Also this commit contain minor changes to conform Puppet Style Guide.

    Change-Id: If5ca03124112ba627e1ee455a397c586bc0db9ae
    Closes-Bug: #1532028

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/8.0)

Fix proposed to branch: stable/8.0
Review: https://review.openstack.org/265765

Revision history for this message
Aleksandr Didenko (adidenko) wrote :

Won't fix for 8.0 since it's a low bug and 8.0 is in SCF.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-library (stable/8.0)

Change abandoned by Maksim Malchuk (<email address hidden>) on branch: stable/8.0
Review: https://review.openstack.org/265765
Reason: Low bug after SCF.

Revision history for this message
Sofiia Andriichenko (sandriichenko) wrote :

[root@nailgun ~]# grep SendEnv /etc/ssh/ssh_config
[root@nailgun ~]#

verified on:
[root@nailgun ~]# shotgun2 short-report
cat /etc/fuel_build_id:
 465
cat /etc/fuel_build_number:
 465
cat /etc/fuel_release:
 9.0
cat /etc/fuel_openstack_version:
 mitaka-9.0
rpm -qa | egrep 'fuel|astute|network-checker|nailgun|packetary|shotgun':
 fuel-release-9.0.0-1.mos6349.noarch
 fuel-misc-9.0.0-1.mos8454.noarch
 python-packetary-9.0.0-1.mos140.noarch
 fuel-bootstrap-cli-9.0.0-1.mos285.noarch
 fuel-migrate-9.0.0-1.mos8454.noarch
 rubygem-astute-9.0.0-1.mos750.noarch
 fuel-mirror-9.0.0-1.mos140.noarch
 shotgun-9.0.0-1.mos90.noarch
 fuel-openstack-metadata-9.0.0-1.mos8742.noarch
 fuel-notify-9.0.0-1.mos8454.noarch
 nailgun-mcagents-9.0.0-1.mos750.noarch
 python-fuelclient-9.0.0-1.mos325.noarch
 fuel-9.0.0-1.mos6349.noarch
 fuel-utils-9.0.0-1.mos8454.noarch
 fuel-setup-9.0.0-1.mos6349.noarch
 fuel-provisioning-scripts-9.0.0-1.mos8742.noarch
 fuel-library9.0-9.0.0-1.mos8454.noarch
 network-checker-9.0.0-1.mos74.x86_64
 fuel-agent-9.0.0-1.mos285.noarch
 fuel-ui-9.0.0-1.mos2717.noarch
 fuel-ostf-9.0.0-1.mos935.noarch
 fuelmenu-9.0.0-1.mos274.noarch
 fuel-nailgun-9.0.0-1.mos8742.noarch

Changed in fuel:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.