Commit Graph

22 Commits

Author SHA1 Message Date
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 43f4de9d1f Emit a GuestState telemetry event after provision 2017-11-28 16:59:10 -08: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
Hans Krijger 9ea18d8658 Add telemetry event for host plugin usage (#560)
* reformat file

* add host plugin event; minor cleanup

* clean up imports
2017-01-18 18:50:01 -08:00
Yoon Hong 5576dea216 Replace unnecessary shell out logics with python based ones (#232) 2016-09-16 20:02:43 -04: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 00aa43ab83 Moved environment monitoring and event collection into child process
Signed-off-by: Brendan Dixon <brendand@microsoft.com>
2016-07-08 15:26:52 -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 fc9684b25c Multi-nic improvements (#237)
* update loopback detection to use SIOCGIFFLAGS and IFF_LOOPBACK; add unit tests

* adds a check for the wireserver ip, and if it does exist then skip the dhcp lookup and route manipulation; adds unit tests

* ensure the first selected interface is the primary, which is that with the default route; adds unit tests

* parse the wireserver from the dhcp leases file on disk; distro-specific, this is the ubuntu implementation; adds unit tests

* unit test fixes, python 3 changes

* code review feedback
2016-06-21 11:28:07 -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
Yue Zhang 5bfc685856 Refactor extension handler 2016-01-12 17:10:56 +08:00
Yue Zhang 16b28c84ab Improve unit test 2016-01-08 12:19:36 +08:00
Yue Zhang 2d65eb34d6 Support openssh public key format 2015-07-23 09:55:31 +08:00
Yue Zhang 52e3cb60e5 Fix pylint warnings 2015-07-22 07:55:32 +08:00
Yue Zhang 8ed9073057 Add distro loader 2015-06-24 15:49:09 +08:00
Yue Zhang 8712c2f65d Update setup.py 2015-06-04 14:38:09 +08:00
Yue Zhang fac857624e Eliminate classic class 2015-05-27 11:32:16 +08:00
Yue Zhang 746bbcd76f Fix unittest for osinfo and osutil 2015-05-07 14:50:51 +08:00
Yue Zhang c41dde3072 Rename as azure guest agent 2015-05-05 11:55:20 +08:00
Yue Zhang 9eae66564f Rename directory 2015-03-24 14:03:04 +08:00