[Users] Problem on creating database

Stephen Liu satimis at yahoo.com
Fri Nov 9 10:08:17 UTC 2012


Hi Oved,


This time I used the full path


$ cd /home/satimis/ovirt-engine/backend/manager/dbscripts
$ sudo ./create_db_devel.sh -u postgres
[sudo] password for satimis: 
Running original create_db script...
Creating the database: engine
user name is: postgres
Creating tables...
Creating functions...
.....
Creating stored procedures from vds_groups_sp.sql ...
Creating stored procedures from vds_spm_id_map_sp.sql ...
Creating stored procedures from vds_sp.sql ...
Creating stored procedures from vm_device_sp.sql ...
Creating stored procedures from vm_pool_maps_sp.sql ...
Creating stored procedures from vm_pools_sp.sql ...
Creating stored procedures from vms_sp.sql ...
Creating stored procedures from vm_templates_sp.sql ...
Running  upgrade sql script upgrade/post_upgrade/0010_add_object_column_white_list_table.sql ...
Setting development configuration values ...
Development setting done.


it worked.

What is the correct command/step creating $OVIRT_HOME which includes /home/satimis/ovirt-engine ?  Thanks


Continued
========

$ cd ../../..
$ mvn clean install

It took long time to complete


Deploy 
======

$ ls
backend           config      ear       LICENSE   packaging
build-tools-root  deployment  frontend  Makefile  pom.xml

$ cd ear/
$ mvn clean install -Pdep,setup
......
[INFO] Executed tasks
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.948s
[INFO] Finished at: Fri Nov 09 17:39:27 HKT 2012
[INFO] Final Memory: 16M/331M
[INFO] ------------------------------------------------------------------------


$ mvn clean install -Pdep
.......
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.990s
[INFO] Finished at: Fri Nov 09 17:40:38 HKT 2012
[INFO] Final Memory: 16M/331M
[INFO] ------------------------------------------------------------------------


Copying vdsm bootstrap files (this step ignored)


Deploying engine-config & engine-manage-domains 
========================================

$ cd ..

$ make create_dirs
*** Creating Directories
install: cannot create directory `/usr/local/share/ovirt-engine': Permission denied
make: *** [create_dirs] Error 1


Again;
=====
$ sudo make create_dirs
[sudo] password for satimis: 
*** Creating Directories


$ make install_tools
make: *** No rule to make target `install_tools'.  Stop.

$ sudo make install_tools
make: *** No rule to make target `install_tools'.  Stop.

Encountered problem here.  Please help


Continued
========

$ make install_config
*** Deploying engine-config & engine-manage-domains
# Configuration files for the configuration tool:
install -m 644 backend/manager/tools/engine-config/src/main/resources/engine-config.conf /usr/local/etc/ovirt-engine/engine-config/
install: cannot create regular file `/usr/local/etc/ovirt-engine/engine-config/engine-config.conf': Permission denied
make: *** [install_config] Error 1


Again;
=====
$ sudo make install_config
*** Deploying engine-config & engine-manage-domains
# Configuration files for the configuration tool:
install -m 644 backend/manager/tools/engine-config/src/main/resources/engine-config.conf /usr/local/etc/ovirt-engine/engine-config/
install -m 644 backend/manager/tools/engine-config/src/main/resources/engine-config.*properties /usr/local/etc/ovirt-engine/engine-config/
install -m 644 backend/manager/tools/engine-config/src/main/resources/log4j.xml /usr/local/etc/ovirt-engine/engine-config/
# Main program for the configuration tool:
install -m 750 backend/manager/tools/engine-config/src/main/resources/engine-config /usr/local/share/ovirt-engine/bin/engine-config.sh
ln -s /usr/local/share/ovirt-engine/bin/engine-config.sh /usr/local/bin/engine-config
# Configuration files for the domain management tool:
install -m 644 backend/manager/modules/utils/src/main/resources/engine-manage-domains.conf /usr/local/etc/ovirt-engine/engine-manage-domains/
install -m 644 backend/manager/modules/utils/src/main/resources/engine-manage-domains/log4j.xml /usr/local/etc/ovirt-engine/engine-manage-domains/
# Main program for the domain management tool:
install -m 750 backend/manager/conf/kerberos/engine-manage-domains /usr/local/share/ovirt-engine/bin/engine-manage-domains.sh
ln -s /usr/local/share/ovirt-engine/bin/engine-manage-domains.sh /usr/local/bin/engine-manage-domains

It worked.


$ sudo ps ax | grep java
 8392 pts/0    S+     0:00 grep --color=auto java

jboss is running ???


I stopped here without proceeding further in anticipating to rectify previous errors first.

Please help.  TIA

B.R.
Stephen L







>________________________________
> From: Oved Ourfalli <ovedo at redhat.com>
>To: Stephen Liu <satimis at yahoo.com> 
>Cc: users at ovirt.org; Yair Zaslavsky <yzaslavs at redhat.com> 
>Sent: Friday, November 9, 2012 4:38 PM
>Subject: Re: [Users] Problem on creating database
> 
>Hey Stephen,
>
>Is that possible that OVIRT_HOME is not set properly?
>Maven looks for pom.xml file in the directory tha mvn command is run from, and according to the error there is no such file there (in /home/satimis).
>
>Have a nice day,
>Oved
>----- Original Message -----
>> From: "Stephen Liu" <satimis at yahoo.com>
>> To: "Yair Zaslavsky" <yzaslavs at redhat.com>
>> Cc: users at ovirt.org
>> Sent: Friday, November 9, 2012 10:18:46 AM
>> Subject: Re: [Users] Problem on creating database
>> 
>> 
>> 
>> Hi,
>> 
>> On running further to install oVirt I encountered following problem;
>> 
>> Steps performed;
>> 
>> $ cd $OVIRT_HOME
>> 
>> $ mvn clean install
>> /usr/lib/jvm/java
>> [INFO] Scanning for projects...
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 0.110s
>> [INFO] Finished at: Fri Nov 09 12:23:57 HKT 2012
>> [INFO] Final Memory: 5M/115M
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] The goal you specified requires a project to execute but
>> there is no POM in this directory (/home/satimis). Please verify you
>> invoked Maven from the correct directory. -> [Help 1]
>> [ERROR]
>> [ERROR] To see the full stack trace of the errors, re-run Maven with
>> the -e switch.
>> [ERROR] Re-run Maven using the -X switch to enable full debug
>> logging.
>> [ERROR]
>> [ERROR] For more information about the errors and possible solutions,
>> please read the following articles:
>> [ERROR] [Help 1]
>> http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException
>> 
>> Failure ?
>> 
>> 
>> $ mvn --version
>> /usr/lib/jvm/java
>> Apache Maven 3.0.4 (rNON-CANONICAL_2012-10-24_11-25_mockbuild;
>> 2012-10-24 19:25:04+0800)
>> Maven home: /usr/share/maven
>> Java version: 1.7.0_09-icedtea, vendor: Oracle Corporation
>> Java home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9.x86_64/jre
>> Default locale: en_US, platform encoding: UTF-8
>> OS name: "linux", version: "3.6.5-1.fc17.x86_64", arch: "amd64",
>> family: "unix"
>> 
>> 
>> B.R.
>> Stephen L
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> From: Yair Zaslavsky <yzaslavs at redhat.com>
>> To: Stephen Liu <satimis at yahoo.com>
>> Cc: users at ovirt.org
>> Sent: Friday, November 9, 2012 2:53 PM
>> Subject: Re: [Users] Problem on creating database
>> 
>> 
>> 
>> 
>> Hi, I'm not sure at what point exactly you see this dropdb failure.
>> I checked the code at the dbscripts folder, and the only place where
>> dropdb is run, is at the beginning of execution of create_db.sh
>> which is run from create_db_devel.sh
>> In addition, when I tried to create with non existing DB, I saw the
>> same print, but the DB was still created.
>> 
>> 
>> Please elaborate on what is your exact problem?
>> Do you manage to perform psql engine postgres after running the
>> script?
>> You can also send us create_db.sh.log
>> 
>> 
>> Thanks!
>> 
>> 
>> 
>> 
>> From: "Stephen Liu" <satimis at yahoo.com>
>> To: users at ovirt.org
>> Sent: Friday, November 9, 2012 7:09:05 AM
>> Subject: [Users] Problem on creating database
>> 
>> 
>> 
>> Hi all,
>> 
>> OS - Fedora 17 64bit
>> Manual:
>> http://wiki.ovirt.org/wiki/Building_Ovirt_Engine#Prerequisites
>> 
>> 
>> Creating the database
>> =================
>> 
>> $ ls /home/satimis/ | grep ovirt-engine
>> ovirt-engine
>> 
>> $OVIRT_HOME = /home/satimis
>> 
>> $ cd /home/satimis/ovirt-engine/backend/manager/dbscripts
>> $ sudo ./create_db_devel.sh -u postgres
>> Running original create_db script...
>> Creating the database: engine
>> dropdb: database removal failed: ERROR: database "engine" does not
>> exist
>> user name is: postgres
>> Creating tables...
>> Creating functions...
>> Creating common functions...
>> Inserting data ...
>> .....
>> .....
>> Running upgrade sql script
>> upgrade/post_upgrade/0010_add_object_column_white_list_table.sql ...
>> Setting development configuration values ...
>> Development setting done.
>> 
>> 
>> dropdb: database removal failed: ERROR: database "engine" does not
>> exist
>> 
>> Please advise how to fix the problem? TIA
>> 
>> B.R.
>> Stephen L
>> 
>> _______________________________________________
>> Users mailing list
>> Users at ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>> 
>> 
>> 
>> 
>> _______________________________________________
>> Users mailing list
>> Users at ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>> 
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20121109/0f0c4ba5/attachment-0001.html>


More information about the Users mailing list