← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2008102] [NEW] Cannot create VMs where their flavor has a cpu quota even when the kernel supports CPU controller

 

Public bug reported:

Description
===========
Given a flavor enriched with the "quota:cpu_quota" property, creation of servers based on it will fail on system's running under cgroups v2, complaining that the CPU controller is unavailable even when the kernel does provide it.

Steps to reproduce
==================
1.- openstack flavor create flavor_cpu --id 101 --ram 2048 --disk 10 --vcpus 2
2.- openstack flavor set flavor_cpu --property hw:boot_menu='true'  --property quota:cpu_period='1000000' --property quota:cpu_quota='1000000000' --property quota:cpu_shares='2048' 
3.- openstack image create asb-qcow2  --disk-format qcow2 --container-format bare --file /tmp/cirros-0.6.1-x86_64-disk.img
4.- openstack server create --flavor flavor_cpu --image asb-qcow2
5.- openstack server show vm-r9-qcow2

Expected result
===============
Server is built and active.

Actual result
=============
Error: "{'code': 500, 'created': '2022-08-17T08:24:38Z', 'message': 'Requested CPU control policy not supported by host'..."

Environment
===========
Rocky Linux 9 or Ubuntu 22.04
DevStack

** Affects: nova
     Importance: Undecided
         Status: In Progress

** Changed in: nova
       Status: New => In Progress

** Bug watch added: Red Hat Bugzilla #2118968
   https://bugzilla.redhat.com/show_bug.cgi?id=2118968

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/2008102

Title:
  Cannot create VMs where their flavor has a cpu quota even when the
  kernel supports CPU controller

Status in OpenStack Compute (nova):
  In Progress

Bug description:
  Description
  ===========
  Given a flavor enriched with the "quota:cpu_quota" property, creation of servers based on it will fail on system's running under cgroups v2, complaining that the CPU controller is unavailable even when the kernel does provide it.

  Steps to reproduce
  ==================
  1.- openstack flavor create flavor_cpu --id 101 --ram 2048 --disk 10 --vcpus 2
  2.- openstack flavor set flavor_cpu --property hw:boot_menu='true'  --property quota:cpu_period='1000000' --property quota:cpu_quota='1000000000' --property quota:cpu_shares='2048' 
  3.- openstack image create asb-qcow2  --disk-format qcow2 --container-format bare --file /tmp/cirros-0.6.1-x86_64-disk.img
  4.- openstack server create --flavor flavor_cpu --image asb-qcow2
  5.- openstack server show vm-r9-qcow2

  Expected result
  ===============
  Server is built and active.

  Actual result
  =============
  Error: "{'code': 500, 'created': '2022-08-17T08:24:38Z', 'message': 'Requested CPU control policy not supported by host'..."

  Environment
  ===========
  Rocky Linux 9 or Ubuntu 22.04
  DevStack

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/2008102/+subscriptions