<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have a Standard 2+2 system, I wanted to create 3 VMs with different vcpus each one. VCPUs were set on flavors:<o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">$ openstack flavor create --ram ${ram} --disk ${disk} --vcpus 4 flavor-1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">$ openstack flavor create --ram ${ram} --disk ${disk} --vcpus 10 flavor-2<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">$ openstack flavor create --ram ${ram} --disk ${disk} --vcpus 14 flavor-3<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am using <span style="font-family:"Courier New"">cpu_policy=dedicated</span> on flavors.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I could launch 2 VMs, with flavor-1 <span style="font-family:"Courier New"">
(--vcpus 4</span>) and flavor-2 (<span style="font-family:"Courier New"">--vcpus 10</span>). When tried to launch VM3 (<span style="font-family:"Courier New"">--vcpus 14</span>) I got the following error:<o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Quota exceeded for cores: Requested 14, but already used 14 of 20 cores (HTTP 403) (Request-ID: req-9ab18649-8796-4cad-8768-75f895ac48c1)<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Why the cores to use is limited to 20 if my hosts have 64 logical cores?<o:p></o:p></p>
<p class="MsoNormal">Are just 20 vcpus configured to be used by default?<o:p></o:p></p>
<p class="MsoNormal">How can I enable the rest of logical CPUs to use them?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">$ system host-cpu-list compute-0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">+--------------------------------------+-------+-----------+-------+--------+-------------------------------------------+-------------------+<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">| uuid | log_c | processor | phy_c | thread | processor_model | assigned_function |<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">| | ore | | ore | | | |<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">+--------------------------------------+-------+-----------+-------+--------+-------------------------------------------+-------------------+<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">| e6f9eda4-f8be-48a3-a54c-c052cb1403e4 | 0 | 0 | 0 | 0 | Intel(R) Xeon(R) Gold 6142M CPU @ 2.60GHz | Platform |<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">| 23522549-88c8-4d76-b665-18edc5e1b5e2 | 1 | 0 | 1 | 0 | Intel(R) Xeon(R) Gold 6142M CPU @ 2.60GHz | vSwitch |<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">| 57cc68fe-ff4a-40c5-8fe4-7b34269c1387 | 2 | 0 | 2 | 0 | Intel(R) Xeon(R) Gold 6142M CPU @ 2.60GHz | vSwitch |<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">|…<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">|…<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">| a76df976-4deb-4b4a-828a-0764ca5ddee6 | 62 | 1 | 14 | 1 | Intel(R) Xeon(R) Gold 6142M CPU @ 2.60GHz | Applications |<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">| 85263ef8-6060-4165-9159-db9f32efc620 | 63 | 1 | 15 | 1 | Intel(R) Xeon(R) Gold 6142M CPU @ 2.60GHz | Applications |<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">+--------------------------------------+-------+-----------+-------+--------+-------------------------------------------+-------------------+<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">$ kubectl describe nodes compute-0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">…<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Capacity:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">cpu: 64<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">…<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Allocatable:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">cpu: 64<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal">Regards.<o:p></o:p></p>
<p class="MsoNormal">Juan Carlos Alonso<o:p></o:p></p>
</div>
</body>
</html>