Ironic bare metal console logs only show the last boot

Bug #1506829 reported by Dmitry Tantsur
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic
Fix Released
High
Lucas Alvares Gomes
devstack
Invalid
Undecided
Caio Oliveira

Bug Description

For every ironic job we publish the console logs from a "bare metal" machine, e.g.
http://logs.openstack.org/61/234861/7/check/gate-tempest-dsvm-ironic-pxe_ipa-src/6c076cf/logs/ironic-bm-logs/

Unfortunately, this file gets truncated on every reboot, so it always contains only the last boot. Which was acceptable - until we introduced cleaning. Now the boot for cleaning always goes last, so logs from deploy are always lost.

We need to somehow store logs from all boots.

Related configuration: https://github.com/openstack-dev/devstack/blob/master/tools/ironic/scripts/configure-vm#L12-L28

Tags: ironic
Caio Oliveira (caiobo)
Changed in devstack:
assignee: nobody → Caio Oliveira (caiobo)
Revision history for this message
Lucas Alvares Gomes (lucasagomes) wrote :

Marking it as high because losing the logs is not ideal when debugging Ironic failures (especially gate problems)

Changed in ironic:
importance: Undecided → High
assignee: nobody → Lucas Alvares Gomes (lucasagomes)
Dmitry Tantsur (divius)
Changed in devstack:
status: New → Confirmed
Changed in ironic:
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ironic (master)

Fix proposed to branch: master
Review: https://review.openstack.org/257987

Changed in ironic:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic (master)

Reviewed: https://review.openstack.org/257987
Committed: https://git.openstack.org/cgit/openstack/ironic/commit/?id=2f6dce97384718f6a35d1d9a12d3d1ae5128a271
Submitter: Jenkins
Branch: master

commit 2f6dce97384718f6a35d1d9a12d3d1ae5128a271
Author: Lucas Alvares Gomes <email address hidden>
Date: Tue Dec 15 16:04:58 2015 +0000

    Keep the console logs for all boots

    This patch adds a libvirt hook that saves the VM console log everytime
    it shutdown. This is great for troubleshooting because it allow us to
    see what happened with the VM on every boot instead of only the last one.

    Closes-Bug: #1506829
    Related-Bug: #1393099
    Change-Id: I4881dfc816a05c0fd2610b0b977e41c44a7e9517

Changed in ironic:
status: In Progress → Fix Released
Dmitry Tantsur (divius)
Changed in devstack:
status: Confirmed → Invalid
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/ironic 5.0.0

This issue was fixed in the openstack/ironic 5.0.0 release.

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.