Engine upgrade error
by Frank Rothenstein
Hello,
I tried several times to upgrade my ovirt-engine 3.5.5 to 3.6. Every
time the setup stops at updating the DB-schema. The log revealed when
this happpens: The setup ist complaining about a duplicated key - here
is the part of the log. Of course there is only one network in the
interface.
Can anybody help me getting a solution?
Thnaks, Frank
Running upgrade sql script '/usr/share/ovirt-
engine/dbscripts/upgrade/03_06_1670_unique_vds_id_network_name_vds_inte
rface.sql'...
2542964-
2542965-2015-11-30 08:15:26 DEBUG
otopi.plugins.ovirt_engine_setup.ovirt_engine.db.schema
plugin.execute:941 execute-output: ['/usr/share/ovirt-
engine/dbscripts/schema.sh', '-s', 'localhost', '-p', '5432', '-u',
'engine', '-d', 'engine', '-l', '/var/log/ovirt-engine/setup/ovirt-
engine-setup-20151130073216-erdh9f.log', '-c', 'apply'] stderr:
2543300-psql:/usr/share/ovirt-
engine/dbscripts/upgrade/03_06_1670_unique_vds_id_network_name_vds_inte
rface.sql:1: ERROR: could not create unique index
"vds_interface_vds_id_network_name_unique"
2543487:DETAIL: Key (vds_id, network_name)=(ba954f0f-6ecb-4ec8-b169-
7e0a1147b4cd, KHnetz) is duplicated.
2543585-CONTEXT: SQL statement "ALTER TABLE vds_interface ADD
CONSTRAINT vds_interface_vds_id_network_name_unique unique (vds_id,
network_name)"
2543723-PL/pgSQL function fn_db_create_constraint(character
varying,character varying,text) line 4 at EXECUTE statement
2543835-FATAL: Cannot execute sql command: --file=/usr/share/ovirt-
engine/dbscripts/upgrade/03_06_1670_unique_vds_id_network_name_vds_inte
rface.sql
2543975-
2543976-2015-11-30 08:15:26 DEBUG otopi.context
context._executeMethod:156 method exception
2544060-Traceback (most recent call last):
2544095- File "/usr/lib/python2.7/site-packages/otopi/context.py",
line 146, in _executeMethod
2544183- method['method']()
2544206- File "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-
engine-setup/ovirt-engine/db/schema.py", line 291, in _misc
2544325- oenginecons.EngineDBEnv.PGPASS_FILE
2544365- File "/usr/lib/python2.7/site-packages/otopi/plugin.py", line
946, in execute
2544445- command=args[0],
2544466-RuntimeError: Command '/usr/share/ovirt-
engine/dbscripts/schema.sh' failed to execute
2544552-2015-11-30 08:15:26 ERROR otopi.context
context._executeMethod:165 Failed to execute stage 'Misc
configuration': Command '/usr/share/ovirt-engine/dbscripts/schema.sh'
failed to execute
2544737-2015-11-30 08:15:26 DEBUG otopi.transaction
transaction.abort:134 aborting 'Yum Transaction'
2544830-2015-11-30 08:15:26 INFO
otopi.plugins.otopi.packagers.yumpackager yumpackager.info:95 Yum
Performing yum transaction rollback
______________________________________________________________________________
BODDEN-KLINIKEN Ribnitz-Damgarten GmbH
Sandhufe 2
18311 Ribnitz-Damgarten
Telefon: 03821-700-0
Fax: 03821-700-240
E-Mail: info(a)bodden-kliniken.de Internet: http://www.bodden-kliniken.de
Sitz: Ribnitz-Damgarten, Amtsgericht: Stralsund, HRB 2919, Steuer-Nr.: 079/133/40188
Aufsichtsratsvorsitzende: Carmen Schröter, Geschäftsführer: Dr. Falko Milski
Der Inhalt dieser E-Mail ist ausschließlich für den bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorge-
sehene Adressat dieser E-Mail oder dessen Vertreter sein sollten, beachten Sie bitte, dass jede Form der Veröf-
fentlichung, Vervielfältigung oder Weitergabe des Inhalts dieser E-Mail unzulässig ist. Wir bitten Sie, sofort den
Absender zu informieren und die E-Mail zu löschen.
Bodden-Kliniken Ribnitz-Damgarten GmbH 2015
*** Virenfrei durch Kerio Mail Server und Sophos Antivirus ***
9 years
Setting up oVirt for the first time
by Gervais de Montbrun
--Apple-Mail=_0375DE21-EDF5-4C87-B0F3-BC852CDA9E3B
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=us-ascii
Hi All,
I've done a lot of reading and lots of comparison of different =
hypervisors and tools and have decided that oVirt would be the best =
option. My initial use case is a not too new server that I will setup to =
run multiple development environments for the devs here, but I wanted =
something that will scale out to production as the vm infrastructure, =
hardware, etc. grows here.
I'll soon have a second server to run my vm's on and want to setup a =
self-hosted engine. I'm trying to find the most recent version of a =
how-to on the same. I found a presentation showing off how much easier =
it is to do this in oVirt 3.6 but can't find the correct docs. I seem to =
always end up with 3.5 or older versions. Can someone point me at a =
how-to of how to best achieve this.=20
Also, while I have you all here... :-)
Is it possible to setup the hypervisor hosts themselves as NFS servers =
to create Storage (I realize that this will play havoc with the HA). We =
do have an NFS server that we will be upgrading to add storage and =
faster drives, but I was thinking that I may be able to use the internal =
storage of the hypervisors themselves as a short term stopgap and then =
migrate vm's to the upgraded NFS server later. Will that even work, or =
will it break somehow?
Any advice for a new install would be welcome.
Thank you=20
Cheers,
Gervais
--Apple-Mail=_0375DE21-EDF5-4C87-B0F3-BC852CDA9E3B
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=us-ascii
<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D"">Hi All,<div class=3D""><br class=3D""></div><div =
class=3D"">I've done a lot of reading and lots of comparison of =
different hypervisors and tools and have decided that oVirt would be the =
best option. My initial use case is a not too new server that I will =
setup to run multiple development environments for the devs here, but I =
wanted something that will scale out to production as the vm =
infrastructure, hardware, etc. grows here.</div><div class=3D""><br =
class=3D""></div><div class=3D"">I'll soon have a second server to run =
my vm's on and want to setup a self-hosted engine. I'm trying to find =
the most recent version of a how-to on the same. I found a presentation =
showing off how much easier it is to do this in oVirt 3.6 but can't find =
the correct docs. I seem to always end up with 3.5 or older versions. =
Can someone point me at a how-to of how to best achieve =
this. </div><div class=3D""><br class=3D""></div><div =
class=3D"">Also, while I have you all here... :-)</div><div class=3D"">Is =
it possible to setup the hypervisor hosts themselves as NFS servers to =
create Storage (I realize that this will play havoc with the HA). We do =
have an NFS server that we will be upgrading to add storage and faster =
drives, but I was thinking that I may be able to use the internal =
storage of the hypervisors themselves as a short term stopgap and then =
migrate vm's to the upgraded NFS server later. Will that even work, or =
will it break somehow?<br class=3D""><div class=3D""><br =
class=3D"webkit-block-placeholder"></div><div class=3D"">Any advice for =
a new install would be welcome.</div><div class=3D""><br =
class=3D""></div><div class=3D"">Thank you </div><div class=3D"">
<div style=3D"color: rgb(0, 0, 0); font-variant: normal; letter-spacing: =
normal; line-height: normal; orphans: 2; text-align: -webkit-auto; =
text-indent: 0px; text-transform: none; white-space: normal; widows: 2; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: =
break-word; -webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space;" class=3D""><span class=3D"Apple-style-span" =
style=3D"border-collapse: separate; color: rgb(0, 0, 0); font-variant: =
normal; letter-spacing: normal; line-height: normal; orphans: 2; =
text-align: -webkit-auto; text-indent: 0px; text-transform: none; =
white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; =
-webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: =
0px;"><br class=3D"Apple-interchange-newline">Cheers,<br =
class=3D"">Gervais</span></div>
</div>
<br class=3D""></div></body></html>=
--Apple-Mail=_0375DE21-EDF5-4C87-B0F3-BC852CDA9E3B--
9 years
cloud-init and sealing of template
by Gianluca Cecchi
Hello,
is it correct that even if I use cloud-init I have to seal my candidate VM
before making it a template?
In that case what is the correct approach to pre-seal a CentOS 7 VM?
Also, for operating system like Fedora >=20 and/or RHEL/CentOS 7 should I
unconfigure NetworkManager before sealing them, using classic network
service, or what?
Thanks in advance,
Gianluca
9 years
Export a vm
by Budur Nagaraju
HI
How to export a oVirt vm which is compatible to vmware ESXi?
Thanks,
Nagaraju
9 years
ISO issues
by Budur Nagaraju
HI
Mounted a valid ISO image and selected first boot option a "CDrom" and
second as Hard disk,
all of sudden am unable to boot few days back it was working but now am
facing issues.
any ways to resolve the issue ?
Thanks,
Nagaraju
9 years
NFS Domain with 1GB limit
by kontakt@taste-of-it.de
Hello,
i am new with ovirt and i installed ovirt engine on centos7. After i
logged in the administrator web gui i see the default nfs domain with
less than 1gb space, while i have more than 200gb on disk. The problem
is, that i cant change the value and found no informtion in the manuals
too. Can someone explain this to me?
thx
9 years
[ANN] oVirt 3.6.1 Second Release Candidate is now available for testing
by Sandro Bonazzola
The oVirt Project is pleased to announce the availability
of the Second Release Candidate of oVirt 3.6.1 for testing, as of December
3rd, 2015.
This release is available now for Fedora 22,
Red Hat Enterprise Linux 6.7, CentOS Linux 6.7 (or similar) and
Red Hat Enterprise Linux >= 7.1, CentOS Linux >= 7.1 (or similar).
This release supports Hypervisor Hosts running
Red Hat Enterprise Linux >= 7.1, CentOS Linux >= 7.1 (or similar) and
Fedora 22.
Highly experimental support for Debian 8.2 Jessie has been added too.
This release candidate includes updated packages for:
- ovirt-engine
- ovirt-engine-extension-aaa-jdbc
- ovirt-hosted-engine-ha
- ovirt-hosted-engine-setup
- vdsm
This release of oVirt 3.6.1 includes numerous bug fixes.
See the release notes [1] for an initial list of the new features and bugs
fixed.
Please refer to release notes [1] for Installation / Upgrade instructions.
A new oVirt Live ISO will be available soon[2].
Please note that mirrors[3] may need usually one day before being
synchronized.
Please refer to the release notes for known issues in this release.
[1] http://www.ovirt.org/OVirt_3.6.1_Release_Notes
[2] http://resources.ovirt.org/pub/ovirt-3.6-pre/iso/
[3] http://www.ovirt.org/Repository_mirrors#Current_mirrors
--
Sandro Bonazzola
Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com
9 years
Re: [ovirt-users] HA cluster
by Ryan Barry
On Wed, Dec 2, 2015 at 5:05 AM, <users-request(a)ovirt.org> wrote:
> On Wed, Dec 2, 2015 at 12:19 PM, Budur Nagaraju <nbudoor(a)gmail.com> wrote:
>
> > I have installed KVM in the nested environment in ESXi6.x version is
> that
> > recommended ?
> >
>
> I often use KVM over KVM in nested environment but honestly I never tried
> to run KVM over ESXi but I suspect that all of your issues comes from
> there.
>
> It should be fine in ESXi as well, as long as the VMX for that VM has
vhv.enabled=true, and the config for the VM is reloaded.
>
> > apart from Hosted engine is there any other alternate way to configure
> > Engine HA cluster ?
> >
>
> Nothing else from the project. You can use two external VMs in cluster with
> pacemaker but it's completely up to you.
>
9 years
Upgrading engine 3.5.5-1.el6 to latest patches issue (and resolved)
by Scott Worthington
Hello,
This is just an informational e-mail for others who are updating their 3.5
systems on CentOS 6.7 who may experience the same issue that I experienced.
I am upgrading a stand alone 3.5.5-1.el6 engine on CentOS 6.7 (no High
Availability cruft) to the latest patches just recently released.
The DWH and report engine are also installed on this same stand alone system.
I did a 'yum update' and the following was downloaded & updated:
Dec 02 08:26:26 Updated: postgresql-libs-8.4.20-4.el6_7.x86_64
Dec 02 08:26:27 Updated: ovirt-engine-lib-3.5.6.2-1.el6.noarch
Dec 02 08:26:28 Updated: ovirt-engine-setup-base-3.5.6.2-1.el6.noarch
Dec 02 08:26:29 Updated:
ovirt-engine-setup-plugin-ovirt-engine-common-3.5.6.2-1.el6.noarch
Dec 02 08:26:30 Updated:
ovirt-engine-setup-plugin-websocket-proxy-3.5.6.2-1.el6.noarch
Dec 02 08:26:31 Updated:
ovirt-engine-setup-plugin-ovirt-engine-3.5.6.2-1.el6.noarch
Dec 02 08:26:33 Updated: postgresql-8.4.20-4.el6_7.x86_64
Dec 02 08:26:35 Updated: postgresql-server-8.4.20-4.el6_7.x86_64
Dec 02 08:26:35 Updated: ovirt-engine-setup-3.5.6.2-1.el6.noarch
Dec 02 08:26:36 Updated: ovirt-engine-websocket-proxy-3.5.6.2-1.el6.noarch
Dec 02 08:26:36 Updated: ovirt-engine-extensions-api-impl-3.5.6.2-1.el6.noarch
Dec 02 08:26:37 Updated: ovirt-engine-sdk-python-3.5.6.0-1.el6.noarch
Dec 02 08:26:41 Updated: ovirt-guest-tools-iso-3.5-8.fc22.noarch
Dec 02 08:26:50 Updated: 1:java-1.6.0-openjdk-1.6.0.37-1.13.9.4.el6_7.x86_64
Here is where I ran into an issue..
Running an 'engine-setup' to load the latest patches caused this:
[ INFO ] Cleaning async tasks and compensations
[ INFO ] Checking the Engine database consistency
[ INFO ] Stage: Transaction setup
[ INFO ] Stopping dwh service
[ INFO ] Stopping reports service
[ INFO ] Stopping engine service
[ INFO ] Stopping ovirt-fence-kdump-listener service
[ INFO ] Stopping websocket-proxy service
[ ERROR ] dwhd is currently running. Its hostname is
tpa-ovirt-engine-01.allianceoneinc.com. Please stop it before running Setup.
[ ERROR ] Failed to execute stage 'Transaction setup': dwhd is currently running
[ INFO ] Yum Performing yum transaction rollback
[ INFO ] Stage: Clean up
Log file is located at
/var/log/ovirt-engine/setup/ovirt-engine-setup-20151202083052-q8131e.log
[ INFO ] Generating answer file
'/var/lib/ovirt-engine/setup/answers/20151202083138-setup.conf'
[ INFO ] Stage: Pre-termination
[ INFO ] Stage: Termination
[ ERROR ] Execution of setup failed
I did a "ps auxwww | grep ovirt" and "ps auxwww | grep dhw", but came up with
nothing. In fact, there was nothing obviously 'ovirt' related running.
To get the "engine-setup" to work, I thought that perhaps something was stuck
running.
So I did...
service ovirt-engine stop
service ovirt-engine-dwhd stop
service ovirt-engine-reportsd stop
service ovirt-engine-websocket-proxy stop
Followed by...
engine-setup
...and still got the error that the DWH was still running.
Not to waste time, I figured that a reboot might clear and/or reset out some
process that I am not aware of.
I did not want anything ovirt engine related starting up, so I examined what
was running on start up:
chkconfig --list | grep ovirt | grep on
Which returned (sorry for wraps, it's thunderbird):
ovirt-engine 0:off 1:off 2:on 3:on 4:on 5:on 6:off
ovirt-engine-dwhd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
ovirt-engine-reportsd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
ovirt-fence-kdump-listener 0:off 1:off 2:on 3:on 4:on 5:on
6:off
ovirt-websocket-proxy 0:off 1:off 2:on 3:on 4:on 5:on 6:off
I turned these off on boot:
chkconfig ovirt-engine off
chkconfig ovirt-engine-dwhd off
chkconfig ovirt-engine-reportsd off
chkconfig ovirt-fence-kdump-listener off
chkconfig ovirt-websocket-proxy off
Rebooted the server, logged back in, and 'engine-setup' ran flawlessly.
After the upgrade, I turned the services back on for the next reboot:
chkconfig ovirt-engine on
chkconfig ovirt-engine-dwhd on
chkconfig ovirt-engine-reportsd on
chkconfig ovirt-fence-kdump-listener on
chkconfig ovirt-websocket-proxy on
Hope that helps someone else.
9 years
Re: [ovirt-users] . Failing to add iSCSI storage domain Users Digest, Vol 51, Issue 16
by Jean-Pierre Ribeauville
Hi,
Failure reason was the following : the initiator IQN wasn't declared on the iSCSI server.
Sorry for disturbing for nothing.
Regards,
J.P.
-----Message d'origine-----
De : users-bounces(a)ovirt.org [mailto:users-bounces@ovirt.org] De la part de users-request(a)ovirt.org
Envoyé : mercredi 2 décembre 2015 11:42
À : users(a)ovirt.org
Objet : Users Digest, Vol 51, Issue 16
Send Users mailing list submissions to
users(a)ovirt.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.ovirt.org/mailman/listinfo/users
or, via email, send a message with subject or body 'help' to
users-request(a)ovirt.org
You can reach the person managing the list at
users-owner(a)ovirt.org
When replying, please edit your Subject line so it is more specific than "Re: Contents of Users digest..."
Today's Topics:
1. Failing to add iSCSI storage domain (Jean-Pierre Ribeauville)
2. Re: HA cluster (Simone Tiraboschi)
----------------------------------------------------------------------
Message: 1
Date: Wed, 2 Dec 2015 10:41:11 +0000
From: Jean-Pierre Ribeauville <jpribeauville(a)axway.com>
To: "users(a)ovirt.org" <users(a)ovirt.org>
Subject: [ovirt-users] Failing to add iSCSI storage domain
Message-ID:
<1051EFB4D3A1704680C38CCAAC5836D2929DC082(a)WPTXMAIL2.ptx.axway.int>
Content-Type: text/plain; charset="iso-8859-1"
Hi,
By using 3.5 ovirt , I'm trying to add a iSCSI storage domain to my datacenter.
When clicking on discover button , I got following error :
No new devices were found. This may be due to either: incorrect multipath configuration on the Host or wrong address of the iscsi target or a failure to authenticate on the target device. Please consult your Storage Administrator.
I restart sanlock service on the host ( it's a RHEL 7) ; no positive effect.
In engine.log found this :
...
IQNListReturnForXmlRpc [mStatus=StatusForXmlRpc [mCode=475, mMessage=Failed discovery of iSCSI targets: "portal=IscsiPortal(hostname=u'10.147.60.90', port=3260), err=(21, [], ['iscsiadm: No portals found'])"]]
2015-12-02 11:28:31,468 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.DiscoverSendTargetsVDSCommand] (ajp-/127.0.0.1:8702-5) HostName = ldc01omv01
2015-12-02 11:28:31,468 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.DiscoverSendTargetsVDSCommand] (ajp-/127.0.0.1:8702-5) Command DiscoverSendTargetsVDSCommand(HostName = ldc01omv01, HostId = 09bb3024-170f-48a1-a78a-951a2c61c680, connection={ id: null, connection: 10.147.60.90, iqn: null, vfsType: null, mountOptions: null, nfsVersion: null, nfsRetrans: null, nfsTimeo: null };) execution failed. Exception: VDSErrorException: VDSGenericException: VDSErrorException: Failed in vdscommand to DiscoverSendTargetsVDS, error = Failed discovery of iSCSI targets: "portal=IscsiPortal(hostname=u'10.147.60.90', port=3260), err=(21, [], ['iscsiadm: No portals found'])"
2015-12-02 11:28:31,468 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.DiscoverSendTargetsVDSCommand] (ajp-/127.0.0.1:8702-5) FINISH, DiscoverSendTargetsVDSCommand, log id: 3023392e
2015-12-02 11:28:31,468 ERROR [org.ovirt.engine.core.bll.storage.DiscoverSendTargetsQuery] (ajp-/127.0.0.1:8702-5) Query DiscoverSendTargetsQuery failed. Exception message is VdcBLLException: org.ovirt.engine.core.vdsbroker.vdsbroker.VDSErrorException: VDSGenericException: VDSErrorException: Failed in vdscommand to DiscoverSendTargetsVDS, error = Failed discovery of iSCSI targets: "portal=IscsiPortal(hostname=u'10.147.60.90', port=3260), err=(21, [], ['iscsiadm: No portals found'])" (Failed with error iSCSIDiscoveryError and code 475) : org.ovirt.engine.core.common.errors.VdcBLLException: VdcBLLException: org.ovirt.engine.core.vdsbroker.vdsbroker.VDSErrorException: VDSGenericException: VDSErrorException: Failed in vdscommand to DiscoverSendTargetsVDS, error = Failed discovery of iSCSI targets: "portal=IscsiPortal(hostname=u'10.147.60.90', port=3260), err=(21, [], ['iscsiadm: No portals found'])" (Failed with error iSCSIDiscoveryError and code 475): org.ovirt.engine.core.commo
n.errors.VdcBLLException: VdcBLLException: org.ovirt.engine.core.vdsbroker.vdsbroker.VDSErrorException: VDSGenericException: VDSErrorException: Failed in vdscommand to DiscoverSendTargetsVDS, error = Failed discovery of iSCSI targets: "portal=IscsiPortal(hostname=u'10.147.60.90', port=3260), err=(21, [], ['iscsiadm: No portals found'])" (Failed with error iSCSIDiscoveryError and code 475)
at org.ovirt.engine.core.bll.VdsHandler.handleVdsResult(VdsHandler.java:117) [bll.jar:]
at org.ovirt.engine.core.bll.VDSBrokerFrontendImpl.RunVdsCommand(VDSBrokerFrontendImpl.java:33) [bll.jar:]
at org.ovirt.engine.core.bll.storage.DiscoverSendTargetsQuery.executeQueryCommand(DiscoverSendTargetsQuery.java:16) [bll.jar:]
at org.ovirt.engine.core.bll.QueriesCommandBase.executeCommand(QueriesCommandBase.java:73) [bll.jar:]
...
In order to check iSCSI discovering via another way, I run this command from ovirt manager system command prompt :
iscsiadm -m discovery -t st -p <iSCSI Server Address>
I got a correct device lists.
Thanks for help.
J.P. Ribeauville
P: +33.(0).1.47.17.20.49
.
Puteaux 3 Etage 5 Bureau 4
jpribeauville(a)axway.com<mailto:jpribeauville@axway.com>
http://www.axway.com<http://www.axway.com/>
P Pensez ? l'environnement avant d'imprimer.
9 years