Commit Graph
49 Commits
Author SHA1 Message Date
Christopher Boumenot 27c16553f5 ship warning and errors logs to Geneva (#991) 2018-01-17 13:58:18 -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 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
Brendan Dixon fe812ccb44 Merged v2.2.18
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-10-09 14:04:17 -07:00
Hans Krijger 3bee9489b6 minor refactor and cleanup 2017-09-19 14:52:17 -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 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
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
Shital Savekar 38e6d951ba Fixing typo 2017-08-18 14:43:19 +05:30
Brendan Dixon e247e7b2f2 Restrict access to Azure fabric services
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-08-17 13:12:34 -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
brendandixon 56c4bd6f6c [#791] -- Prevent bloating sudoers waagent when agent has problem (#816)
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-07-27 09:50:42 -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 1580a9fb34 Limit life of transport certificate to two-years
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-05-01 15:08:33 -07:00
Hans Krijger d7d41284e1 Provisioning logging improvements (#673)
* log the device list when finding dvd

* improve logging for get_dvd_device

* improve logging for mount_dvd

* more granular logging for copy_ovf_env

* provisioning logging and error cleanup

* ubuntu provisioning logging cleanup

* improve Ubuntu provisioning logging

* ubuntu provision cleanup

* debugging for cloud-init

* add validation method and logging for cloud-init

* error cleanup, fix mount

* minor cleanup

* add validate cloud-init logging

* unit test fixes
2017-04-18 14:35:11 -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 28683169cc retry once when network unreachable (#609) 2017-03-08 16:01:36 -08: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 d18d34cdd5 CentOS 7.0 hostnamectl fix (#573)
* cleanup and reformat file; fallback to hostname when hostnamectl fails; logging cleanup

* cleanup
2017-01-25 17:33:06 -08:00
Hans Krijger 764b1ba4ae Add support for Match blocks in sshd config (#551)
* add unit tests for conf_sshd

* add support for match blocks in sshd config

* make checks case insensitive
2017-01-13 18:06:28 -08:00
Hans Krijger 50690a196d ensure config file is updated correctly (#542)
* ensure config file is updated correctly

* unit test fix

* correct ordering
2017-01-11 10:53:38 -08:00
Yoon Hong ba59e7c450 Fix password encrypting failure in python 2.* (#516) 2017-01-04 17:56:32 -08:00
Hans Krijger 4452c6a8e6 Minor bug fixes (#536)
* add missing None check - #513

* catch extension and value errors - #519

* only warn about httplib support once - #528
2017-01-09 16:11:23 -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
Hans Krijger 68a18b35d8 Merge hotfix/2.2.0 back to master (#497)
* Decide version hotfix (#493)

* correct the check for installed version

* add length check to remove_bom

* update version to 2.2.1
2016-11-18 15:54:19 -08:00
Yoon Hong 12ffa9af28 Apply Hans' comments (#452) 2016-10-26 13:16:42 -07:00
Hans Krijger 1da8e32266 ensure the proxy port is an integer; logging improvements 2016-09-27 15:30:53 -07:00
Yoon Hong 5576dea216 Replace unnecessary shell out logics with python based ones (#232) 2016-09-16 20:02:43 -04:00
Hans Krijger b31f2f4517 indenting fix (#407) 2016-09-02 16:10:31 -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
Hans Krijger f81238cbfb ensure null bytes are not present in shlex input 2016-08-31 15:25:13 -07:00
Brendan Dixon 1f49b244e9 Prevent cycling agent
Signed-off-by: Brendan Dixon <brendand@microsoft.com>
2016-07-08 18:20:50 -07:00
Brendan Dixon 2c44b88946 Corrected extension version selection and stdout/stderr redirection
Corrects extension version selection (issue #238).
Corrects hanlding of stdout / stderr (issue #260).

Signed-off-by: Brendan Dixon <brendand@microsoft.com>
2016-06-23 14:52:40 -07:00
brendandixon 23b2c2eefe Corrected FlexibleVersion comparison of prerelease tags (#252)
Signed-off-by: Brendan Dixon <brendand@microsoft.com>
2016-06-21 15:06:14 -07:00
brendandixon 2799c3b615 Agent Self-Update Feature (#244)
The Agent will monitor for more recent versions and update itself
(without impacting the installed version). If the new Agent fails
(in a very bad way or consistently), the code rolls back to the prior
version.

Signed-off-by: Brendan Dixon <brendand@microsoft.com>
2016-06-21 12:18:06 -07:00
Hans Krijger 4b35d88a83 Host plugin channel (#250)
* formatting fixes, update error text, remove unused imports

* modify error logic to use host plugin upload as a fallback

* initial commit for host plugin work

* adds the vmAgentLog api

* code review feedback
2016-06-21 11:29:11 -07:00
Mingye Wang 3c5a9e73d9 fix for #127. try to use posix.fallocate and fallocate before falling back to dd; adds unit tests for basic functionality and shellutil.quote (#215) 2016-06-07 11:38:15 -07:00
Hans Krijger 89cb898ac3 check for existence before chmod/chown/chcon (#206)
code review feedback
2016-06-06 11:48:21 -07:00
Yue Zhang da9ebe0a3d Separate provision agent and guest agent
Ensured correct return
Temporarily disable autoupdate

Signed-off-by: Brendan Dixon <brendand@microsoft.com>
2016-06-01 15:27:32 -07:00
brendandixon e55d8dee0e Revert "Separate provision agent and guest agent" 2016-05-31 11:24:23 -07:00
Yue Zhang efff9d6e0e Separate provision agent and guest agent 2016-05-31 11:15:10 -07:00