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