Commit Graph

1125 Commits

Author SHA1 Message Date
brendandixon 26baa68568 Merge pull request #805 from brodriguesneto/patch-1
Change the emphasis of Provisioning.UseCloudInit
2017-07-18 09:51:06 -07:00
Boaventura Rodrigues Neto 8ba128070c Change the emphasis of Provisioning.UseCloudInit
The # character must be replace for * character to correct the emphasis on the Provisioning.UseCloudInit configure option.
2017-07-18 11:41:22 -03:00
Hans Krijger 5b43d26761 fix for broken setup.py (#803) 2017-07-17 14:34:23 -07:00
brendandixon 994a445e79 Merge pull request #799 from rnesius/os-release-fix
Clear OS name update
2017-07-14 12:42:57 -07:00
Robert Nesius b6f4136e67 Update setup.py for os-release change in Clear Linux OS. 2017-07-11 08:34:24 +00:00
Robert Nesius d544709779 trailing whitespace... sigh 2017-07-08 01:06:33 +00:00
brendandixon 6817f82072 Merge pull request #796 from rnesius/os-release-fix
Accommodate new Clear Linux distro string in os-release.
2017-07-07 11:57:49 -07:00
Robert Nesius 5a9f0b502a Accommodate new Clear Linux distro string in os-release. 2017-07-07 00:43:55 +00:00
brendandixon 043e71d7a5 Merge pull request #786 from reyk/waagent-ssh-keygen-A
Add Provisioning.SshHostKeyPairType=auto to support ssh-keygen -A
2017-07-06 14:05:41 -07:00
brendandixon c786a4f50f Merge pull request #794 from brendandixon/master
Ensure pre-provisioned VM reports ready
2017-07-05 11:31:59 -07:00
Brendan Dixon 8530016e71 Make version recognition more flexible
Report pre-provisioned VMs as ready
Reworked optional agent support

Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-06-29 16:01:25 -07:00
brendandixon 724ac25f50 Merge pull request #762 from ccic/dmidecode_can_not_find_frbsd
fix the issue of "dmidecode is not found" on FreeBSD
2017-06-28 11:34:06 -07:00
Reyk Floeter ed5bb3301e Add Provisioning.SshHostKeyPairType=auto to support ssh-keygen -A
The supported values are now "rsa", "dsa", "ecdsa", "ed25519", or
"auto".  "auto" generates all supported host key types in the correct
directory by calling "ssh-keygen -A" (supported since OpenSSH 5.9 in
2011).  The code uses RSA for the thumbprint because only a single one
is supported by the agent and the Azure protocol.
2017-06-23 15:54:04 +02:00
brendandixon 31d341666c Merge pull request #785 from brendandixon/master
Updating version to 2.2.14
2017-06-22 16:00:39 -07:00
Brendan Dixon b3eac05aab Updating version to 2.2.14
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-06-22 15:56:17 -07:00
brendandixon 813b7d8611 Merge pull request #778 from brendandixon/master
[#777] -- Deprovisioning when VM identifier changes is too aggressive
2017-06-22 11:40:24 -07:00
Brendan Dixon 92dd1c3118 [#777] -- Deprovisioning when VM identifier changes is too aggressive
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-06-21 16:11:34 -07:00
brendandixon 6a7c5651d8 Merge pull request #776 from brendandixon/master
Address #769, #764, #761,#757, #754, #746, #740
2017-06-21 13:48:48 -07:00
Brendan Dixon eb3662e0e1 [#769] -- HostGAPlugin requests should never go through proxy
[#764] -- waagent -configuration-path:/path -start not take effect
[#761] -- MetadataProtocol has no client object
[#757] -- deprovision is executed even if input 'n'
[#754] -- /etc/resolv.conf is removed if create a VM base on an specialized image
[#746] -- Agent WALinuxAgent-2.2.12 is blacklisted - skipping download
[#740] -- Duplicate logging on RHEL/CentOS

Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-06-21 13:41:05 -07:00
Hongjiang Zhang 9f01d3883e fix the issue of "dmidecode is not found" on FreeBSD 2017-06-15 10:59:51 +08:00
Hans Krijger b5ac14b393 update the agent version to 2.2.13 (#755) 2017-06-08 10:53:14 -07:00
brendandixon 0a849e4311 Merge pull request #751 from hglkrijger/gh745
correct host plugin channel initialization
2017-06-07 12:21:30 -07:00
brendandixon 9babfef5a3 Merge pull request #752 from hglkrijger/gh741
Handle 404 in AzureStack
2017-06-07 12:20:46 -07:00
brendandixon 6fca71d42c Merge pull request #753 from hglkrijger/gh744
remove admin access requirement from AzureStack
2017-06-07 12:20:03 -07:00
Hans Krijger ee88936d82 remove admin access requirement from AzureStack 2017-06-07 12:02:58 -07:00
Hans Krijger 34ee51510a do not raise a ProtocolError when reporting an event fails in metadata protocol 2017-06-07 11:54:55 -07:00
Hans Krijger 15a139bc04 only set initialized when available, so initialization is retried during host update 2017-06-07 11:41:20 -07:00
Tamir Zegman 2d06040bc1 GAiA OS: Fix SSH public key handling (#750)
* Turn off verbose logging on GAiA

* GAiA OS: Handle SSH public keys
2017-06-07 11:39:38 -07:00
Hans Krijger 902e71b22e ignore encoding errors when reading error response; new unit test (#748) 2017-06-07 11:39:28 -07:00
-bat 9bed39863b Fix for the issue on recent FreeBSD 11 with the resource disc (#743)
* Make sure the initial device is a valid disc, and fallback if not

    This is the same check the fallback code uses, and is necessary as on
    later FreeBSD 11 versions the disc are retruned in reverse order. Thus
    the original function returns 'pass1' instead of 'da1' which fails. This
    fixes the issue and allows the resource disc to be mounted again, though
    relying on the fallback is not the cleanest solution.

* Skip 'pass' devices when looking for the resource disk

This fixes the error introduced in FreeBSD 11 where the order of
outout from camcontrol changed from da1,pass1 to pass1,da1 and thus
waagent misidentified the disc as 'pass1'. Instead of taking the
first device, we now split the string at ',' and return the first
device which does not begin 'pass'.
2017-06-05 13:12:33 -07:00
Eric Wang ed7a7b7888 WALinuxAgent supports Archlinux (#730) 2017-05-30 15:27:40 -07:00
Reyk Floeter aad62676a7 Add initial support for the OpenBSD operating system (#712)
* Add initial support for the OpenBSD operating system

There are some differences between FreeBSD, OpenBSD, and Linux.

Notes:

- OpenBSD ships LibreSSL, but WALinuxAgent needs OpenSSL for CMS, so
use the openssl port and the "eopenssl" binary instead.

- Don't run the custom DHCP client but parse /var/db/dhclient.leases.hvn0.
OpenBSD's lease file uses a modified syntax.

- OpenBSD does not have /proc.  WALinuxAgent should never assume that
the /proc filesystem is available.

- OpenBSD does not have sudo, but its replacement doas.  The OpenBSD
class implements support for modifying the doas.conf file.

- Unlike FreeBSD, OpenBSD supports and mounts UDF DVDs just fine.

- Create a swap partition instead of a swap file on the resource disk.

- Many other minor changes for OpenBSD

TODO:

- The /proc checks needs to be replaced with pgrep/ps etc. checks for
OpenBSD.  For now it just checks if /proc is available or returns
without error.
Make sure to install waagent with --register-service as setuptools
will not set the permissions of /etc/rc.d/waagent correctly (the file
has to be executable to be used by OpenBSD's rc system).

* Remove debug statement that was use to fix mount_dvd on OpenBSD.

* I accidentally replaced the FreeBSD resource disk handler.

The OpenBSD disk handler is an addition, not a replacement.

Found by jonathangray

* pylint

pylint found one bug in setting the password; other changes are just
for the style.

* strip newline from generated password hash.

Issue reported by Lili Deng.

* Keep AutoUpdate enabled, it was disabled for initial porting.

Pointed out by @hglkrijger

* Use a wildcard and delete all DHCP lease files on *BSD.

Requested by @hglkrijger
2017-05-30 15:27:22 -07:00
brendandixon 93fa072a8a Merge pull request #732 from hglkrijger/master
add traceback to logging when there is a host plugin exception
2017-05-25 12:47:45 -07:00
brendandixon 87b9cc3d10 Set version to v2.2.12
Set version to v2.2.12
2017-05-25 12:33:43 -07:00
Brendan Dixon 648ef47950 v2.2.12
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-05-25 12:29:29 -07:00
Hans Krijger eec198c522 add traceback to logging when there is a host plugin exception 2017-05-24 16:03:40 -07:00
brendandixon 15e30840fe Merge pull request #731 from brendandixon/master
v2.2.11.1
2017-05-24 13:36:34 -07:00
Brendan Dixon 91ab95b2eb v2.2.11.1 2017-05-24 13:29:58 -07:00
brendandixon 1eb0e31ec8 Merge pull request #729 from brendandixon/master
Fix #711, #714, #717, #720, and #724
2017-05-23 16:41:21 -07:00
Brendan Dixon 90cf4f680f [#711] -- There are too many log print to /var/log/waagent.log
[#714] -- Questionable split call in common/conf.py
[#717] -- Remove extension logs during deprovision
[#720] -- Reset of RDMA drivers not taking effect
[#724] -- Location of configuration file should be editable issue

Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-05-23 15:45:33 -07:00
brendandixon 4b4365a062 Merge pull request #728 from brendandixon/master
Fix issues #727, #725, and #721
2017-05-23 12:52:13 -07:00
Brendan Dixon 8c7eaf9007 [#721] -- WALA deprovision process not clean up all cloudinit files
[#725] -- v2.2.11 can throw unexpected exceptions on provisioned VMs
[#727] -- v2.2.11 cannot update status for RDFE VMs

Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-05-23 11:23:05 -07:00
brendandixon f3a168bc8c Merge pull request #716 from chkp-zegman/master
Add Check Point GAiA OS support
2017-05-22 12:47:30 -07:00
zegman ed8f449798 Add Check Point GAiA OS support 2017-05-17 16:28:59 +03:00
Hans Krijger 4bb0443f06 Provision fix (#709)
* fix call to is_provisioned

* fix typo
2017-05-10 21:34:51 -07:00
brendandixon fa647a05c9 Merge pull request #707 from brendandixon/master
Emit event if reprovisioning without a deprovision (#706)
2017-05-10 13:25:00 -07:00
Brendan Dixon f8916bc43a Emit event if reprovisioning without a deprovision (#706)
Correct enabling test agents
Blacklist agent due to any failure

Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-05-10 12:32:59 -07:00
brendandixon 5c3b54e46b Merge pull request #703 from brendandixon/master
Set version 2.2.11
2017-05-09 13:01:32 -07:00
Brendan Dixon ce1d3ba0c0 Set version 2.2.11
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-05-09 12:55:50 -07:00
brendandixon 5c90636dd8 Added Provisioning telemetry duration (#702)
Correctly handle cleaning directories that include symlinks
Reduced polling interval #701
Enable selective agent testing
Improved FIPS configuration variable name
Reduced cloud-init files removed on deprovision #631

Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-05-08 16:27:56 -07:00