Commit Graph
1125 Commits
Author SHA1 Message Date
Stephen Zarkos d019ab5400 Minor typos 2013-05-15 13:10:40 -07:00
Eric Gable 376c72fdda Changed pyasn1 requirement test in Agent.Provision() from IsUbuntu() to IsDebian() to support the Debian and Ubuntu distro's versions of ssh-keygen.
Changed:
Agent.Provision()
2013-05-15 13:10:40 -07:00
Eric Gable ebcf0ae76c Fix cosmetic error when "lsmod | grep ata_piix" fails to find the ata_piix.ko module
Changed:
TryLoadAtapiix() added chk_err=False to prevent error output if lsmod | grep ata_piix fails.
2013-05-15 13:10:40 -07:00
Eric Gable d6aa71d102 Fix bug in CentOS 6.3 (python version 2.6.6) and SLES11 (python version 2.6.8)
A single quote preceding a named 'keyword argument' causes 'unexpected keyword argument' in python 2.6.6/2.6.8

Changed:
TryUnloadAtapiix: use double quotes instead.
2013-05-15 13:10:40 -07:00
Eric Gable 7e4a904c09 Fix bug in CentOS 6.3 (only): A single quote causes 'unexpected keyword argument' in Run() and RunGetOutput()
Changed:

TryLoadAtapiix()
2013-05-15 13:10:39 -07:00
Eric Gable 61825b3052 Bugfixes to pyasn1 import check and Load/UnloadAtapiix()
Fixed bad return in pyasn1 module import check in Install().
Fixed typo on name TryUnloadAtaPiix() in Provision().
Moved global variable modloaded into main() scope, to prevent name error in TryUnloadAtapiix() when TryLoadAtapiix() is not called.
2013-05-15 13:10:39 -07:00
Eric Gable 6bebf6e2e6 Fix bugs in new module load methods
Chnaged:
TryUnloadAtapiix()
TryLoadAtapiix()
2013-05-15 13:10:39 -07:00
Eric Gable ea005d1cd0 Remove udev logic. 2013-05-15 13:10:39 -07:00
Eric Gable 6821af27d9 Merge udev branch Wrap device timeout and udev file creation in method
Added:
Agent.SetStarageDeviceTimeout(self)

Changed:
Agent.Run()
2013-05-15 13:10:39 -07:00
Eric Gable d86959415e More robust dependency checking for pyasn1 if needed.
Changed:
Install() - Attempt import of pyasn1 if distro uses old ssh-keygen
2013-05-15 13:10:39 -07:00
Eric Gable 25240a47d4 Merge mod load/unload parts of resdef branch
Added :
TryLoadAtapiix
TryUnloadAtapiix

Changed:
Agent.Provision
2013-05-15 13:10:39 -07:00
Eric Gable 4f3ff0f991 Merge from branch wire_protocol
Warn and continue if wire protocol is incorrect
2013-05-15 13:10:39 -07:00
Eric Gable 95b2e39bbf Merge RHEL_5.8 branch
Changed:

DeviceForIdePort
CreateAccount
2013-05-15 13:10:39 -07:00
Eric Gable 37f5dbbf45 New logic for scsi timeout and waagent.rules.
Changed:
Install() - remove scsi timeout logic
Agent.Run() - Alter original scsi timeout logic:
	    * if  OS.RootDeviceScsiTimeout from waagent.conf is not set, default to 300.
	    * if '/etc/udev/rules.d/waagent.rules' exists, assume timeouts are already set.
	    * if '/etc/udev/rules.d/waagent.rules' does not exist:
		 Attempt to set timeout for ide disks (0,1,2)
		 Write the '/etc/udev/rules.d/waagent.rules' file.
2013-05-15 13:10:39 -07:00
Eric Gable 39f41a94f3 Fix 748843 Set scsi timeout to 300 by creating /etc/udev/rules.d/waagent.rules
Changed:

Install()
Uninstall()
2013-05-15 13:10:39 -07:00
Eric Gable c8b9a7904b Agent will attempt to verify the ata_piix.ko module is loaded.
Changed:

Agent.Provision()
2013-05-15 13:10:39 -07:00
Eric Gable 08a85183bb Second half of commit private master 830fc84bb09aeb2043460d9833774f215a8a52be
Removed IsWindows()
Ignore service stop for when IsPackagedUbuntu()
2013-05-15 12:45:45 -07:00
Eric Gable 49cc906d0a Add warning comment #WARNING this value is used to confirm the correct fabric protocol. 2013-05-13 16:01:53 -07:00
Eric Gable 631e7a7e12 Merge from Private master commit 830fc84bb09aeb2043460d9833774f215a8a52be
Author: Eric Gable <v-ericg@microsoft.com>
Date:   Fri Apr 5 10:53:53 2013 -0700

    Fix Agent crash when GoalState is None.

    Changed:

    Agent.Run()
2013-04-12 16:22:18 -07:00
Eric Gable 0d292e0014 Merge from Private master commit b8d2a6971ddf17f96576983bdafb12efa1afc92d
Author: Eric Gable <v-ericg@microsoft.com>
Date:   Wed Apr 3 13:56:18 2013 -0700

    Fix unhandled socket exception.

    Add 'except IOError' to http exception handlers.

    Changed:
    Util.HttpPost
    Util._HttpGet
2013-04-12 16:20:40 -07:00
Stephen A. Zarkos 48d1bff57a Update version and Changelog 2013-03-29 18:22:10 -07:00
Eric Gable b79a494948 Merge branch 'master' of github.com:Windows-Azure/WALinuxAgent 2013-03-29 17:02:56 -07:00
Eric Gable 56c065a3ef Fix 700677 Agent verbose log lines are missing in log when 'verbose' option is used.
New option <bool> to_console added to LogWithPrefix.  If to_console=False LogWithPrefix bypasses console, writes to file only
2013-03-01 11:33:51 -08:00
Stephen Zarkos 62ff041440 WALinuxAgent-1.3.2 WALinuxAgent-1.3.2 2013-02-26 10:51:48 -08:00
Stephen Zarkos 3ac5f4ba28 Update version and changelog 2013-02-20 16:35:29 -08:00
Stephen Zarkos 7324796675 Update version and changelog 2013-02-20 16:29:36 -08:00
Eric Gable 9123c3f508 Merge branch 'master' of github.com:Windows-Azure/WALinuxAgent 2013-02-20 16:01:57 -08:00
Eric Gable 8ede71e13f Fix name error in _HttpGet/HttpPost exception handlers. 2013-02-20 16:01:25 -08:00
Stephen Zarkos 3ce2ffa7ad Minor typo in README 2013-02-15 13:18:11 -08:00
Stephen Zarkos 7e469e65d3 WALinuxAgent-1.3.1 WALinuxAgent-1.3.1 2013-02-15 13:02:00 -08:00
Stephen Zarkos b32d44a10d Update Changelog 2013-02-15 12:28:24 -08:00
Stephen Zarkos 6890aab105 Add RPM packaging information 2013-02-15 12:17:25 -08:00
Stephen Zarkos a97ed18d64 Update changelog 2013-02-12 09:28:44 -08:00
Eric Gable 62423fd5db Changes to improve logging of errors. Normalization of shell commands on subprocess
Capture all system command output if an error has occurred.
Remove dependence on commands module.
Replace all appropriate calls to os.system() and os.popen to subprocess module.
Detect and back-port subprocess.check_call if missing in python 2.6 subprocess.
Re-implement Run() to use subprocess.check_call.
Add chk_err boolean flag to Run() to ignore logging the error if the error is possibly expected or non-interesting.
Replaced RunSafe with RunGetOutput()
Added RunSendStdin() to support shell command requiring data written to STDIN.
2013-02-11 16:47:21 -08:00
Eric Gable f9cf24af6a Changes to logging subsystem:
Duplicate normal logging to /dev/console.  This to support serial logging from boot when console=/dev/ttys0 is set in the kernel boot options.
Add Error logging to all non-shell based operations without it.
Force verbose logging to local log file only.
2013-02-11 16:28:16 -08:00
Stephen A. Zarkos 607cbebcdf Update version string 2013-02-05 11:23:44 -08:00
Stephen A. Zarkos 8b9288528d Changelog - minor updates 2013-02-05 11:12:35 -08:00
Stephen A. Zarkos 2cf7a1fad9 Merge pull request #8 from utlemming/master
Ubuntu Packaging
2013-02-05 11:11:01 -08:00
Ben Howard 1e28d16aa3 Made the detection of whether or not it packaged more robust. 2013-01-31 15:59:51 -07:00
Ben Howard b727a3a74d For Ubuntu, allow the package to manage certain aspects, such as
Upstart job installation. This patch introduces the idea of the script
running from a package (i.e. .deb or .rpm) or being run stand-alone.
2013-01-29 15:15:37 -07:00
Ben Howard 8b2b4016b4 Add Ubuntu packaging to the upstream source. 2013-01-29 14:59:56 -07:00
Stephen A. Zarkos 66bd7042b4 Merge pull request #7 from ivoks/master
Typo fix
2013-01-23 08:10:08 -08:00
Ante Karamatić 6917c8b9b7 Typo fix (suceed -> succeed) 2013-01-23 09:45:10 -06:00
Stephen Zarkos 0254308f06 WALinuxAgent-1.3 WALinuxAgent-1.3 2013-01-18 11:43:20 -08:00
Stephen Zarkos 364815783e Update Changelog 2013-01-18 11:41:29 -08:00
Eric Gable 33de729039 WALinuxAgent 1.3-PREVIEW
Merged changes from private-master branch

Changes:

Report Error and fail provision on empty hostname
Remove redundant checks during construction of LoadBalancerProbeServer.
Ubuntu Upstart Support
Retry loop for DVD mounting mitigates possible mount failures found during stress-testing.
2013-01-17 13:13:57 -08:00
Eric Gable 75b926cb1d Updates to manual uninstall for Ubuntu Upstart Service.
Add /etc/init/waagent.conf to list of files to be removed in Uninstall()
2013-01-08 16:42:49 -08:00
Stephen Zarkos 185f68f423 WALinuxAgent-1.2 WALinuxAgent-1.2 2012-12-07 12:40:23 -08:00
Eric Gable 199241c571 Add Feature - ata_piix.ko module is loaded if needed.
Added import of module 'commands'.
Added RunSafe() utility function.
2012-12-06 13:58:52 -08:00
Stephen Zarkos 5f3b82acf4 Updated WALinuxAgent version ID. 2012-12-04 12:18:48 -08:00