# # ovirt-hosted-engine-ha -- ovirt hosted engine high availability # Copyright (C) 2013-2021 Red Hat, Inc. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # %global package_version 2.5.0-0.0.master.20211216105450 %global package_name ovirt-hosted-engine-ha %global engine_ha_bindir /usr/share/ovirt-hosted-engine-ha %global engine_ha_confdir /etc/ovirt-hosted-engine-ha %global engine_ha_logdir /var/log/ovirt-hosted-engine-ha %global engine_ha_rundir /var/run/ovirt-hosted-engine-ha %global engine_ha_statedir /var/lib/ovirt-hosted-engine-ha %global vdsm_user vdsm %global vdsm_group kvm %global vdsm_version 4.40.0 %global engine_ha_libdir %{python3_sitelib}/ovirt_hosted_engine_ha Summary: oVirt Hosted Engine High Availability Manager Name: ovirt-hosted-engine-ha Version: 2.5.0 Release: 0.0.master.20211216105450.20211216105448.git6c00f7d%{?dist} License: LGPLv2+ URL: http://www.ovirt.org Source: http://resources.ovirt.org/pub/src/%{name}/%{name}-%{package_version}.tar.gz Group: Applications/System BuildArch: noarch # Python dependencies Requires: python3 Requires: python3-six # OTOPI is needed for the cli client Requires: python3-otopi >= 1.9.0 Requires: python3-sanlock >= 3.7.3 Requires: python3-lxml # TODO: check it on el8 Requires: python3-daemon BuildRequires: python3 BuildRequires: python3-devel BuildRequires: python3-lxml # Non Python dependencies Requires: bind-utils Requires: nmap-ncat Requires: sanlock >= 3.7.3 Requires: sudo Requires(pre): vdsm >= %{vdsm_version} Requires(post): vdsm >= %{vdsm_version} Requires: vdsm >= %{vdsm_version} Requires: vdsm-client >= %{vdsm_version} Requires: vdsm-python >= %{vdsm_version} Conflicts: ovirt-hosted-engine-setup < 2.4 %{?systemd_requires} BuildRequires: systemd %description Hosted engine manager for oVirt project. %prep %setup -q -n %{name}-%{package_version} %build %configure \ --docdir="%{_docdir}/%{name}-%{version}" \ --disable-python-syntax-check \ %{?conf} make %{?_smp_mflags} %install make %{?_smp_mflags} install DESTDIR="%{buildroot}" install -dDm 0700 %{buildroot}%{engine_ha_logdir} install -dDm 0700 %{buildroot}%{engine_ha_rundir} install -dDm 0700 %{buildroot}%{engine_ha_statedir} # Install the systemd scripts install -Dm 0644 initscripts/ovirt-ha-agent.service %{buildroot}%{_unitdir}/ovirt-ha-agent.service install -Dm 0644 initscripts/ovirt-ha-broker.service %{buildroot}%{_unitdir}/ovirt-ha-broker.service install -dDm 0750 %{buildroot}%{_sysconfdir}/sudoers.d install -Dm 0440 sudoers/sudoers %{buildroot}%{_sysconfdir}/sudoers.d/60_ovirt-ha %files %license COPYING %doc README.md %doc doc/*.html doc/*.js %dir %{engine_ha_confdir} %config(noreplace) %{engine_ha_confdir}/agent-log.conf %config(noreplace) %{engine_ha_confdir}/agent.conf %config(noreplace) %{engine_ha_confdir}/broker-log.conf %dir %{engine_ha_confdir}/notifications %config(noreplace) %{engine_ha_confdir}/notifications/* %dir %{engine_ha_bindir} %{engine_ha_bindir}/ovirt-ha-agent %{engine_ha_bindir}/ovirt-ha-broker %dir %{engine_ha_libdir} %{engine_ha_libdir}/* %{_unitdir}/ovirt-ha-agent.service %{_unitdir}/ovirt-ha-broker.service %config(noreplace) %{_sysconfdir}/sudoers.d/60_ovirt-ha %defattr(-, %{vdsm_user}, %{vdsm_group}, -) %dir %{engine_ha_logdir} %ghost %dir %{engine_ha_rundir} %dir %{engine_ha_statedir} %config(noreplace) %{engine_ha_statedir}/ha.conf %config(noreplace) %{engine_ha_statedir}/broker.conf %defattr(640, %{vdsm_user}, %{vdsm_group}, -) %ghost %{engine_ha_logdir}/agent.log %ghost %{engine_ha_logdir}/broker.log %post # Fix answerfile ownership for upgrade purposes: if the configuration volume # is still not on the shared storage (upgrading from 3.5 time), ovirt-ha-agent # is going to create it uploading local files. # ovirt-ha-agent runs as vdsm user so we have to be sure it could read the # initial answerfile. if [ -e %{_sysconfdir}/ovirt-hosted-engine/answers.conf ] ; then chown root:kvm %{_sysconfdir}/ovirt-hosted-engine/answers.conf fi # Copy previous broker.conf on upgrade path if [ $1 -gt 1 ] ; then if [ -e "%{engine_ha_confdir}/broker.conf" ]; then cp "%{engine_ha_confdir}/broker.conf" "%{engine_ha_statedir}/broker.conf" chown %{vdsm_user}:%{vdsm_group} "%{engine_ha_statedir}/broker.conf" fi fi %systemd_post ovirt-ha-agent.service %systemd_post ovirt-ha-broker.service if [ "$1" -eq 1 ] ; then #We don't want the service to be started by default before the system #is configured and Hosted Engine VM deployed /usr/bin/systemctl --no-reload disable ovirt-ha-agent.service /usr/bin/systemctl --no-reload disable ovirt-ha-broker.service fi # Fix logfile ownership for upgrade purposes if [ -e %{engine_ha_logdir}/agent.log ] ; then chown %{vdsm_user}:%{vdsm_group} %{engine_ha_logdir}/agent.log fi if [ -e %{engine_ha_logdir}/broker.log ] ; then chown %{vdsm_user}:%{vdsm_group} %{engine_ha_logdir}/broker.log fi %preun %systemd_preun ovirt-ha-agent.service %systemd_preun ovirt-ha-broker.service %postun %systemd_postun_with_restart ovirt-ha-agent.service %systemd_postun_with_restart ovirt-ha-broker.service %changelog * Fri Sep 10 2021 Sandro Bonazzola - 2.5.0-0.0.master - 2.5.0-0.0.master * Tue Jul 27 2021 Asaf Rachmani - 2.4.9-0.0.master - 2.4.9-0.0.master * Tue Jul 27 2021 Asaf Rachmani - 2.4.8-1 - 2.4.8-1 * Thu May 13 2021 Asaf Rachmani - 2.4.8-0.0.master - 2.4.8-0.0.master * Thu May 13 2021 Asaf Rachmani - 2.4.7-1 - 2.4.7-1 * Wed Feb 03 2021 Asaf Rachmani - 2.4.7-0.0.master - 2.4.7-0.0.master * Wed Feb 03 2021 Asaf Rachmani - 2.4.6-1 - 2.4.6-1 * Tue Oct 06 2020 Asaf Rachmani - 2.4.6-0.0.master - 2.4.6-0.0.master * Tue Oct 06 2020 Asaf Rachmani - 2.4.5-1 - 2.4.5-1 * Tue Jun 30 2020 Asaf Rachmani - 2.4.5-0.0.master - 2.4.5-0.0.master * Tue Jun 30 2020 Asaf Rachmani - 2.4.4-1 - 2.4.4-1 * Tue May 12 2020 Asaf Rachmani - 2.4.4-0.0.master - 2.4.4-0.0.master * Tue May 12 2020 Asaf Rachmani - 2.4.3-1 - 2.4.3-1 * Thu Jan 30 2020 - Yedidyah Bar David - 2.4.2-1 - 2.4.2-1 * Tue Jan 21 2020 Evgeny Slutsky - 2.4.2-0.0.master - 2.4.2-0.0.master * Tue Jan 21 2020 Evgeny Slutsky - 2.4.1-1 - 2.4.1-1 * Mon Nov 25 2019 Evgeny Slutsky - 2.4.1-0.0.master - 2.4.1-0.0.master * Mon Nov 25 2019 Evgeny Slutsky - 2.4.0-1 - 2.4.0-1 * Thu Feb 07 2019 Simone Tiraboschi - 2.4.0-0.0.master - 2.4.0-0.0.master * Tue Jan 22 2019 Simone Tiraboschi - 2.3.2-0.0.master - 2.3.2-0.0.master * Tue Jan 22 2019 Simone Tiraboschi - 2.3.1-1 - 2.3.1-1 * Wed Jan 09 2019 Simone Tiraboschi - 2.3.1-0.0.master - 2.3.1-0.0.master * Wed Jan 09 2019 Simone Tiraboschi - 2.3.0-1 - 2.3.0-1 * Wed Nov 21 2018 Simone Tiraboschi - 2.3.0-0.2.master - 2.3.0-0.2.master * Wed Nov 21 2018 Simone Tiraboschi - 2.3.0-0.1.beta - 2.3.0-0.1.beta * Mon Feb 12 2018 Simone Tiraboschi - 2.2.3-0.0.master - 2.2.3-0.0.master * Wed Jan 17 2018 Simone Tiraboschi - 2.2.5-0.0.master - 2.2.5-0.0.master * Wed Jan 17 2018 Simone Tiraboschi - 2.2.4-1 - 2.2.4-1 * Wed Jan 10 2018 Simone Tiraboschi - 2.2.4-0.0.master - 2.2.4-0.0.master * Wed Jan 10 2018 Simone Tiraboschi - 2.2.3-1 - 2.2.3-1 * Thu Dec 14 2017 Simone Tiraboschi - 2.2.3-0.0.master - 2.2.3-0.0.master * Thu Dec 14 2017 Simone Tiraboschi - 2.2.2-1 - 2.2.2-1 * Mon Dec 11 2017 Simone Tiraboschi - 2.2.2-0.0.master - 2.2.2-0.0.master * Mon Dec 11 2017 Simone Tiraboschi - 2.2.1-1 - 2.2.1-1 * Mon Nov 27 2017 Sandro Bonazzola - 2.2.1-0.0.master - 2.2.1-0.0.master * Mon Nov 27 2017 Sandro Bonazzola - 2.2.0-1 - 2.2.0-1 * Wed Dec 21 2016 Simone Tiraboschi - 2.2.0-0.0.master - 2.2.0-0.0.master * Tue May 31 2016 Sandro Bonazzola - 2.0.0-1 - 2.0.0-1 * Wed May 18 2016 Simone Tiraboschi - 2.0.0-0.2.master - 2.0.0-0.2.master * Wed May 18 2016 Simone Tiraboschi - 2.0.0-0.1.beta1 - 2.0.0-0.1.beta1 * Thu Sep 24 2015 Sandro Bonazzola - 2.0.0-0.0.master - 2.0.0-0.0.master