Blame SPECS/WALinuxAgent.spec

8023bf
Summary: Microsoft Azure Linux Agent
8023bf
Name: WALinuxAgent
46ba25
Version: 2.7.0.6
907f67
Release: 8%{?dist}
8023bf
c53240
License: ASL 2.0
8023bf
Group: Development/Libraries
8023bf
Url: https://github.com/Azure/WALinuxAgent
46ba25
Source0: v2.7.0.6.tar.gz
8023bf
8023bf
BuildArch: noarch
8023bf
Patch0001: 0001-Add-inital-redhat-build-support.patch
46ba25
Patch0002: 0002-Implement-restart_if-for-RedHat-OS.patch
46ba25
# For bz#2080826 - [Azure][WALA][RHEL-8] [8.7] walinuxagent kills network during boot
46ba25
Patch0003: wla-redhat-Fix-command-sequence-for-restarting-net-inter.patch
46ba25
# For bz#2092002 - [Azure][WALA][RHEL-8.7] Provisioning failed if no ifcfg-eth0
46ba25
Patch4: wla-redhat-Use-NetworkManager-to-set-DHCP-hostnames-on-r.patch
46ba25
# For bz#2114824 - [Azure][WALA][RHEL-8.7] The description of "Logs.Collect" is incorrect
46ba25
Patch5: wla-Update-Log-Collector-default-in-Comments-and-Readme-.patch
907f67
# For bz#2170104 - [Azure][WALA][RHEL-8] systemd service should not use python3
907f67
Patch6: wla-Use-platform-python-in-waagent.service.patch
8023bf
8023bf
# rhel requirements
8023bf
BuildRequires:  python3-devel
8023bf
BuildRequires:  python3-setuptools
4420af
Requires:       %name-udev = %version-%release
8023bf
Requires:       openssh
8023bf
Requires:       openssh-server
8023bf
Requires:       openssl
8023bf
Requires:       parted
8023bf
Requires:       python3-pyasn1
c53240
Requires:       python36
23914f
Requires:       iptables
8023bf
8023bf
BuildRequires:   systemd
8023bf
Requires(post):  systemd
8023bf
Requires(preun): systemd
8023bf
Requires(postun): systemd
8023bf
8023bf
%description
8023bf
The Azure Linux Agent supports the provisioning and running of Linux
8023bf
VMs in the Azure cloud. This package should be installed on Linux disk
8023bf
images that are built to run in the Azure environment.
8023bf
4420af
%package udev
4420af
Summary:        Udev rules for Microsoft Azure
4420af
4420af
%description udev
4420af
Udev rules specific to Microsoft Azure Virtual Machines.
8023bf
8023bf
%prep
8023bf
%setup -q
8023bf
8023bf
%patch0001 -p1
46ba25
%patch0002 -p1
46ba25
%patch0003 -p1
39a8b9
%patch4 -p1
5d5c10
%patch5 -p1
907f67
%patch6 -p1
8023bf
8023bf
%build
8023bf
%py3_build
8023bf
8023bf
%install
8023bf
%{__python3} setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
c53240
rm -f %{buildroot}%{_sbindir}/waagent2.0
8023bf
4420af
mkdir -p %{buildroot}%{_udevrulesdir}
4420af
mv %{buildroot}%{_sysconfdir}/udev/rules.d/*.rules %{buildroot}%{_udevrulesdir}/
4420af
8023bf
%clean
8023bf
rm -rf $RPM_BUILD_ROOT
8023bf
8023bf
%post
8023bf
%systemd_post waagent.service
8023bf
8023bf
%preun
8023bf
%systemd_preun waagent.service
8023bf
8023bf
%postun
8023bf
%systemd_postun_with_restart waagent.service
46ba25
rm -rf %{_unitdir}/waagent.service.d/
8023bf
8023bf
%files 
8023bf
%defattr(-,root,root)
8023bf
%{python3_sitelib}/*
8023bf
%config(noreplace) %{_sysconfdir}/waagent.conf
06517b
%config(noreplace) %{_sysconfdir}/logrotate.d/waagent.logrotate
8023bf
%{_sbindir}/waagent
8023bf
%{_unitdir}/waagent.service
46ba25
%{_unitdir}/azure.slice
46ba25
%{_unitdir}/azure-vmextensions.slice
46ba25
%ghost %{_unitdir}/waagent-network-setup.service
4420af
4420af
%files udev
4420af
%{_udevrulesdir}/*.rules
8023bf
8023bf
%changelog
907f67
* Mon Mar 06 2023 Jon Maloy <jmaloy@redhat.com> - 2.7.0.6-8.el8_8
907f67
- wla-redhat-Fix-frh.py-to-not-skip-valid-patches-to-init-.patch [bz#2170104]
907f67
- wla-Use-platform-python-in-waagent.service.patch [bz#2170104]
907f67
- Resolves: bz#2170104
907f67
  ([Azure][WALA][RHEL-8] systemd service should not use python3)
907f67
907f67
* Mon Mar 06 2023 Jon Maloy <jmaloy@redhat.com> - 2.7.0.6-7.el8_8
907f67
- wla-redhat-Fix-frh.py-to-not-skip-valid-patches-to-init-.patch [bz#2170104]
907f67
- wla-Use-platform-python-in-waagent.service.patch [bz#2170104]
907f67
- Resolves: bz#2170104
907f67
  ([Azure][WALA][RHEL-8] systemd service should not use python3)
907f67
46ba25
* Mon Aug 29 2022 Miroslav Rezanina <mrezanin@redhat.com> - 2.7.0.6-6
46ba25
- wla-redhat-Remove-files-inside-WALA-services-directory.patch [bz#2114742]
46ba25
- Resolves: bz#2114742
46ba25
  ([Azure][WALA][RHEL-8] When remove package some files left)
46ba25
46ba25
* Tue Aug 23 2022 Miroslav Rezanina <mrezanin@redhat.com> - 2.7.0.6-5
46ba25
- wla-redhat-Mark-directories-properly-in-the-files-list.patch [bz#2114742]
46ba25
- Resolves: bz#2114742
46ba25
  ([Azure][WALA][RHEL-8] When remove package some files left)
46ba25
46ba25
* Wed Aug 17 2022 Jon Maloy <jmaloy@redhat.com> - 2.7.0.6-4
46ba25
- wla-redhat-Remove-all-waagent-unit-files-when-uninstalli.patch [bz#2114742]
46ba25
- Resolves: bz#2114742
46ba25
  ([Azure][WALA][RHEL-8] When remove package some files left)
46ba25
46ba25
* Tue Aug 09 2022 Miroslav Rezanina <mrezanin@redhat.com> - 2.7.0.6-3
46ba25
- wla-redhat-Use-NetworkManager-to-set-DHCP-hostnames-on-r.patch [bz#2092002]
46ba25
- wla-Update-Log-Collector-default-in-Comments-and-Readme-.patch [bz#2114824]
46ba25
- Resolves: bz#2092002
46ba25
  ([Azure][WALA][RHEL-8.7] Provisioning failed if no ifcfg-eth0)
46ba25
- Resolves: bz#2114824
46ba25
  ([Azure][WALA][RHEL-8.7] The description of "Logs.Collect" is incorrect)
46ba25
46ba25
* Tue Jul 12 2022 Camilla Conte <cconte@redhat.com> - 2.7.0.6-2
46ba25
- wla-redhat-Fix-command-sequence-for-restarting-net-inter.patch [bz#2080826]
46ba25
- Resolves: bz#2080826
46ba25
  ([Azure][WALA][RHEL-8] [8.7] walinuxagent kills network during boot)
46ba25
46ba25
* Wed May 25 2022 Miroslav Rezanina <mrezanin@redhat.com> - 2.7.0.6-1
46ba25
- Rebase to 2.7.0.6 [bz#2083465]
46ba25
- Adding restart_if implementation for RHEL [bz#2085578]
46ba25
- Resolves: bz#2083465
46ba25
  ([Azure][RHEL-8][8.7] Rebase WALinuxAgent to v2.7.0.6)
46ba25
- Resolves: bz#2085578
46ba25
  ([Azure][WALA][8.6] WALA provisions VM failed because of no "ifdown")
39a8b9
23914f
* Mon Aug 09 2021 Miroslav Rezanina <mrezanin@redhat.com> - 2.3.0.2-2
23914f
- wla-Require-iptables-for-setting-up-persistent-firewall-.patch [bz#1985198]
23914f
- Resolves: bz#1985198
23914f
  ([Azure][WALA][RHEL-8] WALA needs iptables package)
23914f
23914f
* Fri Jun 25 2021 Miroslav Rezanina <mrezanin@redhat.com> - 2.3.0.2-1
23914f
- Rebase to 2.3.0.2 [bz#1972102]
23914f
- Resolves: bz#1972102
23914f
  ([Azure][RHEL-8]Rebase WALinuxAgent to 2.3.0.2)
23914f
4420af
* Tue Jan 12 2021 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.49.2-3.el8
4420af
- wla-Provide-udev-rules-as-a-separate-subpackage.patch [bz#1913074]
4420af
- Resolves: bz#1913074
4420af
  ([Azure][RFE] please provide the WALinuxAgent-udev subpackage)
4420af
4420af
* Thu Dec 17 2020 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.49.2-2.el8
4420af
- wla-Fixed-faulty-check-for-run_command-2093.patch [bz#1903074]
4420af
- Resolves: bz#1903074
4420af
  ([Azure][WALA] Miss report "hostnamectl set-hostname --static] failed, attempting fallback")
4420af
4420af
* Wed Nov 18 2020 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.49.2-1.el8
4420af
- Rebase to 2.2.49.2 [bz#1896907]
4420af
  ([Azure] Rebase WALinuxAgent to 2.2.49)
4420af
06517b
* Thu Aug 13 2020 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.46-8.el8
06517b
- wla-Fix-handling-of-gen2-disks-with-udev-rules-1954.patch [bz#1859037]
06517b
- Resolves: bz#1859037
06517b
  ([Azure][WALA]Cannot create /dev/disk/azure/resource softlinks in Gen2 VM)
06517b
06517b
* Wed Jun 10 2020 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.46-7.el8
06517b
- wla-Mark-logrotate-configs-with-config-noreplace.patch [bz#1838254]
06517b
- Resolves: bz#1838254
06517b
  ([Azure]WALinuxAgent RPM update clobbers waagent.logrotate log rotation changes)
06517b
06517b
* Tue May 26 2020 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.46-6.el8
06517b
- wala-Update-Provisioning-options-1853.patch [bz#1827792]
06517b
- Resolves: bz#1822882
06517b
  ([Azure][RHEL-8]Some parameter changes are not in waagent.conf)
06517b
4420af
* Thu Apr 09 2020 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.46-5.el8
06517b
- Rebase to 2.2.46 [bz#1791069]
06517b
- Resolves: bz#1791069
06517b
  ([Azure][RHEL-8.3]Ask to increase the WALA version available for RHEL 8.0 to 2.2.46)
866c13
c53240
* Wed Jun 26 2019 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.32-3.el8
c53240
- wla-Switch-from-platform-python-to-python36.patch [bz#1720373]
c53240
- wla-Stop-packaging-legacy-waagent2.0.patch [bz#1720373]
c53240
- Resolves: bz#1720373
c53240
  ([RHEL 8.1] [Azure] Change WALinuxAgent spec to depend on Python3.6 package)
c53240
c53240
* Tue Apr 30 2019 Danilo Cesar Lemes de Paula <ddepaula@redhat.com> - 2.2.32-2.el8
c53240
- wla-Add-fixes-for-handling-swap-file-and-other-nit-fixes.patch [bz#1684181 bz#1688276]
c53240
- Resolves: bz#1684181
c53240
  (CVE-2019-0804 WALinuxAgent: swapfile created with weak permissions)
c53240
- Resolves: bz#1688276
8ecbb7
  (CVE-2019-0804 WALinuxAgent: swapfile created with weak permissions [rhel-8])
8ecbb7
8023bf
* Fri Dec 14 2018 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.32-1.el8
8023bf
- Rebase to 2.2.32 [bz#1639498]
8023bf
- Resolves: bz#1639498]
8023bf
  (walinuxagent 2.2.32 packaging request for RHEL 8)
8023bf
8023bf
* Tue Oct 23 2018 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.26-6.el8
8023bf
- wala-Use-sys.executable-to-find-system-python.patch [bz#1639775]
8023bf
- Resolves: bz#1639775
8023bf
  (WALinuxAgent: Systemd unit file will fail to execute)
8023bf
8023bf
* Mon Oct 22 2018 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.26-5.el8
8023bf
- wala-Switch-to-platform-python-in-systemd-unit-file.patch [bz#1639775]
8023bf
- Resolves: bz#1639775
8023bf
  (WALinuxAgent: Systemd unit file will fail to execute)
8023bf
8023bf
* Wed Aug 29 2018 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.26-4.el8
8023bf
- Fix unit file location [bz#1637545]
8023bf
- Resolves: bz#1637545
8023bf
  (Wrong macro used for systemd unit file location)
8023bf
8023bf
* Wed Jul 04 2018 Tomas Orsava <torsava@redhat.com> - 2.2.26-3
8023bf
- Switch hardcoded python3 shebangs into the %%{__python3} macro
8023bf
8023bf
* Tue Jul 03 2018 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.26-2.el8
8023bf
- Include 7.6 patches
8023bf
8023bf
* Tue Jul 03 2018 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.26-1.el7
8023bf
- Rebase to 2.2.26 [bz#1571523]
8023bf
- Resolves: bz#1571523
8023bf
  (Rebase WALinuxAgent in RHEL-8.0)
8023bf
8023bf
* Thu May 03 2018 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.18-2.el7
8023bf
- wa-Add-show-configuration-option.patch [bz#1508340]
8023bf
- Resolves: bz#1508340
8023bf
  ([WALA] WALA usage prompt lack of " waagent -show-configuration")
8023bf
8023bf
* Tue Oct 10 2017 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.18-1.el7
8023bf
- Rebase to 2.2.18 [bz#1491873]
8023bf
- Resolves: bz#1491873
8023bf
  ([WALA]Request to package WALA 2.2.18 into RHEL 7 Repo)
8023bf
8023bf
8023bf
* Tue Jul 04 2017 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.14-1.el7
8023bf
- Rebase to 2.2.14 [bz#1451172]
8023bf
- wla-Remove-FIPS-setting-from-the-default-config.patch [bz#1467553]
8023bf
- Resolves: bz#1451172
8023bf
  ([WALA] Request to package WALA 2.2.14 into RHEL 7 Repo)
8023bf
- Resolves: bz#1467553
8023bf
  ([WALA] Remove FIPS from default config in WALA-2.2.14)
8023bf
8023bf
* Wed Apr 26 2017 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.10-1.el7
8023bf
- Rebase to 2.2.10 [bz#1443425]
8023bf
- Resolves: bz#1443425
8023bf
  ([WALA]Request to package WALA 2.2.10 into RHEL 7 Repo)
8023bf
8023bf
* Wed Apr 19 2017 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.4-2.el7
8023bf
- Enable AutoUpdate by default [bz#1434933]
8023bf
- Resolves: bz#1434933
8023bf
  ([WALA][RHEL-7] Enable AutoUpdate by default)
8023bf
8023bf
* Wed Mar 01 2017 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.4-1.el7
8023bf
- Rebase to 2.2.4 [bz#1419201]
8023bf
- resolves: bz#1419201
8023bf
  WALA 2.2.4
8023bf
8023bf
* Mon Jan 16 2017 Miroslav Rezanina <mrezanin@redhat.com> - 2.2.0-4.el7
8023bf
- agent-RHEL-7-hostname-533.patch [bz#1413674]
8023bf
- agent-fix-for-hostnamectl-534.patch [bz#1413674]
8023bf
- Resolves: bz#1413674
8023bf
  ([WALA] Fail to send hostname to DHCP server during provisioning)
8023bf
8023bf
* Fri Sep 30 2016 Dave Anderson <anderson@redhat.com> - 2.2.0-1
8023bf
- Update to v2.2.0
8023bf
  Resolves: rhbz#1360492
8023bf
8023bf
* Wed Sep 21 2016 Dave Anderson <anderson@redhat.com> - 2.1.5-2
8023bf
- Several QE updates to this file
8023bf
  Resolves: rhbz#1360492
8023bf
8023bf
* Tue Sep 13 2016 Dave Anderson <anderson@redhat.com> - 2.1.5-1
8023bf
- Update to v2.1.5
8023bf
  Resolves: rhbz#1360492
8023bf
8023bf
* Thu Jan 14 2016 Dave Anderson <anderson@redhat.com> - 2.0.16-1
8023bf
- Update to 2.0.16
8023bf
  Resolves: rhbz#1296360
8023bf
8023bf
* Mon Jun 01 2015 Dave Anderson <anderson@redhat.com> - 2.0.13-1
8023bf
- Update to upstream 2.0.13 package.
8023bf
- Remove global commit md5sum and fix Source0 to point to correct location.
8023bf
- Fix setup to deal with "WALinuxAgent-WALinuxAgent" naming scheme
8023bf
- Added files reference for /udev/rules.d/99-azure-product-uuid.rules
8023bf
8023bf
* Thu May 07 2015 Dave Anderson <anderson@redhat.com> - 2.0.11-3
8023bf
- Remove Requires: ntfsprogs for RHEL7
8023bf
8023bf
* Sat Jan 10 2015 Scott K Logan <logans@cottsay.net> - 2.0.11-2
8023bf
- Use systemd for rhel7
8023bf
- Own logrotate.d
8023bf
- Fix python2-devel dep
8023bf
8023bf
* Sat Dec 20 2014 Scott K Logan <logans@cottsay.net> - 2.0.11-1
8023bf
- Initial package