Commit Graph

41 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
Will Pearson fdb2b8a404 Use cached extension version manifest if available (#919)
* Use cached extension version if available

* Pass etag to get_ext_handler_pkgs

* Fix failing stale goal state test

* On a stale goalstate, restart extension handling

Also, simplify the fetch manifest logic which identifies a stale
goal state

* Address first round of PR comments.

* Get rid of stopgap loop for stale goal states

* Use previous pattern to populate ext manifest cache

* Simplify get_ext_manifest
2018-01-16 17:26:16 -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
William Pearson a2a86b296d Add test for hotfix upgrades 2017-09-22 11:30:01 -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 9b92a7705a Align HTTP status code handling with HostPlugin
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-08-24 11:40:18 -07:00
Brendan Dixon 285aeff238 [#783] -- The agent fails to use the standard Linux environment variables for HTTP proxy
[#830] -- Ensure VM identifier is properly ordered

Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-08-15 10:21:52 -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 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 902e71b22e ignore encoding errors when reading error response; new unit test (#748) 2017-06-07 11:39:28 -07:00
Brendan Dixon 8c7eaf9007 [#721] -- WALA deprovision process not clean up all cloudinit files
[#725] -- v2.2.11 can throw unexpected exceptions on provisioned VMs
[#727] -- v2.2.11 cannot update status for RDFE VMs

Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-05-23 11:23:05 -07:00
brendandixon 3e77d7daf9 Correct HandlerState status check (#699) and clean-up reported events (#700)
Add GoalState telemetry (#470)

Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-05-04 15:06:18 -07:00
Brendan Dixon 89c6d2829f Remove status blob HEAD request (#694)
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-05-03 14:55:44 -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 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 c990b474ff reset channel if host plugin put status fails (#663) 2017-04-11 16:24:32 -07:00
Hans Krijger 8ed38f4e91 Add telemetry for put status failures (#647)
* initial commit

* unit test fix
2017-04-04 11:32:52 -07:00
Hans Krijger 94f3ad334b NSG improvements (#638)
* ensure host channel use is sticky; additional logging; unit test updates

* pr feedback
2017-03-31 11:20:49 -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 620b83337c Extend vm status (#579)
* add os name, version and hostname to status blob; minor cleanup

* add unit test for vm status format

* update status version to 1.1
2017-01-30 10:38:35 -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
Yoon Hong 37fdcb4937 Pass necessary values only to HostPluginProtocol constructor instead of passing in whole goalstate object (#452) 2016-10-26 13:16:42 -07:00
Yoon Hong 34b08320c1 Remove Redundant code in HostPluginProtocol and use call_storage_service for both default protocol and host plugin protocol(#452) 2016-10-26 13:16:42 -07:00
Yoon Hong 466f98728a Refactor some logics in wire.py for better isolation (#452) 2016-10-26 13:07:38 -07:00
Yoon Hong d03d92551a Add Overprovisioning support (#452) 2016-10-26 13:07:38 -07:00
Yoon Hong c74e9f874f Fix broken unit tests (#443) 2016-09-29 22:06:27 -07:00
Yoon Hong 42be001a3a Pass goal_state as an argument when creating HostPluginProtocol (#443) 2016-09-23 20:31:44 -04: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 91d64b5fb9 ensure all calls to call_storage_service use http proxy; pep8 fixes and cleanup (#399) 2016-09-01 16:45:25 -07:00
Hans Krijger 42053d9bbf Host channel fix (#375)
* use the correct data for host channel fallback; adds unit test
adds unit test

* update the agent version to 2.1.6.1
2016-08-18 15:40:31 -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 4b35d88a83 Host plugin channel (#250)
* formatting fixes, update error text, remove unused imports

* modify error logic to use host plugin upload as a fallback

* initial commit for host plugin work

* adds the vmAgentLog api

* code review feedback
2016-06-21 11:29:11 -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 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