Commit Graph
256 Commits
Author SHA1 Message Date
William Douglas 0d4e4f2673 Allow detection of Clear Linux OS in python3
In python3 the platform.linux_distribution() function does not display
content for Clear Linux. In addition the linux_distribution function
is due to be deprecated in python 3.7 (the next minor release, see
https://bugs.python.org/issue1322). In anticipation of this, switch to
sourcing the os-release file in the waagent.service and reading the
distribution information from the environment instead.
2018-02-07 21:42:01 +00:00
Christopher Boumenot 6df9b1febd do not log a message for ignored commands (#1029) 2018-02-02 23:58:17 -08:00
Christopher Boumenot ac6f4904ac v2.2.21 2018-01-26 22:51:20 +00:00
Christopher Boumenot 8c38bd6c7a Merge pull request #1018 from Azure/pr-iptables-ignore-transient
ignore transient iptables error
2018-01-26 11:45:11 -08:00
Christopher Boumenot 5702f36b6b ignore transient iptables error 2018-01-24 22:30:46 -08:00
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 243e8f30c9 Check for minimum iptables version (#1009)
* ship warning and errors logs to Geneva (#991)

* precisely delete rules upon removal

* limit the number of deletios
2018-01-19 17:33:14 -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
Christopher Boumenot e39dc7bf4c support '=' is configuration values (#1005) 2018-01-18 22:44:38 -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 f7f2335d0b bypass proxy for local requests (#987) 2018-01-04 12:35:11 -08:00
Christopher Boumenot 5317be3831 Report prolonged report status failures (#971)
* Report prolonged report status failures

The agent report transient failures, but this is not very indicative of
customer failures.  The transient failures generally resolve themselves, so the
transients are not very useful for a dashboard.  This change tracks failures
that repeat for 15 minutes, and then report them.  If an operation fails and
succeeds within 15 minutes, the timer resets.  It must be a continual stream of
errors for 15 minutes for this telemetry event to trigger.

* default ErrorState's min_timedelta to a const
2018-01-03 11:45:11 -08:00
Hans Krijger fc2451fbae Fix Ubuntu factory issues (#983)
* fix ubuntu class hierarchy

* fix factory class
2018-01-02 23:18:28 -08:00
Will Pearson e2ce35427b Send telemetry event when an extension update is skipped. (#967) 2018-01-02 15:33:01 -08:00
Christopher Boumenot c7498ababd No more ifup/ifdown on Ubuntu >=17.10 (#969) 2018-01-02 15:03:27 -08:00
Christopher Boumenot 43f4de9d1f Emit a GuestState telemetry event after provision 2017-11-28 16:59:10 -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 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 1f5ef8d47f Improved error logging
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-10-27 11:58:22 -07:00
Brendan Dixon 4fd8a8e8ec Updated version
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-10-27 09:35:04 -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 fb16cba28b [#822] -- Update docs
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-10-20 11:01:59 -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
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 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 596c416d3b update version to 2.2.18 2017-09-19 14:58:27 -07:00
Hans Krijger 5aa92197e3 fix for firewall flushing 2017-09-19 14:57:43 -07:00
Hans Krijger 9632cfc587 fix for agent update outside of goal state update 2017-09-19 14:53:04 -07:00
Hans Krijger 0fd3487c39 fix check for sudoer file content 2017-09-19 14:52:33 -07:00
Hans Krijger 3bee9489b6 minor refactor and cleanup 2017-09-19 14:52:17 -07:00
Brendan Dixon 76ac55bada Merge remote-tracking branch 'upstream/master' 2017-09-14 09:21:53 -07:00
brendandixon ef9c7ce970 Hotfix/2.2.17 (#883)
* [#879] -- OS.EnableFirewall=y breaks load balanced sets probing

Signed-off-by: Brendan Dixon <brendandixon@me.com>

* Set version to v2.2.17

Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-09-13 18:45:39 -07:00
Brendan Dixon d5e64dc1e9 Set version to v2.2.17
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-09-13 16:51:29 -07:00
William Pearson bc2cdf2b23 Add explanatory comments for extension rolling upgrade 2017-09-13 15:56:00 -07:00
Brendan Dixon 34c10d5542 [#879] -- OS.EnableFirewall=y breaks load balanced sets probing
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-09-13 15:06:30 -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 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 5c08800860 Update to v2.2.16
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-09-01 11:07:35 -07:00
Brendan Dixon fef4062e0f Improve error message when trying IOErrors
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-08-31 15:36:23 -07:00
Brendan Dixon 0ce5c390bf [#865] -- The agent should retry ETIMEDOUT (110) IOErrors
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-08-31 15:13:46 -07:00