Commit Graph
523 Commits
Author SHA1 Message Date
Robert Nesius d544709779 trailing whitespace... sigh 2017-07-08 01:06:33 +00: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
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
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
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
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
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
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
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
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
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
Brendan Dixon 91ab95b2eb v2.2.11.1 2017-05-24 13:29:58 -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
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
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
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
brendandixon 3e77d7daf9 Correct HandlerState status check (#699) and clean-up reported events (#700)
Add GoalState telemetry (#470)

Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-05-04 15:06:18 -07:00
Brendan Dixon c115a7a410 Deprovision cloud-init data (#631)
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-05-03 16:15:10 -07:00
Brendan Dixon 89c6d2829f Remove status blob HEAD request (#694)
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-05-03 14:55:44 -07:00
Brendan Dixon b4b3bedfff Removed unnecessary directories and files #693
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-05-03 13:51:38 -07:00
Brendan Dixon cbc2f4f366 Addressed issues #687, #604, and #531
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-05-02 13:28:19 -07:00
brendandixon 63baf63639 Merge pull request #682 from jayden-at-arista/route_fix
Default route is not added if it already exists
2017-05-02 10:05:07 -07:00
Brendan Dixon 1580a9fb34 Limit life of transport certificate to two-years
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-05-01 15:08:33 -07:00
Brendan Dixon a4b653fdc2 Support mixed case hostnames on RedHat
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-05-01 14:52:08 -07:00
Brendan Dixon 66305f0bea Enabled FIPS support
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-05-01 14:44:22 -07:00
Brendan Dixon 4769a095d1 Merge remote-tracking branch 'upstream/master' 2017-05-01 14:38:38 -07:00
jgreat 5e64b3dfa4 change option order for mkfs. Alpine is being picky 2017-04-29 17:17:53 -05:00
Brendan Dixon aa06f5bbba Added auto-update support for Azure Stack
Enabled telementry for Azure Stack

Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-04-28 15:55:30 -07:00
Jayden Navarro 4e592383a4 Default route is not added if it already exists 2017-04-28 10:43:55 -07:00
Hans Krijger 6883b02ac1 update version to 2.2.10 (#677) 2017-04-19 10:22:08 -07:00
Hans Krijger a3b152489d clean up extension directories without status (#675)
* additional logging for extension status

* cleanup extension directories without a valid status
2017-04-18 16:32:22 -07:00
Hans Krijger d7d41284e1 Provisioning logging improvements (#673)
* log the device list when finding dvd

* improve logging for get_dvd_device

* improve logging for mount_dvd

* more granular logging for copy_ovf_env

* provisioning logging and error cleanup

* ubuntu provisioning logging cleanup

* improve Ubuntu provisioning logging

* ubuntu provision cleanup

* debugging for cloud-init

* add validation method and logging for cloud-init

* error cleanup, fix mount

* minor cleanup

* add validate cloud-init logging

* unit test fixes
2017-04-18 14:35:11 -07:00
Hans Krijger 9ca715cfb0 Override decode custom data (#674)
* update agent to 2.2.9

* override decode custom data when execute enabled
2017-04-18 12:34:33 -07:00
enihcam ab90f075d1 Add Arch distro support (#670)
* Add Arch distro support

* Added archDistro in waagent2.0

* Added missing dependency for archDistro

* Revert "Added missing dependency for archDistro"

This reverts commit 259cc020c42ec575dbe11c3057002d03e90353a4.

* Revert "Added archDistro in waagent2.0"

This reverts commit dc51cdfcb392b3958e0bcb60b3144226f07d3723.

* Enable waagent AutoUpdate for archlinux.
2017-04-18 12:02:01 -07:00
Hans Krijger d43299ab1c update agent to 2.2.9 (#672) 2017-04-17 13:04:23 -07:00
brendandixon 0e6c66f455 Fix for #667 (#669)
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-04-17 12:20:15 -07:00