Commit Graph
72 Commits
Author SHA1 Message Date
William Douglas 0d4e4f2673 Allow detection of Clear Linux OS in python3
In python3 the platform.linux_distribution() function does not display
content for Clear Linux. In addition the linux_distribution function
is due to be deprecated in python 3.7 (the next minor release, see
https://bugs.python.org/issue1322). In anticipation of this, switch to
sourcing the os-release file in the waagent.service and reading the
distribution information from the environment instead.
2018-02-07 21:42:01 +00:00
Christopher Boumenot ac6f4904ac v2.2.21 2018-01-26 22:51:20 +00:00
Hans Krijger c93a969f5c Merge 2.2.20 (#1014)
* hotfix to remove purge; update version to 2.2.20

* update test data

* update test data

* update purge; pep8 fixes

* unit tests

* readability, unit tests
2018-01-23 17:27:48 -08:00
Christopher Boumenot 27c16553f5 ship warning and errors logs to Geneva (#991) 2018-01-17 13:58:18 -08:00
Brendan Dixon 18d1625634 v2.2.19
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-11-09 10:51:53 -08:00
Brendan Dixon 0026f4516d [#929] -- wire.py#update_goal_state does not handle out-of-date GoalState errors
Improved HTTP error messages
Added HTTP IOError event
Convert internal error numbers into useful names

Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-11-01 11:55:02 -07:00
Brendan Dixon 1f5ef8d47f Improved error logging
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-10-27 11:58:22 -07:00
Brendan Dixon 4fd8a8e8ec Updated version
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-10-27 09:35:04 -07:00
Brendan Dixon fb16cba28b [#822] -- Update docs
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-10-20 11:01:59 -07:00
Brendan Dixon 0352a85712 [#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.

Updated version to 2.2.18.1
Replaced errno.EREMOTEIO with fixed value (since the constant is not present in all Python 2.7 versions)

Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-10-18 14:57:16 -07:00
Hans Krijger 596c416d3b update version to 2.2.18 2017-09-19 14:58:27 -07:00
Brendan Dixon d5e64dc1e9 Set version to v2.2.17
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-09-13 16:51:29 -07:00
Brendan Dixon 5c08800860 Update to v2.2.16
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-09-01 11:07:35 -07:00
Brendan Dixon fef4062e0f Improve error message when trying IOErrors
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-08-31 15:36:23 -07:00
Brendan Dixon 0ce5c390bf [#865] -- The agent should retry ETIMEDOUT (110) IOErrors
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-08-31 15:13:46 -07:00
Brendan Dixon 3dd33a797c Update to v2.2.15
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-08-24 15:29:00 -07:00
Brendan Dixon be77729cb8 Improve firewall handling and make GoalState retrieval more robust
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-08-22 16:11:50 -07:00
Brendan Dixon ace5d8e701 Emit Firewall events
Signed-off-by: Brendan Dixon <brendand@microsoft.com>
2017-08-21 11:42:09 -07:00
Brendan Dixon d0b583cc6f [#823] -- Show config options in use
[#784] -- Adjust http retry and logging

Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-08-11 09:37:33 -07:00
Brendan Dixon 8530016e71 Make version recognition more flexible
Report pre-provisioned VMs as ready
Reworked optional agent support

Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-06-29 16:01:25 -07:00
Brendan Dixon b3eac05aab Updating version to 2.2.14
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-06-22 15:56:17 -07:00
Brendan Dixon eb3662e0e1 [#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

Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-06-21 13:41:05 -07:00
Hans Krijger b5ac14b393 update the agent version to 2.2.13 (#755) 2017-06-08 10:53:14 -07:00
Reyk Floeter aad62676a7 Add initial support for the OpenBSD operating system (#712)
* Add initial support for the OpenBSD operating system

There are some differences between FreeBSD, OpenBSD, and Linux.

Notes:

- OpenBSD ships LibreSSL, but WALinuxAgent needs OpenSSL for CMS, so
use the openssl port and the "eopenssl" binary instead.

- Don't run the custom DHCP client but parse /var/db/dhclient.leases.hvn0.
OpenBSD's lease file uses a modified syntax.

- OpenBSD does not have /proc.  WALinuxAgent should never assume that
the /proc filesystem is available.

- OpenBSD does not have sudo, but its replacement doas.  The OpenBSD
class implements support for modifying the doas.conf file.

- Unlike FreeBSD, OpenBSD supports and mounts UDF DVDs just fine.

- Create a swap partition instead of a swap file on the resource disk.

- Many other minor changes for OpenBSD

TODO:

- The /proc checks needs to be replaced with pgrep/ps etc. checks for
OpenBSD.  For now it just checks if /proc is available or returns
without error.
Make sure to install waagent with --register-service as setuptools
will not set the permissions of /etc/rc.d/waagent correctly (the file
has to be executable to be used by OpenBSD's rc system).

* Remove debug statement that was use to fix mount_dvd on OpenBSD.

* I accidentally replaced the FreeBSD resource disk handler.

The OpenBSD disk handler is an addition, not a replacement.

Found by jonathangray

* pylint

pylint found one bug in setting the password; other changes are just
for the style.

* strip newline from generated password hash.

Issue reported by Lili Deng.

* Keep AutoUpdate enabled, it was disabled for initial porting.

Pointed out by @hglkrijger

* Use a wildcard and delete all DHCP lease files on *BSD.

Requested by @hglkrijger
2017-05-30 15:27:22 -07:00
Brendan Dixon 648ef47950 v2.2.12
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-05-25 12:29:29 -07:00
Brendan Dixon 91ab95b2eb v2.2.11.1 2017-05-24 13:29:58 -07:00
zegman ed8f449798 Add Check Point GAiA OS support 2017-05-17 16:28:59 +03:00
Brendan Dixon ce1d3ba0c0 Set version 2.2.11
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-05-09 12:55:50 -07:00
Brendan Dixon b4b3bedfff Removed unnecessary directories and files #693
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-05-03 13:51:38 -07:00
Hans Krijger 6883b02ac1 update version to 2.2.10 (#677) 2017-04-19 10:22:08 -07:00
Hans Krijger d43299ab1c update agent to 2.2.9 (#672) 2017-04-17 13:04:23 -07:00
Hans Krijger aaba3bf759 update version to 2.2.8 (#660)
* update version to 2.2.8

* fix unit tests
2017-04-10 12:14:33 -07:00
hufengwei 66c5628751 Add support for EulerOS (#614) 2017-03-31 11:18:14 -07:00
brendandixon 7676bf8513 Enabled PageBlob support through HostGAPlugin (#625)
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-03-27 15:30:49 -07:00
Hans Krijger 4364b87cb6 update agent version to 2.2.6 (#617) 2017-03-09 14:40:00 -08:00
Hans Krijger f561aeed50 Fix cache-incarnation sync (#587)
* when hostname record is missing, assume current

* version update to 2.2.4.1

* minor cleanup; reduce duplicate http logging

* update the incarnarnation file after all caches

* remove http proxy logging unless proxy set

* force goalstate update when host plugin call fails

* update version to 2.2.5
2017-02-09 15:41:50 -08:00
Hans Krijger 2010d7623c update version to 2.2.4 (#584)
* update version to 2.2.4

* update unit tests
2017-02-02 11:14:12 -08:00
Hans Krijger 38933fa6c6 update version to 2.2.3 (#570) 2017-01-23 14:53:50 -08:00
Hans Krijger 2950edb430 CoreOS fix (#567)
* reformat

* cleanup; add distro_code_name to os factory
2017-01-20 16:43:03 -08:00
Hans Krijger b77eb0f4be fix the logic for agent version (#547) 2017-01-13 12:01:28 -08:00
Hans Krijger 515415a478 Update version to 2.2.2 (#511)
* logging update

* updating version for testing

* updating version to 2.2.2
2016-12-12 11:59:00 -08:00
Tim Rupp 94a0b4948b Adds BIG-IP integration to WAAgent
This patch includes the implementation portion of BIG-IP integration
with WAAgent.
2016-11-29 13:16:05 -08:00
Hans Krijger 68a18b35d8 Merge hotfix/2.2.0 back to master (#497)
* Decide version hotfix (#493)

* correct the check for installed version

* add length check to remove_bom

* update version to 2.2.1
2016-11-18 15:54:19 -08:00
Tim Rupp e9acec8219 Add version hooks for F5 products
F5's products do not use the common /etc/product-release format for
platform version information. A different method is needed via parsing
the /VERSION file.

I was not sure if /VERSION was too broad of a thing to check for (for
instance if it might crop up in other platforms) so instead I check
for the /shared/vadc which is definitely an F5-ism.

This patch adds a small method to parse the relevant content from that
file and put it in a list that is returned for later use by the rest
of the version.py lib.
2016-10-28 22:23:21 -07:00
Hans Krijger cb2f1d1fda update version to 2.2.0 2016-09-26 17:41:13 -07:00
Hans Krijger 4de1637eec update version for testing (#445) 2016-09-23 14:40:13 -07:00
Hans Krijger ed0f379b89 updating version to 2.1.6.7 for testing (#442) 2016-09-22 14:37:06 -07:00
Hans Krijger 630acd221d update version for testing (#441) 2016-09-21 11:41:56 -07:00
Hans Krijger 51714dd4aa Update version to 2.1.6.5 for test publishing (#435)
* update version to 2.1.6.4 for testing

* updating version to 2.1.6.5
2016-09-16 13:26:55 -07:00
Hans Krijger 99f4cf5bac update version to 2.1.6.4 for testing (#434) 2016-09-16 11:58:15 -07:00