neutron command fail, due to locale setting problem

Bug #1249131 reported by DennyZhang
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
devstack
Invalid
Undecided
DennyZhang

Bug Description

I notice some neutron failures, when run ./stack.sh

After some investigation, I limit the error to below failure.
,-----------
| mac@ubuntu:~/denny/download$ neutron router-create router1
| unsupported locale setting
| mac@ubuntu:~/denny/download$ echo $?
| 1
`-----------

If run "LC_ALL=C neutron router-create router1", run the problem goes away.
Not sure whether this problem is a neutron limitation, or devstack defect.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack (master)

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

Changed in devstack:
assignee: nobody → DennyZhang (denny-6)
status: New → In Progress
Revision history for this message
DennyZhang (denny-6) wrote :

Abandoned: https://review.openstack.org/55603

And wait for the upstream to root fix this neutron issue, instead of work around.

Revision history for this message
Nassim Babaci (nassim-babaci) wrote :

Hi,

I had the same problem installing neutron with devstack (on ubuntu 12.04)
Here the logs:
  http://paste.openstack.org/show/61258/

After investigation it seems that error is due to some locales that are not correctly installed, exception is raised within the cliff module which is only used by neutron-client, this is why other openstack clients work fine:

Exception raised here: cliff/app.py:App._set_streams
  locale.setlocale(locale.LC_ALL, '')

One way to see the locale error is to issu a locale commande (an error message is shown):
ex:
  ubuntu@devstack-test:~/devstack$ locale
  locale: Cannot set LC_ALL to default locale: No such file or directory << HERE.
  LANG=en_US.UTF-8
  LANGUAGE=
  LC_CTYPE="en_US.UTF-8"
  LC_NUMERIC=fr_FR.UTF-8

The solution is to generate the missing locale using locale-gen: (in my case it was fr locale).
  ubuntu@devstack-test:~/devstack$ sudo locale-gen fr_FR.UTF-8
  Generating locales...
    fr_FR.UTF-8... done
  Generation complete.

So finally, IMHO this is not a devstack error nor neutron, and I don't know if it is worth to have a line about this pb in the Doc ?!

(I know this bug was abandoned, but I though may be my investigations could help others cause the error message is not really informative in this case).

Revision history for this message
DennyZhang (denny-6) wrote :

Document this issue would be helpful.

Automate this by changing some initialization scripts would be even better, since not everyone are patient enough to read those tiny documentation words carefully, especially when they're hundreds of pages.

Revision history for this message
Haifeng.Yan (yanheven) wrote :

it seems is locale problem, not a neutron or devstack problem.

Changed in devstack:
status: In Progress → Invalid
Revision history for this message
Andriy Kurilin (andreykurilin) wrote :

@yanheven: this issue relates only to neutronclient(all other clients are not affected in the same environment), so, imo, devstack installation or neutronclient should provide a fix.

Changed in devstack:
status: Invalid → Confirmed
Revision history for this message
Deliang Fan (vanderliang) wrote :

I also meet this problem in recently devstack.
kilo@kilo:~$ neutron
unsupported locale setting

Revision history for this message
Deliang Fan (vanderliang) wrote :

Solving it by export LC_ALL=C. Same bug https://bugs.launchpad.net/openstack-cisco/+bug/1262749

Revision history for this message
Sean Dague (sdague) wrote :

This devstack bug was last updated over 180 days ago, as devstack
is a fast moving project and we'd like to get the tracker down to
currently actionable bugs, this is getting marked as Invalid. If the
issue still exists, please feel free to reopen it.

Changed in devstack:
status: Confirmed → Invalid
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.