commit python-azure-agent for openSUSE:Factory

2020-10-12 Thread root
Hello community,

here is the log from the commit of package python-azure-agent for 
openSUSE:Factory checked in at 2020-10-12 13:58:18

Comparing /work/SRC/openSUSE:Factory/python-azure-agent (Old)
 and  /work/SRC/openSUSE:Factory/.python-azure-agent.new.3486 (New)


Package is "python-azure-agent"

Mon Oct 12 13:58:18 2020 rev:17 rq:840879 version:2.2.49.2

Changes:

--- /work/SRC/openSUSE:Factory/python-azure-agent/python-azure-agent.changes
2020-10-02 17:29:27.814457552 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-azure-agent.new.3486/python-azure-agent.changes
  2020-10-12 13:59:35.178222891 +0200
@@ -1,0 +2,6 @@
+Sat Oct  3 15:33:42 UTC 2020 - Robert Schweikert 
+
+- Update proper_dhcp_config_set.patch (bsc#1177161, bsc#1177257)
+  + Add missing imports
+
+---



Other differences:
--
++ proper_dhcp_config_set.patch ++
--- /var/tmp/diff_new_pack.vkj5Wd/_old  2020-10-12 13:59:35.742223127 +0200
+++ /var/tmp/diff_new_pack.vkj5Wd/_new  2020-10-12 13:59:35.742223127 +0200
@@ -1,6 +1,19 @@
+Index: azurelinuxagent/common/osutil/suse.py
+===
 --- azurelinuxagent/common/osutil/suse.py.orig
 +++ azurelinuxagent/common/osutil/suse.py
-@@ -69,9 +69,62 @@ class SUSEOSUtil(SUSE11OSUtil):
+@@ -16,7 +16,10 @@
+ # Requires Python 2.6+ and Openssl 1.0+
+ #
+ 
++import time
++
+ import azurelinuxagent.common.utils.fileutil as fileutil
++import azurelinuxagent.common.logger as logger
+ import azurelinuxagent.common.utils.shellutil as shellutil
+ from azurelinuxagent.common.exception import OSUtilError
+ from azurelinuxagent.common.future import ustr
+@@ -69,9 +72,62 @@ class SUSEOSUtil(SUSE11OSUtil):
  super(SUSEOSUtil, self).__init__()
  self.dhclient_name = 'wickedd-dhcp4'
  




commit python-azure-agent for openSUSE:Factory

2020-10-02 Thread root
Hello community,

here is the log from the commit of package python-azure-agent for 
openSUSE:Factory checked in at 2020-10-02 17:28:17

Comparing /work/SRC/openSUSE:Factory/python-azure-agent (Old)
 and  /work/SRC/openSUSE:Factory/.python-azure-agent.new.4249 (New)


Package is "python-azure-agent"

Fri Oct  2 17:28:17 2020 rev:16 rq:835300 version:2.2.49.2

Changes:

--- /work/SRC/openSUSE:Factory/python-azure-agent/python-azure-agent.changes
2020-08-15 21:20:37.591631772 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-azure-agent.new.4249/python-azure-agent.changes
  2020-10-02 17:29:27.814457552 +0200
@@ -1,0 +2,72 @@
+Thu Sep 10 13:02:13 UTC 2020 - Robert Schweikert 
+
+- Update to version 2.2.49.2 (bsc#1176368, bsc#1176369)
+  + Remove paa_use_hostnamectl.patch included upstream
+  + Forwrad port proper_dhcp_config_set.patch
+  + Do not use --unit with systemd-cgls (#1910)
+  + Report processes that do not belong to the agent's cgroup (#1908)
+  + Use controller mount point for extension cgroup path (#1899)
+  + Improvements in setup of cgroups (#1896)
+  + Remove ExtensionsMetricsData and per-process Memory data (#1884)
+  + Fix return value of start_extension_command (#1927)
+  + Remove import * (#1900)
+  + Fix flaky ExtensionCleanupTest class (#1898)
+  + Fix codecov badge (#1883)
+  + Changed codecov to run on py3.8 (#1875)
+  + Update documentation on /dev/random (#1909)
+  + Mount options are in mount(8) (#1893)
+  + Remove ssh host key thumbprint in report ready (#1913)
+  + Emit AutoUpdate value at service start only (#1907)
+  + Add logging for version mismatch (#1895)
+  + Send telemetry event if libdir changes (#1897)
+  + Add log collector utility (#1847)
+  + Move AutoUpdate reporting to HeartBeat event (#1919)
+  + Removing infinite download of extension manifest without a new GS (#1874)
+  + Fix wrongful dir deletion (#1873)
+  + Fix the cleanup-outdated-handlers to only delete handlers that are not
+present in the GS (#1889)
+  + Expose periods of environment thread in waagent.conf (#1891)
+  + Added user @kevinclark19a as Contributor. (#1906)
+
+- From 2.2.48.1
+  + Refactoring GoalState class out of Protocol, making Protocol thread-safe,
+removing stale dependencies of Protocol and removing the dependency on
+the file system to read the Protocol info
+  + Fetch goal state when creating HostPluginProtocol (#1799)
+  + Separate goal state from the protocol class (#1777)
+  + Make protocol util a singleton per thread (#1743, #1756)
+  + Fetch goal state before sending telemetry (#1751)
+  + Remove file dependency (#1754)
+  + Others (#1758, #1767, #1744, #1749, #1816, #1820)
+  + New logs for goal state fetch (#1797) and refresh (#1794).
+  + Thread name added to logs (#1778)
+  + Populate telemetry events at creation time (#1791)
+  + Periodic HeartBeat to be logged to the file (#1755)
+  + Add unit test to verify call stacks on telemetry events (#1828)
+  + Others (#1841, #1842, #1846)
+  + Handling errors while reading extension status files
+(Limiting Size and Transient issues)(#1761)
+  + Enable SWAP on Resource Disk as Application Certification Support
+suggested (#1762)
+  + Update 'Provisioning' options in default configs ( #1853)
+  + Drop Metadata Server Support (#1806, #1839, #1840 )
+  + Improve documentation of ResourceDisk.EnableSwapEncryption (#1782)
+  + Removed is_snappy function (#1774)
+  + Handle exceptions in monitor thread (#1770)
+  + Fix timestamp for periodic operations in the monitor thread (#1879)
+  + Fix permissions on the Ubuntu systemd service file (#1814)
+  + Update hostname setting for SUSE distros (#1832)
+  + Python 3.8 improvements + support for Ubuntu 20.04 (#1860, #1865, #1738)
+  + Testing and dev-infra improvements
+[#1771, #1768, #1800, #1826, #1827, #1833]
+  + Others (#1854, #1858)
+
+- From 2.2.46
+  + [#1741] Do not update goal state when refreshing the host plugin
+  + [#1731] Fix upgrade sequence when update command fails
+  + [#1725] Initialize CPU usage
+  + [#1716, #1737] Added UTC logging and correcting the format
+  + [#1651, #1729] Start sending PerformanceCounter metrics and
+additional memory information for Cgroups
+
+---

Old:

  WALinuxAgent-2.2.45.tar.gz
  paa_use_hostnamectl.patch

New:

  WALinuxAgent-2.2.49.2.tar.gz



Other differences:
--
++ python-azure-agent.spec ++
--- /var/tmp/diff_new_pack.zkmge7/_old  2020-10-02 17:29:33.822461149 +0200
+++ /var/tmp/diff_new_pack.zkmge7/_new  2020-10-02 17:29:33.826461151 +0200
@@ -20,13 +20,12 @@
 Summary:Microsoft Azure Linux Agent
 License:Apache-2.0
 Group:  System/Daemons
-Version:2.2.45
+Version: 

commit python-azure-agent for openSUSE:Factory

2020-08-15 Thread root
Hello community,

here is the log from the commit of package python-azure-agent for 
openSUSE:Factory checked in at 2020-08-15 21:19:41

Comparing /work/SRC/openSUSE:Factory/python-azure-agent (Old)
 and  /work/SRC/openSUSE:Factory/.python-azure-agent.new.3399 (New)


Package is "python-azure-agent"

Sat Aug 15 21:19:41 2020 rev:15 rq:826678 version:2.2.45

Changes:

--- /work/SRC/openSUSE:Factory/python-azure-agent/python-azure-agent.changes
2020-07-27 17:38:39.286900415 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-azure-agent.new.3399/python-azure-agent.changes
  2020-08-15 21:20:37.591631772 +0200
@@ -1,0 +2,6 @@
+Fri Aug 14 12:59:45 UTC 2020 - Robert Schweikert 
+
+- Drop paa_sudo_sle15_nopwd.patch (bsc#1175198)
+  + sudoers file is managed by cloud-init we no longer need this hack
+
+---

Old:

  paa_sudo_sle15_nopwd.patch



Other differences:
--
++ python-azure-agent.spec ++
--- /var/tmp/diff_new_pack.uNz27Q/_old  2020-08-15 21:20:41.083633765 +0200
+++ /var/tmp/diff_new_pack.uNz27Q/_new  2020-08-15 21:20:41.087633767 +0200
@@ -26,7 +26,6 @@
 Source0:WALinuxAgent-%{version}.tar.gz
 Patch1: agent-no-auto-update.patch
 Patch6: paa_force_py3_sle15.patch
-Patch9: paa_sudo_sle15_nopwd.patch
 Patch10:paa_use_hostnamectl.patch
 Patch11:proper_dhcp_config_set.patch
 BuildRequires:  dos2unix
@@ -121,9 +120,6 @@
 %if 0%{?suse_version} && 0%{?suse_version} > 1315
 %patch6
 %endif
-%if 0%{?suse_version} && 0%{?suse_version} > 1315
-%patch9
-%endif
 %patch10
 %patch11
 




commit python-azure-agent for openSUSE:Factory

2020-07-27 Thread root
Hello community,

here is the log from the commit of package python-azure-agent for 
openSUSE:Factory checked in at 2020-07-27 17:38:27

Comparing /work/SRC/openSUSE:Factory/python-azure-agent (Old)
 and  /work/SRC/openSUSE:Factory/.python-azure-agent.new.3592 (New)


Package is "python-azure-agent"

Mon Jul 27 17:38:27 2020 rev:14 rq:822699 version:2.2.45

Changes:

--- /work/SRC/openSUSE:Factory/python-azure-agent/python-azure-agent.changes
2020-04-01 19:14:29.707427368 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-azure-agent.new.3592/python-azure-agent.changes
  2020-07-27 17:38:39.286900415 +0200
@@ -1,0 +2,8 @@
+Fri Jul 17 17:20:01 UTC 2020 - Robert Schweikert 
+
+- Add proper_dhcp_config_set.patch (bsc#1173866)
+  + Properly set the dhcp configuration to push the hostname to the DHCP
+server
+  + Do not bring the interface down to push the hostname, just use ifup
+
+---

New:

  proper_dhcp_config_set.patch



Other differences:
--
++ python-azure-agent.spec ++
--- /var/tmp/diff_new_pack.mD3ygp/_old  2020-07-27 17:38:40.538901633 +0200
+++ /var/tmp/diff_new_pack.mD3ygp/_new  2020-07-27 17:38:40.538901633 +0200
@@ -28,6 +28,7 @@
 Patch6: paa_force_py3_sle15.patch
 Patch9: paa_sudo_sle15_nopwd.patch
 Patch10:paa_use_hostnamectl.patch
+Patch11:proper_dhcp_config_set.patch
 BuildRequires:  dos2unix
 
 BuildRequires:  distribution-release
@@ -124,6 +125,7 @@
 %patch9
 %endif
 %patch10
+%patch11
 
 %build
 %if 0%{?suse_version} && 0%{?suse_version} > 1315

++ proper_dhcp_config_set.patch ++
--- azurelinuxagent/common/osutil/suse.py.orig
+++ azurelinuxagent/common/osutil/suse.py
@@ -16,20 +16,12 @@
 # Requires Python 2.6+ and Openssl 1.0+
 #
 
-import os
-import re
-import pwd
-import shutil
-import socket
-import array
-import struct
-import fcntl
 import time
+
 import azurelinuxagent.common.logger as logger
 import azurelinuxagent.common.utils.fileutil as fileutil
 import azurelinuxagent.common.utils.shellutil as shellutil
-import azurelinuxagent.common.utils.textutil as textutil
-from azurelinuxagent.common.version import DISTRO_NAME, DISTRO_VERSION, 
DISTRO_FULL_NAME
+
 from azurelinuxagent.common.osutil.default import DefaultOSUtil
 
 
@@ -82,11 +74,64 @@ class SUSEOSUtil(SUSE11OSUtil):
 super(SUSEOSUtil, self).__init__()
 self.dhclient_name = 'wickedd-dhcp4'
 
+def publish_hostname(self, hostname):
+self.set_dhcp_hostname(hostname)
+self.set_hostname_record(hostname)
+ifname = self.get_if_name()
+# To push the hostname to the dhcp server we do not need to
+# bring down the interface, just make the make ifup do whatever is
+# necessary
+self.ifup(ifname)
+
+def ifup(self, ifname, retries=3, wait=5):
+logger.info('Interface {0} bounce with ifup'.format(ifname))
+retry_limit=retries+1
+for attempt in range(1, retry_limit):
+try:
+shellutil.run_command(['ifup', ifname], log_error=True)
+except Exception:
+if attempt < retry_limit:
+logger.info("retrying in {0} seconds".format(wait))
+time.sleep(wait)
+else:
+logger.warn("exceeded restart retries")
+
 def set_hostname(self, hostname):
 shellutil.run(
 "hostnamectl set-hostname {0}".format(hostname), chk_err=False
 )
 
+def set_dhcp_hostname(self, hostname):
+dhcp_config_file_path = '/etc/sysconfig/network/dhcp'
+hostname_send_setting = fileutil.get_line_startingwith(
+'DHCLIENT_HOSTNAME_OPTION', dhcp_config_file_path
+)
+if hostname_send_setting:
+value = hostname_send_setting.split('=')[-1]
+if value == "AUTO" or value == '"{0}"'.format(hostname):
+# Return if auto send host-name is configured or the current
+# hostname is already set up to be sent
+return
+else:
+# Do not use update_conf_file as it moves the setting to the
+# end of the file separating it from the contextual comment
+new_conf = []
+dhcp_conf = fileutil.read_file(
+dhcp_config_file_path).split('\n')
+for entry in dhcp_conf:
+if entry.startswith('DHCLIENT_HOSTNAME_OPTION'):
+new_conf.append(
+   'DHCLIENT_HOSTNAME_OPTION="{0}"'. format(hostname)
+)
+continue
+new_conf.append(entry)
+

commit python-azure-agent for openSUSE:Factory

2020-04-01 Thread root
Hello community,

here is the log from the commit of package python-azure-agent for 
openSUSE:Factory checked in at 2020-04-01 19:13:30

Comparing /work/SRC/openSUSE:Factory/python-azure-agent (Old)
 and  /work/SRC/openSUSE:Factory/.python-azure-agent.new.3248 (New)


Package is "python-azure-agent"

Wed Apr  1 19:13:30 2020 rev:13 rq:790353 version:2.2.45

Changes:

--- /work/SRC/openSUSE:Factory/python-azure-agent/python-azure-agent.changes
2020-02-07 15:57:13.331598959 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-azure-agent.new.3248/python-azure-agent.changes
  2020-04-01 19:14:29.707427368 +0200
@@ -1,0 +2,7 @@
+Tue Mar 24 20:41:35 UTC 2020 - Robert Schweikert 
+
+- Add paa_use_hostnamectl.patch (bsc#1167601, bsc#1167602)
+  + Set the hostname using hostnamectl to ensure setting is
+properly applied
+
+---

New:

  paa_use_hostnamectl.patch



Other differences:
--
++ python-azure-agent.spec ++
--- /var/tmp/diff_new_pack.9JHo85/_old  2020-04-01 19:14:30.807427863 +0200
+++ /var/tmp/diff_new_pack.9JHo85/_new  2020-04-01 19:14:30.807427863 +0200
@@ -27,6 +27,7 @@
 Patch1: agent-no-auto-update.patch
 Patch6: paa_force_py3_sle15.patch
 Patch9: paa_sudo_sle15_nopwd.patch
+Patch10:paa_use_hostnamectl.patch
 BuildRequires:  dos2unix
 
 BuildRequires:  distribution-release
@@ -122,6 +123,7 @@
 %if 0%{?suse_version} && 0%{?suse_version} > 1315
 %patch9
 %endif
+%patch10
 
 %build
 %if 0%{?suse_version} && 0%{?suse_version} > 1315

++ paa_use_hostnamectl.patch ++
--- azurelinuxagent/common/osutil/suse.py.orig
+++ azurelinuxagent/common/osutil/suse.py
@@ -82,6 +82,11 @@ class SUSEOSUtil(SUSE11OSUtil):
 super(SUSEOSUtil, self).__init__()
 self.dhclient_name = 'wickedd-dhcp4'
 
+def set_hostname(self, hostname):
+shellutil.run(
+"hostnamectl set-hostname {0}".format(hostname), chk_err=False
+)
+
 def stop_dhcp_service(self):
 cmd = "systemctl stop {0}".format(self.dhclient_name)
 return shellutil.run(cmd, chk_err=False)



commit python-azure-agent for openSUSE:Factory

2020-02-07 Thread root
Hello community,

here is the log from the commit of package python-azure-agent for 
openSUSE:Factory checked in at 2020-02-07 15:55:48

Comparing /work/SRC/openSUSE:Factory/python-azure-agent (Old)
 and  /work/SRC/openSUSE:Factory/.python-azure-agent.new.26092 (New)


Package is "python-azure-agent"

Fri Feb  7 15:55:48 2020 rev:12 rq:770796 version:2.2.45

Changes:

--- /work/SRC/openSUSE:Factory/python-azure-agent/python-azure-agent.changes
2019-12-12 23:19:16.934207457 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-azure-agent.new.26092/python-azure-agent.changes
 2020-02-07 15:57:13.331598959 +0100
@@ -1,0 +2,6 @@
+Mon Feb  3 15:53:16 UTC 2020 - Dominique Leuenberger 
+
+- BuildRequire pkgconfig(udev) instead of udev: allow OBS to
+  shortcut through -mini flavors.
+
+---



Other differences:
--
++ python-azure-agent.spec ++
--- /var/tmp/diff_new_pack.kfo86s/_old  2020-02-07 15:57:14.711599663 +0100
+++ /var/tmp/diff_new_pack.kfo86s/_new  2020-02-07 15:57:14.715599665 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-azure-agent
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -48,7 +48,7 @@
 BuildRequires:  python-setuptools
 BuildRequires:  python-xml
 %endif
-BuildRequires:  udev
+BuildRequires:  pkgconfig(udev)
 Requires:   eject
 Requires:   grep
 Requires:   iptables




commit python-azure-agent for openSUSE:Factory

2019-12-12 Thread root
Hello community,

here is the log from the commit of package python-azure-agent for 
openSUSE:Factory checked in at 2019-12-12 23:19:07

Comparing /work/SRC/openSUSE:Factory/python-azure-agent (Old)
 and  /work/SRC/openSUSE:Factory/.python-azure-agent.new.4691 (New)


Package is "python-azure-agent"

Thu Dec 12 23:19:07 2019 rev:11 rq:755926 version:2.2.45

Changes:

--- /work/SRC/openSUSE:Factory/python-azure-agent/python-azure-agent.changes
2019-03-18 10:43:07.623155084 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-azure-agent.new.4691/python-azure-agent.changes
  2019-12-12 23:19:16.934207457 +0100
@@ -1,0 +2,44 @@
+Thu Dec  5 21:10:48 UTC 2019 - Robert Schweikert 
+
+- Update to version 2.2.45 (jsc#ECO-80)
+  + Remove paa_cve_2019-0804.patch, included upstream
+  + Add support for Gen2 VM resource disks
+  + Use alternate systemd detection
+  + Fix /proc/net/route requirement that causes errors on FreeBSD
+  + Add cloud-init auto-detect to prevent multiple provisioning mechanisms
+from relying on configuration for coordination
+  + Disable cgroups when daemon is setup incorrectly
+  + Remove upgrade extension loop for the same goal state
+  + Add container id for extension telemetry events
+  + Be more exact when detecting IMDS service health
+  + Changing add_event to start sending missing fields
+- From 2.2.44
+  + Remove outdated extension ZIP packages
+  + Improved error handling when starting extensions using systemd
+  + Reduce provisioning time of some custom images
+  + Improve the handling of extension download errors
+  + New API for extension authors to handle errors during extension update
+  + Fix handling of errors in calls to openssl
+  + Improve logic to determine current distro
+  + Reduce verbosity of several logging statements
+- From 2.2.42
+  + Poll for artifact blob, addresses goal state procesing issue
+- From 2.2.41
+  + Rewriting the mechanism to start the extension using systemd-run for
+systems using systemd for managing
+  + Refactoring of resource monitoring framework using cgroup for both
+systemd and non-systemd approaches [#1530, #1534]
+  + Telemetry pipeline for resource monitoring data
+- From 2.2.40
+  + Fixed tracking of memory/cpu usage
+  + Do not prevent extensions from running if setting up cgroups fails
+  + Enable systemd-aware deprovisioning on all versions >= 18.04
+  + Add systemd support for Debian Jessie, Stretch, and Buster
+  + Support for Linux Openwrt
+- From 2.2.38
+  + Fix CVE-2019-0804
+  + Add fixes for handling swap file and other nit fixes
+- From 2.2.37
+  + Improves re-try logic to handle errors while downloading extensions
+
+---

Old:

  WALinuxAgent-2.2.36.tar.gz
  paa_cve_2019-0804.patch

New:

  WALinuxAgent-2.2.45.tar.gz



Other differences:
--
++ python-azure-agent.spec ++
--- /var/tmp/diff_new_pack.bfB1Pa/_old  2019-12-12 23:19:17.446207412 +0100
+++ /var/tmp/diff_new_pack.bfB1Pa/_new  2019-12-12 23:19:17.450207411 +0100
@@ -20,14 +20,13 @@
 Summary:Microsoft Azure Linux Agent
 License:Apache-2.0
 Group:  System/Daemons
-Version:2.2.36
+Version:2.2.45
 Release:0
-Url:https://github.com/Azure/WALinuxAgent
+URL:https://github.com/Azure/WALinuxAgent
 Source0:WALinuxAgent-%{version}.tar.gz
 Patch1: agent-no-auto-update.patch
 Patch6: paa_force_py3_sle15.patch
 Patch9: paa_sudo_sle15_nopwd.patch
-Patch10:paa_cve_2019-0804.patch
 BuildRequires:  dos2unix
 
 BuildRequires:  distribution-release
@@ -123,7 +122,6 @@
 %if 0%{?suse_version} && 0%{?suse_version} > 1315
 %patch9
 %endif
-%patch10 -p1
 
 %build
 %if 0%{?suse_version} && 0%{?suse_version} > 1315

++ WALinuxAgent-2.2.36.tar.gz -> WALinuxAgent-2.2.45.tar.gz ++
 18775 lines of diff (skipped)




commit python-azure-agent for openSUSE:Factory

2019-03-18 Thread root
Hello community,

here is the log from the commit of package python-azure-agent for 
openSUSE:Factory checked in at 2019-03-18 10:43:02

Comparing /work/SRC/openSUSE:Factory/python-azure-agent (Old)
 and  /work/SRC/openSUSE:Factory/.python-azure-agent.new.28833 (New)


Package is "python-azure-agent"

Mon Mar 18 10:43:02 2019 rev:10 rq:685775 version:2.2.36

Changes:

--- /work/SRC/openSUSE:Factory/python-azure-agent/python-azure-agent.changes
2018-08-02 14:56:47.960141996 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-azure-agent.new.28833/python-azure-agent.changes
 2019-03-18 10:43:07.623155084 +0100
@@ -1,0 +2,91 @@
+Thu Mar  7 18:21:15 UTC 2019 - Robert Schweikert 
+
+- Add paa_cve_2019-0804.patch (bsc#1127838)
+  - An issue with swapfile handling in the agent creates a data leak situation
+that exposes system memory data.
+
+---
+Thu Feb  7 17:09:52 UTC 2019 - Robert Schweikert 
+
+- Update to 2.2.36 (bsc#1119542)
+  - Remove, included upstream
++ paa_fix_driver_install_detect.patch
++ paa_rdma_install_proper_driver.patch
++ 0001-Obtain-platform-information-in-Python-version-depend.patch
++ 0001-Detect-openSUSE-and-SLES.patch
++ 0001-Handle-the-disapperance-of-net-tools.patch
++ 0001-Properly-detect-SLES-15-for-rdma-support.patch
+  - Forward port agent-no-auto-update.patch
+  - [#1451] Do not utf-8 encode telemetry messages
+- From 2.2.35
+  + [#1434] Use files instead of pipes to capture stdout/stderr
+  + [#1431] Prevent multiple downloads of zips
+  + [#1418] Add main module to Python's egg
+  + [#1416] Fix UTF-8 encoding for telemetry payload
+  + [#1408] Honor the 'no_proxy' flag
+  + [#1391, #1401, #1441] Azure Stack improvements
+  + [#1384] Write status file in WALinuxAgent lib folder
+  + [#1375] Add support for Redhat
+  + [#1373] Handle different kernel builds on SUSE Linux Enterprise
+  + [#1365, #1385, #1389] Fixes for RDMA
+- From 2.2.34
+  + [#1397] Send events when extensions fail to complete operation
+  + [#1394/#1366] Fix the threshold telemetry issue
+  + [#1298] Implementing extension sequencing in azure Linux agent
+  + [#1340] Allow Clear Linux detection in python2 and python3
+  + [#1345] FreeBSD swap issues fix (#1144)
+  + [#1349] Use append_file in Redhat6xOSUtil.openssl_to_openssh()
+  + [#1355] Ensure 'value' for authorized ssh keys end in "\n"
+  + [#1361] Remove main module
+- From 2.2.32
+  + [#1325] Enable cgroups by default on all distros
+  + [#1327, #1347] Allow enforcing of cgroups limits
+  + [#1337] Allow configuration for cgroups
+  + [#1333] Add support for NSBSD
+  + [#1319] Stream extension downloads to disk
+(do not buffer the download in memory)
+  + [#1303] Fix to support custom DNS servers
+  + [#1306] Log extension stdout and stderr
+  + [#1302] Better of cloud-init configuration during deprovisioning
+  + [#1295] Fix to report the correct extension error code
+  + [#1289] Allow disabling the agent or extensions
+  + [#1290] Use the "ip route" command instead of the "route" comand
+during network configuration
+  + [#1281] Delete JIT accounts
+  + [#1234] Fix for reading KVP values from host
+  + [#1287] Add UDEV rule in azure disk encryption
+- From 2.2.31
+Upstream version jump
+  + [#1196] Health store integration
+  + [#1199] CGroups support
+  + [#1194] Use host for status reporting
+  + [#1188] Fix for sentinel and signal handlers
+  + [#1182] Telemetry updates
+  + [#1171] Add support for JIT
+  + [#1164] Fix for name resolution in Ubuntu 18.04
+  + [#1154] Set connection close header
+  + [#1143] Remove extension packages after extraction
+- From 2.2.26
+  + Update Debian specific configuration and setup.
+- From 2.2.25
+  + Upstream version jump
+  + Revert extension manifest caching to prevent downgrade issues.
+- From 2.2.20
+  + This is a hotfix release for #945, details and mitigation are available
+in the wiki.
+- From 2.2.29
+  + [#929] wire.py#update_goal_state does not handle out-of-date
+   GoalState errors
+  + [#908] Set Files to 0400 in /var/lib/waagent
+  + [#906] Hardcoded value for sshd's ClientAliveInterval (180)
+  + [#899] Improve HeartBeat Event
+  + [#898] Send dummy status if extension fails to write a #.status file
+  + [#897] 'Target handler state' wall of errors
+  + [#896] End of Line Comments are Not Supported nor Handled
+  + [#891] Create a Telemetry Event to Track Custom Data Execution
+  + [#884] Cleanup Old Goal State and Extension Cache
+  + [#876] The agent should use a scaling back-off when retrying HTTP requests
+  + [#869] The agent should report OS information in the correct JSON format.
+  + [#822] Update docs
+
+---

Old:

  0001-Detect-openSUSE-and-SLES.patch
  

commit python-azure-agent for openSUSE:Factory

2018-08-02 Thread root
Hello community,

here is the log from the commit of package python-azure-agent for 
openSUSE:Factory checked in at 2018-08-02 14:56:45

Comparing /work/SRC/openSUSE:Factory/python-azure-agent (Old)
 and  /work/SRC/openSUSE:Factory/.python-azure-agent.new (New)


Package is "python-azure-agent"

Thu Aug  2 14:56:45 2018 rev:9 rq:620732 version:2.2.18

Changes:

--- /work/SRC/openSUSE:Factory/python-azure-agent/python-azure-agent.changes
2018-03-08 10:57:57.984323071 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-azure-agent.new/python-azure-agent.changes   
2018-08-02 14:56:47.960141996 +0200
@@ -1,0 +2,36 @@
+Wed Jun  6 21:59:43 UTC 2018 - rjsch...@suse.com
+
+- Remove paa_up_only_to_push_hostname.patch
+  + Turns out the issue was a kernel bug and while ifdown ifup sequence to
+bounce the hostname to the DHCP server is overkill we do not
+want to carry a "cosmetic" patch
+
+---
+Tue Jun  5 19:26:14 UTC 2018 - rjsch...@suse.com
+
+- Add paa_up_only_to_push_hostname.patch (bsc#1094420)
+
+---
+Thu May 10 21:30:31 UTC 2018 - rjsch...@suse.com
+
+- Add 0001-Handle-the-disapperance-of-net-tools.patch (bsc#1092831)
+  + Switch to using "ip route" command
+- Add paa_sudo_sle15_nopwd.patch
+  + Work around issue where SLE 15 will not accept the user password when
+using sudo, cause unknown, needed to time constraints w.r.t. release
+- Add 0001-Properly-detect-SLES-15-for-rdma-support.patch
+  + Properly detect SLES 15 for RDMA support
+
+---
+Mon Apr  2 15:51:08 UTC 2018 - rjsch...@suse.com
+
+- Add 0001-Detect-openSUSE-and-SLES.patch (bsc#1087764)
+  + Properly detect SLES 15 and openSUSE Leap 15 in Python 3
+
+---
+Tue Mar 20 13:38:04 UTC 2018 - rjsch...@suse.com
+
+- Update paa_force_py3_sle15.patch (bsc#1061584)
+  + Another reference to python, which points to python2
+
+---

New:

  0001-Detect-openSUSE-and-SLES.patch
  0001-Handle-the-disapperance-of-net-tools.patch
  0001-Properly-detect-SLES-15-for-rdma-support.patch
  paa_sudo_sle15_nopwd.patch



Other differences:
--
++ python-azure-agent.spec ++
--- /var/tmp/diff_new_pack.Em1Nml/_old  2018-08-02 14:56:48.620143103 +0200
+++ /var/tmp/diff_new_pack.Em1Nml/_new  2018-08-02 14:56:48.624143110 +0200
@@ -29,6 +29,10 @@
 Patch4: paa_rdma_install_proper_driver.patch
 Patch5: 0001-Obtain-platform-information-in-Python-version-depend.patch
 Patch6: paa_force_py3_sle15.patch
+Patch7: 0001-Detect-openSUSE-and-SLES.patch
+Patch8: 0001-Handle-the-disapperance-of-net-tools.patch
+Patch9: paa_sudo_sle15_nopwd.patch
+Patch10:0001-Properly-detect-SLES-15-for-rdma-support.patch
 BuildRequires:  dos2unix
 
 BuildRequires:  distribution-release
@@ -124,6 +128,12 @@
 %if 0%{?suse_version} && 0%{?suse_version} > 1315
 %patch6
 %endif
+%patch7 -p1
+%patch8 -p1
+%if 0%{?suse_version} && 0%{?suse_version} > 1315
+%patch9
+%endif
+%patch10 -p1
 
 %build
 %if 0%{?suse_version} && 0%{?suse_version} > 1315

++ 0001-Detect-openSUSE-and-SLES.patch ++
>From c31fb2403a67c80c183773c8a16885577a1a7099 Mon Sep 17 00:00:00 2001
From: Robert Schweikert 
Date: Mon, 2 Apr 2018 11:26:00 -0400
Subject: [PATCH] - Detect openSUSE and SLES   + For openSUSE Leap and SLES >=
 15 Python 3 is used and the distro is identified as "opensuse" and "sles"
 while in Python 2 both were lumped together as "suse"   + Closes #1089

---
 azurelinuxagent/common/osutil/factory.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/azurelinuxagent/common/osutil/factory.py 
b/azurelinuxagent/common/osutil/factory.py
index 5ee611f..4d4f501 100644
--- a/azurelinuxagent/common/osutil/factory.py
+++ b/azurelinuxagent/common/osutil/factory.py
@@ -69,7 +69,7 @@ def get_osutil(distro_name=DISTRO_NAME,
 if distro_name == "coreos" or distro_code_name == "coreos":
 return CoreOSUtil()
 
-if distro_name == "suse":
+if distro_name in ("suse", "sles", "opensuse"):
 if distro_full_name == 'SUSE Linux Enterprise Server' \
 and Version(distro_version) < Version('12') \
 or distro_full_name == 'openSUSE' and Version(distro_version) 
< Version('13.2'):
-- 
2.13.6

++ 0001-Handle-the-disapperance-of-net-tools.patch ++
>From 92820176b0e0b580e9c0f4759e0687ed76eadb68 Mon Sep 17 00:00:00 2001
From: Robert Schweikert 
Date: Thu, 10 May 2018 17:16:34 -0400
Subject: [PATCH] - Handle the disapperance of 

commit python-azure-agent for openSUSE:Factory

2018-03-08 Thread root
Hello community,

here is the log from the commit of package python-azure-agent for 
openSUSE:Factory checked in at 2018-03-08 10:57:56

Comparing /work/SRC/openSUSE:Factory/python-azure-agent (Old)
 and  /work/SRC/openSUSE:Factory/.python-azure-agent.new (New)


Package is "python-azure-agent"

Thu Mar  8 10:57:56 2018 rev:8 rq:583706 version:2.2.18

Changes:

--- /work/SRC/openSUSE:Factory/python-azure-agent/python-azure-agent.changes
2018-02-16 21:44:24.199669734 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-azure-agent.new/python-azure-agent.changes   
2018-03-08 10:57:57.984323071 +0100
@@ -1,0 +2,12 @@
+Tue Feb 27 20:36:45 UTC 2018 - rjsch...@suse.com
+
+- Add paa_force_py3_sle15.patch
+  + Force use of Python 3 for SLE 15 and later
+
+---
+Wed Feb 21 14:21:21 UTC 2018 - rjsch...@suse.com
+
+- Modify 0001-Obtain-platform-information-in-Python-version-depend.patch to
+  reflect agreed upon solution with upstream
+
+---

New:

  paa_force_py3_sle15.patch



Other differences:
--
++ python-azure-agent.spec ++
--- /var/tmp/diff_new_pack.9sxGzg/_old  2018-03-08 10:57:58.604300661 +0100
+++ /var/tmp/diff_new_pack.9sxGzg/_new  2018-03-08 10:57:58.604300661 +0100
@@ -28,6 +28,7 @@
 Patch3: paa_fix_driver_install_detect.patch
 Patch4: paa_rdma_install_proper_driver.patch
 Patch5: 0001-Obtain-platform-information-in-Python-version-depend.patch
+Patch6: paa_force_py3_sle15.patch
 BuildRequires:  dos2unix
 
 BuildRequires:  distribution-release
@@ -120,6 +121,9 @@
 %patch3
 %patch4
 %patch5 -p1
+%if 0%{?suse_version} && 0%{?suse_version} > 1315
+%patch6
+%endif
 
 %build
 %if 0%{?suse_version} && 0%{?suse_version} > 1315

++ 0001-Obtain-platform-information-in-Python-version-depend.patch ++
--- /var/tmp/diff_new_pack.9sxGzg/_old  2018-03-08 10:57:58.624299939 +0100
+++ /var/tmp/diff_new_pack.9sxGzg/_new  2018-03-08 10:57:58.628299793 +0100
@@ -1,9 +1,9 @@
-From 58ee33f1651d09f00a441ff4317cb1151e554ea5 Mon Sep 17 00:00:00 2001
+From 6cd0bfc51c58958dcc16e55e296e26c5a5c6464d Mon Sep 17 00:00:00 2001
 From: Robert Schweikert 
 Date: Thu, 8 Feb 2018 13:11:21 -0500
-Subject: [PATCH] - Obtain platform information in Python version dependent way
-   + The platform module has deprecated functionality in Python 3.5 and
- the functionality will be removed in 3.7. For Python versions 3.5 and
+Subject: [PATCH 1/4] - Obtain platform information in Python version dependent
+ way   + The platform module has deprecated functionality in Python 3.5 and   
+  the functionality will be removed in 3.7. For Python versions 3.5 and
  greater depend on the distro module to obtain linux distribution
  information
 
@@ -13,10 +13,10 @@
  2 files changed, 28 insertions(+), 7 deletions(-)
 
 diff --git a/azurelinuxagent/common/version.py 
b/azurelinuxagent/common/version.py
-index f743f11..713d82e 100644
+index f743f115..713d82ed 100644
 --- a/azurelinuxagent/common/version.py
 +++ b/azurelinuxagent/common/version.py
-@@ -20,6 +20,9 @@ import re
+@@ -20,6 +20,9 @@
  import platform
  import sys
  
@@ -61,10 +61,10 @@
  # The platform.py lib has issue with detecting oracle linux distribution.
  # Merge the following patch provided by oracle as a temporary fix.
 diff --git a/setup.py b/setup.py
-index f59f829..4663169 100755
+index f59f8292..ae6983cc 100755
 --- a/setup.py
 +++ b/setup.py
-@@ -26,6 +26,7 @@ from azurelinuxagent.common.osutil import get_osutil
+@@ -26,6 +26,7 @@
  import setuptools
  from setuptools import find_packages
  from setuptools.command.install import install as  _install
@@ -81,7 +81,7 @@
  set_bin_files(data_files)
  set_conf_files(data_files, src=["config/suse/waagent.conf"])
  set_logrotate_files(data_files)
-@@ -198,6 +199,9 @@ class install(_install):
+@@ -198,6 +199,9 @@ def run(self):
  osutil.stop_agent_service()
  osutil.start_agent_service()
  
@@ -91,7 +91,7 @@
  
  setuptools.setup(
  name=AGENT_NAME,
-@@ -209,6 +213,7 @@ setuptools.setup(
+@@ -209,6 +213,7 @@ def run(self):
  url='https://github.com/Azure/WALinuxAgent',
  license='Apache License Version 2.0',
  packages=find_packages(exclude=["tests"]),
@@ -99,6 +99,290 @@
  py_modules=["__main__"],
  cmdclass={
  'install': install
--- 
-2.13.6
 
+From 9b40832981aaf52950d0d1ab2efe8a748b92a0cf Mon Sep 17 00:00:00 2001
+From: Robert Schweikert 
+Date: Sat, 10 Feb 2018 16:38:23 -0500
+Subject: [PATCH 2/4] - Refactor to move logic for distro information
+ generation into   future module
+
+---

commit python-azure-agent for openSUSE:Factory

2018-02-16 Thread root
Hello community,

here is the log from the commit of package python-azure-agent for 
openSUSE:Factory checked in at 2018-02-16 21:44:22

Comparing /work/SRC/openSUSE:Factory/python-azure-agent (Old)
 and  /work/SRC/openSUSE:Factory/.python-azure-agent.new (New)


Package is "python-azure-agent"

Fri Feb 16 21:44:22 2018 rev:7 rq:577091 version:2.2.18

Changes:

--- /work/SRC/openSUSE:Factory/python-azure-agent/python-azure-agent.changes
2018-01-10 23:38:43.186024952 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-azure-agent.new/python-azure-agent.changes   
2018-02-16 21:44:24.199669734 +0100
@@ -1,0 +2,6 @@
+Thu Feb  8 18:53:50 UTC 2018 - rjsch...@suse.com
+
+- Add 0001-Obtain-platform-information-in-Python-version-depend.patch
+  to fix build on distribution with Python 3.6 and later (boo#997614)
+
+---

New:

  0001-Obtain-platform-information-in-Python-version-depend.patch



Other differences:
--
++ python-azure-agent.spec ++
--- /var/tmp/diff_new_pack.qzZkBm/_old  2018-02-16 21:44:24.947642758 +0100
+++ /var/tmp/diff_new_pack.qzZkBm/_new  2018-02-16 21:44:24.951642614 +0100
@@ -27,6 +27,7 @@
 Patch1: agent-no-auto-update.patch
 Patch3: paa_fix_driver_install_detect.patch
 Patch4: paa_rdma_install_proper_driver.patch
+Patch5: 0001-Obtain-platform-information-in-Python-version-depend.patch
 BuildRequires:  dos2unix
 
 BuildRequires:  distribution-release
@@ -36,6 +37,7 @@
 %endif
 %if 0%{?suse_version} && 0%{?suse_version} > 1315
 BuildRequires:  python3-devel
+BuildRequires:  python3-distro
 BuildRequires:  python3-mock
 BuildRequires:  python3-pytest
 BuildRequires:  python3-setuptools
@@ -63,6 +65,7 @@
 Requires:   openssl
 Requires:   pwdutils
 %if 0%{?suse_version} && 0%{?suse_version} > 1315
+Requires:   python3-distro
 Requires:   python3-pyasn1
 Requires:   python3-xml
 %else
@@ -116,6 +119,7 @@
 %patch1
 %patch3
 %patch4
+%patch5 -p1
 
 %build
 %if 0%{?suse_version} && 0%{?suse_version} > 1315

++ 0001-Obtain-platform-information-in-Python-version-depend.patch ++
>From 58ee33f1651d09f00a441ff4317cb1151e554ea5 Mon Sep 17 00:00:00 2001
From: Robert Schweikert 
Date: Thu, 8 Feb 2018 13:11:21 -0500
Subject: [PATCH] - Obtain platform information in Python version dependent way
   + The platform module has deprecated functionality in Python 3.5 and
 the functionality will be removed in 3.7. For Python versions 3.5 and
 greater depend on the distro module to obtain linux distribution
 information

---
 azurelinuxagent/common/version.py | 28 ++--
 setup.py  |  7 ++-
 2 files changed, 28 insertions(+), 7 deletions(-)

diff --git a/azurelinuxagent/common/version.py 
b/azurelinuxagent/common/version.py
index f743f11..713d82e 100644
--- a/azurelinuxagent/common/version.py
+++ b/azurelinuxagent/common/version.py
@@ -20,6 +20,9 @@ import re
 import platform
 import sys
 
+if float(sys.version[:3]) >= 3.5:
+import distro
+
 import azurelinuxagent.common.conf as conf
 import azurelinuxagent.common.utils.fileutil as fileutil
 from azurelinuxagent.common.utils.flexible_version import FlexibleVersion
@@ -80,14 +83,27 @@ def get_distro():
 elif 'OpenBSD' in platform.system():
 release = re.sub('\-.*\Z', '', ustr(platform.release()))
 osinfo = ['openbsd', release, '', 'openbsd']
-elif 'linux_distribution' in dir(platform):
-supported = platform._supported_dists + ('alpine',)
-osinfo = list(platform.linux_distribution(full_distribution_name=0,
-  supported_dists=supported))
-full_name = platform.linux_distribution()[0].strip()
+elif 'Linux' in platform.system():
+# platform.linux_distribution and platform.dist deprecated in
+# Python 3.5 and removed in Python 3.7
+if float(sys.version[:3]) >= 3.5:
+platform_module = distro
+osinfo = list(distro.linux_distribution(full_distribution_name=0))
+else:
+platform_module = platform
+supported = platform._supported_dists + ('alpine',)
+osinfo = list(platform.linux_distribution(
+full_distribution_name=0,
+supported_dists=supported
+))
+full_name = platform_module.linux_distribution()[0].strip()
 osinfo.append(full_name)
 else:
-osinfo = platform.dist()
+try:
+# dist() removed in Python 3.7
+osinfo = platform.dist()
+except:
+osinfo = ('UNKNOWN', '', '')
 
 # The platform.py lib has issue 

commit python-azure-agent for openSUSE:Factory

2018-01-10 Thread root
Hello community,

here is the log from the commit of package python-azure-agent for 
openSUSE:Factory checked in at 2018-01-10 23:38:41

Comparing /work/SRC/openSUSE:Factory/python-azure-agent (Old)
 and  /work/SRC/openSUSE:Factory/.python-azure-agent.new (New)


Package is "python-azure-agent"

Wed Jan 10 23:38:41 2018 rev:6 rq:563322 version:2.2.18

Changes:

--- /work/SRC/openSUSE:Factory/python-azure-agent/python-azure-agent.changes
2017-10-20 14:47:37.375326718 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-azure-agent.new/python-azure-agent.changes   
2018-01-10 23:38:43.186024952 +0100
@@ -1,0 +2,6 @@
+Fri Jan  5 19:46:36 UTC 2018 - rjsch...@suse.com
+
+- Fix RDMA driver package version install issue (bsc#1074865)
+  + Added paa_rdma_install_proper_driver.patch
+
+---

New:

  paa_rdma_install_proper_driver.patch



Other differences:
--
++ python-azure-agent.spec ++
--- /var/tmp/diff_new_pack.XhPS7C/_old  2018-01-10 23:38:43.686001497 +0100
+++ /var/tmp/diff_new_pack.XhPS7C/_new  2018-01-10 23:38:43.690001310 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-azure-agent
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -26,6 +26,7 @@
 Source0:WALinuxAgent-%{version}.tar.gz
 Patch1: agent-no-auto-update.patch
 Patch3: paa_fix_driver_install_detect.patch
+Patch4: paa_rdma_install_proper_driver.patch
 BuildRequires:  dos2unix
 
 BuildRequires:  distribution-release
@@ -114,6 +115,7 @@
 %setup -qn WALinuxAgent-%{version}
 %patch1
 %patch3
+%patch4
 
 %build
 %if 0%{?suse_version} && 0%{?suse_version} > 1315

++ paa_rdma_install_proper_driver.patch ++
--- azurelinuxagent/pa/rdma/suse.py.orig
+++ azurelinuxagent/pa/rdma/suse.py
@@ -95,7 +95,7 @@ class SUSERDMAHandler(RDMAHandler):
 logger.info("Package '%s' is not a match." % entry)
 else:
 logger.info("Package '%s' is a match. Installing." % entry)
-complete_name = '%s-%s' % (package_name, version)
+complete_name = '%s-%s' % (package_name, entry)
 cmd = zypper_install % complete_name
 result = shellutil.run(cmd)
 if result:



commit python-azure-agent for openSUSE:Factory

2017-10-20 Thread root
Hello community,

here is the log from the commit of package python-azure-agent for 
openSUSE:Factory checked in at 2017-10-20 14:47:30

Comparing /work/SRC/openSUSE:Factory/python-azure-agent (Old)
 and  /work/SRC/openSUSE:Factory/.python-azure-agent.new (New)


Package is "python-azure-agent"

Fri Oct 20 14:47:30 2017 rev:5 rq:535329 version:2.2.18

Changes:

--- /work/SRC/openSUSE:Factory/python-azure-agent/python-azure-agent.changes
2017-10-05 11:59:13.856836982 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-azure-agent.new/python-azure-agent.changes   
2017-10-20 14:47:37.375326718 +0200
@@ -1,0 +2,9 @@
+Thu Oct 12 20:13:42 UTC 2017 - rjsch...@suse.com
+
+- Update to version 2.2.18
+  + [#868] Fix for sudoer update
+  + [#886] Agent should not update outside of goal state
+  + [#889] Firewall removal should not retry
+- Fixes issues introduces with 2.2.17
+
+---

Old:

  WALinuxAgent-2.2.17.tar.gz

New:

  WALinuxAgent-2.2.18.tar.gz



Other differences:
--
++ python-azure-agent.spec ++
--- /var/tmp/diff_new_pack.YV13X4/_old  2017-10-20 14:47:38.095293050 +0200
+++ /var/tmp/diff_new_pack.YV13X4/_new  2017-10-20 14:47:38.099292863 +0200
@@ -20,7 +20,7 @@
 Summary:Microsoft Azure Linux Agent
 License:Apache-2.0
 Group:  System/Daemons
-Version:2.2.17
+Version:2.2.18
 Release:0
 Url:https://github.com/Azure/WALinuxAgent
 Source0:WALinuxAgent-%{version}.tar.gz

++ WALinuxAgent-2.2.17.tar.gz -> WALinuxAgent-2.2.18.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WALinuxAgent-2.2.17/azurelinuxagent/common/future.py 
new/WALinuxAgent-2.2.18/azurelinuxagent/common/future.py
--- old/WALinuxAgent-2.2.17/azurelinuxagent/common/future.py2017-09-14 
01:51:29.0 +0200
+++ new/WALinuxAgent-2.2.18/azurelinuxagent/common/future.py2017-09-20 
00:48:11.0 +0200
@@ -1,10 +1,10 @@
 import sys
 
 """
-Add alies for python2 and python3 libs and fucntions.
+Add alias for python2 and python3 libs and functions.
 """
 
-if sys.version_info[0]== 3:
+if sys.version_info[0] == 3:
 import http.client as httpclient
 from urllib.parse import urlparse
 
@@ -23,5 +23,4 @@
 bytebuffer = buffer
 
 else:
-raise ImportError("Unknown python version:{0}".format(sys.version_info))
-
+raise ImportError("Unknown python version: {0}".format(sys.version_info))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/WALinuxAgent-2.2.17/azurelinuxagent/common/osutil/default.py 
new/WALinuxAgent-2.2.18/azurelinuxagent/common/osutil/default.py
--- old/WALinuxAgent-2.2.17/azurelinuxagent/common/osutil/default.py
2017-09-14 01:51:29.0 +0200
+++ new/WALinuxAgent-2.2.18/azurelinuxagent/common/osutil/default.py
2017-09-20 00:48:11.0 +0200
@@ -96,7 +96,7 @@
 return wait
 
 def remove_firewall(self):
-# If a previous attempt threw an exception, do not retry
+# If a previous attempt failed, do not retry
 global _enable_firewall
 if not _enable_firewall:
 return False
@@ -105,8 +105,8 @@
 wait = self.get_firewall_will_wait()
 
 flush_rule = FIREWALL_FLUSH.format(wait)
-if shellutil.run(flush_rule, chk_err=False) != 0:
-logger.warn("Failed to flush firewall")
+if shellutil.run(flush_rule, chk_err=True) != 0:
+raise Exception("non-zero return code")
 
 return True
 
@@ -309,11 +309,11 @@
 else:
 sudoer = "{0} ALL=(ALL) ALL".format(username)
 if not os.path.isfile(sudoers_wagent) or \
-fileutil.findstr_in_file(sudoers_wagent, sudoer) is None:
+fileutil.findstr_in_file(sudoers_wagent, sudoer) is False:
 fileutil.append_file(sudoers_wagent, "{0}\n".format(sudoer))
 fileutil.chmod(sudoers_wagent, 0o440)
 else:
-#Remove user from sudoers
+# remove user from sudoers
 if os.path.isfile(sudoers_wagent):
 try:
 content = fileutil.read_file(sudoers_wagent)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/WALinuxAgent-2.2.17/azurelinuxagent/common/protocol/wire.py 
new/WALinuxAgent-2.2.18/azurelinuxagent/common/protocol/wire.py
--- old/WALinuxAgent-2.2.17/azurelinuxagent/common/protocol/wire.py 
2017-09-14 01:51:29.0 +0200
+++ new/WALinuxAgent-2.2.18/azurelinuxagent/common/protocol/wire.py 
2017-09-20 00:48:11.0 

commit python-azure-agent for openSUSE:Factory

2017-10-05 Thread root
Hello community,

here is the log from the commit of package python-azure-agent for 
openSUSE:Factory checked in at 2017-10-05 11:58:55

Comparing /work/SRC/openSUSE:Factory/python-azure-agent (Old)
 and  /work/SRC/openSUSE:Factory/.python-azure-agent.new (New)


Package is "python-azure-agent"

Thu Oct  5 11:58:55 2017 rev:4 rq:530890 version:2.2.17

Changes:

--- /work/SRC/openSUSE:Factory/python-azure-agent/python-azure-agent.changes
2017-09-20 17:14:10.908963234 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-azure-agent.new/python-azure-agent.changes   
2017-10-05 11:59:13.856836982 +0200
@@ -1,0 +2,6 @@
+Tue Oct  3 11:37:50 UTC 2017 - dims...@opensuse.org
+
+- BuildRequire distribution-release instead of
+  openSUSE/sles-release.
+
+---



Other differences:
--
++ python-azure-agent.spec ++
--- /var/tmp/diff_new_pack.0LHR17/_old  2017-10-05 11:59:16.384481358 +0200
+++ /var/tmp/diff_new_pack.0LHR17/_new  2017-10-05 11:59:16.388480794 +0200
@@ -28,11 +28,7 @@
 Patch3: paa_fix_driver_install_detect.patch
 BuildRequires:  dos2unix
 
-%if 0%{?is_opensuse} || 0%{?suse_version} == 1310 || 0%{?suse_version} == 1320
-BuildRequires:  openSUSE-release
-%else
-BuildRequires:  sles-release
-%endif
+BuildRequires:  distribution-release
 BuildRequires:  openssl
 %if 0%{?suse_version} < 1140
 BuildRequires:  python-ordereddict




commit python-azure-agent for openSUSE:Factory

2017-09-20 Thread root
Hello community,

here is the log from the commit of package python-azure-agent for 
openSUSE:Factory checked in at 2017-09-20 17:14:07

Comparing /work/SRC/openSUSE:Factory/python-azure-agent (Old)
 and  /work/SRC/openSUSE:Factory/.python-azure-agent.new (New)


Package is "python-azure-agent"

Wed Sep 20 17:14:07 2017 rev:3 rq:527525 version:2.2.17

Changes:

--- /work/SRC/openSUSE:Factory/python-azure-agent/python-azure-agent.changes
2017-08-10 14:12:54.197693996 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-azure-agent.new/python-azure-agent.changes   
2017-09-20 17:14:10.908963234 +0200
@@ -1,0 +2,43 @@
+Wed Sep 20 12:12:53 UTC 2017 - rjsch...@suse.com
+
+- Fix typo in dependency
+
+---
+Sat Sep 16 11:00:53 UTC 2017 - rjsch...@suse.com
+
+- Update to version 2.2.17 (bsc#1058974, bsc#1058975)
+  + Remove paa_noref_local_install.patch, included upstream
+  + Setup build for Python 3 for distros > SLE 12
+  + [#879] -- OS.EnableFirewall=y breaks load balanced sets probing
+- From 2.2.16
+  + [#865] -- The agent should retry ETIMEDOUT (110) IOErrors
+- From 2.2.15
+  + [#783] -- The agent fails to use the standard Linux environment variables
+for HTTP proxy
+  + [#784] -- Adjust http retry and logging
+  + [#786] -- Add Provisioning.SshHostKeyPairType=auto to support ssh-keygen -A
+  + [#791] -- Prevent bloating sudoers waagent when agent has problem
+  + [#792] -- Clearlinux distro_name does not match
+  + [#796] -- Accommodate new Clear Linux distro string in os-release
+  + [#798] -- Support Ubuntu RDMA driver update
+  + [#800] -- HostGAPlugin still use proxy while auto-updating
+  + [#801] -- Agent fails to clean-up PID files
+  + [#807] -- The agent should not emit duplicate events
+  + [#808] -- The agent should more gracefully handle out-of-space disk
+errors (IOError 28)
+  + [#811] -- Comments inline in /etc/waagent.conf cause config to not be read
+  + [#812] -- Agent fails and isn't recoverable if an extension's log
+directory is not present anymore
+  + [#823] -- Show config options in use
+  + [#830] -- Ensure VM identifier is properly ordered
+  + [#845] -- ')' is missed in show-configuration
+  + [#850] -- Cannot get to state 'Running' with Provisioning.Enabled=n
+
+---
+Fri Sep  8 18:33:06 UTC 2017 - rjsch...@suse.com
+
+- Add paa_fix_driver_install_detect.patch (bsc#1057888)
+  + Avoid the driver from re-installing if the same version is already
+installed, this avoids an enless reboot loop
+
+---

Old:

  WALinuxAgent-2.2.14.tar.gz
  paa_noref_local_install.patch

New:

  WALinuxAgent-2.2.17.tar.gz
  paa_fix_driver_install_detect.patch



Other differences:
--
++ python-azure-agent.spec ++
--- /var/tmp/diff_new_pack.rM1KIq/_old  2017-09-20 17:14:11.692852888 +0200
+++ /var/tmp/diff_new_pack.rM1KIq/_new  2017-09-20 17:14:11.696852325 +0200
@@ -20,30 +20,37 @@
 Summary:Microsoft Azure Linux Agent
 License:Apache-2.0
 Group:  System/Daemons
-Version:2.2.14
+Version:2.2.17
 Release:0
 Url:https://github.com/Azure/WALinuxAgent
 Source0:WALinuxAgent-%{version}.tar.gz
 Patch1: agent-no-auto-update.patch
-Patch2: paa_noref_local_install.patch
+Patch3: paa_fix_driver_install_detect.patch
 BuildRequires:  dos2unix
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
-%if 0%{?suse_version}
-BuildRequires:  python-xml
-%endif
-BuildRequires:  udev
+
 %if 0%{?is_opensuse} || 0%{?suse_version} == 1310 || 0%{?suse_version} == 1320
 BuildRequires:  openSUSE-release
 %else
 BuildRequires:  sles-release
 %endif
-BuildRequires:  python-mock
+BuildRequires:  openssl
 %if 0%{?suse_version} < 1140
 BuildRequires:  python-ordereddict
 %endif
-BuildRequires:  openssl
+%if 0%{?suse_version} && 0%{?suse_version} > 1315
+BuildRequires:  python3-devel
+BuildRequires:  python3-mock
+BuildRequires:  python3-pytest
+BuildRequires:  python3-setuptools
+BuildRequires:  python3-xml
+%else
+BuildRequires:  python-devel
+BuildRequires:  python-mock
 BuildRequires:  python-pytest
+BuildRequires:  python-setuptools
+BuildRequires:  python-xml
+%endif
+BuildRequires:  udev
 Requires:   eject
 Requires:   grep
 Requires:   iptables
@@ -58,8 +65,11 @@
 Requires:   openssh
 Requires:   openssl
 Requires:   pwdutils
+%if 0%{?suse_version} && 0%{?suse_version} > 1315
+Requires:   python3-pyasn1
+Requires:   python3-xml
+%else
 Requires:   python-pyasn1
-%if 0%{?suse_version}
 Requires:   python-xml
 %endif
 Requires: 

commit python-azure-agent for openSUSE:Factory

2017-08-10 Thread root
Hello community,

here is the log from the commit of package python-azure-agent for 
openSUSE:Factory checked in at 2017-08-10 14:04:47

Comparing /work/SRC/openSUSE:Factory/python-azure-agent (Old)
 and  /work/SRC/openSUSE:Factory/.python-azure-agent.new (New)


Package is "python-azure-agent"

Thu Aug 10 14:04:47 2017 rev:2 rq:513714 version:2.2.14

Changes:

--- /work/SRC/openSUSE:Factory/python-azure-agent/python-azure-agent.changes
2017-06-23 09:17:44.515715979 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-azure-agent.new/python-azure-agent.changes   
2017-08-10 14:12:54.197693996 +0200
@@ -1,0 +2,30 @@
+Mon Jul 24 14:12:07 UTC 2017 - rjsch...@suse.com
+
+- Add paa_noref_local_install.patch (bsc#1050229)
+  + Do not refresh the repos when we install the local RDMA kmp,
+repo access has already failed, no need to try again
+
+---
+Sun Jul 23 13:33:39 UTC 2017 - rjsch...@suse.com
+
+- Update to version 2.2.14 (bsc#105)
+  + [#777] -- Deprovisioning when VM identifier changes is too aggressive
+  + [#769] -- HostGAPlugin requests should never go through proxy
+  + [#764] -- waagent -configuration-path:/path -start not take effect
+  + [#761] -- MetadataProtocol has no client object
+  + [#757] -- deprovision is executed even if input 'n'
+  + [#754] -- /etc/resolv.conf is removed if create a VM base on
+an specialized image
+  + [#746] -- Agent WALinuxAgent-2.2.12 is blacklisted - skipping download
+  + [#740] -- Duplicate logging on RHEL/CentOS
+
+
+---
+Sun Jul 23 13:10:40 UTC 2017 - rjsch...@suse.com
+
+- Remove timeout udev rules (bsc#1049480)
+  + 99-azure-timeout.rules
+  + Rule is broken
+  + Timeout is being set by the eagent code
+
+---

Old:

  99-azure-timeout.rules
  WALinuxAgent-2.2.13.tar.gz

New:

  WALinuxAgent-2.2.14.tar.gz
  paa_noref_local_install.patch



Other differences:
--
++ python-azure-agent.spec ++
--- /var/tmp/diff_new_pack.IQmMUG/_old  2017-08-10 14:12:54.84160 +0200
+++ /var/tmp/diff_new_pack.IQmMUG/_new  2017-08-10 14:12:54.845602770 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-azure-agent
 #
-# Copyright (c) 2015 SUSE LLC.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -20,12 +20,12 @@
 Summary:Microsoft Azure Linux Agent
 License:Apache-2.0
 Group:  System/Daemons
-Version:2.2.13
+Version:2.2.14
 Release:0
 Url:https://github.com/Azure/WALinuxAgent
 Source0:WALinuxAgent-%{version}.tar.gz
-Source1:99-azure-timeout.rules
 Patch1: agent-no-auto-update.patch
+Patch2: paa_noref_local_install.patch
 BuildRequires:  dos2unix
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools
@@ -42,8 +42,8 @@
 %if 0%{?suse_version} < 1140
 BuildRequires:  python-ordereddict
 %endif
-BuildRequires:  python-pytest
 BuildRequires:  openssl
+BuildRequires:  python-pytest
 Requires:   eject
 Requires:   grep
 Requires:   iptables
@@ -52,8 +52,8 @@
 Requires:   insserv
 Requires:   sysvinit
 %else
-Requires:   wicked
 Requires:   systemd
+Requires:   wicked
 %endif
 Requires:   openssh
 Requires:   openssl
@@ -93,8 +93,8 @@
 %if 0%{?suse_version} < 1140
 Requires:   python-ordereddict
 %endif
-Requires:   python-pytest
 Requires:   openssl
+Requires:   python-pytest
 
 %description test
 Unit tests for python-azure-agent.
@@ -102,6 +102,7 @@
 %prep
 %setup -qn WALinuxAgent-%{version}
 %patch1
+%patch2
 
 %build
 python setup.py build
@@ -122,11 +123,9 @@
 ### udev rules
 %if 0%{?suse_version} < 1230
 mkdir -p %{buildroot}/lib/udev/rules.d
-install -D -m 0644 %{SOURCE1} 
%{buildroot}/lib/udev/rules.d/99-azure-timeout.rules
 mv %{buildroot}%{_sysconfdir}/udev/rules.d/* %{buildroot}/lib/udev/rules.d/
 %else
 mkdir -p %{buildroot}/usr/lib/udev/rules.d
-install -D -m 0644 %{SOURCE1} 
%{buildroot}/usr/lib/udev/rules.d/99-azure-timeout.rules
 mv %{buildroot}%{_sysconfdir}/udev/rules.d/* %{buildroot}/usr/lib/udev/rules.d/
 %endif
 ### log file ghost
@@ -181,11 +180,9 @@
 %endif
 %if 0%{?suse_version} < 1230
 /lib/udev/rules.d/66-azure-storage.rules
-/lib/udev/rules.d/99-azure-timeout.rules
 /lib/udev/rules.d/99-azure-product-uuid.rules
 %else
 /usr//lib/udev/rules.d/66-azure-storage.rules
-/usr/lib/udev/rules.d/99-azure-timeout.rules
 /usr/lib/udev/rules.d/99-azure-product-uuid.rules
 %endif
 %dir