Unable to boot instance using UML

Bug #1597754 reported by Matthew Booth
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Triaged
Low
Unassigned

Bug Description

CAVEAT: This is from code inspection only.

Change I931421ea moved the following snippet of code:

        if CONF.libvirt.virt_type == 'uml':
            libvirt_utils.chown(image('disk').path, 'root')

from the bottom of _create_image to the top. The problem is, the new location is before the creation of the root disk. This means that on initial creation we will run libvirt_utils.chown on a path which hasn't been created yet, which will cause an exception.

Tags: libvirt
Sean Dague (sdague)
tags: added: libvirt
Revision history for this message
Eli Qiao (taget-9) wrote :

I will take a look at this.

Changed in nova:
assignee: nobody → Eli Qiao (taget-9)
Revision history for this message
Matthew Booth (mbooth-9) wrote : Re: [Bug 1597754] Re: Unable to boot instance using UML

FYI, this is fixed by my change If2fcc97928607189446e067886f70786bcc1cb3f,
which moves around lots of stuff in that function anyway. However, that's
buried in the middle of a big series. If you want to fix it anyway please
go ahead and I'll sort the merge conflict when it comes around.

On Mon, Jul 4, 2016 at 9:28 AM, Eli Qiao <email address hidden> wrote:

> I will take a look at this.
>
> ** Changed in: nova
> Assignee: (unassigned) => Eli Qiao (taget-9)
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1597754
>
> Title:
> Unable to boot instance using UML
>
> Status in OpenStack Compute (nova):
> New
>
> Bug description:
> CAVEAT: This is from code inspection only.
>
> Change I931421ea moved the following snippet of code:
>
> if CONF.libvirt.virt_type == 'uml':
> libvirt_utils.chown(image('disk').path, 'root')
>
> from the bottom of _create_image to the top. The problem is, the new
> location is before the creation of the root disk. This means that on
> initial creation we will run libvirt_utils.chown on a path which
> hasn't been created yet, which will cause an exception.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/nova/+bug/1597754/+subscriptions
>

--
Matthew Booth
Red Hat Engineering, Virtualisation Team

Phone: +442070094448 (UK)

Matt Riedemann (mriedem)
Changed in nova:
status: New → Triaged
importance: Undecided → Low
Sean Dague (sdague)
Changed in nova:
assignee: Eli Qiao (taget-9) → nobody
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.