Commit Graph
256 Commits
Author SHA1 Message Date
SRIKKANTH 80ae8ad656 Metadata certificate download support added. 2016-09-07 14:56:22 -07:00
Hans Krijger 1fa2d965b6 handle wireserver 503s more gracefully (#405) 2016-09-07 08:30:59 -07: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
brendandixon 0c25cc9430 Merge pull request #403 from hglkrijger/gh389
ensure null bytes are not present in shlex input
2016-09-01 09:03:34 -07:00
Hans Krijger f81238cbfb ensure null bytes are not present in shlex input 2016-08-31 15:25:13 -07:00
Kamran Khan 6c536b17f9 Fix issue Azure/WALinuxAgent#388 (#390)
- add missing substatus
- fixes #388
2016-08-30 14:13:12 -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
David Michael 902dead2e6 Clean up the CoreOS osutil class (#379)
* osutil/coreos: clean most pylint problems

* osutil/coreos: fix misspelled service name

* osutil/coreos: use systemctl to get the real PID
2016-08-23 12:02:44 -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 de01b303da update agent version to 2.1.5.2 for pre-release testing (#359) 2016-08-11 14:19:47 -07:00
Ahmet Alp Balkan 3d1ae37ad6 rdma: reorder device processing steps back to v2.0 2016-08-08 13:10:21 -07:00
Nathan LeClaire d0e13dcf3c Add supported_dists kwarg to distro detection
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2016-08-04 15:58:35 -07:00
Ahmet Alp Balkan 6268321550 rdma: log exception thrown in device processing (#344)
Exceptions thrown from rdma processing thread running in
the background were not logged properly.

Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
2016-07-29 12:26:01 -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
Ahmet Alp Balkan 54a5b54935 rdma: kvpd install fix for centos (#320)
* rdma/common: add kvpd check

Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>

* rdma/centos: install kvpd if missing

Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>

* rdma: resequence device operations, add log
2016-07-20 11:32:19 -07:00
Nathan LeClaire 774acbc095 Add Alpine Linux support (#301)
* Add Alpine Linux support

Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>

* Update for code review feedback

Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2016-07-20 11:24:59 -07:00
Hans Krijger d2a8ffc92c update the development version to 2.1.5.0 2016-07-15 14:10:13 -07:00
Ahmet Alp Balkan 84cf65c3fd fix setup_rdma_device call (#325) 2016-07-14 11:59:14 -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
Hans Krijger 9930df6600 update the agent version to 2.1.5.rc6 (#318) 2016-07-12 22:22:26 -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 2e004ae794 Increment RC and ensure running agent is not deleted (#312)
Signed-off-by: Brendan Dixon <brendand@microsoft.com>
2016-07-11 12:46:15 -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 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
Hans Krijger a48d80db1d update agent version to 2.1.5.rc4 (#302) 2016-07-07 21:33:06 -07:00
Ahmet Alp Balkan 1330c066dc dhcp: use dhclient caches in centos 6.x/7.x (#298) 2016-07-07 11:33:13 -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
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
Hans Krijger 9f88b554c8 update the agent version to 2.1.5.rc3 (#286) 2016-06-30 13:15:12 -07:00
brendandixon 5f88003a64 Reduce chatty logs #275 (#284)
Signed-off-by: Brendan Dixon <brendand@microsoft.com>
2016-06-29 14:56:54 -07:00
Hans Krijger 5091ccd87a Update version to 2.1.5.rc2 (#273)
* update agent version to 2.1.5.rc1
2016-06-28 12:19:14 -07:00
Ahmet Alp Balkan 24a42455a1 rdma: CentOS RDMA package handler (#266)
Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
2016-06-28 12:01:13 -07:00
Ahmet Alp Balkan 79f78344b6 Update RDMA IB interface from SharedConfig (#259)
* Update RDMA IB interface from SharedConfig

* wire.py: write_ip_on_rdma → setup_rdma_dev

* rdma.py: rearrange update_dat_conf

* rdma.py: rename a few identifier

* rdma.py: make wait device logs verbose

* rdma: rebase resolve conflicts

* rdma: move setting up device outside the goal state loop

* Typo fix
2016-06-28 12:00:53 -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
Ahmet Alp Balkan ff2a38b233 Add more logs to RDMA drivers (#261)
* Add more logs to default/rdma.py

Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>

* Add more logs to distro/suse/rdma.py
2016-06-24 15:59:01 -07:00
Ahmet Alp Balkan 21171899e5 rdma: make RDMAHander.__get_rdma_version static (#262) 2016-06-24 15:58:54 -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 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
Robert Schweikert e821b4c71a Integrate RDMA handling (#255)
* - Integrate RDMA handling

* - RDMA Integration
  + Fix syntax errors
  + Use the full distro name to differentiate properly between openSUSE
    (which has currently no RDMA driver build) and SLES

* - RDMA integration
  + Do not stop the execution of the agent work flow by throwing an
    exception if the RDMA handler is not specialized. Simply log an error
    to indicate that the handler is not supported although it has been
    configured with OS.EnableRDMA=y. The configuration in this case is in
    error.

* - RDMA integration
  + Document he new OS.EnableRDMA configuration setting
2016-06-22 14:10:14 -07:00
Ahmet Alp Balkan b999830d82 Fix variable name typo (#256) 2016-06-22 11:05:49 -07:00
Hans Krijger 97cdc3e628 update the agent version to 2.1.5.rc0 (#251) 2016-06-21 15:11:47 -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 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