Christopher Boumenot
74350e39ea
randomize package URLs ( #1012 )
2018-01-19 17:30:25 -08:00
Christopher Boumenot
1eeaaf0e77
Randomize the URL used for package download ( #1010 )
2018-01-18 22:43:41 -08:00
Christopher Boumenot
27c16553f5
ship warning and errors logs to Geneva ( #991 )
2018-01-17 13:58:18 -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
Hans Krijger
0678fe01b0
Emit log message when work is done ( #989 )
...
* fix ubuntu class hierarchy
* conditionally log the process goal state message
2018-01-04 16:06:18 -08:00
Christopher Boumenot
210ada4928
do not blacklist due to IOErrors ( #988 )
2018-01-04 12:36:40 -08:00
Christopher Boumenot
cb24a05b32
silence noisy console logs ( #985 )
2018-01-04 12:32:31 -08:00
Christopher Boumenot
30e638ddab
capture stacktrace ( #970 )
2018-01-03 11:46:48 -08: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
74bd379d17
Remove safe-deploy code
...
Adjust delay and retry values for failed HTTP requests
Ensure current agent is not removed from disk
Add operation to extension error events
Improve tracking of child agent exceptions
Signed-off-by: Brendan Dixon <brendandixon@me.com >
2017-10-26 16:30: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
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
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
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
Hans Krijger
d2aa726373
unit test fix
2017-08-01 13:24:03 -07:00
Hans Krijger
c2604c6f20
add duration to log messages; minor cleanup
2017-08-01 11:26:49 -07:00
Brendan Dixon
2d8f620ec0
[ #800 ] -- HostGAPlugin still use proxy while auto-updating
...
Signed-off-by: Brendan Dixon <brendandixon@me.com >
2017-07-25 16:19:52 -07:00
Brendan Dixon
c6173de894
[ #801 ] -- Agent fails to clean-up PID files
...
[#811 ] -- Comments inline in /etc/waagent.conf cause config to not be read
[#812 ] -- Agent fails and isn't recoverable if an extension's log directory is not present anymore
Signed-off-by: Brendan Dixon <brendandixon@me.com >
2017-07-25 13:57:13 -07:00
Brendan Dixon
3b5faa5968
[ #807 ] -- The agent should not emit duplicate events
...
Signed-off-by: Brendan Dixon <brendandixon@me.com >
2017-07-21 14:41:50 -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
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
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
Brendan Dixon
f8916bc43a
Emit event if reprovisioning without a deprovision ( #706 )
...
Correct enabling test agents
Blacklist agent due to any failure
Signed-off-by: Brendan Dixon <brendandixon@me.com >
2017-05-10 12:32:59 -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
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
brendandixon
0e6c66f455
Fix for #667 ( #669 )
...
Signed-off-by: Brendan Dixon <brendandixon@me.com >
2017-04-17 12:20:15 -07:00
Hans Krijger
01f3961cec
better error handling if host plugin not available ( #649 )
2017-04-04 16:02:43 -07:00
Hans Krijger
fe08ef1213
reduce logging ( #645 )
2017-04-03 14:26:38 -07:00
Hans Krijger
c0a9cc93f8
Bug fixes ( #642 )
...
* additional logging when exceptions occur (#640 )
* handle heartbeat keyerror correctly (#641 )
* correct ext state case sensitivity check (#639 )
* better old event handling (#637 )
* unit test fix
* pr feedback
2017-04-03 11:29:34 -07:00
Brent Baude
c6704cbad8
Pass environment variables to subprocesses ( #635 )
...
In cases where subprocesses are used to call python processes
it would be helpful to pass on the environment variables used for
the agent itself. In particular, this is helpful for running
extensions from the agent in system containers.
2017-03-31 14:16:18 -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
Hans Krijger
e4dc8ced1b
ensure hostplugin fails gracefully ( #602 )
2017-03-06 10:51:26 -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
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
Brendan Dixon
04f3497da1
Improved logging message for dirty termination
...
Signed-off-by: Brendan Dixon <brendand@microsoft.com >
2016-10-14 10:35:38 -07:00
Brendan Dixon
41c81907db
Ensure to load latest agents
...
Signed-off-by: Brendan Dixon <brendand@microsoft.com >
2016-09-20 11:57:57 -07:00
brendandixon
c7fd71254a
Ensure agent and extension hotfix versions are examined ( #430 )
...
Signed-off-by: Brendan Dixon <brendand@microsoft.com >
2016-09-16 11:50:00 -07:00
Hans Krijger
11d31fb3bf
code review feedback
2016-09-07 17:19:54 -07:00
Hans Krijger
6830c8e32a
minor refactor and reformat; ensure current agent is excluded from get_latest_update; adds unit test
2016-09-07 15:30:06 -07:00
Hans Krijger
f81238cbfb
ensure null bytes are not present in shlex input
2016-08-31 15:25:13 -07:00
Brendan Dixon
40bb31726a
Migrated extension state and status back to v2.0.x location
...
Added restart telemetry
Check if process is orphaned
Ensure orphaned processes complete
Signed-off-by: Brendan Dixon <brendand@microsoft.com >
2016-07-25 12:53:52 -07:00
Brendan Dixon
f3587a31e7
Improved tracking successful agent enablement and fix #319
...
Signed-off-by: Brendan Dixon <brendand@microsoft.com >
2016-07-13 13:25:46 -07:00
brendandixon
7c8f681b29
Fix #297 and signal forwarding recursion ( #317 )
...
Signed-off-by: Brendan Dixon <brendand@microsoft.com >
2016-07-12 16:03:31 -07:00
Hans Krijger
2455e86bc0
fix minor typos ( #313 )
2016-07-11 17:46:45 -07:00
brendandixon
2e004ae794
Increment RC and ensure running agent is not deleted ( #312 )
...
Signed-off-by: Brendan Dixon <brendand@microsoft.com >
2016-07-11 12:46:15 -07:00
Brendan Dixon
1f49b244e9
Prevent cycling agent
...
Signed-off-by: Brendan Dixon <brendand@microsoft.com >
2016-07-08 18:20:50 -07:00