debian/0000755000000000000000000000000013441521171007165 5ustar debian/install0000644000000000000000000000052413244055260010561 0ustar config/66-azure-storage.rules lib/udev/rules.d debian/ephemeral-disk-warning.service lib/systemd/system debian/ephemeral-disk-warning.conf etc/init debian/ephemeral-disk-warning usr/sbin debian/67-azure-console.rules lib/udev/rules.d debian/68-azure-nm-unmanaged.rules lib/udev/rules.d debian/azure-resource usr/share/initramfs-tools/hooks debian/azure-resource0000755000000000000000000000070513244055260012072 0ustar #!/bin/sh PREREQ="udev" prereqs() { echo "$PREREQ" } case $1 in prereqs) prereqs exit 0 ;; esac mkdir -p $DESTDIR/lib/udev/rules.d/ if [ -e /etc/udev/rules.d/66-azure-storage.rules ]; then cp -pt "${DESTDIR}/lib/udev/rules.d" /etc/udev/rules.d/66-azure-storage.rules elif [ -e /lib/udev/rules.d/66-azure-storage.rules ]; then cp -pt "${DESTDIR}/lib/udev/rules.d" /lib/udev/rules.d/66-azure-storage.rules fi debian/rules0000755000000000000000000000217213365540443010257 0ustar #!/usr/bin/make -f DEB_VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p') ORIG_SRC=https://github.com/WindowsAzure/WALinuxAgent get-packaged-orig-source: git clone --separate-git-dir=walinuxagent.checkout \ $(ORIG_SRC) orig_source git checkout -b tags/v$(DEB_VERSION) git archive --format=tar.gz v$(DEB_VERSION) \ -o walinuxagent_$(DEB_VERSION).orig.tar.gz rm -rf walinuxagent.checkout rm -rf orig_source %: dh $@ --with python3,systemd --buildsystem=pybuild override_dh_installinit: dh_installinit --no-restart-on-upgrade --name walinuxagent dh_installinit --no-restart-on-upgrade --name ephemeral-disk-warning override_dh_systemd_enable: dh_systemd_enable --name walinuxagent walinuxagent.service dh_systemd_enable --name ephemeral-disk-warning ephemeral-disk-warning.service override_dh_python3: dh_python3 -O--buildsystem=pybuild --shebang "/usr/bin/env python3" override_dh_auto_test: # No test were run on any of the previous versions, temporarily # ignoring the failures as they're not regressions (LP: #1800499) # XXX: Those need to be fixed ASAP. -dh_auto_test -O--buildsystem=pybuild debian/control0000644000000000000000000000207113365540443010600 0ustar Source: walinuxagent Section: python Priority: extra Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Microsoft Corporation Build-Depends: debhelper (>= 8), dh-systemd, python3-all, python3-setuptools, python3-pyasn1, python3-mock, openssl (>= 1.0), Standards-Version: 3.9.8 X-Python3-Version: >= 3.2 Homepage: http://go.microsoft.com/fwlink/?LinkId=250998 Package: walinuxagent Architecture: amd64 Depends: cloud-init (>= 0.7.3~bzr826-0ubuntu2), isc-dhcp-client, openssh-server (>= 1:5.9p1), openssl (>= 1.0), passwd (>= 4.1.4.2), util-linux (>= 2.0), ${misc:Depends}, ${python3:Depends}, Description: Windows Azure Linux Agent The Windows Azure Linux Agent supports the provisioning and running of Linux VMs in the Windows Azure cloud. This package should be installed on Linux disk images that are built to run in the Windows Azure environment. debian/watch0000644000000000000000000000023113244055260010214 0ustar version=3 opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/-$1\.tar\.gz/ \ https://github.com/Azure/WALinuxAgent/tags .*/?(\d\.\d.\d{1,})\.tar\.gz debian/maintscript0000644000000000000000000000024313244055260011446 0ustar mv_conffile /etc/logrotate.d/waagent /etc/logrotate.d/waagent.logrotate 2.2.6~ rm_conffile /etc/cloud/cloud.cfg.d/91_walinuxagent.cfg 2.2.21+really2.2.20-0ubuntu1 debian/walinuxagent.service0000777000000000000000000000000013244055260022044 2../init/ubuntu/walinuxagent.serviceustar debian/67-azure-console.rules0000644000000000000000000000016113244055260013261 0ustar # Enable verbose console logging on the serial console for Azure. KERNEL=="console", GROUP="syslog", MODE="0620" debian/ephemeral-disk-warning.service0000644000000000000000000000054413244055260015111 0ustar [Unit] Description=Write warning to Azure ephemeral disk After=cloud-config.service ConditionVirtualization=microsoft ConditionPathIsMountPoint=/mnt ConditionPathExists=/dev/disk/azure/resource-part1 [Service] Type=oneshot ExecStart=/usr/sbin/ephemeral-disk-warning RemainAfterExit=yes StandardOutput=journal+console [Install] WantedBy=multi-user.target debian/postinst0000644000000000000000000000063413244055260011000 0ustar #!/bin/sh set -e if [ "$1" = "configure" ]; then # fix for LP: 1268050 sed -i 's|^send host-name "";|send host-name = gethostname();|g' /etc/dhcp/dhclient.conf # Trigger update for initramfs (LP: #1514485). command -v update-initramfs >/dev/null 2>&1 && update-initramfs -u [ -x /etc/kernel/postinst.d/dracut ] && /etc/kernel/postinst.d/dracut $(uname -r) fi #DEBHELPER# exit 0 debian/walinuxagent.upstart0000644000000000000000000000074113244055260013323 0ustar description "Windows Azure Linux agent" author "Ben Howard " start on runlevel [2345] stop on runlevel [!2345] pre-start script [ -r /etc/default/walinuxagent ] && . /etc/default/walinuxagent if [ "$WALINUXAGENT_ENABLED" != "1" ]; then stop ; exit 0 fi if [ ! -x /usr/sbin/waagent ]; then stop ; exit 0 fi #Load the udf module modprobe -b udf end script exec /usr/bin/python3 /usr/sbin/waagent -daemon debian/patches/0000755000000000000000000000000013441521161010613 5ustar debian/patches/series0000644000000000000000000000011313441521161012023 0ustar disable_import_test.patch disable_udev_overrides.patch CVE-2019-0804.patch debian/patches/disable_import_test.patch0000644000000000000000000000264013365540443015703 0ustar Index: walinuxagent-2.2.32/config/waagent.conf =================================================================== --- walinuxagent-2.2.32.orig/config/waagent.conf +++ walinuxagent-2.2.32/config/waagent.conf @@ -3,7 +3,7 @@ # # Enable instance creation -Provisioning.Enabled=y +Provisioning.Enabled=n # Enable extension handling. Do not disable this unless you do not need password reset, # backup, monitoring, or any extension handling whatsoever. @@ -13,10 +13,10 @@ Extensions.Enabled=y Provisioning.UseCloudInit=n # Password authentication for root account will be unavailable. -Provisioning.DeleteRootPassword=y +Provisioning.DeleteRootPassword=n # Generate fresh host key pair. -Provisioning.RegenerateSshHostKeyPair=y +Provisioning.RegenerateSshHostKeyPair=n # Supported values are "rsa", "dsa", "ecdsa", "ed25519", and "auto". # The "auto" option is supported on OpenSSH 5.9 (2011) and later. @@ -41,14 +41,14 @@ Provisioning.ExecuteCustomData=n Provisioning.AllowResetSysUser=n # Format if unformatted. If 'n', resource disk will not be mounted. -ResourceDisk.Format=y +ResourceDisk.Format=n # File system on the resource disk # Typically ext3 or ext4. FreeBSD images should use 'ufs2' here. ResourceDisk.Filesystem=ext4 # Mount point for the resource disk -ResourceDisk.MountPoint=/mnt/resource +ResourceDisk.MountPoint=/mnt # Create and use swapfile on resource disk. ResourceDisk.EnableSwap=n debian/patches/CVE-2019-0804.patch0000644000000000000000000001244213441521161013236 0ustar Description: Add fixes for handling swap file This is a cherry-pick of 4 fixes from upstream. Author: mbearup --- diff --git a/azurelinuxagent/daemon/resourcedisk/default.py b/azurelinuxagent/daemon/resourcedisk/default.py index 0f0925d..43761ab 100644 --- a/azurelinuxagent/daemon/resourcedisk/default.py +++ b/azurelinuxagent/daemon/resourcedisk/default.py @@ -16,6 +16,7 @@ # import os +import stat import re import sys import threading @@ -245,16 +246,27 @@ def get_mount_string(mount_options, partition, mount_point): else: return 'mount {0} {1}'.format(partition, mount_point) + @staticmethod + def check_existing_swap_file(swapfile, swaplist, size): + if swapfile in swaplist and os.path.isfile(swapfile) and os.path.getsize(swapfile) == size: + logger.info("Swap already enabled") + # restrict access to owner (remove all access from group, others) + swapfile_mode = os.stat(swapfile).st_mode + if swapfile_mode & (stat.S_IRWXG | stat.S_IRWXO): + swapfile_mode = swapfile_mode & ~(stat.S_IRWXG | stat.S_IRWXO) + logger.info("Changing mode of {0} to {1:o}".format(swapfile, swapfile_mode)) + os.chmod(swapfile, swapfile_mode) + return True + + return False + def create_swap_space(self, mount_point, size_mb): size_kb = size_mb * 1024 size = size_kb * 1024 swapfile = os.path.join(mount_point, 'swapfile') swaplist = shellutil.run_get_output("swapon -s")[1] - if swapfile in swaplist \ - and os.path.isfile(swapfile) \ - and os.path.getsize(swapfile) == size: - logger.info("Swap already enabled") + if self.check_existing_swap_file(swapfile, swaplist, size): return if os.path.isfile(swapfile) and os.path.getsize(swapfile) != size: @@ -305,13 +317,18 @@ def mkfile(self, filename, nbytes): # Probable errors: # - OSError: Seen on Cygwin, libc notimpl? # - AttributeError: What if someone runs this under... + fd = None + try: - with open(filename, 'w') as f: - os.posix_fallocate(f.fileno(), 0, nbytes) - return 0 + fd = os.open(filename, os.O_CREAT | os.O_WRONLY | os.O_EXCL, stat.S_IRUSR | stat.S_IWUSR) + os.posix_fallocate(fd, 0, nbytes) + return 0 except: # Not confident with this thing, just keep trying... pass + finally: + if fd is not None: + os.close(fd) # fallocate command ret = shellutil.run( diff --git a/tests/distro/test_resourceDisk.py b/tests/distro/test_resourceDisk.py index d2ce6e1..753dc84 100644 --- a/tests/distro/test_resourceDisk.py +++ b/tests/distro/test_resourceDisk.py @@ -19,6 +19,7 @@ # http://msdn.microsoft.com/en-us/library/cc227259%28PROT.13%29.aspx import sys +import stat from azurelinuxagent.common.utils import shellutil from azurelinuxagent.daemon.resourcedisk import get_resourcedisk_handler from tests.tools import * @@ -38,6 +39,10 @@ def test_mkfile(self): # assert assert os.path.exists(test_file) + # only the owner should have access + mode = os.stat(test_file).st_mode & (stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO) + assert mode == stat.S_IRUSR | stat.S_IWUSR + # cleanup os.remove(test_file) @@ -83,7 +88,6 @@ def test_mkfile_xfs_fs(self): assert run_patch.call_count == 1 assert "dd if" in run_patch.call_args_list[0][0][0] - def test_change_partition_type(self): resource_handler = get_resourcedisk_handler() # test when sfdisk --part-type does not exist @@ -105,6 +109,32 @@ def test_change_partition_type(self): assert run_patch.call_count == 1 assert "sfdisk --part-type" in run_patch.call_args_list[0][0][0] + def test_check_existing_swap_file(self): + test_file = os.path.join(self.tmp_dir, 'test_swap_file') + file_size = 1024 * 128 + if os.path.exists(test_file): + os.remove(test_file) + + with open(test_file, "wb") as file: + file.write(bytes(file_size)) + + os.chmod(test_file, stat.S_ISUID | stat.S_ISGID | stat.S_IRUSR | stat.S_IWUSR | stat.S_IRWXG | stat.S_IRWXO) # 0o6677 + + def swap_on(_): # mimic the output of "swapon -s" + return [ + "Filename Type Size Used Priority", + "{0} partition 16498684 0 -2".format(test_file) + ] + + with patch.object(shellutil, "run_get_output", side_effect=swap_on): + get_resourcedisk_handler().check_existing_swap_file(test_file, test_file, file_size) + + # it should remove access from group, others + mode = os.stat(test_file).st_mode & (stat.S_ISUID | stat.S_ISGID | stat.S_IRWXU | stat.S_IWUSR | stat.S_IRWXG | stat.S_IRWXO) # 0o6777 + assert mode == stat.S_ISUID | stat.S_ISGID | stat.S_IRUSR | stat.S_IWUSR # 0o6600 + + os.remove(test_file) + if __name__ == '__main__': unittest.main() debian/patches/disable_udev_overrides.patch0000644000000000000000000000075613244055260016357 0ustar --- a/bin/waagent2.0 +++ b/bin/waagent2.0 @@ -95,8 +95,7 @@ VMM_STARTUP_SCRIPT_NAME='install' VMM_CONFIG_FILE_NAME='linuxosconfiguration.xml' global RulesFiles -RulesFiles = [ "/lib/udev/rules.d/75-persistent-net-generator.rules", - "/etc/udev/rules.d/70-persistent-net.rules" ] +RulesFiles = [ ] VarLibDhcpDirectories = ["/var/lib/dhclient", "/var/lib/dhcpcd", "/var/lib/dhcp"] EtcDhcpClientConfFiles = ["/etc/dhcp/dhclient.conf", "/etc/dhcp3/dhclient.conf"] global LibDir debian/99-cloud-init-disable-diskprovisioning.conf0000644000000000000000000000120313244055260017340 0ustar # On Windows Azure, the resource disk is checked and formated # each reboot. For some users, this causes some problems, especially # when it comes to handling Swap partitions. # # If you would like WALinuxAgent to handle the ephemeral disk rather # than Cloud-init, copy this file to /etc/cloud/cloud.d and enable # provisioning in /etc/waagent.conf: cloud_config_modules: - emit_upstart - ssh-import-id - locale - set-passwords - snappy - grub-dpkg - apt-pipelining - apt-configure - package-update-upgrade-install - landscape - timezone - puppet - chef - salt-minion - mcollective - disable-ec2-metadata - runcmd - byobu debian/README.source0000644000000000000000000000032713244055260011350 0ustar version=3 # Upstream have not yet released so its based on a git snapshot from: # # https://github.com/Windows-Azure/WALinuxAgent # # See the get-packaged-orig-source target in debian/rules for more # information. debian/compat0000644000000000000000000000000213244055260010365 0ustar 8 debian/ephemeral-disk-warning0000755000000000000000000000172613244055260013460 0ustar #!/bin/sh dev_resource=$(readlink -f /dev/disk/azure/resource-part1) dev_resource_mp=$(awk '$1==R {print$2}' "R=${dev_resource}" /proc/mounts) warn_file="${dev_resource_mp}/DATALOSS_WARNING_README.txt" if [ ! -f "${warn_file}" ]; then cat > ${warn_file} < Source: https://github.com/Windows-Azure/WALinuxAgent/ Files: * Copyright: 2012-2017, Microsoft Corporation License: Apache-2.0 Files: debian/* Copyright: 2012-2017, Canonical Group, Ltd License: Apache-2.0 License: Apache-2.0 On Debian systems, the complete text of the Apache version 2.0 license can be found in "/usr/share/common-licenses/Apache-2.0". debian/source/0000755000000000000000000000000013244055260010467 5ustar debian/source/format0000644000000000000000000000001413244055260011675 0ustar 3.0 (quilt) debian/68-azure-nm-unmanaged.rules0000644000000000000000000000027013244055260014170 0ustar # When WALinuxAgent is installed, then don't allow for network-manager # to manage the interface. # ENV{INTERFACE}=="eth[0-9]*", ENV{ID_NET_DRIVER}=="hv_netvsc", ENV{NM_UNMANAGED}="1" debian/ephemeral-disk-warning.conf0000644000000000000000000000357713244055260014407 0ustar # ephemeral-disk-warning - warns user that the disk is really, really ephemeral # # On Azure, the ephemeral disk is extremely ephemeral; the ephemeral disk is # unsafe between boots. This places a file on /mnt that warns the user # that the disk is a dangerous place for storing data of any importance. env RESOURCE_DISK=/dev/disk/azure/resource-part1 start on (stopped rc RUNLEVEL=[2345] and stopped cloud-config) task script if [ ! -e $RESOURCE_DISK ]; then logger "Disk $RESOURCE_DISK does not exist, skipping ephemeral warning" exit 0 fi ephemeral_kdev=$(readlink -f $RESOURCE_DISK) ephemeral_mp=$(awk '$1==kd {print$2}' "kd=$ephemeral_kdev" /proc/mounts) warn_file="$ephemeral_mp/DATALOSS_WARNING_README.txt" if [ -z "$ephemeral_mp" ]; then logger "Unable to discover mount point of $ephemeral_kdev. Ephemeral warning will not be written" exit 0 else logger "Ephemeral disk $ephemeral_kdev located at $ephemeral_mp" fi if [ ! -e "$warn_file" ]; then cat >> $warn_file < Mon, 11 Mar 2019 13:42:57 +0100 walinuxagent (2.2.32-0ubuntu1~14.04.1) trusty; urgency=medium * Backport of the disco version. * New upstream release (LP: #1799498). * debian/patches/disable_import_test.patch: refreshed patch. * debian/control: - Add the python3-mock build-dependency. * debian/rules: - Run unit tests but don't fail the build if they fail. Previously, due to a bug in setup.py, those were never being run during build so the failures are not regressions. -- Łukasz 'sil2100' Zemczak Mon, 29 Oct 2018 09:13:23 +0100 walinuxagent (2.2.21+really2.2.20-0ubuntu3) bionic; urgency=medium * Drop Recommends of linux-image-extra-virtual, as that depends on a kernel other than linux-azure. -- Daniel Watkins Tue, 20 Mar 2018 18:11:57 -0400 walinuxagent (2.2.21+really2.2.20-0ubuntu2) bionic; urgency=medium * Do not provide config to cloud-init specifying datasource_list. (LP: #1700769) -- Scott Moser Fri, 23 Feb 2018 13:17:20 -0500 walinuxagent (2.2.21+really2.2.20-0ubuntu1) bionic; urgency=medium * Revert to an older upstream release: 2.2.20 (LP: #1749589). - Rename upstream tarball to 2.2.21+really2.2.20 to end up with a temporarily higher version number than what's in the archive. * debian/patches/disable_import_test.patch: refreshed patch. -- Łukasz 'sil2100' Zemczak Thu, 15 Feb 2018 14:28:59 +0100 walinuxagent (2.2.21-0ubuntu1) bionic; urgency=medium * New upstream release (LP: #1746628). * debian/patches/disable_import_test.patch: refreshed patch. -- Łukasz 'sil2100' Zemczak Mon, 05 Feb 2018 17:25:14 +0100 walinuxagent (2.2.17-0ubuntu1) artful; urgency=medium * New upstream release (LP: #1717306). -- Łukasz 'sil2100' Zemczak Fri, 15 Sep 2017 12:42:50 +0200 walinuxagent (2.2.16-0ubuntu1) artful; urgency=medium * New upstream release (LP: #1714299). -- Łukasz 'sil2100' Zemczak Mon, 04 Sep 2017 10:27:07 +0200 walinuxagent (2.2.14-0ubuntu1) artful; urgency=medium * New upstream release (LP: #1701350). * debian/copyright: - Refreshed copyright content. -- Łukasz 'sil2100' Zemczak Mon, 03 Jul 2017 13:44:00 +0200 walinuxagent (2.2.12-0ubuntu1) artful; urgency=medium * New upstream release (LP: #1690854). - Refreshed debian/patches/disable_import_test.patch. -- Łukasz 'sil2100' Zemczak Thu, 18 May 2017 19:58:02 +0200 walinuxagent (2.2.9-0ubuntu1) zesty; urgency=medium * New upstream release (LP: #1683521). -- Łukasz 'sil2100' Zemczak Tue, 18 Apr 2017 12:27:57 +0200 walinuxagent (2.2.6-0ubuntu1) zesty; urgency=medium * New upstream release (LP: #1661750). * debian/control: - Change the maintainer to Ubuntu Developers (LP: #1657528). - Add the dependency of isc-dhcp-client as our maintainer scripts assume it's installed. - Add trailing commas to dependencies, add whitespaces. * Rename ephemeral-disk-warning.sh to ephemeral-disk-warning (lintian error). * debian/docs: - Remove LICENSE.txt as it's redundant. * debian/postinst: - Stop checking for update-initramfs existence using the absolute path, use the 'command' command instead to make lintian happy. * Remove debian/patches/disable-auto-update.patch: - We now ship with auto-updates enabled (LP: #1650522). * debian/maintscript: - Add a maintscript to rename the old logrotate file on upgrade from an ancient version of walinuxagent (LP: #1673152). -- Łukasz 'sil2100' Zemczak Wed, 15 Mar 2017 10:19:34 +0100 walinuxagent (2.2.2-0ubuntu1) zesty; urgency=medium * New upstream release (LP: #1651128) - d/patches/fix-auto-update.patch, d/patches/lp1623570-adjust-walinuxagent-service-after-and-wants.patch: - Dropped as changes have been applied upstream - Refreshed debian/patches/disable_import_test.patch -- Łukasz 'sil2100' Zemczak Mon, 16 Jan 2017 10:10:41 +0100 walinuxagent (2.1.5-0ubuntu6) zesty; urgency=medium * Revert 2.1.5-0ubuntu5, insecure. -- Dimitri John Ledkov Thu, 05 Jan 2017 16:31:00 +0000 walinuxagent (2.1.5-0ubuntu5) zesty; urgency=medium * debian/patches/lp-1650522-reenable-auto-update.patch: - Enable AutoUpdate again at config/ubuntu/waagent.conf (LP: #1650522) -- Jose Luis Vazquez Gonzalez (Jose Vazquez) Mon, 19 Dec 2016 18:11:33 +0100 walinuxagent (2.1.5-0ubuntu4) yakkety; urgency=medium * d/patches/fix-auto-update.patch: - This patch was provided via upstream to fix auto-update, in case users choose to enable it. -- Daniel Watkins Tue, 04 Oct 2016 12:25:07 +0100 walinuxagent (2.1.5-0ubuntu3) yakkety; urgency=medium * debian/ephemeral-disk-warning.service: add a description * debian/ephemeral-disk-warning.service: fix ordering cycle (LP: #1624596) * d/66-azure-storage.rules, d/install: fix dangling symlink in at /lib/udev/rules.d/66-azure-storage.rules. -- Scott Moser Tue, 20 Sep 2016 13:50:44 -0400 walinuxagent (2.1.5-0ubuntu2) yakkety; urgency=medium * debian/walinuxagent.service: remove cloud-final.service from both Wants and After. (LP: #1623570) -- Scott Moser Wed, 14 Sep 2016 13:06:56 -0400 walinuxagent (2.1.5-0ubuntu1) yakkety; urgency=medium * New upstream release (LP: #1603581) - d/patches/disable-auto-update.patch: - The new version introduces auto-updating of the agent to its latest version via an internal mechanism; disable this - d/patches/fix_shebangs.patch: - Dropped in favour of the dh_python3 --shebang option. - Refreshed d/patches/disable_udev_overrides.patch -- Daniel Watkins Tue, 13 Sep 2016 16:11:47 +0100 walinuxagent (2.1.3-0ubuntu4) xenial; urgency=medium * Correct ephemeral warning to include the full command for removal (LP: #1554186). -- Ben Howard Mon, 07 Mar 2016 12:10:21 -0700 walinuxagent (2.1.3-0ubuntu3) xenial; urgency=medium * Remove conflict with NetworkManager (LP: #1550461): - devices on the hyperv bus are ignored via new udev rule. * Made the upstart job more consistant with systemd service to use the /dev/disk/azure/resource-part1 path instead of /dev/sdb (LP: #1544764) -- Ben Howard Fri, 26 Feb 2016 11:06:35 -0700 walinuxagent (2.1.3-0ubuntu2) xenial; urgency=medium * Fixed file shebangs to use python3. -- Ben Howard Thu, 18 Feb 2016 12:26:24 -0800 walinuxagent (2.1.3-0ubuntu1) xenial; urgency=medium * New upstream release (LP: #1543359): - Bug fixes for extension handling - Feature enablement for AzureStack. -- Ben Howard Mon, 08 Feb 2016 16:33:07 -0700 walinuxagent (2.1.2-0ubuntu2) xenial; urgency=medium * Added udev rule to give verbose logging on the serial console. -- Ben Howard Wed, 03 Feb 2016 16:48:35 -0700 walinuxagent (2.1.2-0ubuntu1) xenial; urgency=medium * New upstream release (LP: #1523715): - Bug fixes for Ubuntu 15.10 on Azure - Enablement for Azure Stack - Dropped patch for systemd job as upstream now includes it. -- Ben Howard Mon, 07 Dec 2015 16:48:51 -0700 walinuxagent (2.1.1-0ubuntu5) xenial; urgency=medium * Disable RH testing. -- Ben Howard Mon, 09 Nov 2015 11:38:11 -0700 walinuxagent (2.1.1-0ubuntu4) xenial; urgency=medium * Added d/azure-resource as initramfs hook (LP: #1514485). -- Ben Howard Mon, 09 Nov 2015 08:38:28 -0700 walinuxagent (2.1.1-0ubuntu3) wily; urgency=medium * Fix typo in d/rules preventing systemd jobs from being enabled (LP: #1505384). -- Ben Howard Mon, 12 Oct 2015 13:33:16 -0700 walinuxagent (2.1.1-0ubuntu2) wily; urgency=medium * Add support for upstart or systemd (LP: #1505001). -- Ben Howard Fri, 09 Oct 2015 13:23:39 -0600 walinuxagent (2.1.1-0ubuntu1) wily; urgency=medium * New upstream release for Ubuntu. - Switch to Python3 - Applies Ubuntu specific patches -- Ben Howard Fri, 14 Aug 2015 16:40:41 -0600 walinuxagent (2.0.14-0ubuntu1) wily; urgency=medium * New upstream release. - Rebased patches for 2.0.13 onto 2.0.14. - Fix rdma config - Fix page blob uploading for python 2.6 . Fix http request error handling -- Ben Howard Fri, 17 Jul 2015 14:24:20 -0600 walinuxagent (2.0.13-0ubuntu2) wily; urgency=medium * Added missing udev rule for product-uuid. -- Ben Howard Fri, 03 Jul 2015 10:47:27 -0600 walinuxagent (2.0.13-0ubuntu1) wily; urgency=medium * New upstream release (LP: #1449369). * Rebased patches for 2.0.12 onto 2.0.13. * Upstream fixes: - Handle http 410 returned by host - Add support for http proxy - Add support to execute CustomData after provisioning - Update service start/stop command for Ubuntu -- Ben Howard Thu, 02 Jul 2015 15:14:26 -0600 walinuxagent (2.0.12-0ubuntu2) vivid; urgency=medium * Fixed systemd unit file which caused SharedConfig.xml to be deleted by Cloud-init (LP: #1444086). -- Ben Howard Wed, 15 Apr 2015 10:59:38 -0600 walinuxagent (2.0.12-0ubuntu1) vivid; urgency=medium * New upstream release (LP: #1442392). * Added debian/watch for easier maintenance. * Fix regression of missing dataloss warning by adding systemd unit file. -- Ben Howard Wed, 25 Mar 2015 11:04:05 -0600 walinuxagent (2.0.8-0ubuntu7) vivid; urgency=medium * Added /lib/udev/rules.d/66-azure-storage.rules: create symlinks for /dev/disk/azure/{root,resource} to correctly identify disks (LP: #1411582). -- Ben Howard Mon, 09 Mar 2015 06:26:48 -0600 walinuxagent (2.0.8-0ubuntu6) vivid; urgency=medium * Changed systemd unit file to allow for cloud-init to run first. -- Ben Howard Tue, 02 Dec 2014 21:53:06 -0700 walinuxagent (2.0.8-0ubuntu5) vivid; urgency=medium * Changes to support systemd - debian/walinuxagent.service: symlink to upstream service - debian/rules: build with systemd - debain/control: added dh_python and dh_systemd to build deps -- Ben Howard Wed, 26 Nov 2014 11:41:59 -0700 walinuxagent (2.0.8-0ubuntu4) vivid; urgency=medium * Moved dependency of linux-image-extra-virtual to recommends. -- Ben Howard Tue, 18 Nov 2014 05:40:07 -0700 walinuxagent (2.0.8-0ubuntu3) vivid; urgency=medium * Changed startup ordering to on ephemeral disk warning as the warning is not written on first boot. -- Ben Howard Fri, 07 Nov 2014 07:02:18 -0700 walinuxagent (2.0.8-0ubuntu2) vivid; urgency=medium * Add upstart job to add "readme" on Azure ephemeral disk (LP: #1382257). -- Ben Howard Thu, 06 Nov 2014 16:33:42 -0700 walinuxagent (2.0.8-0ubuntu1) utopic; urgency=medium * New upstream release (LP: #1356479). - Fixed issue of reporting SSH keys to fabric - wait for Cloud-init to provision the host keys - Multiple fixes for extension handlers - capture output of subprocess, prevent subprocess failure - prevent fabric from continuously querying host if no extensions are installed. -- Ben Howard Fri, 29 Aug 2014 10:11:12 -0600 walinuxagent (2.0.5-0ubuntu3) utopic; urgency=medium * Restrict builds to amd64 only (LP: #1326018). -- Ben Howard Tue, 03 Jun 2014 09:21:20 -0600 walinuxagent (2.0.5-0ubuntu1) utopic; urgency=medium * New upstream release (LP: #1321024). - Multiple fixes for extension handler framework - New logging support - Add state handling for each extension - Properly handle non-JSON extensions - Several other bugfixes - Replace platform.* calls with DistInfo() function - EnvMonitor - Set SCSI I/O timeout for all attached disks * Packaging changes - Rebased Ubuntu packaging patches from 2.0.4. - Updated Debian standards from 3.9.4 to 3.9.5. -- Ben Howard Tue, 20 May 2014 08:26:50 -0600 walinuxagent (2.0.4-0ubuntu2) trusty; urgency=low * Fix for broken sshd configuration (LP: #1305418) - Change modification of sshd_config to address lack of newline at EOF -- Ben Howard Thu, 10 Apr 2014 14:04:44 -0600 walinuxagent (2.0.4-0ubuntu1) trusty; urgency=medium * Update to latest upstream version 2.0.4 (LP: #1304023). - Includes ability for agent injection. -- Ben Howard Mon, 07 Apr 2014 16:48:16 -0600 walinuxagent (2.0.3-0ubuntu2) trusty; urgency=low * Change /etc/dhcp/dhclient.conf 'send host-name' during post-inst to fix snapshotting instances (LP: #1268050). -- Ben Howard Tue, 18 Mar 2014 17:14:41 -0600 walinuxagent (2.0.3-0ubuntu1) trusty; urgency=low * Update to latest upstream version 2.0.3 (LP: #1249052). - use python-setuptools to do installation, dropping the {pre,post}insts. - dropped the walinuxagent-datasaver packages as no longer needed. - use packaged default configuration file by default. * Rebased relevant patches from 1.3.x: - debian/patches/disable_provisioning.patch: disable provisioning features infavor of WALinuxAgent cloud-init support. - debian/patches/disable-udev-rules.patch: disable UDEV rule mangling * Include default Cloud-init configuration - configures Cloud-init to use the default Azure Datasource. -- Ben Howard Fri, 14 Feb 2014 11:55:14 -0700 walinuxagent (1.3.2-0ubuntu8) trusty; urgency=low * debian/patches/idns_dhcp.patch: only change send-hostname in dhcpclient.conf when send-hostname is already in the config (LP: #1268050). -- Ben Howard Wed, 15 Jan 2014 13:02:30 -0700 walinuxagent (1.3.2-0ubuntu7) trusty; urgency=low * debian/rules: Update for new upstream location. * debian/control: Updated the standards version from 3.9.3 to 3.9.4 * updated the description on walinuxagent-datasaver (LP: #1266545) -- Ben Howard Wed, 08 Jan 2014 14:11:13 -0700 walinuxagent (1.3.2-0ubuntu5) saucy; urgency=low * disable ephemeral disk formating by default (LP: #1231490) -- Ben Howard Thu, 26 Sep 2013 08:21:35 -0600 walinuxagent (1.3.2-0ubuntu4) saucy; urgency=low * debian/patches/shadow_permissions.patch: apply the appropriate permissions to /etc/shadow (LP: #1188820). * debian/patches/verbose_logging.patch: use the appropriate log faculty when using verbose logging (LP: #1193404). * Mark bugs fixed in 1.3.2-0ubuntu3: debian/patches/config_for_cloud-init.patch: - fix for race condition between cloud-init and waagent (LP: #1195524) - mount resource disk on /mnt (LP: #1193380) - move walinuxagent init functionality to cloud-init (LP: #1037723) -- Ben Howard Tue, 23 Jul 2013 09:43:40 -0600 walinuxagent (1.3.2-0ubuntu3) saucy; urgency=low [ Ben Howard ] * debian/patches/config_for_cloud-init.patch: Modified configuration to disable provisioning functions. walinuxagent for Ubuntu should now be used with Cloud-init. * debian/postinst: Don't overwrite existing /etc/waagent.conf agent configuration on install or upgrade. * debian/upstart: start later in boot, avoiding race conditions with cloud-init. [ Scott Moser ] * debian: wrap and sort directory * debian/patches/no_udev_rule_removal.patch: remove 000 prefix in file name. No need for numbering in filenames when we have patches/series. -- Scott Moser Thu, 11 Jul 2013 17:31:05 -0400 walinuxagent (1.3.2-0ubuntu2) saucy; urgency=low * Added logic to prevent udev rules.d movement (LP: #1188753) -- Ben Howard Tue, 11 Jun 2013 14:09:58 -0600 walinuxagent (1.3.2-0ubuntu1) raring; urgency=low * Updated to 1.3.2 as part of Windows Azure requirement (LP: #1158465). * Upstream now supports packaging; incorporated upstream packaging into Ubuntu Packaging. -- Ben Howard Thu, 21 Mar 2013 12:57:08 -0600 walinuxagent (1.3-0ubuntu2) raring; urgency=low * Changed detection of whether or not agent is packaged to using dpkg command. (LP: #1111690) -- Ben Howard Thu, 31 Jan 2013 11:42:39 -0700 walinuxagent (1.3-0ubuntu1) raring; urgency=low * New upstream version (LP: #1101371) - Add some error checking and robustness to DVD mounting operation during provisioning - Remove redundant check for IP and Port in LoadBalancerProbe - Add check to self.computername to detect empty hostname in configuration - Fix manual uninstall on Ubuntu * Modified walinuxagent to recognize when its been packaged. -- Ben Howard Fri, 18 Jan 2013 15:43:08 -0700 walinuxagent (1.2-0ubuntu1) raring; urgency=low * New upstream version (LP: #1077148) * Upstream features: - Added - load ata_piix.ko module loaded if needed for CDROM device support - Additional logging for DoDhcpWork() - Update sock.recv timeout from 30 to 10 seconds - Fix: Linux waagent deprovision, user is not deleted properly - Fix: Make LBProbeResponder construction more robust - Fix: Agent fails to provision user with public/private key pairs - Fix: DHCP broadcast response not received - Fix: Linux agent fails to delete root user password - Fix: Linux agent should report error messages to Fabric when passed an invalid hostname. * Dropped Ubuntu specific patches - Removed debian/patches/000_resolv-conf.patch as upstream now supports resolvconf properly. - Removed debian/patches/001-strip-init-d.patch as redundant now that upstream understands Ubuntu upstart. Upstream script does not handle the removal of the upstart job anyway. * Added debian/patches/000_use_package_upstart.patch to use packaged upstart job over in-script upstart. -- Ben Howard Fri, 07 Dec 2012 16:52:42 -0700 walinuxagent (1.1-0ubuntu2) raring; urgency=low * Stop upgrades purging walinuxagent meta-data and configuration files (LP: #1079897): - d/{control,walinuxagent-data-saver.preinst}: Added walinuxagent-data-saver package to ensure that agent generated data is not lost on upgrade by diverting /usr/sbin/waagent during the upgrade process. - d/walinuxagent-data-saver.lintian-overrides: Override errors about use of dpkg-divert in this package. - d/control: Added Pre-Depends to walinuxagent on walinuxagent-data-saver. - d/prerm: Stop calling waagent --uninstall during reconfiguration and upgrade, specify files to remove manually for purge. - d/postinst: Remove divert of /usr/sbin/waagent prior to completion of package install. * d/preinst: If upgrading from package version with unmanaged waagent upstart configuration stop the agent and remove the upstart configuration. * d/upstart: Tidied description in upstart job. -- James Page Fri, 23 Nov 2012 16:07:41 +0000 walinuxagent (1.1-0ubuntu1) raring; urgency=low * New upstream version (LP: #1078074, #1077147). * Moved upstart job to be managed by packaging. -- Ben Howard Wed, 14 Nov 2012 10:59:37 -0700 walinuxagent (1.0~git20120606.c16f5e9-0ubuntu2) quantal; urgency=low * Restrict target architectures to i386 and amd64. -- James Page Mon, 06 Aug 2012 10:24:07 +0100 walinuxagent (1.0~git20120606.c16f5e9-0ubuntu1) quantal; urgency=low * Initial package import (LP: #1014864). * Ubuntu specific modifications: - Made resolvconf aware during deprovisioning - Added Ubuntu upstart job - Added ability to prevent agent startup. -- Ben Howard Fri, 22 Jun 2012 09:10:22 -0600