/swift/common/utils.py >> whatremyips' output dependent on system locale
Bug #692491 reported by
Allaedine El Banna
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Low
|
Unassigned |
Bug Description
This is not a major bug, but if you try for example the French locale for your system on an Ubuntu 10.10, fr_FR.UTF8, you will notice that the output of the command /sbin/ifconfig is something like :
..."inet adr"...
instead of
... "inet addr"...
like the function common/
I suggest another way to find the ip address of the machine.
This bug implies that you are forced to use English Locales to run Swift. Else, replicators cannot start for example.
Related branches
lp:~redbo/swift/whataremyips
- Swift Core security contacts: Pending requested
-
Diff: 38 lines (+12/-7)1 file modifiedswift/common/utils.py (+12/-7)
Changed in swift: | |
importance: | Undecided → Low |
Changed in swift: | |
status: | New → Fix Committed |
Changed in swift: | |
milestone: | none → 1.2.0 |
Changed in swift: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I just spent a few minutes reminding myself why we don't get this information from the system more directly, and the answer is it's pretty freakin' hairy.
I bet we could just pass that popen call an env with LC_ALL=C or POSIX or whatever locale is always there. I'll look into it later today.