Need attach_logs_cores task to get gdb of only contrail core files

Bug #1733180 reported by Vedamurthy Joshi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R4.1
In Progress
Undecided
Vedamurthy Joshi
Trunk
In Progress
Undecided
Vedamurthy Joshi

Bug Description

R4.1 Build 53

As in http://anamika.englab.juniper.net:8080/job/kubernetes-sanity3/275/console, it is seen that sometimes there are non-contrail crashes as seen below. We need to skip getting bts for those files

Currently, the task attach_logs_cores gets stuck in gdb prompt causing jobs to not complete

2017-11-19 02:15:31:410949: [root@10.204.218.100] sudo: docker exec --privileged -it controller /bin/bash -c 'strings /var/crashes/core.async_5.14469.testbed-1-vm4.1511039033 | grep "^/usr/bin/async_5" | head -1'
2017-11-19 02:15:31:411351: [root@10.204.218.100] sudo: docker exec --privileged -it controller /bin/bash -c 'ls '
2017-11-19 02:15:33:251297: [root@10.204.218.100] out: $HOME dev media root tmp
2017-11-19 02:15:33:391414: [root@10.204.218.100] out: bin etc mnt run usr
2017-11-19 02:15:33:391679: [root@10.204.218.100] out: boot home opt sbin var
2017-11-19 02:15:33:391959: [root@10.204.218.100] out: contrail-ansible-internal lib proc srv
2017-11-19 02:15:33:392196: [root@10.204.218.100] out: contrail-ubuntu-mirror.key lib64 python-contrailctl sys
2017-11-19 02:15:33:392412: [root@10.204.218.100] out:
2017-11-19 02:15:33:396514:
2017-11-19 02:15:33:400131: [root@10.204.218.100] sudo: docker exec --privileged -it controller /bin/bash -c 'basename '
2017-11-19 02:15:33:400411: [root@10.204.218.100] out: basename: missing operand
2017-11-19 02:15:33:569190: [root@10.204.218.100] out: Try 'basename --help' for more information.
2017-11-19 02:15:33:569414: [root@10.204.218.100] out:

-----

2017-11-19 11:10:54:596401: [root@10.204.218.100] sudo: docker exec --privileged -it controller /bin/bash -c 'gdb basename: missing operand
2017-11-19 11:10:54:596655: Try 'basename --help' for more information. /var/crashes/core.async_5.19991.testbed-1-vm4.1511039126 --eval-command bt > /var/log/gdb_core.async_5.19991.testbed-1-vm4.1511039126.log --eval-command quit'
2017-11-19 11:10:54:596733: [root@10.204.218.100] out: Excess command line arguments ignored. (operand
2017-11-19 11:10:54:934301: [root@10.204.218.100] out: )
2017-11-19 11:10:54:934662: [root@10.204.218.100] out: GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
2017-11-19 11:10:54:934867: [root@10.204.218.100] out: Copyright (C) 2016 Free Software Foundation, Inc.
2017-11-19 11:10:54:935068: [root@10.204.218.100] out: License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
2017-11-19 11:10:54:935295: [root@10.204.218.100] out: This is free software: you are free to change and redistribute it.
2017-11-19 11:10:54:935550: [root@10.204.218.100] out: There is NO WARRANTY, to the extent permitted by law. Type "show copying"
2017-11-19 11:10:54:935805: [root@10.204.218.100] out: and "show warranty" for details.
2017-11-19 11:10:54:936246: [root@10.204.218.100] out: This GDB was configured as "x86_64-linux-gnu".
2017-11-19 11:10:54:936453: [root@10.204.218.100] out: Type "show configuration" for configuration details.
2017-11-19 11:10:54:936670: [root@10.204.218.100] out: For bug reporting instructions, please see:
2017-11-19 11:10:54:936861: [root@10.204.218.100] out: <http://www.gnu.org/software/gdb/bugs/>.
2017-11-19 11:10:54:937048: [root@10.204.218.100] out: Find the GDB manual and other documentation resources online at:
2017-11-19 11:10:54:937237: [root@10.204.218.100] out: <http://www.gnu.org/software/gdb/documentation/>.
2017-11-19 11:10:54:937436: [root@10.204.218.100] out: For help, type "help".
2017-11-19 11:10:54:937663: [root@10.204.218.100] out: Type "apropos word" to search for commands related to "word"...
2017-11-19 11:10:54:937853: [root@10.204.218.100] out: basename:: No such file or directory.
2017-11-19 11:10:54:938039: [root@10.204.218.100] out: //missing: No such file or directory.
2017-11-19 11:10:54:938225: [root@10.204.218.100] out: (gdb)

Tags: automation
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/37657
Submitter: Vedamurthy Joshi (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.1

Review in progress for https://review.opencontrail.org/37923
Submitter: Vedamurthy Joshi (<email address hidden>)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.