<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="GENERATOR" content="GtkHTML/4.4.4">
</head>
<body>
tor 2013-08-01 klockan 05:29 -0400 skrev Alon Bar-Lev:
<blockquote type="CITE">
<pre>
----- Original Message -----
> From: "Karli Sjöberg" <<a href="mailto:Karli.Sjoberg@slu.se">Karli.Sjoberg@slu.se</a>>
> To: "Alon Bar-Lev" <<a href="mailto:alonbl@redhat.com">alonbl@redhat.com</a>>
> Cc: "Alex Lourie" <<a href="mailto:alourie@redhat.com">alourie@redhat.com</a>>, <a href="mailto:users@ovirt.org">users@ovirt.org</a>, "Eli Mesika" <<a href="mailto:emesika@redhat.com">emesika@redhat.com</a>>
> Sent: Thursday, August 1, 2013 12:24:57 PM
> Subject: Re: [Users] Fedora upgrading from 3.1 to 3.2
>
> Ah, my bad, I botched that when doing the patch for "engine-setup" and hadn´t
> made an original copy so I did "yum erase" and "yum install" again to get
> back the original file, and yum was nice enough to erase and install blank
> files for me, heh. Now I´m back again and once more updated those option
> values in the database, but I´m still not able to log in. The log is
> attached.
The engine.log you sent is too short for typical log...
Can we start from scratch?
What exactly are you doing?
What sequence?
</pre>
</blockquote>
<br>
OK, to make a long story a little shorter. I´m trying to go from oVirt-3.1 to oVirt-3.2 on Fedora, so this is what I have done so far:<br>
<br>
(After Fedora is up to 18, and the old engine is up and running, I was able to log in)<br>
- Erase all of the 3.1-packages<br>
- Install the new 3.2-packages<br>
- Have to go about the dbase upgrade like this:<br>
# psql -U postgres engine<br>
$ ALTER FUNCTION uuid_generate_v1() OWNER TO engine;<br>
$ \q<br>
Or the upgrade won´t work. After that it´s possible to:<br>
# cd /usr/share/ovirt-engine/dbscripts<br>
# ./upgrade.sh -s localhost -p 5432 -u engine -d engine<br>
(lots of output)<br>
# engine-cleanup --dont-drop-db<br>
<br>
- Had to make modifications to "/usr/bin/engine-setup" for the setup to complete OK.<br>
@@ -1142,8 +1142,8 @@<br>
# Run db backup<br>
utils.backupDB(<br>
db=basedefs.DB_NAME,<br>
- backup_file=dbBackupFile,<br>
- env=utils.getPgPassEnv(),<br>
+ backupFile=dbBackupFile,<br>
+ #env=utils.getPgPassEnv(),<br>
user=getDbUser(),<br>
host=getDbHostName(),<br>
port=getDbPort(),<br>
<br>
# engine-setup<br>
# systemctl stop ovirt-engine<br>
# psql -U engine engine<br>
$ <font color="#2e3436">update vdc_options set option_value = '/etc/pki/ovirt-engine/keys/engine.p12' where option_name = 'keystoreUrl';</font><br>
$ <font color="#2e3436">update vdc_options set option_value = '/etc/pki/ovirt-engine/certs/engine.cer' where option_name = 'CertificateFileName';</font><br>
$ <font color="#2e3436">update vdc_options set option_value = '/etc/pki/ovirt-engine/.truststore' where option_name = 'TruststoreUrl';</font><br>
$ \q<br>
# cat /dev/null > /var/log/ovirt-engine/engine.log<br>
# systemctl restart ovirt-engine; tail -f /var/log/ovirt-engine/engine.log | tee /tmp/<b>engine_start.log</b><br>
<br>
That is the log you now have seen.<br>
<br>
<blockquote type="CITE">
<pre>
Thanks,
Alon
</pre>
</blockquote>
<br>
<table cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td>-- <br>
<br>
Med Vänliga Hälsningar<br>
-------------------------------------------------------------------------------<br>
Karli Sjöberg<br>
Swedish University of Agricultural Sciences<br>
Box 7079 (Visiting Address Kronåsvägen 8)<br>
S-750 07 Uppsala, Sweden<br>
Phone: +46-(0)18-67 15 66<br>
<a href="mailto:karli.sjoberg@adm.slu.se">karli.sjoberg@slu.se</a> </td>
</tr>
</tbody>
</table>
</body>
</html>