Closed
Bug 802714
Opened 14 years ago
Closed 13 years ago
make serial output form pandas available via IP
Categories
(Infrastructure & Operations :: DCOps, task)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: arich, Unassigned)
Details
As we've seen, the panda boards are unstable and frequently stop responding on the network.
In order to help debug what's happening during the boot process and beyond, would it be possible to temporarily hook up the serial output on a couple problem boards so that the output can be viewed by ateam et.al. remotely over IP? I think that might help significantly with the debugging.
Comment 1•14 years ago
|
||
I honestly didn't find any useful information from my serial port while trying to figure out panda board problems. It could be that I am not familiar with the output.
| Reporter | ||
Comment 2•14 years ago
|
||
Joel: I'm not sure how you'd debug this without being able to look at the output to see how the system is failing. I know this is how dividehex has been doing the debugging for all the issues he's found so far. Do you have a better suggestion on how you can determine what the issues are with the kernel? We're certainly willing to provide whatever physical means of assistance we can, but kernel debugging isn't really the forte of dcops. :}
Hm, it may also be helpful for you to talk to Tom or Michael if you need some input on deciphering the output, too.
Comment 3•14 years ago
|
||
Maybe I am not the right person to look at the output. I do know I have tested the image I uploaded by flashing it on a local sdcard and using it. I have also ran smoketests on the 12 pandas in the chassis.
Personally I think we should focus on the panda boards that are up and running, and put the failing ones on the backburner for further investigation. I don't know if the sdcards are the same or not. The handoff from a*team->releng/it/dcops was to develop and image, test that it was reproducible (the 12 in the first chassis), do a smoketest and provide tools to run tests and manage the boards as we do the tegras.
While I happy to help look into problems, I want to make sure it is a good use of time that everybody will be spending on this. My understanding is we had a solid solution in place as of 2 weeks ago and now it isn't. If we have half the boards which are flaky I want to make sure it is those boards which remain flaky instead of spending 3 or 4 days trying to figure something out with serial output or other debugging techniques on a few boards, then repeat the process a few weeks later. I suspect we will see a pattern arise pretty quickly once we bring tests up on all the boards.
Comment 4•14 years ago
|
||
If it turns out to be useful, we'll order a few of these:
http://www.digi.com/products/serialservers/digionesp#overview
to keep around like we do with the Lantronix Spiders.
I think we are talking past each other in this bug.
1. The panda boards are not going to be anything approaching 5 9's. If they are alive 90% of the time, I will be ecstatically happy. That's the nature of these dev boards. And this will work itself out in time as we land fixes and we understand issues. This is what happened with Tegras too. This is what will happen with APC.io boards, and this is what will happen with B2G panda boards. It is going to be a long road fraught with unreliable boards. However,there is light at the end of the tunnel. If you had told Joel and Aki and I that we would have 94% reliability on Tegras a year ago, we would have had you committed to the nearest sanatorium. But 94% reliability is not great. There are still lots of issues. There will likely always be issues. But it's an amazing improvement over where we were six months ago. And it's incredibly amazing over where we were two years ago when we started with Tegras. It's a long path to walk. So, set your expectations for that now.
2. We definitely want a way to debug serial output for these kinds of problems remotely. That would be very helpful when we want to see what is happening.
3. However, the expectation that even *if* we know what is causing the networking to not load is something we can easily and quickly fix is false. At that level, it's going to be hard to debug and even harder to fix.
4. This is not a reason to stop moving forward. If you have a board that doesn't work, it's far better to pull it for now (or skip it in the software setup) and slot one in that does. That's what we had to do with tegras too. We need to put together a checklist for dead boards with escalation steps. Something like:
* Board doesn't ping:
** Power cycle board 3 times to see if it fixes it
** If not, then re-flash board
** If still happening then pull serial debug info and logcat from USB ADB and open bug ticket with that info.
** Take board out of rotation so that it can be debugged separately from the other pandas and ensure that the troublesome panda is not used for tests.
We are developing a pool manager for devices to help with the process in step 4. That's the "mozpool" that some of you have heard us talking about. We need to craft automation that expects devices to fail, because they will. A lot. Especially in the beginning stages.
We should parallelize here and look into the issues with the dead pandas, but we should also continue setting up the test infrastructure so that we can turn these things on. If we stop moving forward every time a panda dies, it is going to take us years to get up and running. We do not want to repeat the mistakes we made when bringing up the tegras where we wasted an inordinate amount of time debugging everything that came up from flaky boards early on. The tegras arrived in automation unstable and a year too late, and then we burned another year and a half to get them stable. Trust us, none of us want to live through that kind of scenario again.
So, let's upload the serial output and the logcat info from the a dead board onto this bug so we can take a look at it when we get a chance. But, let's not stop moving forward for every dead panda. Let's step over them and keep going.
Because I doubt most of the folks in DCOps have had the *lovely* (read: awful) experience working with Android-based devices, if you want me to help y'all image a couple of laptops to use as crash carts and show y'all how to do things like get serial debugging output and logcat output, I'd be happy to do that when I get back from my work week. (I'm back November 5th). Until then, I can help debug things remotely, but let's not stop forward progress to wait on remote debugging.
| Reporter | ||
Comment 6•14 years ago
|
||
Clint: I suspect you meant to make this comment on bug 802325 where releng is posting issues?
I opened this bug just to ask dcops if we had something that we could use to allow people to do remote debugging.
Updated•14 years ago
|
colo-trip: --- → scl1
Comment 7•14 years ago
|
||
:ctalbert, Let me know what logs you want captured and the command to capture it. I dont know how to "pull serial debug info and logcat from USB ADB."
Also, should we start a mana page with tables galore or maybe an excel spreadsheet we can download and update to document the boards that won't respond/ping? Or do we open separate bugs for each panda? That might amount to a lot of bugs opened if we're looking at 800 pandas with 30%+ failure rate.
From Clint's comments for DCOPs actions:
* Board doesn't ping:
** Power cycle board 3 times to see if it fixes it
** If not, then re-flash board
** If still happening then pull serial debug info and logcat from USB ADB and open bug ticket with that info.
** Take board out of rotation so that it can be debugged separately from the other pandas and ensure that the troublesome panda is not used for tests.
Comment 8•14 years ago
|
||
:ctalbert/dustin/dividehex, is there any difference running the adb command from an attached serial dongle vs usb? It seems I keep running into insufficient permissions on the device going the USB route.
vle@samsung$ sudo ./adb shell
error: insufficient permissions for device
vle@samsung$ sudo ./adb shell netcfg
error: insufficient permissions for device
On the pandas that don't work, I keep seeing a loop of:
** Unable to read "preEnv.txt" from mmc 0:1 **
Hit any key to stop autoboot: 0
reading uEnv.txt
** Unable to read "uEnv.txt" from mmc 0:1 **
reading boot.scr
and when I hit enter to type something, I am greeted with a Panda prompt instead of root@android prompt. I know it's not the image because I am able to swap SD cards with a known good board and everything works like I think it should. What commands should I type at this new prompt?
** Unable to read "preEnv.txt" from mmc 0:1 **
Hit any key to stop autoboot: 0
Panda #
Panda #
When I try to grab logcat from USB, it appears like it's stuck waiting for the device or I dont have sufficient permissions.
vle@samsung$ ./adb logcat > ./panda-0073
-waiting for device-
Any tips?
Van
Comment 9•14 years ago
|
||
I believe the "insufficient permissions for device" results from the adb server not running or running as a non-root user. Next time try the following commands to reset the server:
sudo adb kill-server
sudo adb start-server
sudo adb devices
As far as the missing preEnv.txt/uEnv.txt these files should exist on 0:1 as part of the standard B2G image. If they're unreadable I suspect the sd card has become corrupted. You could try booting that sd card in another panda board to see whether the board or sd card slot has failed.
Comment 10•13 years ago
|
||
Is this still needed?
| Reporter | ||
Comment 11•13 years ago
|
||
Yes, I believe we still want the ability to hook up the output so that it can be reviewed remotely as necessary. I'll let dividehex confirm.
Comment 12•13 years ago
|
||
dividehex: Should we proceed to order some of these for this bug?
http://www.digi.com/products/serialservers/digionesp#overview
Comment 13•13 years ago
|
||
Another option, depending on who needs access to these, may be to run some longish flat cables from the lantronix and just plug those in as/where necessary. We'd need to do some special configuration to get access to folks other than sysadmins, though.
Vinh, is that practical? I'm not sure how far the Lantronix is from the panda chassis..
Comment 14•13 years ago
|
||
these aren't practical because they would require we leave the chassis cover off. still waiting to hear back from Jake if this is still needed.
The Lantronix are all in the MDF as well so they're all in an entirely different rack.
Comment 15•13 years ago
|
||
At this time I don't see a need for these.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WONTFIX
Updated•13 years ago
|
Assignee: server-ops → server-ops-dcops
Updated•11 years ago
|
Product: mozilla.org → Infrastructure & Operations
You need to log in
before you can comment on or make changes to this bug.
Description
•