Commit Graph
240 Commits
Author SHA1 Message Date
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
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
Hans Krijger 9fa305ba0a fix for bad unit test patch (#236) 2016-06-15 17:27:54 -07:00
Hans Krijger 627533ce2d Fixes for SCVMM (#219)
- correct scvmm references
- add unit tests for scvmm detection
- ensure all matching devices are mounted and examined for scvmm configuration
- exit once vmm startup script is found and executed
- fixes #185
2016-06-13 17:10:35 -07:00
Hans Krijger 25a1a9120e port retry code over from 2.0 agent; add unit test; fixes RDBug 5286341 (#217) 2016-06-09 10:40:38 -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
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
Dong Liu fbce3a58e5 Fix ci unittests. 2016-03-01 15:24:00 +08:00
Dong Liu 71ca08dfa6 Internal version extension should not be chosen when autoupgrade is true, add test cases for autoupgrade. 2016-02-18 15:26:18 +08:00
Yue Zhang 79f6dcebb8 Fix parsing xml event 2016-01-21 13:05:13 +08:00
Yue Zhang d36ee00f55 Fix extension handling and improve event 2016-01-19 18:56:37 +08:00
Yue Zhang 2ea0acc81d Check running daemon 2016-01-12 17:10:56 +08:00
Yue Zhang 66edc3ec07 Restart daemon for unhandled exception 2016-01-12 17:10:56 +08: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 66316359ab Rename text to ustr 2016-01-08 12:19:36 +08:00
Yue Zhang 168a886b89 Handle throttling 2015-11-19 00:55:04 +08:00
Yue Zhang bdd6c00c11 Fix extension handler status parsing 2015-11-19 00:55:04 +08:00
Yue Zhang c94279bfac Refactor protocol detection code 2015-11-03 13:31:47 +08:00
Yue Zhang 2a27845aa5 Add ping to metadata server 2015-11-02 17:46:16 +08:00
Yue Zhang dd295681ab Remove comment from certificate 2015-11-02 17:46:15 +08:00
Yue Zhang 72fda164da Change privateSettings to protectedSettings 2015-11-02 17:46:15 +08:00
Yue Zhang 40ad4fc284 Add transport cert to headers when get extensions 2015-11-02 17:46:15 +08:00
Yue Zhang f44d3320b5 Fix extension handler state handling
Quit retry when explicity failure happened
2015-09-12 21:01:49 +08:00
Yue Zhang 89ad8abff4 Disable log when chpasswd and handle non-ascii cmd output 2015-09-02 20:05:19 +08:00
Yue Zhang d18cbd5c07 Handle ExtensionsConfig uri is empty 2015-09-02 20:05:19 +08:00
Yue Zhang 29c9b73b8d Update extension handler for metadata protocol 2015-08-31 14:10:14 +08:00
Yue Zhang 1348cfb586 Fix extension version compare 2015-08-31 00:57:38 +08:00
Yue Zhang 194c4e028b Update configuration and readme for chpasswd 2015-08-30 22:38:21 +08:00
Yue Zhang 1282b407aa Improve dhcp eror handling 2015-08-07 02:37:38 +08:00
Yue Zhang 5b951403ef Handle utf-8 BOM for all sources of text 2015-08-07 02:37:38 +08:00
Yue Zhang bf47654179 Handle certificates uri is None 2015-08-05 18:01:34 +08:00
Yue Zhang 95e5e99f26 Support empty public settings 2015-08-05 17:40:24 +08:00
Yue Zhang 8c02b0c4c1 Support old extensions 2015-08-05 11:34:06 +08:00
Yue Zhang a3525bbe89 Handle encoding issue with python2 2015-08-02 23:08:16 +08:00
Yue Zhang 7ef609d7d5 Fix http.client in restutil 2015-08-02 14:16:46 +08:00
Yue Zhang 7f70af1f29 Support both python2 and python3 2015-08-02 06:28:41 +08:00
Yue Zhang 082bbb6ffc Support py3 2015-08-02 06:16:55 +08:00
Yue Zhang 1846145720 Fix unittest on python2.6 2015-08-02 06:07:55 +08:00
Yue Zhang 2d65eb34d6 Support openssh public key format 2015-07-23 09:55:31 +08:00
Yue Zhang 60c2541db3 Multiple changes for new protocol
1. Update endpoint uri
2. Add content-type to put/post request
2015-07-23 01:11:43 +08:00
Yue Zhang 753796ce5e Fix pylint warnings 2015-07-22 08:58:36 +08:00
Yue Zhang 180e98ca72 merge travis ci change 2015-07-22 08:07:34 +08:00
Yue Zhang 52e3cb60e5 Fix pylint warnings 2015-07-22 07:55:32 +08:00
Yue Zhang 80f638765a Fix unittest for travis
1. Add pyasn1 dependency
2. Disable test for GetDvdDevice
3. Rewrite assertRaises tests to support py2.6
2015-07-14 10:17:03 +08:00