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(a)gmail.com>
To: "Alon Bar-Lev" <alonbl(a)redhat.com>
Cc: engine-devel(a)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(a)redhat.com> wrote:
> Is this fedora 17 or 18?
>
> I guess it is fedora 17.
>
> ----- Original Message -----
> > From: "Dead Horse" <deadhorseconsulting(a)gmail.com>
> > To: engine-devel(a)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@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@ovirtfoo /]# rpm -qa | grep oto
> > protobuf-java-2.4.1-12.fc17.x86_64
> > libgphoto2-2.4.14-1.fc17.x86_64
> > [root@ovirtfoo /]# rpm -qa | grep ovirt
> > ovirt-engine-backend-3.3.0-15.fc17.noarch
> > [root@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(a)ovirt.org
> >
http://lists.ovirt.org/mailman/listinfo/engine-devel
> >
>