Commit Graph
523 Commits
Author SHA1 Message Date
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
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 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
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 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 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
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
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
Dong Liu 68d65203dc Support update config file line. 2016-06-01 14:04:26 +08:00
Dong Liu 93a318801e Support persistent hostname for FreeBSD. 2016-05-30 15:39:45 +08:00
Yue Zhang ab18beb0e1 Remove unused import 2016-04-10 19:55:34 +08:00
Dong Liu 85988d3673 update version to 2.1.4 2016-04-08 17:43:42 +08:00
Dong Liu ef6ff8d3ea Fix coreos ssh restart issue. 2016-04-07 11:18:14 +08:00
Dong Liu 4d7e0c532c Remove dhcp leases for Freebsd during deprovision. 2016-03-31 10:33:15 +08:00
Dong Liu b6a547e4ef Support broadcast flag in dhcp request. 2016-03-28 17:43:54 +08:00
Dong Liu b902728e57 Fix console logger level. 2016-03-22 17:05:23 +08:00
Dong Liu d4b6182f88 Fix ClientAliveInterval setting in sshd_config. 2016-03-11 11:56:11 +08:00
Dong Liu b99c3b2dd0 Update version to 2.1.4.rc0 2016-03-07 15:04:55 +08:00
Dong Liu 96c32ae98f Increase http_post retry times for FreeBSD. 2016-03-07 14:49:39 +08:00
Yue Zhang 63d04b590b Fix pylint error 2016-03-07 14:43:16 +08:00
Dong Liu 62d3547cd2 Merge pull request #153 from Azure/2.1_freebsd
freebsd support for v2.1
2016-03-02 13:18:20 +08:00
Dong Liu e522afc307 Add service script for FreeBSD. 2016-02-23 09:58:56 +08:00
Dong Liu 78d9a9d7b1 Fix sudo for FreeBSD. 2016-02-23 09:58:56 +08:00
Dong Liu f0a41081cb Fix ssh issue for FreeBSD. 2016-02-23 09:58:56 +08:00
Dong Liu 5b52117f19 Fix netif restart issue for FreeBSD. 2016-02-23 09:58:56 +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
Dong Liu da8afab7be Fix DHCP in issue VNET for FreeBSD. 2016-01-29 17:24:03 +08:00
Dong Liu a0362915eb Fix for memory info, cpu info, setting scsi timeout and pid checking for FreeBSD. 2016-01-29 17:24:03 +08:00
Dong Liu c277ed5e18 Fix for del_root_password on FreeBSD. 2016-01-27 14:38:24 +08:00
Yue Zhang b05e389088 Update version to 2.1.3 2016-01-26 23:26:17 +08:00
Dong Liu f8d57f8d6b Support dhcp, user admin for FreeBSD. 2016-01-26 13:21:46 +08:00
Dong Liu 042be3654b Support dvd mount for FreeBSD. 2016-01-22 17:35:13 +08:00
Dong Liu adf7785812 Fix route for FreeBSD. 2016-01-22 17:35:13 +08:00
Dong Liu 885fbaf6bf Add osutil for FreeBSD, add net support. 2016-01-22 17:35:13 +08:00
Yue Zhang 8631f8a260 Fix retry get pid of dhclient 2016-01-21 17:53:20 +08:00
Yue Zhang 79f6dcebb8 Fix parsing xml event 2016-01-21 13:05:13 +08:00
Dong Liu b65718d59d Add Resource Disk handler for FreeBSD. 2016-01-20 11:00:59 +08:00
Dong Liu 25f488bc64 Add FreeBSD distro class. 2016-01-20 11:00:58 +08:00
Dong Liu 9c10e991b1 Fix get_distro for FreeBSD. 2016-01-20 11:00:58 +08:00
Yue Zhang d36ee00f55 Fix extension handling and improve event 2016-01-19 18:56:37 +08:00