Commit Graph

50 Commits

Author SHA1 Message Date
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 e39dc7bf4c support '=' is configuration values (#1005) 2018-01-18 22:44:38 -08:00
Christopher Boumenot 9f4ddca296 typo in waagent.conf comments (#990) 2018-01-04 16:06:49 -08:00
Christopher Boumenot ae21f5d74d SshHostKeyPairType=auto supported on OpenSSH >=5.9 2017-11-28 13:45:10 -08: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
brendandixon 7b94a9711a Merge pull request #880 from uiri/rolling
Rolling Extension Upgrades
2017-10-17 10:05:24 -07:00
Brendan Dixon e85d5327a4 [#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

Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-10-17 09:18:46 -07:00
Brendan Dixon fe812ccb44 Merged v2.2.18
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-10-09 14:04:17 -07:00
William Pearson 8663a92b16 Remove flag IsPartOfScaleSet 2017-09-27 13:14:20 -07:00
William Pearson 3f5480ad21 Rename ExtensionRollingUpgrade to IsPartOfScaleSet 2017-09-23 19:34:33 -07:00
William Pearson a2a86b296d Add test for hotfix upgrades 2017-09-22 11:30:01 -07:00
Hans Krijger 4316e399ce add new test data for 2.2.18 2017-09-19 15:48:11 -07:00
Hans Krijger 9632cfc587 fix for agent update outside of goal state update 2017-09-19 14:53:04 -07:00
Brendan Dixon c132b830bc Adjust safe-deploy JSON
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-09-14 10:48:45 -07:00
Brendan Dixon 693a40aac6 Renamed safe-deploy files and objects to make purpose clear
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-09-12 13:31:17 -07:00
Brendan Dixon d6da347727 Added safe deployment support
[#875] -- The agent should include the incarnation number in ProcessGoalState events
[#874] -- The interval allowed before forcibly terminating the child process is too long

Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-09-11 15:47:25 -07:00
William Pearson bc0ecc51ba Add unit testing for rolling upgrade extension change
Fix typos caught by testing
Properly handle enabled->disabled/uninstall state change and
disabled/uninstall->enabled state change
2017-09-07 13:49:34 -07:00
Brendan Dixon 887e4add6f Updated test data
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-08-24 15:55:27 -07:00
Brendan Dixon e247e7b2f2 Restrict access to Azure fabric services
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-08-17 13:12:34 -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 648ef47950 v2.2.12
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-05-25 12:29:29 -07:00
Brendan Dixon 90cf4f680f [#711] -- There are too many log print to /var/log/waagent.log
[#714] -- Questionable split call in common/conf.py
[#717] -- Remove extension logs during deprovision
[#720] -- Reset of RDMA drivers not taking effect
[#724] -- Location of configuration file should be editable issue

Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-05-23 15:45:33 -07:00
brendandixon 5c90636dd8 Added Provisioning telemetry duration (#702)
Correctly handle cleaning directories that include symlinks
Reduced polling interval #701
Enable selective agent testing
Improved FIPS configuration variable name
Reduced cloud-init files removed on deprovision #631

Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-05-08 16:27:56 -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
Brendan Dixon cbc2f4f366 Addressed issues #687, #604, and #531
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-05-02 13:28:19 -07:00
Brendan Dixon aa06f5bbba Added auto-update support for Azure Stack
Enabled telementry for Azure Stack

Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-04-28 15:55:30 -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
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 92fe3f2bcb Host plugin updates (#505)
* fetch manifests and packages via host plugin channel when initial download fails

* emit a telemetry event to determine if blob type matches
2016-12-06 14:29:19 -08:00
Brendan Dixon 84d4532558 Correctly handle agent family without package URIs
Signed-off-by: Brendan Dixon <brendand@microsoft.com>
2016-10-25 10:43:00 -07:00
Yoon Hong c3532dd93a Merge pull request #444 from jinhyunr/SecureHostGAConnection
Send additional headers when using HostGAPlugin (#443)
2016-09-30 14:05:03 -07:00
Hans Krijger 1ed45981d2 fix unit tests 2016-09-27 10:18:14 -07:00
Yoon Hong 26377e6c96 Send additional headers when using HostGAPlugin (#443) 2016-09-23 15:57:49 -04:00
SRIKKANTH 80ae8ad656 Metadata certificate download support added. 2016-09-07 14:56:22 -07:00
Hans Krijger bda4e61b41 Explicitly specify enable timeout as 5m (#303)
* Explicitly specify enable timeout as 5m

Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>

* fix unit tests
2016-07-08 17:15:31 -07:00
Brendan Dixon a7364c801b Added package building script
Signed-off-by: Brendan Dixon <brendand@microsoft.com>
2016-07-08 08:58:42 -07:00
Brendan Dixon feb1d7b621 Corrected self-update to preserve errors and improved telemetry (#290)
Signed-off-by: Brendan Dixon <brendand@microsoft.com>
2016-07-06 15:33:21 -07:00
Brendan Dixon 20020aea05 Improved download process and ensured output is not buffered
Signed-off-by: Brendan Dixon <brendand@microsoft.com>
2016-06-28 15:42:12 -07:00
Hans Krijger 028a77f3b4 Dhcp caching (#271)
* fix bug in cache lookup logic; allow skipping the cache in failure mode

* code review feedback
2016-06-28 11:12:51 -07:00
Brendan Dixon 1afa6a199c Converted update process to rely on HandlerManifest
Signed-off-by: Brendan Dixon <brendand@microsoft.com>
2016-06-24 13:16:11 -07:00
Brendan Dixon 2c44b88946 Corrected extension version selection and stdout/stderr redirection
Corrects extension version selection (issue #238).
Corrects hanlding of stdout / stderr (issue #260).

Signed-off-by: Brendan Dixon <brendand@microsoft.com>
2016-06-23 14:52:40 -07:00
brendandixon 2799c3b615 Agent Self-Update Feature (#244)
The Agent will monitor for more recent versions and update itself
(without impacting the installed version). If the new Agent fails
(in a very bad way or consistently), the code rolls back to the prior
version.

Signed-off-by: Brendan Dixon <brendand@microsoft.com>
2016-06-21 12:18:06 -07:00
Hans Krijger fc9684b25c Multi-nic improvements (#237)
* update loopback detection to use SIOCGIFFLAGS and IFF_LOOPBACK; add unit tests

* adds a check for the wireserver ip, and if it does exist then skip the dhcp lookup and route manipulation; adds unit tests

* ensure the first selected interface is the primary, which is that with the default route; adds unit tests

* parse the wireserver from the dhcp leases file on disk; distro-specific, this is the ubuntu implementation; adds unit tests

* unit test fixes, python 3 changes

* code review feedback
2016-06-21 11:28:07 -07:00
Yue Zhang da9ebe0a3d Separate provision agent and guest agent
Ensured correct return
Temporarily disable autoupdate

Signed-off-by: Brendan Dixon <brendand@microsoft.com>
2016-06-01 15:27:32 -07:00
brendandixon e55d8dee0e Revert "Separate provision agent and guest agent" 2016-05-31 11:24:23 -07:00
Yue Zhang efff9d6e0e Separate provision agent and guest agent 2016-05-31 11:15:10 -07:00
Dong Liu 71ca08dfa6 Internal version extension should not be chosen when autoupgrade is true, add test cases for autoupgrade. 2016-02-18 15:26:18 +08:00
Yue Zhang 79f6dcebb8 Fix parsing xml event 2016-01-21 13:05:13 +08:00
Yue Zhang 5bfc685856 Refactor extension handler 2016-01-12 17:10:56 +08:00
Yue Zhang 16b28c84ab Improve unit test 2016-01-08 12:19:36 +08:00