24 Commits
Author SHA1 Message Date
William Douglas d4a3226142 Add Clear Linux distro support 2016-10-26 21:12:05 +00:00
Nathan LeClaire ef3d68857c Fix alpine DHCP pid detection (#456)
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2016-10-05 11:50:32 -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 5f61d6abac Merge pull request #415 from ministat/mount_resource_disk_freebsd
Fix the issue of failing to find resource disk for FreeBSD
2016-09-15 11:18:37 -07:00
Hans Krijger 4539b6eaaa remove code which disables selinux 2016-09-14 16:41:05 -07:00
Hans Krijger 220d87cff3 stop pidof from spamming the logs (#421) 2016-09-13 12:18:16 -07:00
drivelbyday 638dd039ae Update factory.py (#408) 2016-09-08 13:28:14 -07:00
Hongjiang Zhang a737bfbf84 Fix the issue of failing to find resource disk for FreeBSD
FreeBSD VM gets a UUID from host which informs where resource
disk locates. But that UUID string was not exposed from VM kernel,
as a result, the agent used a hard code "2:1:0" as the location of
resource disk. That should be updated after FreeBSD VM kernel
exposed UUID through "sysctl dev.storvsc" command.

But considering compatible with previous FreeBSD VM, the hard code
logic cannot be removed, and they are left there as a fallback.
2016-09-08 14:23:49 +08: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
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
Ahmet Alp Balkan 1330c066dc dhcp: use dhclient caches in centos 6.x/7.x (#298) 2016-07-07 11:33:13 -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 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 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 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
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
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
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 e55d8dee0e Revert "Separate provision agent and guest agent" 2016-05-31 11:24:23 -07:00
Yue Zhang efff9d6e0e Separate provision agent and guest agent 2016-05-31 11:15:10 -07:00