Commit Graph

67 Commits

Author SHA1 Message Date
Christopher Boumenot ac6f4904ac v2.2.21 2018-01-26 22:51:20 +00: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 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
Christopher Boumenot 210ada4928 do not blacklist due to IOErrors (#988) 2018-01-04 12:36:40 -08:00
Will Pearson ad7158bfdc Bug fix for upgrade GUID change (#979)
* Bug fix for upgrade GUID change

Reduce log spam from skipping an upgrade based on the GUID staying the same.

Ensure that the Agent reports the correct extension version and its state as enabled in cases where the GUID is the same.

Fix unit testing for the upgrade GUID feature

* Log same upgrade guid on each new goal state

* Rename "guid" variables to "upgrade_guid"
2018-01-02 15:02:12 -08:00
Brendan Dixon 18d1625634 v2.2.19
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-11-09 10:51:53 -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 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
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 4f92c3c829 Do not change seqNo for testing rolling upgrades 2017-10-02 14:49:42 -07:00
William Pearson a2a86b296d Add test for hotfix upgrades 2017-09-22 11:30:01 -07:00
Hans Krijger 9632cfc587 fix for agent update outside of goal state update 2017-09-19 14:53:04 -07:00
William Pearson 15d835854c Fix comment in test code. Add log statements. 2017-09-18 15:19:12 -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 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 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 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
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
brendandixon 0e6c66f455 Fix for #667 (#669)
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-04-17 12:20:15 -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
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
Yoon Hong 9d04814ce2 Instead of adding values in sysinfo directly to event, if a value
already exist in the event, overwrite it to prevent duplicates.

This fixes #520.
2017-01-13 18:56:47 -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 314c2c17aa Turn off Overprovisioning feature (#490) (#491) 2016-12-01 18:05:42 -08:00
Yoon Hong 9656ca2807 Merge pull request #453 from jinhyunr/overProvisioning
PR for #452, Add Overprovisioning support
2016-11-02 10:37:06 -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
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
Hans Krijger 1ed45981d2 fix unit tests 2016-09-27 10:18:14 -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
Yoon Hong 93d9105cf4 Merge pull request #437 from jinhyunr/remove_shell
Replace unnecessary shell out logics with python based ones (#232)
2016-09-19 20:54:50 -04:00
Yoon Hong 5576dea216 Replace unnecessary shell out logics with python based ones (#232) 2016-09-16 20:02:43 -04: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 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
Hans Krijger ae94587069 update version to 2.1.6 (#362)
* update version to 2.1.6

* fix unit test
2016-08-12 16:48:21 -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