Brendan Dixon
84d4532558
Correctly handle agent family without package URIs
...
Signed-off-by: Brendan Dixon <brendand@microsoft.com >
2016-10-25 10:43:00 -07:00
Yoon Hong
c3532dd93a
Merge pull request #444 from jinhyunr/SecureHostGAConnection
...
Send additional headers when using HostGAPlugin (#443 )
2016-09-30 14:05:03 -07:00
Yoon Hong
c74e9f874f
Fix broken unit tests ( #443 )
2016-09-29 22:06:27 -07:00
Hans Krijger
1da8e32266
ensure the proxy port is an integer; logging improvements
2016-09-27 15:30:53 -07:00
Hans Krijger
1ed45981d2
fix unit tests
2016-09-27 10:18:14 -07:00
Yoon Hong
42be001a3a
Pass goal_state as an argument when creating HostPluginProtocol ( #443 )
2016-09-23 20:31:44 -04:00
Yoon Hong
26377e6c96
Send additional headers when using HostGAPlugin ( #443 )
2016-09-23 15:57:49 -04:00
Brendan Dixon
41c81907db
Ensure to load latest agents
...
Signed-off-by: Brendan Dixon <brendand@microsoft.com >
2016-09-20 11:57:57 -07:00
Yoon Hong
93d9105cf4
Merge pull request #437 from jinhyunr/remove_shell
...
Replace unnecessary shell out logics with python based ones (#232 )
2016-09-19 20:54:50 -04:00
Yoon Hong
5576dea216
Replace unnecessary shell out logics with python based ones ( #232 )
2016-09-16 20:02:43 -04:00
brendandixon
c7fd71254a
Ensure agent and extension hotfix versions are examined ( #430 )
...
Signed-off-by: Brendan Dixon <brendand@microsoft.com >
2016-09-16 11:50:00 -07:00
brendandixon
7595f88314
Merge pull request #413 from SRIKKANTH/master
...
Metadata certificate download support added.
2016-09-08 11:42:59 -07:00
Hans Krijger
6830c8e32a
minor refactor and reformat; ensure current agent is excluded from get_latest_update; adds unit test
2016-09-07 15:30:06 -07:00
SRIKKANTH
80ae8ad656
Metadata certificate download support added.
2016-09-07 14:56:22 -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
Steven Luther
8b53e8e4b8
Mount Options feature ( #346 )
...
* add testing for mountpoint, some refactoring
* fixed double space in mount string
* patch for ConfigProvider
* revert patch to original string.
* update documentation, add 'n' option for mountopts
* remove test argument
* More descriptive description in README, n to None
* minor var name changes for clarity
* spacing, missing self in get_mount_string
* mount_opts to mount_options
* add config option to writtet WaagentConf, minor style changes.
* mount options fix, is not Note
* add self to get_mount_string args
* self to function, not where it's called
* mount_options = output of function, not the function.
* get_mount_string returns with mount options/if not none
* forgot to remove part of the string
* instantiate resource disk handler, get_switch to get in conf.py
* Added config option to waagent.conf
* minor style fixes
* mountOpts is None change, and also added removed variable.
* revert changes to bin/waagent2.0
* reverted waagent2.0 to e8c641f
* config options added
2016-08-26 14:04:20 -07:00
Hans Krijger
42053d9bbf
Host channel fix ( #375 )
...
* use the correct data for host channel fallback; adds unit test
adds unit test
* update the agent version to 2.1.6.1
2016-08-18 15:40:31 -07:00
Hans Krijger
ae94587069
update version to 2.1.6 ( #362 )
...
* update version to 2.1.6
* fix unit test
2016-08-12 16:48:21 -07:00
Hans Krijger
814630b6bd
Merge pull request #350 from hglkrijger/master
...
correct logic for dd fallback
2016-08-10 16:46:33 -07:00
Hans Krijger
5478172403
correctly delete /etc/resolv.conf during deprovisioning; add unit tests
2016-08-08 16:46:54 -07:00
Hans Krijger
a936a7a439
correct logic for dd fallback
2016-08-08 12:19:55 -07: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
f3587a31e7
Improved tracking successful agent enablement and fix #319
...
Signed-off-by: Brendan Dixon <brendand@microsoft.com >
2016-07-13 13:25:46 -07:00
brendandixon
7c8f681b29
Fix #297 and signal forwarding recursion ( #317 )
...
Signed-off-by: Brendan Dixon <brendand@microsoft.com >
2016-07-12 16:03:31 -07:00
brendandixon
d5b279c838
Merge pull request #310 from brendandixon/nocycle
...
Prevent cycling agent
2016-07-11 11:06:57 -07:00
Brendan Dixon
1f49b244e9
Prevent cycling agent
...
Signed-off-by: Brendan Dixon <brendand@microsoft.com >
2016-07-08 18:20:50 -07:00
Hans Krijger
bda4e61b41
Explicitly specify enable timeout as 5m ( #303 )
...
* Explicitly specify enable timeout as 5m
Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com >
* fix unit tests
2016-07-08 17:15:31 -07:00
Brendan Dixon
b9d85179d0
Fix #306 and #307
...
Signed-off-by: Brendan Dixon <brendand@microsoft.com >
2016-07-08 15:33:11 -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
Brendan Dixon
a7364c801b
Added package building script
...
Signed-off-by: Brendan Dixon <brendand@microsoft.com >
2016-07-08 08:58:42 -07:00
Brendan Dixon
fca4fa78fb
Improved telemetry and enabled re-spawning of child process
...
Signed-off-by: Brendan Dixon <brendand@microsoft.com >
2016-07-07 09:46:48 -07:00
Brendan Dixon
feb1d7b621
Corrected self-update to preserve errors and improved telemetry ( #290 )
...
Signed-off-by: Brendan Dixon <brendand@microsoft.com >
2016-07-06 15:33:21 -07:00
Hans Krijger
74ffd41bb1
do not try encode None, always return a string from get_primary_interface ( #287 )
2016-07-01 09:00:38 -07:00
Brendan Dixon
101bd74eb0
Ensure child process is terminated - #272
...
Signed-off-by: Brendan Dixon <brendand@microsoft.com >
2016-06-29 11:56:52 -07:00
Brendan Dixon
20020aea05
Improved download process and ensured output is not buffered
...
Signed-off-by: Brendan Dixon <brendand@microsoft.com >
2016-06-28 15:42:12 -07:00
Hans Krijger
028a77f3b4
Dhcp caching ( #271 )
...
* fix bug in cache lookup logic; allow skipping the cache in failure mode
* code review feedback
2016-06-28 11:12:51 -07:00
brendandixon
3d30fdd63e
Merge pull request #265 from brendandixon/develop
...
Converted update process to rely on HandlerManifest
2016-06-24 14:35:59 -07:00
Hans Krijger
d074b669d9
Remove call to grep ( #264 )
...
* pep8 formatting
* ignore the return code for grep check
* code review feedback
2016-06-24 14:17:47 -07:00
Brendan Dixon
1afa6a199c
Converted update process to rely on HandlerManifest
...
Signed-off-by: Brendan Dixon <brendand@microsoft.com >
2016-06-24 13:16:11 -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
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