Bug 885900 - engine-setup fails in db creation for all in one configuration
Summary: engine-setup fails in db creation for all in one configuration
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-core
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Nobody's working on this, feel free to take it
QA Contact:
URL:
Whiteboard: infra
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-10 23:35 UTC by Gianluca Cecchi
Modified: 2013-02-13 03:45 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-13 03:45:50 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)
engine-setup log (70.44 KB, text/x-log)
2012-12-10 23:35 UTC, Gianluca Cecchi
no flags Details
db install log file (1.78 KB, text/plain)
2012-12-10 23:37 UTC, Gianluca Cecchi
no flags Details

Description Gianluca Cecchi 2012-12-10 23:35:51 UTC
Created attachment 661183 [details]
engine-setup log

Description of problem:
create database error when configuring all-in-one in Fedora 18 with ovirt-stable repo enabled

Version-Release number of selected component (if applicable):
ovirt-engine-3.1.0-4.fc17.noarch

How reproducible:
always

Steps to Reproduce:
1. install Fedora final beta from netinst.iso and update (up to 10 Dec 2012)
2. yum localinstall http://ovirt.org/releases/ovirt-release-fedora.noarch.rpm and 
yum install ovirt-engine-setup-plugin-allinone
3. run engine-setup 
  
Actual results:
Setting Database Security...                                       [ DONE ]
Creating Database...                                            [ ERROR ]
Database creation failed

Expected results:
completion of initial setup

Additional info:

oVirt Engine will be installed using the following configuration:
=================================================================
override-httpd-config:         yes
http-port:                     80
https-port:                    443
host-fqdn:                     f18ov31.localdomain.local
auth-pass:                     ********
org-name:                      Tekka oVirt
default-dc-type:               NFS
db-remote-install:             local
db-local-pass:                 ********
nfs-mp:                        /ISO
iso-domain-name:               ISO
override-iptables:             yes
config-allinone:               yes
storage-path:                  /DATA
superuser-pass:                ********
Proceed with the configuration listed above? (yes|no): ys
Proceed with the configuration listed above? (yes|no): yes

Installing:
AIO: Validating CPU Compatibility...                               [ DONE ]
Configuring oVirt-engine...                                        [ DONE ]
Creating CA...                                                     [ DONE ]
Editing JBoss Configuration...                                     [ DONE ]
Setting Database Configuration...                                  [ DONE ]
Setting Database Security...                                       [ DONE ]
Creating Database...                                            [ ERROR ]
Database creation failed
Please check log file /var/log/ovirt-engine/engine-setup_2012_12_11_00_06_22.log for more information
Exception in thread libvirtEventLoop (most likely raised during interpreter shutdown):
Traceback (most recent call last):
  File "/usr/lib64/python2.7/threading.py", line 551, in __bootstrap_inner
  File "/usr/lib64/python2.7/threading.py", line 504, in run
  File "/usr/share/vdsm/libvirtev.py", line 406, in virEventLoopPureRun
  File "/usr/share/vdsm/libvirtev.py", line 233, in run_loop
  File "/usr/share/vdsm/libvirtev.py", line 212, in run_once
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'time'

Comment 1 Gianluca Cecchi 2012-12-10 23:37:29 UTC
Created attachment 661184 [details]
db install log file

List of rpm packages installed:
ovirt-release-fedora-4-2.noarch
ovirt-engine-3.1.0-4.fc17.noarch
ovirt-engine-config-3.1.0-4.fc17.noarch
ovirt-engine-dbscripts-3.1.0-4.fc17.noarch
ovirt-engine-sdk-3.2.0.2-1.fc18.noarch
ovirt-engine-userportal-3.1.0-4.fc17.noarch
ovirt-engine-tools-common-3.1.0-4.fc17.noarch
ovirt-iso-uploader-3.1.0-0.git1841d9.fc17.noarch
ovirt-engine-webadmin-portal-3.1.0-4.fc17.noarch
ovirt-engine-setup-3.1.0-4.fc17.noarch
ovirt-engine-restapi-3.1.0-4.fc17.noarch
ovirt-image-uploader-3.1.0-0.git9c42c8.fc17.noarch
ovirt-engine-notification-service-3.1.0-4.fc17.noarch
ovirt-engine-backend-3.1.0-4.fc17.noarch
ovirt-engine-genericapi-3.1.0-4.fc17.noarch
ovirt-log-collector-3.1.0-0.git10d719.fc17.noarch
ovirt-engine-setup-plugin-allinone-3.1.0-4.fc17.noarch
vdsm-python-4.10.0-11.fc18.x86_64
vdsm-4.10.0-11.fc18.x86_64
vdsm-bootstrap-4.10.0-11.fc18.noarch

Comment 2 Gianluca Cecchi 2012-12-10 23:38:45 UTC
I would like to test similar package as in 
https://bugzilla.redhat.com/show_bug.cgi?id=884444#c3

Comment 3 Alex Lourie 2013-01-23 21:47:45 UTC
Gianluca

Could you please check if this still happens with upstream latest master?

Thanks.

Comment 4 MOB 2013-02-06 16:46:27 UTC
I've tried to install ovirt-engine-3.2.0-2.fc18.noarch on Fedora 18 (3.6.10-4.fc18.x86_64) postgresql-9.2.2-1.fc18.x86_64

and it stopped with the same error message

Thanks,
MOB

Comment 5 Sandro Bonazzola 2013-02-08 08:58:33 UTC
I can't reproduce this on a F18 clean install + yum update and ovirt 3.2 from beta repository.
/usr/share/vdsm/libvirtev.py doesn't exists anymore in vdsm-4.10.3-6.fc18.x86_64.

So with an updated system it is impossible to have the same error as in comment #0. 
MOB, Gianluca, can you run a yum update and try again?

Comment 6 MOB 2013-02-08 20:00:38 UTC
Performed a clean install of F18. No error during DB creation.

Comment 7 Alex Lourie 2013-02-10 13:13:47 UTC
Gianluca

Comments 5 and 6 say that it is no longer reproduced. Can we closed this?

Comment 8 Gianluca Cecchi 2013-02-10 22:31:58 UTC
I confirm that I enabled stable+beta ovirt repo on my updated f18 system and after purge and run of
yum install ovirt-engine-setup-plugin-allinone

now I successfully repeated the steps:

engine-setup
...

oVirt Engine will be installed using the following configuration:
=================================================================
override-httpd-config:         yes
http-port:                     80
https-port:                    443
host-fqdn:                     tekkaman.localdomain.local
auth-pass:                     ********
org-name:                      Tekka
default-dc-type:               NFS
db-remote-install:             local
db-local-pass:                 ********
nfs-mp:                        /ISO
override-firewall:             IPTables
config-allinone:               yes
storage-path:                  /DATA
superuser-pass:                ********
Proceed with the configuration listed above? (yes|no): yes

Installing:
AIO: Validating CPU Compatibility...                              [ DONE ]
AIO: Adding firewall rules...                                     [ DONE ]
Configuring oVirt Engine...                                       [ DONE ]
Configuring JVM...                                                [ DONE ]
Creating CA...                                                    [ DONE ]
Updating ovirt-engine service...                                  [ DONE ]
Setting Database Configuration...                                 [ DONE ]
Setting Database Security...                                      [ DONE ]
Creating Database...                                              [ DONE ]
Updating the Default Data Center Storage Type...                  [ DONE ]
Editing oVirt Engine Configuration...                             [ DONE ]
Editing Postgresql Configuration...                               [ DONE ]
Configuring the Default ISO Domain...                             [ DONE ]
Configuring Firewall...                                           [ DONE ]
Starting ovirt-engine Service...                                  [ DONE ]
Configuring HTTPD...                                              [ DONE ]
AIO: Creating storage directory...                                [ DONE ]
AIO: Adding Local Datacenter and cluster...                       [ DONE ]
AIO: Adding Local host (This may take several minutes)...         [ DONE ]
AIO: Adding Local storage (This may take several minutes)...      [ DONE ]

 **** Installation completed successfully ******

     (Please allow oVirt Engine a few moments to start up.....)

**** To access oVirt Engine browse to http://tekkaman.localdomain.local:80 ****

Additional information:
 * oVirt Engine CA SSL Certificate SHA1 fingerprint: 55:D5:F1:1F:1A:65:45:61:D5:17:A5:74:36:84:65:3B:E5:53:6E:84
 * SSH Public key fingerprint: fe:c6:e1:de:5d:44:dc:30:cb:12:a3:f7:01:3a:49:83
 * A default ISO share has been created on this host.
   If IP based access restrictions are required, please edit /ISO entry in /etc/exports
 * The firewall has been updated, the old iptables configuration file was saved to /var/lib/ovirt-engine/backups/iptables.backup.232702-02102013_2580
 * The installation log file is available at: /var/log/ovirt-engine/engine-setup_2013_02_10_23_24_05.log
 * Please use the user "admin" and password specified in order to login into oVirt Engine
 * To configure additional users, first configure authentication domains using the 'engine-manage-domains' utility

Comment 9 Itamar Heim 2013-02-13 03:45:50 UTC
closing based on comment 8


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