-verbose flag causes stack trace
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
walinuxagent (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Precise |
Fix Released
|
Medium
|
Unassigned | ||
Raring |
Fix Released
|
Medium
|
Unassigned |
Bug Description
[Impact]: When manually running WALinuxAgent's waagent, using -verbose causes a stack trace. This makes debugging provisioning issues difficult. The cause was a typo.
[Regression]: The regression potential is low. The default is to provision with verbose logging turned off.
[Test Case]: Provision a system and run "waagent -daemon -verbose". No stack trace should happen.
[Originial Report]:
If you attempt to run 'waagent -daemon -verbose', it will fail, and you'll find (in /var/log/
2013/06/21 15:32:29 ERROR:Traceback (most recent call last):
2013/06/21 15:32:29 ERROR: File "/usr/sbin/
2013/06/21 15:32:29 ERROR: WaAgent.Run()
2013/06/21 15:32:29 ERROR: File "/usr/sbin/
2013/06/21 15:32:29 ERROR: self.Endpoint = self.DoDhcpWork()
2013/06/21 15:32:29 ERROR: File "/usr/sbin/
2013/06/21 15:32:29 ERROR: Run("iptables -D INPUT -p udp --dport 68 -j ACCEPT"
2013/06/21 15:32:29 ERROR: File "/usr/sbin/
2013/06/21 15:32:29 ERROR: retcode,
2013/06/21 15:32:29 ERROR: File "/usr/sbin/
2013/06/21 15:32:29 ERROR: LogIfVerbose(cmd)
2013/06/21 15:32:29 ERROR: File "/usr/sbin/
2013/06/21 15:32:29 ERROR: LogFileWithPref
2013/06/21 15:32:29 ERROR:NameError: global name 'LogFileWithPrefix' is not defined
2013/06/21 15:32:29 ERROR:
2013/06/21 15:32:29 ERROR:Exception: global name 'LogFileWithPrefix' is not defined
fix is simple enough:
$ diff -u /usr/sbin/
--- /usr/sbin/
+++ /usr/sbin/waagent 2013-06-21 15:36:23.892371000 +0000
@@ -456,7 +456,7 @@
def LogIfVerbose(
if Verbose == True:
- LogFileWithPref
+ LogWithPrefix(
def LogWithPrefixIf
if Verbose == True:
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: walinuxagent 1.3.2-0ubuntu1
ProcVersionSign
Uname: Linux 3.9.0-6-generic x86_64
ApportVersion: 2.10.2-0ubuntu1
Architecture: amd64
Date: Fri Jun 21 15:34:09 2013
MarkForUpload: True
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: walinuxagent
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in walinuxagent (Ubuntu): | |
assignee: | nobody → Ben Howard (utlemming) |
importance: | Undecided → Medium |
description: | updated |
Changed in walinuxagent (Ubuntu Precise): | |
status: | New → Fix Released |
importance: | Undecided → Medium |
Changed in walinuxagent (Ubuntu Raring): | |
importance: | Undecided → Medium |
Changed in walinuxagent (Ubuntu Precise): | |
assignee: | nobody → Ben Howard (utlemming) |
Changed in walinuxagent (Ubuntu Raring): | |
assignee: | nobody → Ben Howard (utlemming) |
Hi!
Thank you for looking at this. This issue was fixed upstream a little while ago, it just needs to make it into the next Ubuntu package update.
Thanks!
Steve