21 Commits
Author SHA1 Message Date
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
Hans Krijger b950ba1600 update the force option for mkfs.xfs 2016-08-31 13:18:49 -07:00
Hans Krijger 866c423e85 pep8 fixes and formatting cleanup; make get_mount_string static
port fix for #183; code cleanup
2016-08-29 17:22:17 -07:00
Steven Luther 8b53e8e4b8 Mount Options feature (#346)
* add testing for mountpoint, some refactoring

* fixed double space in mount string

* patch for ConfigProvider

* revert patch to original string.

* update documentation, add 'n' option for mountopts

* remove test argument

* More descriptive description in README, n to None

* minor var name changes for clarity

* spacing, missing self in get_mount_string

* mount_opts to mount_options

* add config option to writtet WaagentConf, minor style changes.

* mount options fix, is not Note

* add self to get_mount_string args

* self to function, not where it's called

* mount_options = output of function, not the function.

* get_mount_string returns with mount options/if not none

* forgot to remove part of the string

* instantiate resource disk handler, get_switch to get in conf.py

* Added config option to waagent.conf

* minor style fixes

* mountOpts is None change, and also added removed variable.

* revert changes to bin/waagent2.0

* reverted waagent2.0 to e8c641f

* config options added
2016-08-26 14:04:20 -07:00
Hans Krijger b4379817f9 fix dd command 2016-08-11 13:57:38 -07:00
Hans Krijger a936a7a439 correct logic for dd fallback 2016-08-08 12:19:55 -07:00
edneville e8c641f726 Set the umask prior to file creation (#315)
* Set the umask prior to file creation

* Set umask prior to file creation
2016-07-20 10:35:22 -07:00
Brendan Dixon 00aa43ab83 Moved environment monitoring and event collection into child process
Signed-off-by: Brendan Dixon <brendand@microsoft.com>
2016-07-08 15:26:52 -07:00
Ahmet Alp Balkan b7991585d7 Move RDMA pkg installation after provisioning (#288)
Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
2016-07-06 11:18:00 -07:00
Ahmet Alp Balkan 79f78344b6 Update RDMA IB interface from SharedConfig (#259)
* Update RDMA IB interface from SharedConfig

* wire.py: write_ip_on_rdma → setup_rdma_dev

* rdma.py: rearrange update_dat_conf

* rdma.py: rename a few identifier

* rdma.py: make wait device logs verbose

* rdma: rebase resolve conflicts

* rdma: move setting up device outside the goal state loop

* Typo fix
2016-06-28 12:00:53 -07:00
brendandixon f44bbce877 Correct overlapping processes (#270)
Signed-off-by: Brendan Dixon <brendand@microsoft.com>
2016-06-27 13:14:36 -07:00
Robert Schweikert e821b4c71a Integrate RDMA handling (#255)
* - Integrate RDMA handling

* - RDMA Integration
  + Fix syntax errors
  + Use the full distro name to differentiate properly between openSUSE
    (which has currently no RDMA driver build) and SLES

* - RDMA integration
  + Do not stop the execution of the agent work flow by throwing an
    exception if the RDMA handler is not specialized. Simply log an error
    to indicate that the handler is not supported although it has been
    configured with OS.EnableRDMA=y. The configuration in this case is in
    error.

* - RDMA integration
  + Document he new OS.EnableRDMA configuration setting
2016-06-22 14:10:14 -07:00
Hans Krijger d88231c12b update heartbeat to 30 minutes, formatting fixes (#257) 2016-06-22 13:34:41 -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
Mariusz Woloszyn edb23411cc Workaround for race condition between azurelinuxagent and scvmmagent (#240) 2016-06-21 11:39:32 -07:00
Hans Krijger 9006eb9dab removing unnecessary call to start scvmm agent (#241) 2016-06-17 12:41:18 -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
Mingye Wang 3c5a9e73d9 fix for #127. try to use posix.fallocate and fallocate before falling back to dd; adds unit tests for basic functionality and shellutil.quote (#215) 2016-06-07 11:38:15 -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