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
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
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
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
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
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
Yoon Hong
035bf2bb36
Fix incorrect host_plugin_protocol class var update in wire.py ( #452 )
2016-10-26 13:16:42 -07: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
accbfab9e0
More robust error handling to avoid Agent crash ( #452 )
2016-10-26 13:16:42 -07:00
Yoon Hong
12ffa9af28
Apply Hans' comments ( #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
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
1da8e32266
ensure the proxy port is an integer; logging improvements
2016-09-27 15:30:53 -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
Hans Krijger
1fa2d965b6
handle wireserver 503s more gracefully ( #405 )
2016-09-07 08:30:59 -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
Kamran Khan
6c536b17f9
Fix issue Azure/WALinuxAgent#388 ( #390 )
...
- add missing substatus
- fixes #388
2016-08-30 14:13:12 -07:00