[Users] installing ovirt-engine on fc17 - postgresql service cannot be executed from /etc/init.d/postgresql
by Alexey Kardashevskiy
Hi!
I am trying to configure ovirt-engine and having a problem that it cannot
finish because cannot create database because there is no
/etc/init.d/postgresql. How do I fix my setup? Some packages missing? Below
is some information. Thanks.
The system is Fedora17/_ppc64_ (not x86 if it matters) with my 3.6 kernel.
Below is the console output after running "postgresql-setup initdb" and
"engine-setup" and the log produced by the "engine-setup" script.
[root@vpl2 aik]# yum info ovirt-engine
Loaded plugins: downloadonly, versionlock
Installed Packages
Name : ovirt-engine
Arch : noarch
Version : 3.1.0
Release : 2.fc17
Size : 1.3 M
Repo : installed
From repo : ovirt-stable
Summary : Management server for Open Virtualization
URL : http://www.ovirt.org
License : ASL 2.0
Description : oVirt Engine is a feature-rich server virtualization management
: system that provides advanced capabilities for managing the Open
: virtualization infrastructure for Servers and Desktops.
[root@vpl2 aik]# ls -la /etc/init.d/postgresql
ls: cannot access /etc/init.d/postgresql: No such file or directory
[root@vpl2 aik]# postgresql-setup initdb
Initializing database ... OK
[root@vpl2 aik]# engine-setup
Welcome to oVirt Engine setup utility
WARNING: oVirt Engine setup has already been run on this host.
To remove all configuration and reset oVirt Engine please run engine-cleanup.
Please be advised that executing engine-setup without cleanup is not supported.
Would you like to proceed? (yes|no): no
Installation stopped, Goodbye.
[root@vpl2 aik]# engine-setup
Welcome to oVirt Engine setup utility
WARNING: oVirt Engine setup has already been run on this host.
To remove all configuration and reset oVirt Engine please run engine-cleanup.
Please be advised that executing engine-setup without cleanup is not supported.
Would you like to proceed? (yes|no): yes
HTTP Port [80] :
HTTPS Port [443] :
Host fully qualified domain name, note that this name should be fully
resolvable [vpl2.ozlabs.ibm.com] :
Password for Administrator (admin@internal) :
Confirm password :
Organization Name for the Certificate: ozlabs
The default storage type you will be using ['NFS'| 'FC'| 'ISCSI'] [NFS] :
Enter DB type for installation ['remote'| 'local'] [local] :
Local database password :
Confirm password :
Should the installer configure NFS share on this server to be used as an
ISO Domain? ['yes'| 'no'] [yes] :
Local ISO domain path: /data/iso
Display name for the ISO Domain: local-iso-share
Firewall ports need to be opened.
You can let the installer configure iptables automatically overriding the
current configuration. The old configuration will be backed up.
Alternately you can configure the firewall later using an example iptables
file found under /usr/share/ovirt-engine/conf/iptables.example
Configure iptables ? ['yes'| 'no']: yes
oVirt Engine will be installed using the following configuration:
=================================================================
http-port: 80
https-port: 443
host-fqdn: vpl2.ozlabs.ibm.com
auth-pass: ********
org-name: ozlabs
default-dc-type: NFS
db-remote-install: local
db-local-pass: ********
nfs-mp: /data/iso
iso-domain-name: local-iso-share
config-nfs: yes
override-iptables: yes
Proceed with the configuration listed above? (yes|no): yes
Installing:
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_11_12_16_06_23.log for more information
[root@vpl2 aik]# ps ax|grep postgresql
13655 pts/2 S+ 0:00 grep --color=auto postgresql
*************************
Here is a part of the
/var/log/ovirt-engine/engine-setup_2012_11_12_16_06_23.log , can post the
whole thing but it is quite big and seems to be irrelevant to the issue.
2012-11-12 16:07:01::DEBUG::engine-setup::940::root:: engine db creation is
logged at /var/log/ovirt-engine//engine-db-install-2012_11_12_16_07_01.log
2012-11-12 16:07:01::DEBUG::common_utils::309::root:: Executing command -->
'/usr/share/ovirt-engine/dbscripts/engine-db-install.sh -l
engine-db-install-2012_11_12_16_07_01.log -w ******** -u postgres -s
localhost -p 5432 -r local'
2012-11-12 16:07:01::DEBUG::common_utils::335::root:: output = Running
local installation
[engine-db-install] postgresql service cannot be executed from
/etc/init.d/postgresql
2012-11-12 16:07:01::DEBUG::common_utils::336::root:: stderr =
2012-11-12 16:07:01::DEBUG::common_utils::337::root:: retcode = 1
2012-11-12 16:07:01::DEBUG::setup_sequences::62::root:: Traceback (most
recent call last):
File "/usr/share/ovirt-engine/scripts/setup_sequences.py", line 60, in run
function()
File "/bin/engine-setup", line 953, in _createDB
output, rc = utils.execCmd(cmd, None, True,
output_messages.ERR_DB_CREATE_FAILED, masked_value_set)
File "/usr/share/ovirt-engine/scripts/common_utils.py", line 340, in execCmd
raise Exception(msg)
Exception: Database creation failed
2012-11-12 16:07:01::DEBUG::engine-setup::1742::root:: *** The following
params were used as user input:
2012-11-12 16:07:01::DEBUG::engine-setup::1747::root::
override-httpd-config: yes
2012-11-12 16:07:01::DEBUG::engine-setup::1747::root:: http-port: 80
2012-11-12 16:07:01::DEBUG::engine-setup::1747::root:: https-port: 443
2012-11-12 16:07:01::DEBUG::engine-setup::1747::root:: mac-range:
00:1A:4A:3D:8D:00-00:1A:4A:3D:8D:FF
2012-11-12 16:07:01::DEBUG::engine-setup::1747::root:: host-fqdn:
vpl2.ozlabs.ibm.com
2012-11-12 16:07:01::DEBUG::engine-setup::1747::root:: auth-pass: ********
2012-11-12 16:07:01::DEBUG::engine-setup::1747::root:: org-name: ozlabs
2012-11-12 16:07:01::DEBUG::engine-setup::1747::root:: default-dc-type: NFS
2012-11-12 16:07:01::DEBUG::engine-setup::1747::root:: db-remote-install: local
2012-11-12 16:07:01::DEBUG::engine-setup::1747::root:: db-host: localhost
2012-11-12 16:07:01::DEBUG::engine-setup::1747::root:: db-local-pass: ********
2012-11-12 16:07:01::DEBUG::engine-setup::1747::root:: nfs-mp: /data/iso
2012-11-12 16:07:01::DEBUG::engine-setup::1747::root:: iso-domain-name:
local-iso-share
2012-11-12 16:07:01::DEBUG::engine-setup::1747::root:: config-nfs: yes
2012-11-12 16:07:01::DEBUG::engine-setup::1747::root:: override-iptables: yes
2012-11-12 16:07:01::ERROR::engine-setup::2376::root:: Traceback (most
recent call last):
File "/bin/engine-setup", line 2370, in <module>
main(confFile)
File "/bin/engine-setup", line 2159, in main
runSequences()
File "/bin/engine-setup", line 2105, in runSequences
controller.runAllSequences()
File "/usr/share/ovirt-engine/scripts/setup_controller.py", line 54, in
runAllSequences
sequence.run()
File "/usr/share/ovirt-engine/scripts/setup_sequences.py", line 154, in run
step.run()
File "/usr/share/ovirt-engine/scripts/setup_sequences.py", line 60, in run
function()
File "/bin/engine-setup", line 953, in _createDB
output, rc = utils.execCmd(cmd, None, True,
output_messages.ERR_DB_CREATE_FAILED, masked_value_set)
File "/usr/share/ovirt-engine/scripts/common_utils.py", line 340, in execCmd
raise Exception(msg)
Exception: Database creation failed
--
Alexey
12 years
[Users] Second cdrom device
by Cristian Falcas
Hi,
Can I somehow attach a second cdrom device to a virtual machine? I was
thinking on adding the virtio drivers for Windows OSs this way.
Best regards,
Cristian
12 years
[Users] could not add local storage domain
by Christian Lox
Hi all.
Trying to set up ovirt on a fedora 17 host.
engine-setup fails with:
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... [ 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 (iptables)... [ DONE ]
Starting JBoss Service... [ DONE ]
Handling 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)... [ ERROR ]
Error: could not add local storage domain
Please check log file /var/log/ovirt-engine/engine-setup_2012_11_03_19_15_53.log for more information
[root(a)x.y.zlox]# vim /var/log/ovirt-engine/engine-setup_2012_11_03_19_15_53.log
2012-11-03 19:18:22::INFO::all_in_one_100::286::root:: Adding local storage domain
2012-11-03 19:19:22::ERROR::all_in_one_100::289::root:: Traceback (most recent call last):
File "/usr/share/ovirt-engine/scripts/plugins/all_in_one_100.py", line 287, in addStorageDomain
controller.CONF["API_OBJECT"].storagedomains.add(sdParams)
File "/usr/lib/python2.7/site-packages/ovirtsdk/infrastructure/brokers.py", line 3587, in add
body=ParseHelper.toXml(storagedomain))
File "/usr/lib/python2.7/site-packages/ovirtsdk/infrastructure/proxy.py", line 117, in add
return self.request('POST', url, body, headers)
File "/usr/lib/python2.7/site-packages/ovirtsdk/infrastructure/proxy.py", line 128, in request
last=last)
File "/usr/lib/python2.7/site-packages/ovirtsdk/infrastructure/errors.py", line 98, in __init__
f_detail = params.parseString(res)
File "/usr/lib/python2.7/site-packages/ovirtsdk/xml/params.py", line 19340, in parseString
doc = parsexml_(StringIO(inString))
File "/usr/lib/python2.7/site-packages/ovirtsdk/xml/params.py", line 73, in parsexml_
doc = etree_.parse(*args, **kwargs)
File "lxml.etree.pyx", line 2957, in lxml.etree.parse (src/lxml/lxml.etree.c:59972)
File "parser.pxi", line 1550, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:87477)
File "parser.pxi", line 1578, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:87759)
File "parser.pxi", line 1457, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:86558)
File "parser.pxi", line 965, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:83179)
File "parser.pxi", line 569, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:79352)
File "parser.pxi", line 650, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:80249)
File "parser.pxi", line 590, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:79576)
XMLSyntaxError: Space required after the Public Identifier, line 1, column 47
2012-11-03 19:19:22::DEBUG::setup_sequences::62::root:: Traceback (most recent call last):
File "/usr/share/ovirt-engine/scripts/setup_sequences.py", line 60, in run
function()
File "/usr/share/ovirt-engine/scripts/plugins/all_in_one_100.py", line 290, in addStorageDomain
raise Exception(ERROR_ADD_LOCAL_DOMAIN)
Exception: Error: could not add local storage domain
2012-11-03 19:19:22::DEBUG::engine-setup::1742::root:: *** The following params were used as user input:
2012-11-03 19:19:22::DEBUG::engine-setup::1747::root:: override-httpd-config: yes
2012-11-03 19:19:22::DEBUG::engine-setup::1747::root:: http-port: 80
2012-11-03 19:19:22::DEBUG::engine-setup::1747::root:: https-port: 443
2012-11-03 19:19:22::DEBUG::engine-setup::1747::root:: mac-range: 00:1A:4A:2E:F3:00-00:1A:4A:2E:F3:FF
2012-11-03 19:19:22::DEBUG::engine-setup::1747::root:: host-fqdn: x.y.z
2012-11-03 19:19:22::DEBUG::engine-setup::1747::root:: auth-pass: ********
2012-11-03 19:19:22::DEBUG::engine-setup::1747::root:: org-name: Simon Byte
2012-11-03 19:19:22::DEBUG::engine-setup::1747::root:: default-dc-type: NFS
2012-11-03 19:19:22::DEBUG::engine-setup::1747::root:: db-remote-install: local
2012-11-03 19:19:22::DEBUG::engine-setup::1747::root:: db-host: localhost
2012-11-03 19:19:22::DEBUG::engine-setup::1747::root:: db-local-pass: ********
2012-11-03 19:19:22::DEBUG::engine-setup::1747::root:: nfs-mp: /data/ovirt/iso
2012-11-03 19:19:22::DEBUG::engine-setup::1747::root:: iso-domain-name: iso
2012-11-03 19:19:22::DEBUG::engine-setup::1747::root:: config-nfs: yes
2012-11-03 19:19:22::DEBUG::engine-setup::1747::root:: override-iptables: no
2012-11-03 19:19:22::DEBUG::engine-setup::1747::root:: config-allinone: yes
2012-11-03 19:19:22::DEBUG::engine-setup::1747::root:: storage-path: /data/ovirt/vdsm
2012-11-03 19:19:22::DEBUG::engine-setup::1747::root:: superuser-pass: ********
2012-11-03 19:19:22::ERROR::engine-setup::2376::root:: Traceback (most recent call last):
File "/bin/engine-setup", line 2370, in <module>
main(confFile)
File "/bin/engine-setup", line 2159, in main
runSequences()
File "/bin/engine-setup", line 2105, in runSequences
controller.runAllSequences()
File "/usr/share/ovirt-engine/scripts/setup_controller.py", line 54, in runAllSequences
sequence.run()
File "/usr/share/ovirt-engine/scripts/setup_sequences.py", line 154, in run
step.run()
File "/usr/share/ovirt-engine/scripts/setup_sequences.py", line 60, in run
function()
File "/usr/share/ovirt-engine/scripts/plugins/all_in_one_100.py", line 290, in addStorageDomain
raise Exception(ERROR_ADD_LOCAL_DOMAIN)
Exception: Error: could not add local storage domain
XMLSyntaxError: Space required after the Public Identifier, line 1, column 47 looks somewhat strange to me.
Any hint what causes this error?
Thanks,
Christian
P.S.: The installation failed several times before that, until i figured out that the engine-setup needs to login in via ssh; we had configured sshd to allow only public key auth, and this raised an error.
12 years
[Users] Spice Console Access
by Shaun Glass
Morning All,
I have oVirt 3.1 running on an F17 installation(All In One). When on the
same network as the said server, via webadmin, I can open the console to
VM's setup to use Spice.
However, when I come in from the outside via an ADSL router no joy. Please
note, I use my same laptop each time. I have the following setup :
Port 22 -> Port 22 (oVirt Server) Works
Port 80 -> Port 80 (oVirt Server) Works
Port 443 -> Port 443 (oVirt Server) Works
Ports 5900 - 5910 -> Ports 5900 - 5910 (oVirt Server) ???
I have run :
[root@ovirt ~]# vdsClient -s 0 list | grep displayPort
displayPort = 5900
[root@ovirt ~]#
Hence the port forward range. All I get is a window opening, cursor becomes
an X and after about 30 seconds it closes.
Any help would be much appreciated.
Regards
Shaun
12 years
[Users] Ovirt Backup
by EricD
Hi,
How do you backup your ovirt-engine ? and what's the backup recovery
procedure ?
I'm concern about recovering my ovirt-engine if it crashed due to hardware
issue, ...
I need your suggestion about that.
Regards,
12 years
Re: [Users] fw: Migrating ovirt-engine to new server
by Neil
On Wed, Oct 3, 2012 at 4:06 PM, Itamar Heim <iheim(a)redhat.com> wrote:
> On 10/03/2012 04:04 PM, Neil wrote:
>>
>> Thanks for coming back to me.
>>
>> On Wed, Oct 3, 2012 at 4:00 PM, Itamar Heim <iheim(a)redhat.com> wrote:
>>
>>> do you need to keep the VMs, or just move the LUNs to create a new one?
>>> if you just want to create a new one, you just need to clear the LUNs (DD
>>> over them) so engine will let you use them (or remove them from first
>>> engine
>>> which will format them for same end goal.
>>
>>
>> I need to keep the VM's unfortunately.
>> Logically speaking all I need to do is detach the main data domain
>> from one ovirt-engine and re-attach it to the new ovirt-engine.
>
> sadly, not that easy yet (though just discussed today the need to push this
> feature).
>
> easiest would be to export them to an nfs export domain, re-purpose the
> LUNs, and import to the new system.
>
> if not feasible, need to hack a bit probably.
Oh crumbs! I thought that was wishful thinking though :)
Exporting the VM's to NFS will take too long due to the total size
being 4TB and the VM's are a mail, proxy and pdc servers so getting
that much downtime won't be possible. Is attempting the upgrade
path(http://wiki.ovirt.org/wiki/OVirt_3.0_to_3.1_upgrade) again my
only option then?
Even if I manage to get the "upgrade" working will I still need to
export/import the VM's via NFS or will the datacentre move across once
it can be detached?
Thanks!
Neil
12 years
[Users] Unable to establish spice session
by Alex Leonhardt
This is a multi-part message in MIME format.
--------------050202000006070109080707
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Hi,
Since today I'm unable to establish a spice session to any/all VMs - the
ony thing I see in the (local) logs is this :
Nov 1 23:29:02 ale spice: _=/usr/bin/env
Nov 1 23:29:03 ale spice: (remote-viewer:5231): GSpiceController-DEBUG:
controller.vala:187: new socket client, reading init header
Nov 1 23:29:05 ale spice: ** (remote-viewer:5231): DEBUG: unimplemented
property: send-cad=FALSE
Nov 1 23:29:05 ale spice: ** (remote-viewer:5231): DEBUG: unimplemented
property: secure-channels=((GStrv*) 0x1e83270)
Nov 1 23:29:06 ale spice: remote-viewer execution failed
Anyone any idea ?
Alex
--------------050202000006070109080707
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font size="-1"><font face="Tahoma">Hi,<br>
<br>
Since today I'm unable to establish a spice session to any/all
VMs - the ony thing I see in the (local) logs is this : <br>
<br>
Nov 1 23:29:02 ale spice: _=/usr/bin/env<br>
Nov 1 23:29:03 ale spice: (remote-viewer:5231):
GSpiceController-DEBUG: controller.vala:187: new socket client,
reading init header<br>
Nov 1 23:29:05 ale spice: ** (remote-viewer:5231): DEBUG:
unimplemented property: send-cad=FALSE<br>
Nov 1 23:29:05 ale spice: ** (remote-viewer:5231): DEBUG:
unimplemented property: secure-channels=((GStrv*) 0x1e83270)<br>
Nov 1 23:29:06 ale spice: remote-viewer execution failed<br>
<br>
Anyone any idea ? <br>
<br>
Alex<br>
<br>
</font></font>
</body>
</html>
--------------050202000006070109080707--
12 years
[Users] Unable to import VM
by Daniel Rowe
Hi
I was able to import one VM from libvirt. I am able to get the VM into the
export storage fine.
Any VMs I try and import after the first one fails and I get below in the
logs any way to work around this?
2012-11-12 07:44:56,366 ERROR [org.ovirt.engine.core.bll.ImportVmCommand]
(pool-3-thread-46) [7c3538ee] Command
org.ovirt.engine.core.bll.ImportVmCommand throw exception:
org.springframework.dao.DataIntegrityViolationException:
CallableStatementCallback; SQL [{call insertsnapshot(?, ?, ?, ?, ?, ?, ?,
?)}]; ERROR: duplicate key value violates unique constraint "pk_snapshots"
Detail: Key (snapshot_id)=(00000000-0000-0000-0000-000000000000) already
exists.
Where: SQL statement "INSERT INTO snapshots(
snapshot_id,
status,
vm_id,
snapshot_type,
description,
creation_date,
app_list,
vm_configuration)
VALUES(
v_snapshot_id,
v_status,
v_vm_id,
v_snapshot_type,
v_description,
v_creation_date,
v_app_list,
v_vm_configuration)"
PL/pgSQL function "insertsnapshot" line 3 at SQL statement; nested
exception is org.postgresql.util.PSQLException: ERROR: duplicate key value
violates unique constraint "pk_snapshots"
Detail: Key (snapshot_id)=(00000000-0000-0000-0000-000000000000) already
exists.
Where: SQL statement "INSERT INTO snapshots(
snapshot_id,
status,
vm_id,
snapshot_type,
description,
creation_date,
app_list,
vm_configuration)
VALUES(
v_snapshot_id,
v_status,
v_vm_id,
v_snapshot_type,
v_description,
v_creation_date,
v_app_list,
v_vm_configuration)"
PL/pgSQL function "insertsnapshot" line 3 at SQL statement
at
org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:228)
[spring-jdbc-2.5.6.SEC02.jar:2.5.6.SEC02]
at
org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:72)
[spring-jdbc-2.5.6.SEC02.jar:2.5.6.SEC02]
at
org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:952)
[spring-jdbc-2.5.6.SEC02.jar:2.5.6.SEC02]
at
org.springframework.jdbc.core.JdbcTemplate.call(JdbcTemplate.java:985)
[spring-jdbc-2.5.6.SEC02.jar:2.5.6.SEC02]
at
org.springframework.jdbc.core.simple.AbstractJdbcCall.executeCallInternal(AbstractJdbcCall.java:368)
[spring-jdbc-2.5.6.SEC02.jar:2.5.6.SEC02]
at
org.springframework.jdbc.core.simple.AbstractJdbcCall.doExecute(AbstractJdbcCall.java:342)
[spring-jdbc-2.5.6.SEC02.jar:2.5.6.SEC02]
at
org.springframework.jdbc.core.simple.SimpleJdbcCall.execute(SimpleJdbcCall.java:164)
[spring-jdbc-2.5.6.SEC02.jar:2.5.6.SEC02]
at
org.ovirt.engine.core.dal.dbbroker.SimpleJdbcCallsHandler.executeImpl(SimpleJdbcCallsHandler.java:124)
[engine-dal.jar:]
at
org.ovirt.engine.core.dal.dbbroker.SimpleJdbcCallsHandler.executeModification(SimpleJdbcCallsHandler.java:37)
[engine-dal.jar:]
at
org.ovirt.engine.core.dao.DefaultGenericDaoDbFacade.save(DefaultGenericDaoDbFacade.java:93)
[engine-dal.jar:]
at
org.ovirt.engine.core.bll.ImportVmCommand.addVmImagesAndSnapshots(ImportVmCommand.java:615)
[engine-bll.jar:]
at
org.ovirt.engine.core.bll.ImportVmCommand.access$200(ImportVmCommand.java:76)
[engine-bll.jar:]
at
org.ovirt.engine.core.bll.ImportVmCommand$4.runInTransaction(ImportVmCommand.java:501)
[engine-bll.jar:]
at
org.ovirt.engine.core.bll.ImportVmCommand$4.runInTransaction(ImportVmCommand.java:497)
[engine-bll.jar:]
at
org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInNewTransaction(TransactionSupport.java:204)
[engine-utils.jar:]
at
org.ovirt.engine.core.bll.ImportVmCommand.processImages(ImportVmCommand.java:497)
[engine-bll.jar:]
at
org.ovirt.engine.core.bll.ImportVmCommand.executeCommand(ImportVmCommand.java:477)
[engine-bll.jar:]
at
org.ovirt.engine.core.bll.CommandBase.ExecuteWithoutTransaction(CommandBase.java:804)
[engine-bll.jar:]
at
org.ovirt.engine.core.bll.CommandBase.executeActionInTransactionScope(CommandBase.java:896)
[engine-bll.jar:]
at
org.ovirt.engine.core.bll.CommandBase.runInTransaction(CommandBase.java:1203)
[engine-bll.jar:]
at
org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInSuppressed(TransactionSupport.java:168)
[engine-utils.jar:]
at
org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInScope(TransactionSupport.java:107)
[engine-utils.jar:]
at org.ovirt.engine.core.bll.CommandBase.Execute(CommandBase.java:911)
[engine-bll.jar:]
at
org.ovirt.engine.core.bll.CommandBase.ExecuteAction(CommandBase.java:268)
[engine-bll.jar:]
at
org.ovirt.engine.core.bll.MultipleActionsRunner.executeValidatedCommands(MultipleActionsRunner.java:182)
[engine-bll.jar:]
at
org.ovirt.engine.core.bll.MultipleActionsRunner.RunCommands(MultipleActionsRunner.java:162)
[engine-bll.jar:]
at
org.ovirt.engine.core.bll.MultipleActionsRunner$1.run(MultipleActionsRunner.java:84)
[engine-bll.jar:]
at
org.ovirt.engine.core.utils.threadpool.ThreadPoolUtil$InternalWrapperRunnable.run(ThreadPoolUtil.java:64)
[engine-utils.jar:]
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
[rt.jar:1.7.0_09-icedtea]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
[rt.jar:1.7.0_09-icedtea]
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
[rt.jar:1.7.0_09-icedtea]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[rt.jar:1.7.0_09-icedtea]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[rt.jar:1.7.0_09-icedtea]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_09-icedtea]
Caused by: org.postgresql.util.PSQLException: ERROR: duplicate key value
violates unique constraint "pk_snapshots"
Detail: Key (snapshot_id)=(00000000-0000-0000-0000-000000000000) already
exists.
Where: SQL statement "INSERT INTO snapshots(
snapshot_id,
status,
vm_id,
snapshot_type,
description,
creation_date,
app_list,
vm_configuration)
VALUES(
v_snapshot_id,
v_status,
v_vm_id,
v_snapshot_type,
v_description,
v_creation_date,
v_app_list,
v_vm_configuration)"
PL/pgSQL function "insertsnapshot" line 3 at SQL statement
at
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2103)
at
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1836)
at
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:512)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:388)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:381)
at
org.jboss.jca.adapters.jdbc.CachedPreparedStatement.execute(CachedPreparedStatement.java:297)
at
org.jboss.jca.adapters.jdbc.WrappedPreparedStatement.execute(WrappedPreparedStatement.java:404)
at
org.springframework.jdbc.core.JdbcTemplate$5.doInCallableStatement(JdbcTemplate.java:987)
[spring-jdbc-2.5.6.SEC02.jar:2.5.6.SEC02]
at
org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:936)
[spring-jdbc-2.5.6.SEC02.jar:2.5.6.SEC02]
... 31 more
Regards
Daniel
12 years
[Users] add hardware
by Winfried de Heiden
Hi all,
I imported an existing Windows 7 KVM image. It works fine, but for some
reason there is no soundcard. (in the old KVM image there is!)
How can I add a souncard to a virtual machine? (web gui, ovirt-shell...)
Winfried
12 years
[Users] About owner of postgres
by Stephen Liu
--1552829269-799783345-1352562557=:85644
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Hi Juan and all,=0A=0AI follow;=0ABuilding Engine Draft=0Ahttp://wiki.ovirt=
.org/wiki/Building_Engine_Draft=0Ato install oVirt from source on Fedora 17=
, 64bit=0A=0A=0A1)=0AFound following error;=0A$ unzip jboss-as-7.1.1.Final.=
tar.gz=0A=0AIt should read;=0A$ unzip jboss-as-7.1.1.Final.zip=0A=0A=0A2)=
=0AI was stuck here;=0A=0A# su - postgres -c 'pg_ctl initdb'=0AThe files be=
longing to this database system will be owned by user "postgres".=0AThis us=
er must also own the server process.=0A=0AThe database cluster will be init=
ialized with locale en_US.UTF-8.=0AThe default database encoding has accord=
ingly been set to UTF8.=0AThe default text search configuration will be set=
to "english".=0A=0Ainitdb: directory "/var/lib/pgsql/data" exists but is n=
ot empty=0AIf you want to create a new database system, either remove or em=
pty=0Athe directory "/var/lib/pgsql/data" or run initdb=0Awith an argument =
other than "/var/lib/pgsql/data".=0Apg_ctl: database system initialization =
failed=0A=0A=0A=0AI'm not the owner of postgres=0A=0AWhat shall I do?=0A=0A=
TIA=0A=0AB.R.=0AStephen L=0A
--1552829269-799783345-1352562557=:85644
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
<html><body><div style=3D"color:#000; background-color:#fff; font-family:ar=
ial, helvetica, sans-serif;font-size:12pt"><div>Hi Juan and all,<br><br>I f=
ollow;<br>Building Engine Draft<br>http://wiki.ovirt.org/wiki/Building_Engi=
ne_Draft<br>to install oVirt from source on Fedora 17, 64bit<br><br><br>1)<=
br>Found following error;<br>$ unzip jboss-as-7.1.1.Final.tar.gz<br><br>It =
should read;<br>$ unzip jboss-as-7.1.1.Final.zip<br><br><br>2)<br>I was stu=
ck here;<br><br># su - postgres -c 'pg_ctl initdb'<br>The files belonging t=
o this database system will be owned by user "postgres".<br>This user must =
also own the server process.<br><br>The database cluster will be initialize=
d with locale en_US.UTF-8.<br>The default database encoding has accordingly=
been set to UTF8.<br>The default text search configuration will be set to =
"english".<br><br>initdb: directory "/var/lib/pgsql/data" exists but is not=
empty<br>If you want to create a new database system, either remove
or empty<br>the directory "/var/lib/pgsql/data" or run initdb<br>with an a=
rgument other than "/var/lib/pgsql/data".<br>pg_ctl: database system initia=
lization failed<br></div><div style=3D"color: rgb(0, 0, 0); font-size: 16px=
; font-family: arial,helvetica,sans-serif; background-color: transparent; f=
ont-style: normal;"><br></div><div style=3D"color: rgb(0, 0, 0); font-size:=
16px; font-family: arial,helvetica,sans-serif; background-color: transpare=
nt; font-style: normal;"><br>I'm not the owner of postgres<br><br>What shal=
l I do?<br><br>TIA</div><div style=3D"color: rgb(0, 0, 0); font-size: 16px;=
font-family: arial,helvetica,sans-serif; background-color: transparent; fo=
nt-style: normal;"><br></div><div style=3D"color: rgb(0, 0, 0); font-size: =
16px; font-family: arial,helvetica,sans-serif; background-color: transparen=
t; font-style: normal;">B.R.</div><div style=3D"color: rgb(0, 0, 0); font-s=
ize: 16px; font-family: arial,helvetica,sans-serif; background-color:
transparent; font-style: normal;">Stephen L</div></div></body></html>
--1552829269-799783345-1352562557=:85644--
12 years