Bug 906416 - ovirt-engine-setup: failed to create engine db because of locale issue
Summary: ovirt-engine-setup: failed to create engine db because of locale issue
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-core
Version: 3.2
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 3.3
Assignee: Eli Mesika
QA Contact:
URL:
Whiteboard: infra
Depends On:
Blocks: 921524
TreeView+ depends on / blocked
 
Reported: 2013-01-31 15:43 UTC by Mark Wu
Modified: 2013-09-23 07:30 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
: 921524 (view as bug list)
Environment:
Last Closed: 2013-09-23 07:30:51 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 12004 0 None None None Never

Description Mark Wu 2013-01-31 15:43:43 UTC
Description of problem:
failed to create 'engine' db with the following message:

[engine-db-install] creating engine db on postgres.
/usr/share/ovirt-engine/dbscripts ~
/usr/share/ovirt-engine/dbscripts /usr/share/ovirt-engine/dbscripts
Creating the database: engine
dropdb: database removal failed: ERROR:  database "engine" does not exist
createdb: database creation failed: ERROR:  encoding "UTF8" does not match locale "en_US"
DETAIL:  The chosen LC_CTYPE setting requires encoding "LATIN1".
Failed to create database engine
/usr/share/ovirt-engine/dbscripts


my locale:

[root@localhost ~]# locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=



Version-Release number of selected component (if applicable):
ovirt-engine-3.2.0-2

How reproducible:
100%

Steps to Reproduce:
run engine-setup after fresh f18 installation 

Actual results:


Expected results:


Additional info:

Comment 2 Eli Mesika 2013-02-03 16:56:07 UTC
please ignore comment #1 (not related)

Comment 3 Moritz Baumann 2013-02-27 15:09:17 UTC
The patch in ovirt-gerrit (http://gerrit.ovirt.org/12004) did fix the engine-setup run for me.

Comment 4 Eli Mesika 2013-03-05 11:53:11 UTC
fixed in commit : b12fc07

Comment 5 Itamar Heim 2013-08-21 16:39:40 UTC
as RC is built, moving to ON_QA (hopefully did not catch incorrect bugs when doing this)

Comment 6 Itamar Heim 2013-09-23 07:30:51 UTC
closing as this should be in 3.3 (doing so in bulk, so may be incorrect)


Note You need to log in before you can comment on or make changes to this bug.