Commit Graph
1125 Commits
Author SHA1 Message Date
Ahmet Alp Balkan fc3709c554 Rename LICENSE file (#276) 2016-06-28 15:48:06 -07:00
brendandixon 387a7b7d12 Merge pull request #274 from brendandixon/nobuffer
Improved download process and ensured output is not buffered
2016-06-28 15:46:03 -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 5091ccd87a Update version to 2.1.5.rc2 (#273)
* update agent version to 2.1.5.rc1
v2.1.5.rc2
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
brendandixon f44bbce877 Correct overlapping processes (#270)
Signed-off-by: Brendan Dixon <brendand@microsoft.com>
2016-06-27 13:14:36 -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
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
brendandixon 450e0e9d35 Merge pull request #263 from brendandixon/develop
Corrected extension version selection and stdout/stderr redirection.
2016-06-24 12:30:01 -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
Hans Krijger d88231c12b update heartbeat to 30 minutes, formatting fixes (#257) 2016-06-22 13:34:41 -07:00
Ahmet Alp Balkan 8576c03e22 Add CoC notice (#253)
Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
2016-06-22 13:29:50 -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
Mariusz Woloszyn edb23411cc Workaround for race condition between azurelinuxagent and scvmmagent (#240) 2016-06-21 11:39:32 -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
Stephen A. Zarkos d2b7e69314 Fix RPM install (#243)
* Update setup.py to add udev files

* Rename systemd service to waagent.service

- Keep waagent.service for consistency
- Use /usr/bin/python as default instead of /usr/bin/python3
2016-06-17 14:56:44 -07:00
Robert Schweikert 6a47bc0fd3 Support package upgrade in for the RDMA driver (#239)
* - Support package upgrade in for the RDMA driver
  + A different version of the rdma driver may need to be installed when
    a VM gets rebooted as it may be deployed on different HW that has a
    different firmware version

* - RDMA support driver upgrades
  + Code style changes
  + Turns out the module in question cannot be removed with "rmmod" and we
    need to reboot the system if the driver is already loaded and a package
    upgrade is needed. Implemented this condition

* - RDMAHandler
  + Add additional logging
2016-06-17 14:31:12 -07:00
Hans Krijger 9006eb9dab removing unnecessary call to start scvmm agent (#241) 2016-06-17 12:41:18 -07:00
Hans Krijger 9fa305ba0a fix for bad unit test patch (#236) 2016-06-15 17:27:54 -07:00
Ahmet Alp Balkan 5645bdda9e [2.1] Systemd unit file updates (#230)
* Rename systemd unit file, chmod -x

* Extend the systemd unit file

* Add notice for ubuntu systemd file
2016-06-15 15:13:28 -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
Robert Schweikert 16084f69bf SUSE specific implementation to install the RDMA kernel module (#227)
* - RDMA support
  + SUSE specific implementation to install the RDMA kernel module

* - RDMA specialization for SUSE
  + Some code tidy up

* - SUSE RDMA loader
  + Adjust imports to new structure of modules in project
  + Fix typo
  + Log success
  + Best effort package detection
2016-06-13 13:29:45 -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
Alex Crawford 57d8bdaeb0 Update agent config for CoreOS (#221) 2016-06-08 10:17:00 -07:00
Hans Krijger e877916550 typo fix (#220) 2016-06-07 15:31:13 -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
Hans Krijger ebb55d81af Distinguish error messages for extension failures (#216) 2016-06-06 15:18:09 -07:00
Ahmet Alp Balkan d0342d6d74 Merge pull request #214 from ahmetalpbalkan/rhel-readme
Add RHEL support to README
2016-06-06 12:41:15 -07:00
Ahmet Alp Balkan 303d435d20 Add RHEL support to README
Fixes #213.
2016-06-06 11:50:38 -07:00
Hans Krijger 89cb898ac3 check for existence before chmod/chown/chcon (#206)
code review feedback
2016-06-06 11:48:21 -07:00
Hans Krijger 95cf642f79 port of debian patch disable_udev_overrides; brings 2.1.3 in line with production version (#208) 2016-06-06 11:42:00 -07:00
Hans Krijger 184a8a02a6 check pub file exists before using it. addresses #169 (#205) 2016-06-06 11:38:59 -07:00
Ahmet Alp Balkan cba66a203e Merge pull request #211 from ahmetalpbalkan/non-lo-fix
Improved logic to find non-lo interfaces
2016-06-06 11:32:18 -07:00
Ahmet Alp Balkan c93b795bc8 Improved logic to find non-lo interfaces
This will treat interface names such as 'lo:1' as loopback
as well. The ultimate solution is to use sysfs+procfs in this
method to check the flags and find the ipv4 addr. However sticking
to an extended check for now.

Fixes #188.
2016-06-06 11:29:53 -07:00
Hans Krijger 66afa8c6ed Merge pull request #203 from hglkrijger/bugfix/github-187
Encoding fix [2.0.x]
2016-06-06 11:28:05 -07:00
Hans Krijger 51920c3c8f porting fix from issue #146 to the 2.0 agent in the 2.1 branch; note that in the 2.1 agent itself, fileutil.write_file uses utf-8 encoding by default, therefore the same bug should not exist. 2016-06-06 11:23:20 -07:00
Robert Schweikert c4543c256f Implementation for RDMA driver handler (#210)
+ This functions as a base class. Distributions that support RDMA must
    implement a sub class and at least implement install_driver().
2016-06-06 11:07:53 -07:00
brendandixon bceefdd8bd Merge pull request #202 from brendandixon/feature/self-update
This commit separates the provisioning and guest agent processing, plus moves distribution specific code into osutil.
2016-06-03 10:30:52 -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 922c569c86 Merge pull request #198 from karataliu/freebsd21
[2.1] Support persistent hostname for FreeBSD.
2016-06-01 09:56:48 -07:00