Commit Graph
23 Commits
Author SHA1 Message Date
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
jgreat 5e64b3dfa4 change option order for mkfs. Alpine is being picky 2017-04-29 17:17:53 -05: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
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 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 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 446b6c7e16 correct mkfile size check (#562) 2017-01-19 13:59:45 -08:00
Hans Krijger 515415a478 Update version to 2.2.2 (#511)
* logging update

* updating version for testing

* updating version to 2.2.2
2016-12-12 11:59:00 -08:00
Yoon Hong 84f41eb73c Add more logging to prevent unnecessary confusion in case of sfdisk --part-type failure (#478) (#509) 2016-12-08 11:26:02 -08:00
Yoon Hong ab717b5d7c Fix resource disk partition format detection (#478) (#501) 2016-12-06 14:30:15 -08:00
Yoon Hong 41af2e23c8 use dd right away without using fallocate when file system is xfs (#468) (#502) 2016-12-06 11:34:20 -08:00
William Douglas cd2ee7bbb7 Fix resource disk partition format detection (#478)
With recent versions of sfdisk the -c command is deprecated and
--part-type is recommended to be used instead. This use also requires
the output to be stripped instead of rstripped due to a leading space.
2016-11-18 16:06:42 -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
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