Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 906416

Summary: ovirt-engine-setup: failed to create engine db because of locale issue
Product: [Retired] oVirt Reporter: Mark Wu <wudxw>
Component: ovirt-engine-coreAssignee: Eli Mesika <emesika>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 3.2CC: acathrow, baumanmo, eedri, iheim, jkt, perobins
Target Milestone: ---   
Target Release: 3.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 921524 (view as bug list) Environment:
Last Closed: 2013-09-23 07:30:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 921524    

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)