Change-Id: I0783c3f0ab3b02bf6ad3c70a8a0c3b437036d552
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/6723
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
Tested-by: Anish Swaminathan <anishs@vmware.com>
| ... | ... |
@@ -1,22 +1,21 @@ |
| 1 | 1 |
Name: WALinuxAgent |
| 2 | 2 |
Summary: The Windows Azure Linux Agent |
| 3 |
-Version: 2.2.22 |
|
| 3 |
+Version: 2.2.35 |
|
| 4 | 4 |
Release: 1%{?dist}
|
| 5 | 5 |
License: Apache License Version 2.0 |
| 6 | 6 |
Group: System/Daemons |
| 7 | 7 |
Url: https://github.com/Azure/WALinuxAgent |
| 8 | 8 |
Source0: %{name}-%{version}.tar.gz
|
| 9 | 9 |
Patch0: photondistroadd.patch |
| 10 |
-%define sha1 WALinuxAgent=e8389d8f5982df5d8d59f7475df22d87c5f4d031 |
|
| 10 |
+%define sha1 WALinuxAgent=2cebed7efab54adb634c97519900f7a1de55403a |
|
| 11 | 11 |
Vendor: VMware, Inc. |
| 12 | 12 |
Distribution: Photon |
| 13 |
- |
|
| 14 | 13 |
BuildRequires: python2 |
| 15 | 14 |
BuildRequires: python2-libs |
| 16 | 15 |
BuildRequires: python-setuptools |
| 17 | 16 |
BuildRequires: python-xml |
| 18 | 17 |
BuildRequires: systemd |
| 19 |
- |
|
| 18 |
+BuildRequires: python-distro |
|
| 20 | 19 |
Requires: python2 |
| 21 | 20 |
Requires: python2-libs |
| 22 | 21 |
Requires: python-xml |
| ... | ... |
@@ -29,7 +28,6 @@ Requires: /bin/grep |
| 29 | 29 |
Requires: sudo |
| 30 | 30 |
Requires: iptables |
| 31 | 31 |
Requires: systemd |
| 32 |
- |
|
| 33 | 32 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
| 34 | 33 |
BuildArch: noarch |
| 35 | 34 |
|
| ... | ... |
@@ -78,6 +76,8 @@ python2 setup.py check && python2 setup.py test |
| 78 | 78 |
/usr/lib/python2.7/site-packages/* |
| 79 | 79 |
|
| 80 | 80 |
%changelog |
| 81 |
+* Tue Feb 12 2019 Tapas Kundu <tkundu@vmware.com> 2.2.35-1 |
|
| 82 |
+- Update to 2.2.35 |
|
| 81 | 83 |
* Wed Feb 28 2018 Anish Swaminathan <anishs@vmware.com> 2.2.22-1 |
| 82 | 84 |
- Update to 2.2.22 |
| 83 | 85 |
* Mon Sep 18 2017 Alexey Makhalov <amakhalov@vmware.com> 2.2.14-2 |
| ... | ... |
@@ -1,6 +1,5 @@ |
| 1 |
-diff -rupN WALinuxAgent-2.2.22/azurelinuxagent/common/osutil/factory.py WALinuxAgent-2.2.22-new/azurelinuxagent/common/osutil/factory.py |
|
| 2 |
-+++ WALinuxAgent-2.2.22-new/azurelinuxagent/common/osutil/factory.py 2018-02-28 17:24:49.320447232 -0800 |
|
| 1 |
+--- a/azurelinuxagent/common/osutil/factory.py 2019-02-12 18:32:02.014403649 +0530 |
|
| 3 | 2 |
@@ -21,6 +21,7 @@ from azurelinuxagent.common.version impo |
| 4 | 3 |
from .default import DefaultOSUtil |
| 5 | 4 |
from .arch import ArchUtil |
| ... | ... |
@@ -9,19 +8,19 @@ diff -rupN WALinuxAgent-2.2.22/azurelinuxagent/common/osutil/factory.py WALinuxA |
| 9 | 9 |
from .coreos import CoreOSUtil |
| 10 | 10 |
from .debian import DebianOSUtil |
| 11 | 11 |
from .freebsd import FreeBSDOSUtil |
| 12 |
-@@ -46,6 +47,9 @@ def get_osutil(distro_name=DISTRO_NAME, |
|
| 13 |
- or distro_name == "clear linux software for intel architecture": |
|
| 12 |
+@@ -49,6 +50,10 @@ def get_osutil(distro_name=DISTRO_NAME, |
|
| 13 |
+ if "Clear Linux" in distro_full_name: |
|
| 14 | 14 |
return ClearLinuxUtil() |
| 15 | 15 |
|
| 16 | 16 |
+ if distro_name == "photonos": |
| 17 | 17 |
+ return PhotonOSUtil() |
| 18 | 18 |
+ |
| 19 |
++ |
|
| 19 | 20 |
if distro_name == "ubuntu": |
| 20 | 21 |
if Version(distro_version) in [Version("12.04"), Version("12.10")]:
|
| 21 | 22 |
return Ubuntu12OSUtil() |
| 22 |
-diff -rupN WALinuxAgent-2.2.22/azurelinuxagent/common/osutil/photonos.py WALinuxAgent-2.2.22-new/azurelinuxagent/common/osutil/photonos.py |
|
| 23 |
-+++ WALinuxAgent-2.2.22-new/azurelinuxagent/common/osutil/photonos.py 2018-02-28 17:24:49.320447232 -0800 |
|
| 23 |
+--- a/azurelinuxagent/common/osutil/photonos.py 2019-02-12 18:42:54.290386210 +0530 |
|
| 24 | 24 |
@@ -0,0 +1,88 @@ |
| 25 | 25 |
+# |
| 26 | 26 |
+# Copyright 2017 Microsoft Corporation |
| ... | ... |
@@ -111,24 +110,20 @@ diff -rupN WALinuxAgent-2.2.22/azurelinuxagent/common/osutil/photonos.py WALinux |
| 111 | 111 |
+ except IOError as e: |
| 112 | 112 |
+ raise OSUtilError("Failed to delete root password:{0}".format(e))
|
| 113 | 113 |
+ pass |
| 114 |
-diff -rupN WALinuxAgent-2.2.22/azurelinuxagent/common/version.py WALinuxAgent-2.2.22-new/azurelinuxagent/common/version.py |
|
| 115 |
-+++ WALinuxAgent-2.2.22-new/azurelinuxagent/common/version.py 2018-02-28 17:24:49.320447232 -0800 |
|
| 116 |
-@@ -98,6 +98,9 @@ def get_distro(): |
|
| 114 |
+--- a/azurelinuxagent/common/version.py 2019-02-12 18:34:57.642398953 +0530 |
|
| 115 |
+@@ -100,6 +100,8 @@ def get_distro(): |
|
| 116 |
+ |
|
| 117 | 117 |
if os.path.exists("/etc/euleros-release"):
|
| 118 | 118 |
osinfo[0] = "euleros" |
| 119 |
- |
|
| 120 | 119 |
+ if os.path.exists("/etc/photon-release"):
|
| 121 | 120 |
+ osinfo[0] = "photonos" |
| 122 |
-+ |
|
| 121 |
+ |
|
| 123 | 122 |
# The platform.py lib has issue with detecting BIG-IP linux distribution. |
| 124 | 123 |
# Merge the following patch provided by F5. |
| 125 |
- if os.path.exists("/shared/vadc"):
|
|
| 126 |
-diff -rupN WALinuxAgent-2.2.22/config/photonos/waagent.conf WALinuxAgent-2.2.22-new/config/photonos/waagent.conf |
|
| 127 |
-+++ WALinuxAgent-2.2.22-new/config/photonos/waagent.conf 2018-02-28 17:24:49.320447232 -0800 |
|
| 128 |
-@@ -0,0 +1,81 @@ |
|
| 129 |
-+# |
|
| 124 |
+--- a/config/photonos/waagent.conf 2019-02-12 18:42:31.402386821 +0530 |
|
| 125 |
+@@ -0,0 +1,80 @@ |
|
| 130 | 126 |
+# Microsoft Azure Linux Agent Configuration |
| 131 | 127 |
+# |
| 132 | 128 |
+ |
| ... | ... |
@@ -209,9 +204,8 @@ diff -rupN WALinuxAgent-2.2.22/config/photonos/waagent.conf WALinuxAgent-2.2.22- |
| 209 | 209 |
+# handling until inVMArtifactsProfile.OnHold is false. |
| 210 | 210 |
+# Default is disabled |
| 211 | 211 |
+# EnableOverProvisioning=n |
| 212 |
-diff -rupN WALinuxAgent-2.2.22/init/photonos/waagent.service WALinuxAgent-2.2.22-new/init/photonos/waagent.service |
|
| 213 |
-+++ WALinuxAgent-2.2.22-new/init/photonos/waagent.service 2018-02-28 17:24:49.320447232 -0800 |
|
| 212 |
+--- a/init/photonos/waagent.service 2019-02-12 18:42:08.370387437 +0530 |
|
| 214 | 213 |
@@ -0,0 +1,16 @@ |
| 215 | 214 |
+[Unit] |
| 216 | 215 |
+Description=Azure Linux Agent |
| ... | ... |
@@ -229,9 +223,8 @@ diff -rupN WALinuxAgent-2.2.22/init/photonos/waagent.service WALinuxAgent-2.2.22 |
| 229 | 229 |
+ |
| 230 | 230 |
+[Install] |
| 231 | 231 |
+WantedBy=multi-user.target |
| 232 |
-diff -rupN WALinuxAgent-2.2.22/setup.py WALinuxAgent-2.2.22-new/setup.py |
|
| 233 |
-+++ WALinuxAgent-2.2.22-new/setup.py 2018-02-28 17:24:49.320447232 -0800 |
|
| 232 |
+--- a/setup.py 2019-02-12 18:40:46.066389638 +0530 |
|
| 234 | 233 |
@@ -113,6 +113,12 @@ def get_data_files(name, version, fullna |
| 235 | 234 |
src=["config/clearlinux/waagent.conf"]) |
| 236 | 235 |
set_systemd_files(data_files, dest='/usr/lib/systemd/system', |
| 237 | 236 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,74 @@ |
| 0 |
+%{!?python2_sitelib: %define python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
|
|
| 1 |
+%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
|
|
| 2 |
+%define debug_package %{nil}
|
|
| 3 |
+ |
|
| 4 |
+Summary: Distro - an OS platform information API |
|
| 5 |
+Name: python-distro |
|
| 6 |
+Version: 1.4.0 |
|
| 7 |
+Release: 1%{?dist}
|
|
| 8 |
+License: ASL |
|
| 9 |
+Group: Development/Languages/Python |
|
| 10 |
+Vendor: VMware, Inc. |
|
| 11 |
+Distribution: Photon |
|
| 12 |
+Url: https://pypi.python.org/pypi/distro |
|
| 13 |
+Source0: https://files.pythonhosted.org/packages/ca/e3/78443d739d7efeea86cbbe0216511d29b2f5ca8dbf51a6f2898432738987/distro-%{version}.tar.gz
|
|
| 14 |
+%define sha1 distro=d72ac60844b2b472fc815441afe60fc1da728926 |
|
| 15 |
+ |
|
| 16 |
+BuildRequires: python2 |
|
| 17 |
+BuildRequires: python2-libs |
|
| 18 |
+BuildRequires: python3 |
|
| 19 |
+BuildRequires: python3-libs |
|
| 20 |
+BuildRequires: python-setuptools |
|
| 21 |
+BuildRequires: python3-setuptools |
|
| 22 |
+BuildRequires: python3-xml |
|
| 23 |
+%if %{with_check}
|
|
| 24 |
+BuildRequires: python-pip |
|
| 25 |
+%endif |
|
| 26 |
+ |
|
| 27 |
+Requires: python2 |
|
| 28 |
+Requires: python2-libs |
|
| 29 |
+BuildArch: noarch |
|
| 30 |
+ |
|
| 31 |
+%description |
|
| 32 |
+Distro provides information about the OS distribution it runs on, such as a reliable machine-readable ID, or version information. |
|
| 33 |
+ |
|
| 34 |
+%package -n python3-distro |
|
| 35 |
+Summary: python-distro |
|
| 36 |
+Requires: python3 |
|
| 37 |
+Requires: python3-libs |
|
| 38 |
+ |
|
| 39 |
+%description -n python3-distro |
|
| 40 |
+Python 3 version. |
|
| 41 |
+ |
|
| 42 |
+%prep |
|
| 43 |
+%setup -q -n distro-%{version}
|
|
| 44 |
+ |
|
| 45 |
+%build |
|
| 46 |
+python2 setup.py build |
|
| 47 |
+python3 setup.py build |
|
| 48 |
+ |
|
| 49 |
+%install |
|
| 50 |
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
| 51 |
+python2 setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
| 52 |
+ |
|
| 53 |
+%check |
|
| 54 |
+pip install tox |
|
| 55 |
+tox |
|
| 56 |
+ |
|
| 57 |
+%files |
|
| 58 |
+%defattr(-,root,root,-) |
|
| 59 |
+%{python2_sitelib}/*
|
|
| 60 |
+%doc CHANGELOG.md CONTRIBUTORS.md README.md |
|
| 61 |
+%license LICENSE |
|
| 62 |
+/usr/bin/* |
|
| 63 |
+ |
|
| 64 |
+%files -n python3-distro |
|
| 65 |
+%defattr(-,root,root,-) |
|
| 66 |
+%{python3_sitelib}/*
|
|
| 67 |
+/usr/bin/* |
|
| 68 |
+%doc CHANGELOG.md CONTRIBUTORS.md README.md |
|
| 69 |
+%license LICENSE |
|
| 70 |
+ |
|
| 71 |
+%changelog |
|
| 72 |
+* Tue Feb 12 2019 Tapas Kundu <tkundu@vmware.com> 1.4.0-1 |
|
| 73 |
+- Initial packaging for Photon |