Virtio disks not shown in lshw output

Bug #1355309 reported by David Britton
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Low
Unassigned
lshw
Unknown
Unknown
lshw (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When adding virtual machines to maas, if I have created disks as virtio (which I think is the fastest option in most configurations), only the first such disk is detected by MAAS, the others do not show up in the hardware report.

Steps to reproduce:

1) create vm, create two disks on the virtio bus
2) enlist/commission vm
3) click on hardware details link and search for 'disk'.

Tags: landscape

Related branches

David Britton (dpb)
tags: added: landscape
removed: lanscape
Revision history for this message
Julian Edwards (julian-edwards) wrote :

MAAS just uses lshw for this. If you log in to the node you created and run lshw, do you see it? If not we should retarget the bug to there.

Changed in maas:
status: New → Incomplete
Revision history for this message
David Britton (dpb) wrote :
Revision history for this message
David Britton (dpb) wrote :
Revision history for this message
David Britton (dpb) wrote :
Changed in maas:
status: Incomplete → New
Revision history for this message
Julian Edwards (julian-edwards) wrote :

If the disks are not virtio, does it do what you expect?

Revision history for this message
David Britton (dpb) wrote : Re: [Bug 1355309] Re: Virtio disks not detected by MAAS

Yes, AFAICT, no problems there. I've tried with IDE and SATA.

On Mon, Aug 11, 2014 at 9:16 PM, Julian Edwards <email address hidden>
wrote:

> If the disks are not virtio, does it do what you expect?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1355309
>
> Title:
> Virtio disks not detected by MAAS
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/maas/+bug/1355309/+subscriptions
>

--
David Britton <email address hidden>

summary: - Virtio disks not detected by MAAS
+ Virtio disks other than the first are not detected by MAAS
Changed in maas:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Julian Edwards (julian-edwards) wrote : Re: Virtio disks other than the first are not detected by MAAS

Ok thanks for the info. From the XML output it looks like none of the virtual devices have got any size data. The XPATH expression that the code uses is:

_xpath_storage_bytes = """\
    sum(//node[@class='volume']/size[@units='bytes'])
    div 1024 div 1024
"""

So I'm not sure how it gets the first disk with that. This looks more like a bug in lshw to me, what do you think?

Revision history for this message
David Britton (dpb) wrote : Re: [Bug 1355309] Re: Virtio disks other than the first are not detected by MAAS

On Tue, Aug 12, 2014 at 05:05:01AM -0000, Julian Edwards wrote:
> Ok thanks for the info. From the XML output it looks like none of the
> virtual devices have got any size data. The XPATH expression that the
> code uses is:
>
> _xpath_storage_bytes = """\
> sum(//node[@class='volume']/size[@units='bytes'])
> div 1024 div 1024
> """
>
> So I'm not sure how it gets the first disk with that. This looks more
> like a bug in lshw to me, what do you think?

Sounds reasonable to me, can we add that project here? I'll leave it to
you to file it how you would like.

--
David Britton <email address hidden>

summary: - Virtio disks other than the first are not detected by MAAS
+ Virtio disks not shown in lshw output
Changed in maas:
importance: Medium → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in lshw (Ubuntu):
status: New → Confirmed
Changed in maas:
status: Triaged → Fix Committed
Changed in maas:
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.