Commit Graph
240 Commits
Author SHA1 Message Date
Yoon Hong 314c2c17aa Turn off Overprovisioning feature (#490) (#491) 2016-12-01 18:05:42 -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
Tim Rupp 94a0b4948b Adds BIG-IP integration to WAAgent
This patch includes the implementation portion of BIG-IP integration
with WAAgent.
2016-11-29 13:16:05 -08:00
Yoon Hong 9656ca2807 Merge pull request #453 from jinhyunr/overProvisioning
PR for #452, Add Overprovisioning support
2016-11-02 10:37:06 -07:00
Tim Rupp 78665f22cb Adds tests for iWorkflow and BIG-IQ
This patch adds remaining tests for iWorkflow and BIG-IQ platforms
2016-10-31 11:26:13 -07:00
Tim Rupp e9acec8219 Add version hooks for F5 products
F5's products do not use the common /etc/product-release format for
platform version information. A different method is needed via parsing
the /VERSION file.

I was not sure if /VERSION was too broad of a thing to check for (for
instance if it might crop up in other platforms) so instead I check
for the /shared/vadc which is definitely an F5-ism.

This patch adds a small method to parse the relevant content from that
file and put it in a list that is returned for later use by the rest
of the version.py lib.
2016-10-28 22:23:21 -07:00
Yoon Hong 37fdcb4937 Pass necessary values only to HostPluginProtocol constructor instead of passing in whole goalstate object (#452) 2016-10-26 13:16:42 -07:00
Yoon Hong 34b08320c1 Remove Redundant code in HostPluginProtocol and use call_storage_service for both default protocol and host plugin protocol(#452) 2016-10-26 13:16:42 -07:00
Yoon Hong 466f98728a Refactor some logics in wire.py for better isolation (#452) 2016-10-26 13:07:38 -07:00
Yoon Hong d03d92551a Add Overprovisioning support (#452) 2016-10-26 13:07:38 -07:00
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