Commit Graph

1125 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
Jack Williams 53a429b06b Add telemetry section to the readme (#1031) 2018-02-04 14:15:50 -08:00
Christopher Boumenot 6df9b1febd do not log a message for ignored commands (#1029) 2018-02-02 23:58:17 -08:00
Christopher Boumenot fbcaa27331 Merge pull request #1024 from Azure/pr-v2.2.21
v2.2.21
2018-01-28 20:48:16 -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 f52a9a546d Merge pull request #1017 from Azure/pr-noisy-log-statement
Warn to Verbose
2018-01-26 11:44:57 -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 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 6f00f4d11d switch http errors telemetry to INFO (#1000) 2018-01-11 21:54:39 -08:00
Robert Schweikert ab12081fd8 - Install proper version of rdma package (#995)
+ Depending on the order of the found available packages the wrong rdma
    package may be installed. Use the proper variable to identify the
    package version to install
2018-01-10 15:48:20 -08:00
Hans Krijger a94e69c773 do not log telemetry about io errors; pep8 fixes (#998) 2018-01-10 15:33:15 -08:00
Christopher Boumenot 9f4ddca296 typo in waagent.conf comments (#990) 2018-01-04 16:06:49 -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 f7f2335d0b bypass proxy for local requests (#987) 2018-01-04 12:35:11 -08:00
Christopher Boumenot a045411004 Update provision message with cloud-init (or not) (#986) 2018-01-04 12:34:07 -08:00
Christopher Boumenot cb24a05b32 silence noisy console logs (#985) 2018-01-04 12:32:31 -08:00
Christopher Boumenot 2d75af35f3 bug: misnamed keyword argument (#984) 2018-01-04 12:30:35 -08:00
Christopher Boumenot 30e638ddab capture stacktrace (#970) 2018-01-03 11:46:48 -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
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
Christopher Boumenot 154a6ec208 Merge pull request #954 from Azure/pr-920-provision-telemetry
Emit a GuestState telemetry event after provision
2017-12-12 13:34:12 -08:00
Christopher Boumenot e0eebb2ff2 review feedback 2017-12-12 12:06:02 -08:00
Christopher Boumenot 43f4de9d1f Emit a GuestState telemetry event after provision 2017-11-28 16:59:10 -08:00
Christopher Boumenot b943cbc706 Merge pull request #950 from Azure/pr-946-telemetry-duration
Compute duration for download and other events
2017-11-28 15:12:12 -08:00
Christopher Boumenot 0338fc249d Merge pull request #951 from Azure/pr-915-usage-message
Add -show-configuration option
2017-11-28 14:48:55 -08:00
Christopher Boumenot 0258ac38fa Merge pull request #953 from Azure/pr-941-doc-ssh-keygen-usage
SshHostKeyPairType=auto supported on OpenSSH >=5.9
2017-11-28 14:48:32 -08:00
Christopher Boumenot d7fe940b27 Add -show-configuration option 2017-11-28 13:59:48 -08:00
Christopher Boumenot ae21f5d74d SshHostKeyPairType=auto supported on OpenSSH >=5.9 2017-11-28 13:45:10 -08:00
Christopher Boumenot a7bba758f1 Compute duration for download and other events 2017-11-28 10:32:02 -08:00
brendandixon ab261b5f2e Merge pull request #942 from brendandixon/master
Address rare GoalState fetching bug
2017-11-14 14:19:16 -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
brendandixon 7754a92179 Merge pull request #939 from brendandixon/master
v2.2.19
2017-11-09 11:33:43 -08:00
Brendan Dixon 18d1625634 v2.2.19
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-11-09 10:51:53 -08:00
brendandixon 2642a4030e Merge pull request #932 from brendandixon/master
Address issues and improve errors
2017-11-01 15:17:41 -07: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
brendandixon 5dd3dfc382 Merge pull request #925 from brendandixon/master
Improved error logging
2017-10-27 12:32:28 -07:00
Brendan Dixon 1f5ef8d47f Improved error logging
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-10-27 11:58:22 -07:00