Commit Graph
523 Commits
Author SHA1 Message Date
Hans Krijger e85bebadc6 do not log keygen errors in ubuntu since we retry (#666) 2017-04-12 13:54:25 -07:00
Hans Krijger 7d613b721d route/dhcp logging cleanup (#665) 2017-04-12 12:20:52 -07:00
Hans Krijger c990b474ff reset channel if host plugin put status fails (#663) 2017-04-11 16:24:32 -07:00
Hans Krijger aaba3bf759 update version to 2.2.8 (#660)
* update version to 2.2.8

* fix unit tests
2017-04-10 12:14:33 -07:00
Hans Krijger 01f3961cec better error handling if host plugin not available (#649) 2017-04-04 16:02:43 -07:00
Hans Krijger 8ed38f4e91 Add telemetry for put status failures (#647)
* initial commit

* unit test fix
2017-04-04 11:32:52 -07:00
Hans Krijger 8b463d749e fix the rdma package pattern match (#648) 2017-04-04 11:32:33 -07:00
Hans Krijger 1f89a35b4b clean up extension logging (#646) 2017-04-03 14:38:33 -07:00
Hans Krijger 0b93f681fb add basic 32 bit support to interface detection (#644)
* add basic 32 bit support to network detection

* switch check so 64bt is default
2017-04-03 14:27:01 -07:00
Hans Krijger fe08ef1213 reduce logging (#645) 2017-04-03 14:26:38 -07:00
Hans Krijger c0a9cc93f8 Bug fixes (#642)
* additional logging when exceptions occur (#640)

* handle heartbeat keyerror correctly (#641)

* correct ext state case sensitivity check (#639)

* better old event handling (#637)

* unit test fix

* pr feedback
2017-04-03 11:29:34 -07:00
Brent Baude c6704cbad8 Pass environment variables to subprocesses (#635)
In cases where subprocesses are used to call python processes
it would be helpful to pass on the environment variables used for
the agent itself.  In particular, this is helpful for running
extensions from the agent in system containers.
2017-03-31 14:16:18 -07:00
Hans Krijger 94f3ad334b NSG improvements (#638)
* ensure host channel use is sticky; additional logging; unit test updates

* pr feedback
2017-03-31 11:20:49 -07:00
Stephen A. Zarkos 3ce1e3fdde Improve RDMA package version matching (#634)
* Fix RDMA package version matching

The pattern matching for the RPM naming is too strict:
- We actually have a 4.1.3.2 bugfix release now, but pattern only allows
3-digit naming
- We may have multi-digit version numbers in the future

* Fix RDMA update regex as well
2017-03-31 11:20:24 -07:00
Vitaly Kuznetsov 7537e51f00 Fix issues with resource disk mount (#600) (#629)
* Check mount output to detect already mounted resource disk (#600)

mount(8) returns '32' in a variety of cases, we need to check the output
to be sure the resource disk is already mounted.

* Pass '-n' to sfdisk when not writing

Some old versions of sfdisk(8) will open block device in O_RDWR mode regardless
of the face that we're actually just querying partition type and not changing
it and if device is opened in this mode it will trigger partition rescan when
it is closed. This creates a race as partitions (/dev/sd*) will be going away
and re-appear later. Specify '-n' to indicate no write is required, sfdisk(8)
always opens the device in O_RDONLY now.

* Re-read partition table after changing partition type

Some old sfdisk(8) versions don't do syncronious partition re-read after
making changes. The kernel will re-read it anyway in background but this
will cause races with further mkfs as partition devices will be
disappearing. Do explicit partition rescan after we change partition id.
2017-03-31 11:19:28 -07:00
hufengwei 66c5628751 Add support for EulerOS (#614) 2017-03-31 11:18:14 -07:00
brendandixon 7676bf8513 Enabled PageBlob support through HostGAPlugin (#625)
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-03-27 15:30:49 -07:00
Hans Krijger 4364b87cb6 update agent version to 2.2.6 (#617) 2017-03-09 14:40:00 -08:00
Hans Krijger 39668a6620 wait for partition before mounting (#613)
* wait for partition before mounting

* correct error thrown when swap size is invalid
2017-03-08 16:01:58 -08:00
Hans Krijger b64ee63893 when routing table is malformed, only emit logs once (#612) 2017-03-08 16:01:47 -08:00
Hans Krijger 28683169cc retry once when network unreachable (#609) 2017-03-08 16:01:36 -08:00
Hans Krijger 67d1784f6e retry get thumbprint if key is deleted (#603) 2017-03-06 10:51:42 -08:00
Hans Krijger e4dc8ced1b ensure hostplugin fails gracefully (#602) 2017-03-06 10:51:26 -08:00
Long Li 9b7079be76 Fix a reboot issue when updating RDMA driver on ND host update (#594)
* Return failure if module is already loaded at the time of probe

* Return failure when module is not present in lsmod

* CentOS: Reboot the system when newly installed RDMA module fails to probe or load

* SUSE: Reboot the system when newly installed RDMA module fails to probe or load
2017-03-06 10:51:11 -08:00
goblin23 a71994696f changed permission for extension log directory. Without the x flag on group and outhers monitoring scripts can not enter the log directory in order to parse logfiles (#588) 2017-03-06 10:50:43 -08:00
brendandixon d3a25f6cba Corrected determination of heartbeat file 'freshness' (#599)
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-03-02 14:53:31 -08:00
Hans Krijger f561aeed50 Fix cache-incarnation sync (#587)
* when hostname record is missing, assume current

* version update to 2.2.4.1

* minor cleanup; reduce duplicate http logging

* update the incarnarnation file after all caches

* remove http proxy logging unless proxy set

* force goalstate update when host plugin call fails

* update version to 2.2.5
2017-02-09 15:41:50 -08:00
Hans Krijger 2010d7623c update version to 2.2.4 (#584)
* update version to 2.2.4

* update unit tests
2017-02-02 11:14:12 -08:00
Hans Krijger 620b83337c Extend vm status (#579)
* add os name, version and hostname to status blob; minor cleanup

* add unit test for vm status format

* update status version to 1.1
2017-01-30 10:38:35 -08:00
Hans Krijger a36dd736f2 fix del_root_password on FreeBSD (#578) 2017-01-27 13:56:31 -08:00
Hans Krijger de6866b8f4 ignore return code 32 (#577) 2017-01-26 17:18:35 -08:00
Hans Krijger b3288a9609 add more logging when mount fails 2017-01-26 17:00:15 -08:00
Hans Krijger d18d34cdd5 CentOS 7.0 hostnamectl fix (#573)
* cleanup and reformat file; fallback to hostname when hostnamectl fails; logging cleanup

* cleanup
2017-01-25 17:33:06 -08:00
Hans Krijger 38933fa6c6 update version to 2.2.3 (#570) 2017-01-23 14:53:50 -08:00
Hans Krijger bb07960413 update logging; update goal state when out of date (#569) 2017-01-23 14:36:55 -08:00
Hans Krijger 2950edb430 CoreOS fix (#567)
* reformat

* cleanup; add distro_code_name to os factory
2017-01-20 16:43:03 -08:00
Hans Krijger 469d8ae074 Debian fixes (#566)
* add traceback

* update debian service calls
2017-01-20 16:07:45 -08:00
Hans Krijger 38c112ae5c apply patch from Debian (#565) 2017-01-20 13:17:30 -08:00
Hans Krijger 58baf8979a Unhandled errors (#564)
* ensure path exists before access

* handle read only filesystems

* check for swap file before getting size

* fix customdata decoding
2017-01-20 13:15:55 -08:00
Hans Krijger 662e66c6c4 handle ExtensionError from decide_version (#563) 2017-01-19 15:59:37 -08:00
Hans Krijger 446b6c7e16 correct mkfile size check (#562) 2017-01-19 13:59:45 -08:00
Hans Krijger ec8238fa19 add a log message when primary nic is not found (#561) 2017-01-19 13:48:46 -08:00
Hans Krijger 9ea18d8658 Add telemetry event for host plugin usage (#560)
* reformat file

* add host plugin event; minor cleanup

* clean up imports
2017-01-18 18:50:01 -08:00
Yoon Hong 509b8ddb37 Merge pull request #552 from jinhyunr/sysinfo
Instead of adding values in sysinfo directly to event, if a value
2017-01-17 14:02:31 -08:00
Yoon Hong ed240322e7 Refactor add_sysinfo() for better readability 2017-01-17 11:21:15 -08:00
Christopher Boumenot bd335f1f25 Typo is log message
prefered -> preferred
2017-01-16 00:46:10 -08:00
Yoon Hong 9d04814ce2 Instead of adding values in sysinfo directly to event, if a value
already exist in the event, overwrite it to prevent duplicates.

This fixes #520.
2017-01-13 18:56:47 -08:00
Hans Krijger 764b1ba4ae Add support for Match blocks in sshd config (#551)
* add unit tests for conf_sshd

* add support for match blocks in sshd config

* make checks case insensitive
2017-01-13 18:06:28 -08:00
Hans Krijger b77eb0f4be fix the logic for agent version (#547) 2017-01-13 12:01:28 -08:00
Hans Krijger 8a16d23143 support offline hostname changes (#545) 2017-01-11 12:35:22 -08:00