Commit Graph
34 Commits
Author SHA1 Message Date
Christopher Boumenot a045411004 Update provision message with cloud-init (or not) (#986) 2018-01-04 12:34:07 -08:00
Christopher Boumenot e0eebb2ff2 review feedback 2017-12-12 12:06:02 -08:00
Christopher Boumenot 43f4de9d1f Emit a GuestState telemetry event after provision 2017-11-28 16:59:10 -08:00
Brendan Dixon 0352a85712 [#897] -- 'Target handler state' wall of errors
[#896] -- End of Line Comments are Not Supported nor Handled
[#891] -- Create a Telemetry Event to Track Custom Data Execution
[#884] -- Cleanup Old Goal State and Extension Cache
[#876] -- The agent should use a scaling back-off when retrying HTTP requests
[#869] -- The agent should report OS information in the correct JSON format.

Updated version to 2.2.18.1
Replaced errno.EREMOTEIO with fixed value (since the constant is not present in all Python 2.7 versions)

Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-10-18 14:57:16 -07:00
Douglas Jordan 8f04cfe1f9 Updating max_retry to match 2017-10-12 23:08:52 +00:00
Ubuntu fad348120c Changing host key sleep to 1 second as we are only querying if a file exists. Could be even less. 2017-10-12 23:00:30 +00:00
Brendan Dixon 03beb77fb9 [#850] -- Cannot get to state 'Running' with Provisioning.Enabled=n
Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-08-22 10:24:55 -07:00
Brendan Dixon 285aeff238 [#783] -- The agent fails to use the standard Linux environment variables for HTTP proxy
[#830] -- Ensure VM identifier is properly ordered

Signed-off-by: Brendan Dixon <brendandixon@me.com>
2017-08-15 10:21:52 -07: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
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
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
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
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
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
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
Hans Krijger e85bebadc6 do not log keygen errors in ubuntu since we retry (#666) 2017-04-12 13:54:25 -07:00
Hans Krijger 67d1784f6e retry get thumbprint if key is deleted (#603) 2017-03-06 10:51:42 -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 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
Douglas Jordan 0c86110b7c Remove unnecessary sleep and increase poll rate (#477)
* Remove unnecessary sleep and increase poll rate

* Adds tests for iWorkflow and BIG-IQ

This patch adds remaining tests for iWorkflow and BIG-IQ platforms

* Modifying code to prevent throttling.
2016-11-30 11:38:25 -08: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
Hans Krijger 4539b6eaaa remove code which disables selinux 2016-09-14 16:41:05 -07:00
Hans Krijger 113a32c48b wite provisioned file and report ready even when provisioning is disabled 2016-09-08 13:04:53 -07:00
Hans Krijger 6ee62e846b pep8 reformat 2016-09-08 13:04:53 -07:00
Brendan Dixon d820daf01c Ensure all SSH keys are created before restarting SSH daemon
Signed-off-by: Brendan Dixon <brendand@microsoft.com>
2016-08-11 09:58:01 -07:00
Hans Krijger 184a8a02a6 check pub file exists before using it. addresses #169 (#205) 2016-06-06 11:38:59 -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