PPC64/hugepages is not supported by nova/libvirt driver.

Bug #1568086 reported by Breno Leitão
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nova (Ubuntu)
Fix Released
Medium
Taco Screen team
Xenial
Fix Released
Medium
Unassigned

Bug Description

[Impact]
Nova does not recognize PPC64LE as an architecture that supports hugepaged-backed VMs.

[Test Case]
Steps to reproduce:
On an openstack environment running on PPC64LE:
1. Configure compute nodes to use hugepages, e.g.:
   echo 1024 | sudo tee /sys/kernel/mm/hugepages/hugepages-65536kB/nr_hugepages
2. Set mem_page_size="65536" for a flavor
3. Launch a VM using the above flavor.

Expected result:
VM should be launched with hugepages and the libvirt xml should have

  <memoryBacking>
      <hugepages>
        <page size='65536' unit='KiB' nodeset='0'/>
      </hugepages>
  </memoryBacking>

Actual result:
VM is launched without hugepages.

There are no error logs in nova-scheduler.

[Regression Risk]
Risk is minimized by the fact that this change is just enabling the same code for ppc64el that is already enabled for Ubuntu/x86.

Related branches

affects: cloud-archive → nova (Ubuntu)
Changed in nova (Ubuntu):
assignee: nobody → Taco Screen team (taco-screen-team)
summary: - enable huge pages on nova
+ enable huge pages on nova/libvirt for POWER arch
James Page (james-page)
summary: - enable huge pages on nova/libvirt for POWER arch
+ PPC64/hugepages is not supported by nova/libvirt driver.
Changed in nova (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
dann frazier (dannf)
Changed in nova (Ubuntu Xenial):
status: New → Triaged
Changed in nova (Ubuntu):
status: Triaged → Fix Released
Changed in nova (Ubuntu Xenial):
importance: Undecided → Medium
Revision history for this message
dann frazier (dannf) wrote :

This appears to be part of the upstream release in yakkety. I've backported this support to xenial an have a package posted here:
  ppa:ce-hyperscale/cloud-mitaka

@Breno: would you be able to verify this package?

Revision history for this message
Brian Murray (brian-murray) wrote :

I'd imagine the test case here is similar to the one in bug 1623871, but could it nonetheless be documented in the bug description? Thanks!

Changed in nova (Ubuntu Xenial):
status: Triaged → Fix Committed
tags: added: verification-needed
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Breno, or anyone else affected,

Accepted nova into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/nova/2:13.1.2-0ubuntu2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

dann frazier (dannf)
description: updated
Revision history for this message
Breno Leitão (breno-leitao) wrote :

I am sorry for the delay, I am testing it

Revision history for this message
Breno Leitão (breno-leitao) wrote :

I just tested on Xenial/ppc64el and it works fine. Thanks

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nova - 2:13.1.2-0ubuntu2

---------------
nova (2:13.1.2-0ubuntu2) xenial; urgency=medium

  [ dann frazier ]
  * d/p/libvirt-add-hugepages-support-for-Power.patch (LP: #1568086).
  * d/p/libvirt-add-hugepages-support-for-arm64.patch (LP: #1623871).

 -- Corey Bryant <email address hidden> Tue, 18 Oct 2016 13:56:15 -0400

Changed in nova (Ubuntu Xenial):
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote : Update Released

The verification of the Stable Release Update for nova has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

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.