<div dir="ltr"><div>Rebuilt the engine on my FC17 build VM with the macro file above in "/etc/rpm/"<br>Upon attempting upgrade on my FC17 upgrade test VM:<br>I still get a failure to start the engine<br><br>013-04-11 16:06:37::ERROR::engine-upgrade::1328::root:: Traceback (most recent call last):<br>
File "/bin/engine-upgrade", line 1321, in <module><br> main(options)<br> File "/bin/engine-upgrade", line 1293, in main<br> runFunc([startEngine], MSG_INFO_START_ENGINE % engineService)<br>
File "/bin/engine-upgrade", line 617, in runFunc<br> func()<br> File "/bin/engine-upgrade", line 584, in startEngine<br> output, rc = utils.execCmd(cmdList=cmd, failOnError=True, msg=MSG_ERR_FAILED_START_ENGINE_SERVICE)<br>
File "/usr/share/ovirt-engine/scripts/common_utils.py", line 499, in execCmd<br> raise Exception(msg)<br>Exception: Error: Can't start ovirt-engine<br><br></div><div>Curiously is there a documented process somewhere for backing up data from an FC17 ovirt install and doing a fresh install on a FC18 box then restoring the FC17 database + ovirt config data?<br>
</div><div><br>Guessing it goes something like this: (someone please confirm)<br><br>Back up the following directories and files:<br>/etc/ovirt-engine<br></div><div>/etc/pki/ovirt-engine<br>/etc/pki/ovirt-engine-backups<br>
/var/lib/ovirt-engine/backups<br>/var/lib/ovirt-engine/deployments<br></div><div>/root/.rnd<br><br></div><div>Dump a backup of the engine database<br><br></div><div>Install ovirt-engine on FC18 system<br></div><div>run engine-setup (answer questions same as prior install from FC17)<br>
</div><div>upon completion of engine-setup stop the engine service<br></div><div>restore all the above files and directories<br><br></div><div>Drop the engine databse<br></div><div>Restore the backed up engine database<br>
</div><div><br>FC17 --> FC18 upgrade = icky esp. with ovirt involved as part of the upgrade<br><br></div><div>Thus it seems the easiest way to solve this is to bite the bullet and move to FC18 providing the backup/restore works.<br>
</div><div><br></div>- DHC<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 10, 2013 at 4:02 PM, Alon Bar-Lev <span dir="ltr"><<a href="mailto:alonbl@redhat.com" target="_blank">alonbl@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
OK... the systemd macros are missing in fedora 17...<br>
<br>
Put the following file and rebuild.<br>
I may need to add some workaround if many people still use fedora-17 for master.<br>
<br>
Regards,<br>
Alon<br>
<br>
/etc/rpm/macros.systemd-fc18<br>
---<br>
%systemd_post() \<br>
if [ $1 -eq 1 ] ; then \<br>
# Initial installation \<br>
/usr/bin/systemctl preset %{?*} >/dev/null 2>&1 || : \<br>
fi \<br>
%{nil}<br>
<br>
%systemd_preun() \<br>
if [ $1 -eq 0 ] ; then \<br>
# Package removal, not upgrade \<br>
/usr/bin/systemctl --no-reload disable %{?*} > /dev/null 2>&1 || : \<br>
/usr/bin/systemctl stop %{?*} > /dev/null 2>&1 || : \<br>
fi \<br>
%{nil}<br>
<br>
%systemd_postun() \<br>
/usr/bin/systemctl daemon-reload >/dev/null 2>&1 || : \<br>
%{nil}<br>
<br>
%systemd_postun_with_restart() \<br>
/usr/bin/systemctl daemon-reload >/dev/null 2>&1 || : \<br>
if [ $1 -ge 1 ] ; then \<br>
# Package upgrade, not uninstall \<br>
/usr/bin/systemctl try-restart %{?*} >/dev/null 2>&1 || : \<br>
fi \<br>
%{nil}<br>
---<br>
<div class="im HOEnZb"><br>
----- Original Message -----<br>
> From: "Dead Horse" <<a href="mailto:deadhorseconsulting@gmail.com">deadhorseconsulting@gmail.com</a>><br>
</div><div class="HOEnZb"><div class="h5">> To: "Alon Bar-Lev" <<a href="mailto:alonbl@redhat.com">alonbl@redhat.com</a>><br>
> Cc: <a href="mailto:engine-devel@ovirt.org">engine-devel@ovirt.org</a><br>
> Sent: Wednesday, April 10, 2013 11:59:15 PM<br>
> Subject: Re: [Engine-devel] upgrade failing with latest master<br>
><br>
> Correct, FC17<br>
> - DHC<br>
><br>
><br>
> On Wed, Apr 10, 2013 at 3:32 PM, Alon Bar-Lev <<a href="mailto:alonbl@redhat.com">alonbl@redhat.com</a>> wrote:<br>
><br>
> > Is this fedora 17 or 18?<br>
> ><br>
> > I guess it is fedora 17.<br>
> ><br>
> > ----- Original Message -----<br>
> > > From: "Dead Horse" <<a href="mailto:deadhorseconsulting@gmail.com">deadhorseconsulting@gmail.com</a>><br>
> > > To: <a href="mailto:engine-devel@ovirt.org">engine-devel@ovirt.org</a><br>
> > > Sent: Wednesday, April 10, 2013 11:23:10 PM<br>
> > > Subject: [Engine-devel] upgrade failing with latest master<br>
> > ><br>
> > > logs attached<br>
> > ><br>
> > > First attempt:<br>
> > > 2013-04-10 13:57:32::ERROR::common_utils::355::root:: YUM: FAIL: Error in<br>
> > > PREUN scriptlet in rpm package ovirt-engine-backend-3.3.0-15.fc17.noarch<br>
> > > 2013-04-10 13:57:32::DEBUG::common_utils::347::root:: YUM: VERB: Script<br>
> > sink:<br>
> > > /var/tmp/rpm-tmp.J0HyUz: line 1: fg: no job control<br>
> > > error: %preun(ovirt-engine-backend-3.3.0-15.fc17.noarch) scriptlet<br>
> > failed,<br>
> > > exit status 1<br>
> > > 2013-04-10 13:57:32::DEBUG::common_utils::347::root:: YUM: VERB: Done:<br>
> > > ovirt-engine-backend-3.3.0-15.fc17.noarch<br>
> > ><br>
> > > Second attempt:<br>
> > > 2013-04-10 15:12:11::DEBUG::common_utils::347::root:: YUM: VERB: Building<br>
> > > transaction<br>
> > > 2013-04-10 15:12:12::ERROR::common_utils::355::root:: YUM: FAIL:<br>
> > > [u'ovirt-engine-backend-3.3.0-14.fc17.noarch requires ovirt-engine =<br>
> > > 3.3.0-14.fc17']<br>
> > > 2013-04-10 15:12:12::DEBUG::common_utils::347::root:: YUM: VERB:<br>
> > Performing<br>
> > > rollback<br>
> > > 2013-04-10 15:12:12::DEBUG::common_utils::1410::root:: Locking rpms in<br>
> > > yum-version-lock<br>
> > > 2013-04-10 15:12:12::ERROR::engine-upgrade::1299::root:: Traceback (most<br>
> > > recent call last):<br>
> > > File "/bin/engine-upgrade", line 1292, in <module><br>
> > > main(options)<br>
> > > File "/bin/engine-upgrade", line 1142, in main<br>
> > > runFunc([rhyum.begin], MSG_INFO_CHECK_UPDATE)<br>
> > > File "/bin/engine-upgrade", line 617, in runFunc<br>
> > > func()<br>
> > > File "/bin/engine-upgrade", line 310, in begin<br>
> > > self.emptyTransaction = not self._miniyum.buildTransaction()<br>
> > > File "/usr/share/ovirt-engine/scripts/miniyum.py", line 761, in<br>
> > > buildTransaction<br>
> > > raise yum.Errors.YumBaseError(msg)<br>
> > > YumBaseError: [u'ovirt-engine-backend-3.3.0-14.fc17.noarch requires<br>
> > > ovirt-engine = 3.3.0-14.fc17']<br>
> > ><br>
> > > Realizing things were now hosed:<br>
> > > [root@ovirtfoo /]# yum erase ovirt-* otopi-*<br>
> > > Loaded plugins: langpacks, presto, refresh-packagekit, versionlock<br>
> > > Resolving Dependencies<br>
> > > --> Running transaction check<br>
> > > ---> Package otopi.noarch 0:3.3.0-15.fc17 will be erased<br>
> > > ---> Package otopi-java.noarch 0:3.3.0-15.fc17 will be erased<br>
> > > ---> Package ovirt-engine.noarch 0:3.3.0-14.fc17 will be erased<br>
> > > ---> Package ovirt-engine-backend.noarch 0:3.3.0-14.fc17 will be erased<br>
> > > ---> Package ovirt-engine-backend.noarch 0:3.3.0-15.fc17 will be erased<br>
> > > ---> Package ovirt-engine-cli.noarch 0:3.3.0.1-15.fc17 will be erased<br>
> > > ---> Package ovirt-engine-dbscripts.noarch 0:3.3.0-14.fc17 will be erased<br>
> > > ---> Package ovirt-engine-restapi.noarch 0:3.3.0-14.fc17 will be erased<br>
> > > ---> Package ovirt-engine-sdk.noarch 0:3.3.0.1-15.fc17 will be erased<br>
> > > ---> Package ovirt-engine-setup.noarch 0:3.3.0-15.fc17 will be erased<br>
> > > ---> Package ovirt-engine-tools.noarch 0:3.3.0-14.fc17 will be erased<br>
> > > ---> Package ovirt-engine-userportal.noarch 0:3.3.0-14.fc17 will be<br>
> > erased<br>
> > > ---> Package ovirt-engine-webadmin-portal.noarch 0:3.3.0-14.fc17 will be<br>
> > > erased<br>
> > > ---> Package ovirt-host-deploy.noarch 0:3.3.0-15.fc17 will be erased<br>
> > > ---> Package ovirt-host-deploy-java.noarch 0:3.3.0-15.fc17 will be erased<br>
> > > ---> Package ovirt-image-uploader.noarch 0:3.3.0-15.fc17 will be erased<br>
> > > ---> Package ovirt-iso-uploader.noarch 0:3.3.0-15.fc17 will be erased<br>
> > > ---> Package ovirt-log-collector.noarch 0:3.3.0-15.fc17 will be erased<br>
> > > --> Finished Dependency Resolution<br>
> > ><br>
> > > Dependencies Resolved<br>
> > ><br>
> > ><br>
> > ================================================================================<br>
> > > Package Arch Version Repository Size<br>
> > ><br>
> > ================================================================================<br>
> > > Removing:<br>
> > > otopi noarch 3.3.0-15.fc17 @ovirt-engine 463 k<br>
> > > otopi-java noarch 3.3.0-15.fc17 @ovirt-engine 27 k<br>
> > > ovirt-engine noarch 3.3.0-14.fc17 @ovirt-engine 1.3 M<br>
> > > ovirt-engine-backend noarch 3.3.0-14.fc17 @ovirt-engine 20 M<br>
> > > ovirt-engine-backend noarch 3.3.0-15.fc17 @ovirt-engine 20 M<br>
> > > ovirt-engine-cli noarch 3.3.0.1-15.fc17 @ovirt-engine 557 k<br>
> > > ovirt-engine-dbscripts noarch 3.3.0-14.fc17 @ovirt-engine 816 k<br>
> > > ovirt-engine-restapi noarch 3.3.0-14.fc17 @ovirt-engine 1.0 M<br>
> > > ovirt-engine-sdk noarch 3.3.0.1-15.fc17 @ovirt-engine 3.1 M<br>
> > > ovirt-engine-setup noarch 3.3.0-15.fc17 @ovirt-engine 653 k<br>
> > > ovirt-engine-tools noarch 3.3.0-14.fc17 @ovirt-engine 178 k<br>
> > > ovirt-engine-userportal noarch 3.3.0-14.fc17 @ovirt-engine 23 M<br>
> > > ovirt-engine-webadmin-portal noarch 3.3.0-14.fc17 @ovirt-engine 32 M<br>
> > > ovirt-host-deploy noarch 3.3.0-15.fc17 @ovirt-engine 211 k<br>
> > > ovirt-host-deploy-java noarch 3.3.0-15.fc17 @ovirt-engine 11 k<br>
> > > ovirt-image-uploader noarch 3.3.0-15.fc17 @ovirt-engine 923 k<br>
> > > ovirt-iso-uploader noarch 3.3.0-15.fc17 @ovirt-engine 98 k<br>
> > > ovirt-log-collector noarch 3.3.0-15.fc17 @ovirt-engine 133 k<br>
> > ><br>
> > > Transaction Summary<br>
> > ><br>
> > ================================================================================<br>
> > > Remove 18 Packages<br>
> > ><br>
> > > Installed size: 104 M<br>
> > > Is this ok [y/N]: y<br>
> > > Downloading Packages:<br>
> > > Running Transaction Check<br>
> > > Running Transaction Test<br>
> > > Transaction Test Succeeded<br>
> > > Running Transaction<br>
> > > Erasing : ovirt-engine-backend.noarch 1/18<br>
> > > Erasing : ovirt-engine-dbscripts-3.3.0-14.fc17.noarch 2/18<br>
> > > Erasing : ovirt-engine-restapi-3.3.0-14.fc17.noarch 3/18<br>
> > > Erasing : ovirt-engine-setup-3.3.0-15.fc17.noarch 4/18<br>
> > > Erasing : ovirt-engine-tools-3.3.0-14.fc17.noarch 5/18<br>
> > > Erasing : ovirt-engine-userportal-3.3.0-14.fc17.noarch 6/18<br>
> > > Erasing : ovirt-engine-3.3.0-14.fc17.noarch 7/18<br>
> > > warning: /etc/ovirt-engine/engine.conf saved as<br>
> > > /etc/ovirt-engine/engine.conf.rpmsave<br>
> > > Erasing : ovirt-engine-webadmin-portal-3.3.0-14.fc17.noarch 8/18<br>
> > > Erasing : ovirt-host-deploy-java-3.3.0-15.fc17.noarch 9/18<br>
> > > Erasing : otopi-java-3.3.0-15.fc17.noarch 10/18<br>
> > > Erasing : ovirt-host-deploy-3.3.0-15.fc17.noarch 11/18<br>
> > > Erasing : ovirt-image-uploader-3.3.0-15.fc17.noarch 12/18<br>
> > > warning: /etc/ovirt-engine/imageuploader.conf saved as<br>
> > > /etc/ovirt-engine/imageuploader.conf.rpmsave<br>
> > > Erasing : ovirt-iso-uploader-3.3.0-15.fc17.noarch 13/18<br>
> > > warning: /etc/ovirt-engine/isouploader.conf saved as<br>
> > > /etc/ovirt-engine/isouploader.conf.rpmsave<br>
> > > Erasing : ovirt-log-collector-3.3.0-15.fc17.noarch 14/18<br>
> > > warning: /etc/ovirt-engine/logcollector.conf saved as<br>
> > > /etc/ovirt-engine/logcollector.conf.rpmsave<br>
> > > Erasing : ovirt-engine-cli-3.3.0.1-15.fc17.noarch 15/18<br>
> > > Erasing : ovirt-engine-sdk-3.3.0.1-15.fc17.noarch 16/18<br>
> > > Erasing : otopi-3.3.0-15.fc17.noarch 17/18<br>
> > > Error in PREUN scriptlet in rpm package ovirt-engine-backend<br>
> > > /var/tmp/rpm-tmp.uFqX1f: line 1: fg: no job control<br>
> > > error: %preun(ovirt-engine-backend-3.3.0-15.fc17.noarch) scriptlet<br>
> > failed,<br>
> > > exit status 1<br>
> > > Verifying : otopi-3.3.0-15.fc17.noarch 1/18<br>
> > > Verifying : otopi-java-3.3.0-15.fc17.noarch 2/18<br>
> > > Verifying : ovirt-log-collector-3.3.0-15.fc17.noarch 3/18<br>
> > > Verifying : ovirt-engine-webadmin-portal-3.3.0-14.fc17.noarch 4/18<br>
> > > Verifying : ovirt-host-deploy-3.3.0-15.fc17.noarch 5/18<br>
> > > Verifying : ovirt-engine-tools-3.3.0-14.fc17.noarch 6/18<br>
> > > Verifying : ovirt-engine-setup-3.3.0-15.fc17.noarch 7/18<br>
> > > Verifying : ovirt-engine-sdk-3.3.0.1-15.fc17.noarch 8/18<br>
> > > Verifying : ovirt-engine-restapi-3.3.0-14.fc17.noarch 9/18<br>
> > > Verifying : ovirt-engine-userportal-3.3.0-14.fc17.noarch 10/18<br>
> > > Verifying : ovirt-host-deploy-java-3.3.0-15.fc17.noarch 11/18<br>
> > > Verifying : ovirt-image-uploader-3.3.0-15.fc17.noarch 12/18<br>
> > > Verifying : ovirt-iso-uploader-3.3.0-15.fc17.noarch 13/18<br>
> > > Verifying : ovirt-engine-cli-3.3.0.1-15.fc17.noarch 14/18<br>
> > > ovirt-engine-backend-3.3.0-15.fc17.noarch was supposed to be removed but<br>
> > is<br>
> > > not!<br>
> > > Verifying : ovirt-engine-backend-3.3.0-15.fc17.noarch 15/18<br>
> > > Verifying : ovirt-engine-backend-3.3.0-14.fc17.noarch 16/18<br>
> > > Verifying : ovirt-engine-3.3.0-14.fc17.noarch 17/18<br>
> > > Verifying : ovirt-engine-dbscripts-3.3.0-14.fc17.noarch 18/18<br>
> > ><br>
> > > Removed:<br>
> > > otopi.noarch 0:3.3.0-15.fc17<br>
> > > otopi-java.noarch 0:3.3.0-15.fc17<br>
> > > ovirt-engine.noarch 0:3.3.0-14.fc17<br>
> > > ovirt-engine-backend.noarch 0:3.3.0-14.fc17<br>
> > > ovirt-engine-cli.noarch 0:3.3.0.1-15.fc17<br>
> > > ovirt-engine-dbscripts.noarch 0:3.3.0-14.fc17<br>
> > > ovirt-engine-restapi.noarch 0:3.3.0-14.fc17<br>
> > > ovirt-engine-sdk.noarch 0:3.3.0.1-15.fc17<br>
> > > ovirt-engine-setup.noarch 0:3.3.0-15.fc17<br>
> > > ovirt-engine-tools.noarch 0:3.3.0-14.fc17<br>
> > > ovirt-engine-userportal.noarch 0:3.3.0-14.fc17<br>
> > > ovirt-engine-webadmin-portal.noarch 0:3.3.0-14.fc17<br>
> > > ovirt-host-deploy.noarch 0:3.3.0-15.fc17<br>
> > > ovirt-host-deploy-java.noarch 0:3.3.0-15.fc17<br>
> > > ovirt-image-uploader.noarch 0:3.3.0-15.fc17<br>
> > > ovirt-iso-uploader.noarch 0:3.3.0-15.fc17<br>
> > > ovirt-log-collector.noarch 0:3.3.0-15.fc17<br>
> > ><br>
> > > Failed:<br>
> > > ovirt-engine-backend.noarch 0:3.3.0-15.fc17<br>
> > ><br>
> > > Complete!<br>
> > > [root@ovirtfoo /]# rpm -qa | grep oto<br>
> > > protobuf-java-2.4.1-12.fc17.x86_64<br>
> > > libgphoto2-2.4.14-1.fc17.x86_64<br>
> > > [root@ovirtfoo /]# rpm -qa | grep ovirt<br>
> > > ovirt-engine-backend-3.3.0-15.fc17.noarch<br>
> > > [root@ovirtfoo /]# yum erase ovirt-engine-backend-3.3.0-15.fc17.noarch<br>
> > > Loaded plugins: langpacks, presto, refresh-packagekit, versionlock<br>
> > > Resolving Dependencies<br>
> > > --> Running transaction check<br>
> > > ---> Package ovirt-engine-backend.noarch 0:3.3.0-15.fc17 will be erased<br>
> > > --> Finished Dependency Resolution<br>
> > ><br>
> > > Dependencies Resolved<br>
> > ><br>
> > ><br>
> > ================================================================================<br>
> > > Package Arch Version Repository Size<br>
> > ><br>
> > ================================================================================<br>
> > > Removing:<br>
> > > ovirt-engine-backend noarch 3.3.0-15.fc17 @ovirt-engine 20 M<br>
> > ><br>
> > > Transaction Summary<br>
> > ><br>
> > ================================================================================<br>
> > > Remove 1 Package<br>
> > ><br>
> > > Installed size: 20 M<br>
> > > Is this ok [y/N]: y<br>
> > > Downloading Packages:<br>
> > > Running Transaction Check<br>
> > > Running Transaction Test<br>
> > > Transaction Test Succeeded<br>
> > > Running Transaction<br>
> > > Error in PREUN scriptlet in rpm package<br>
> > > ovirt-engine-backend-3.3.0-15.fc17.noarch<br>
> > > /var/tmp/rpm-tmp.jq1b7e: line 1: fg: no job control<br>
> > > error: %preun(ovirt-engine-backend-3.3.0-15.fc17.noarch) scriptlet<br>
> > failed,<br>
> > > exit status 1<br>
> > > Verifying : ovirt-engine-backend-3.3.0-15.fc17.noarch 1/1<br>
> > ><br>
> > > Failed:<br>
> > > ovirt-engine-backend.noarch 0:3.3.0-15.fc17<br>
> > ><br>
> > > Complete!<br>
> > ><br>
> > > - DHC<br>
> > ><br>
> > ><br>
> > ><br>
> > > _______________________________________________<br>
> > > Engine-devel mailing list<br>
> > > <a href="mailto:Engine-devel@ovirt.org">Engine-devel@ovirt.org</a><br>
> > > <a href="http://lists.ovirt.org/mailman/listinfo/engine-devel" target="_blank">http://lists.ovirt.org/mailman/listinfo/engine-devel</a><br>
> > ><br>
> ><br>
><br>
</div></div></blockquote></div><br></div>