Commit Graph
84 Commits
Author SHA1 Message Date
Christopher Boumenot 42648cbefa Warn to Verbose
The log statement "Download did not succeed, falling back to host plugin" is not very useful, and is rather noisy.
2018-01-24 21:27:44 -08: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 74350e39ea randomize package URLs (#1012) 2018-01-19 17:30:25 -08:00
Christopher Boumenot e0bb6a04c0 better telemetry messages (#1011) 2018-01-19 12:32:37 -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
Christopher Boumenot f7f2335d0b bypass proxy for local requests (#987) 2018-01-04 12:35:11 -08:00
Brendan Dixon de1c9040f8 Address rare GoalState fetching bug
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-11-13 11:53:49 -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 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 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 e7a90402f2 Fix for missing upgradeGuid parsed as empty string 2017-09-22 15:13:42 -07:00
Hans Krijger 9632cfc587 fix for agent update outside of goal state update 2017-09-19 14:53:04 -07:00
William Pearson bc2cdf2b23 Add explanatory comments for extension rolling upgrade 2017-09-13 15:56:00 -07:00
William Pearson 4bc735d169 Report the upgradeGuid back to CRP in the status blob 2017-09-07 09:34:40 -07:00
William Pearson 76f37fea1e Add extension rolling upgrade logic
Parse upgrade GUID and rolling upgrade flag from XML
Save old GUIDs
Only upgrade if the flag is False or the old GUID does not match the new GUID
2017-09-06 13:44:56 -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 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 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 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 052a99f856 [#808] -- The agent should more gracefully handle out-of-space disk errors (IOError 28)
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-08-02 12:38:54 -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
brendandixon 0a849e4311 Merge pull request #751 from hglkrijger/gh745
correct host plugin channel initialization
2017-06-07 12:21:30 -07:00
brendandixon 9babfef5a3 Merge pull request #752 from hglkrijger/gh741
Handle 404 in AzureStack
2017-06-07 12:20:46 -07:00
Hans Krijger ee88936d82 remove admin access requirement from AzureStack 2017-06-07 12:02:58 -07:00
Hans Krijger 34ee51510a do not raise a ProtocolError when reporting an event fails in metadata protocol 2017-06-07 11:54:55 -07:00
Hans Krijger 15a139bc04 only set initialized when available, so initialization is retried during host update 2017-06-07 11:41:20 -07:00
Hans Krijger 902e71b22e ignore encoding errors when reading error response; new unit test (#748) 2017-06-07 11:39:28 -07:00
Hans Krijger eec198c522 add traceback to logging when there is a host plugin exception 2017-05-24 16:03:40 -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 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 d7d41284e1 Provisioning logging improvements (#673)
* log the device list when finding dvd

* improve logging for get_dvd_device

* improve logging for mount_dvd

* more granular logging for copy_ovf_env

* provisioning logging and error cleanup

* ubuntu provisioning logging cleanup

* improve Ubuntu provisioning logging

* ubuntu provision cleanup

* debugging for cloud-init

* add validation method and logging for cloud-init

* error cleanup, fix mount

* minor cleanup

* add validate cloud-init logging

* unit test fixes
2017-04-18 14:35:11 -07:00
Hans Krijger c990b474ff reset channel if host plugin put status fails (#663) 2017-04-11 16:24:32 -07:00
Hans Krijger 01f3961cec better error handling if host plugin not available (#649) 2017-04-04 16:02:43 -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 e4dc8ced1b ensure hostplugin fails gracefully (#602) 2017-03-06 10:51:26 -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 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 bb07960413 update logging; update goal state when out of date (#569) 2017-01-23 14:36:55 -08:00
Hans Krijger 9ea18d8658 Add telemetry event for host plugin usage (#560)
* reformat file

* add host plugin event; minor cleanup

* clean up imports
2017-01-18 18:50:01 -08:00
Christopher Boumenot bd335f1f25 Typo is log message
prefered -> preferred
2017-01-16 00:46:10 -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 abe5357b58 1. Add is_str_none_or_whitespace to textutil for string emptiness check (#487)
2. Update remove_bom to properly handle empty/none/whitespace string
(#486)
3. Update remove_bom to check length of the input
2016-12-01 11:56:38 -08:00