[SRU] euca-get-console-output gives first 64k of output, not most recent
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Eucalyptus |
Fix Committed
|
Undecided
|
chris grzegorczyk | ||
eucalyptus (Ubuntu) |
Fix Released
|
Medium
|
Dave Walker | ||
Lucid |
Won't Fix
|
Medium
|
Dave Walker | ||
Maverick |
Fix Released
|
Medium
|
Dave Walker |
Bug Description
euca-get-
To reproduce this behavior, run an instance that executes user-data as a script (ie, the uec-images), like this:
$ cat user-data-loop.sh
#!/bin/bash
max=5000;
sleep_often=50
sleep=.2
for((i=
echo "hello, number ${i}"
[ $((${i}
done
$ euca-run-instances --user-
--instance-
# wait
$ time euca-get-
hello, number 2454
hello, number 2455
hello, number 2456
hello, number 2457
hello, number 2458
real 5m9.557s
user 0m0.130s
sys 0m0.050s
If I ssh to the node controller, and look at /var/lib/
Note, I've waited minutes after the VM wrote the data before getting console output, it doesn't seem like just a (resonable) caching issue.
Also note, that the get-console-output takes an extremely long amount of time (minutes).
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: eucalyptus-common 1.6.2-0ubuntu30
ProcVersionSign
Uname: Linux 2.6.32-21-server x86_64
.etc.eucalyptus
Architecture: amd64
Date: Mon Apr 19 11:47:55 2010
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: eucalyptus
======
IMPACT:
* This bug affects mostly people trying to debug a UEC instance which is not behaving (or starting) properly. If verbose logging is turned on on something like upstart at init, the 64k limit in eucalyptus' euca-get-console buffer will easily overflow.
ADDRESSED:
* This bug is addressed by cherry-picking a patch from the upstream stable release branch.
REPRODUCE:
* To reproduce this issue, turn on verbose upstart logging in an image, register it, and run it. Then, run euca-get-console against the instance id. You should on see the first 64K of data.
REGRESSION POTENTIAL:
* The chances for regression are relatively low. Perhaps the console output not not be correct, or might be less.
======
Related branches
- Mathias Gug: Approve
- Dave Walker: Pending requested
- Diff: 0 lines
summary: |
- euca-get-console-output does not give all console output + euca-get-console-output 64k of output, not most recent 64k |
summary: |
- euca-get-console-output 64k of output, not most recent 64k + euca-get-console-output gives first 64k of output, not most recent |
Changed in eucalyptus (Ubuntu): | |
importance: | Undecided → Low |
Changed in eucalyptus (Ubuntu): | |
assignee: | nobody → Daniel Nurmi (nurmi) |
status: | New → In Progress |
Changed in eucalyptus (Ubuntu Lucid): | |
assignee: | Daniel Nurmi (nurmi) → Dustin Kirkland (kirkland) |
Changed in eucalyptus (Ubuntu Lucid): | |
milestone: | none → lucid-updates |
summary: |
- euca-get-console-output gives first 64k of output, not most recent + [SRU] euca-get-console-output gives first 64k of output, not most recent |
description: | updated |
Changed in eucalyptus (Ubuntu Lucid): | |
status: | Fix Released → Fix Committed |
Changed in eucalyptus (Ubuntu Lucid): | |
status: | Fix Committed → Fix Released |
Changed in eucalyptus (Ubuntu Lucid): | |
status: | Fix Released → Fix Committed |
Changed in eucalyptus: | |
assignee: | nobody → chris grzegorczyk (chris-grze) |
Changed in eucalyptus (Ubuntu): | |
milestone: | lucid-updates → none |
Changed in eucalyptus (Ubuntu Lucid): | |
milestone: | lucid-updates → none |
Changed in eucalyptus (Ubuntu Lucid): | |
assignee: | Dustin Kirkland (kirkland) → Dave Walker (davewalker) |
Changed in eucalyptus (Ubuntu Maverick): | |
assignee: | Dustin Kirkland (kirkland) → Dave Walker (davewalker) |
tags: | added: server-mrs |
I just dumped console- output i-4537075F > out
$ euca-get-
$ ls -lh out
-rw-r--r-- 1 ubuntu ubuntu 65K 2010-04-19 12:04 out
then, trimmed 'out' of the the single empty line at the end, and the iid/timestamp header: 19T17:04: 44.446Z
i-4537075F
2010-04-
$ ls -l out
-rw-r--r-- 1 ubuntu ubuntu 65535 2010-04-19 12:06 out
65535 sounds like a limited buffer.