test_get_console_output fails in gate with MismatchError

Bug #1251512 reported by Matt Riedemann
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
New
Undecided
Unassigned
tempest
New
Undecided
Unassigned

Bug Description

http://logs.openstack.org/17/56317/1/gate/gate-tempest-devstack-vm-full/535658d/console.html

Not sure if that's running with tenant isolation or not, but seems like something isn't getting cleaned up.

I do see this in the n-cpu log:

2013-11-15 03:57:59.770 23057 ERROR nova.virt.libvirt.driver [-] [instance: 2bfad5b4-fc34-4b8f-8639-8e1fdcd261db] During wait destroy, instance disappeared.

That might be a red herring though from a negative test, I'm not sure.

Revision history for this message
David Peraza (dperaza) wrote :
Revision history for this message
Matt Riedemann (mriedem) wrote :
Revision history for this message
Matt Riedemann (mriedem) wrote :

This is the console output in one case where it fails:

2013-11-15 18:08:49,526 Response Body: {"output": " ____ ____ ____\n / __/ __ ____ ____ / __ \\/ __/\n/ /__ / // __// __// /_/ /\\ \\ \n\\___//_//_/ /_/ \\____/___/ \n http://cirros-cloud.net\n\n\nlogin as 'cirros' user. default password: 'cubswin:)'. use 'sudo' for root.\ncirros login: "}

It expects 10 lines when splitting on \n, but there are 9.

In another case the output is this:

"\nlogin as 'cirros' user. default password: 'cubswin:)'. use 'sudo' for root.\ncirros login: "

So the mismatch is 3 != 10.

Revision history for this message
Matt Riedemann (mriedem) wrote :

Maybe rather than care about the number of lines of output (if that is not reliable), the tempest test should just ensure that this line is in the output:

"\nlogin as 'cirros' user. default password: 'cubswin:)'. use 'sudo' for root.\ncirros login: "

Revision history for this message
Matt Riedemann (mriedem) wrote :

Wonder if this is in any way getting used in the full gate jobs?

http://libvirt.org/git/?p=libvirt.git;a=commit;h=5087a5a0092853702eb5e0c0297937a7859bcab3

Matt Riedemann (mriedem)
tags: added: libvirt testing
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.