vmlinuz not found during server ISO validation

Bug #1087620 reported by Para Siva
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
UTAH
Fix Released
Critical
Javier Collado

Bug Description

The latest static validation tests for raring server amd64 (20121207) are
failing because the vmlinuz is not found.

The failure seen is as below.

FAIL: test_vmlinuz (__main__.TestValidateISO)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/share/utah/isotest/iso_static_validation.py", line 348, in test_vmlinuz
    self.assertIn("Linux kernel", stdout)
AssertionError: 'Linux kernel' not found in "/tmp/tmp2nkThz/./install/vmlinuz: ERROR: cannot open `/tmp/tmp2nkThz/./install/vmlinuz' (No such file or directory)\n"

The job that's affected is
https://jenkins.qa.ubuntu.com/view/Raring/view/Smoke%20Testing/job/raring-server-amd64-smoke-default/24/

Since this job triggers the rest of the amd64 server tests, all 16 tests have
not run for 20121207 amd64 server image.

This might be a regression due to the fix for bug 1086772 which should have
maintained the earlier case of skipping for d-i based images.

Related branches

Para Siva (psivaa)
Changed in utah:
importance: Undecided → Critical
description: updated
Revision history for this message
Javier Collado (javier.collado) wrote :

What I see in the image is that there's a file:
/install/vmlinuz

that's a hard link to:
/install/netboot/ubuntu-installer/amd64/linux

The `iso.extract` method detects it's a link and uses the second path to
extract the file. However, when the `file` command is executed in the test
case against the first path, it results in a file not found error because the
link hasn't been created.

Revision history for this message
Javier Collado (javier.collado) wrote :

I also see that `iso.extract` only checks for links when outfile is None. This
means that if I try to pass outfile argument, then it won't work the way I'd
like to. That would be that even if the file is a link, its contents is
extracted to the desired location so that subsequent commands can rely on that
the filename exists.

summary: - vmlinuz presence should not be tested for server images in static
- validation
+ vmlinuz not found during ISO validation
description: updated
Changed in utah:
status: New → Triaged
assignee: nobody → Javier Collado (javier.collado)
summary: - vmlinuz not found during ISO validation
+ vmlinuz not found during server ISO validation
Revision history for this message
Javier Collado (javier.collado) wrote :

This isn't causing a problem anymore because the link that was causing the
problem seems to be created the other way around now.

I'm not very happy with the merge proposal I created, so I'm going to mark this
bug as "Won't Fix" since it's unlikely that the build will change again.

Anyway, if the problem happens again, this bug can be reopened and the branch
that was proposed updated to have a good solution for this.

Changed in utah:
status: Triaged → Won't Fix
Revision history for this message
Javier Collado (javier.collado) wrote :

It turns out that the same problem is back:
https://jenkins.qa.ubuntu.com/job/raring-server-i386-smoke-default/29/console

Looking at the solution I worked on to make it work right.

Changed in utah:
status: Won't Fix → Triaged
Changed in utah:
status: Triaged → In Progress
Changed in utah:
status: In Progress → Fix Committed
Changed in utah:
status: Fix Committed → Fix Released
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.