105 Commits

Author SHA1 Message Date
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 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
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 e877916550 typo fix (#220) 2016-06-07 15:31:13 -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 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 d4b6182f88 Fix ClientAliveInterval setting in sshd_config. 2016-03-11 11:56:11 +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
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
Yue Zhang d36ee00f55 Fix extension handling and improve event 2016-01-19 18:56:37 +08:00
Yue Zhang ece9708847 Allow overwritting existing user and add decoding customdata 2016-01-14 23:53:08 +08:00
Yue Zhang ed30226443 Merge upstream branch 2016-01-12 21:30:36 +08:00
Yue Zhang 2c949b3077 Increase protocol probing time to 1 hour 2016-01-12 17:10:57 +08:00
Yue Zhang 623eacc41a Add more fields to event 2016-01-12 17:10:56 +08:00
Yue Zhang 2ea0acc81d Check running daemon 2016-01-12 17:10:56 +08:00
Yue Zhang 66edc3ec07 Restart daemon for unhandled exception 2016-01-12 17:10:56 +08:00
Yue Zhang 5bfc685856 Refactor extension handler 2016-01-12 17:10:56 +08:00
Yue Zhang 2f5ec56850 Only allow root to access metadata protocol endpoint 2016-01-10 21:51:45 +08:00
Yue Zhang d58f7bd31b Handle xml event 2016-01-08 12:19:36 +08:00
Yue Zhang 16b28c84ab Improve unit test 2016-01-08 12:19:36 +08:00
Yue Zhang 78624d1032 Rename event handler to monitor handler 2016-01-08 12:19:36 +08:00
Yue Zhang 66316359ab Rename text to ustr 2016-01-08 12:19:36 +08:00
Yue Zhang e875ac866f Remove globle variables 2016-01-08 12:19:35 +08:00
Yue Zhang bdd6c00c11 Fix extension handler status parsing 2015-11-19 00:55:04 +08:00
Yue Zhang 039ef28ff5 Fix hostname publishing for centos7.x 2015-11-19 00:55:04 +08:00
Yue Zhang 28c4290a1e Fix hostname publishing for centos 6.x 2015-11-19 00:55:04 +08:00
Yue Zhang 4654fddfab Reset hostname during deprovision 2015-11-19 00:55:04 +08:00