<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=Windows-1252">
<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:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-ligatures:standardcontextual;
mso-fareast-language:EN-US;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
font-family:"Calibri",sans-serif;
mso-ligatures:none;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-AU" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi Cyborg Team!</p>
<p class="MsoNormal">Karl from Helm Team.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">When creating a VM with the correct flavor, the mdev gets created by cyborg agent and I can see it in the nodedev-list --cap mdev.</p>
<p class="MsoNormal">However Nova then fails with:</p>
<p class="MsoNormal">nova.virt.libvirt.driver [<removed>- - default default] Searching for available mdevs... _get_existing_mdevs_not_assigned /var/lib/openstack/lib/python3.10/site-packages/nova/virt/libvirt/driver.py</p>
<p class="MsoNormal">:8357</p>
<p class="MsoNormal">2023-09-21 14:34:47.808 1901814 INFO nova.virt.libvirt.driver [<removed> - - default default] Available mdevs at: set().</p>
<p class="MsoNormal">2023-09-21 14:34:47.809 1901814 DEBUG nova.virt.libvirt.driver [<removed> - - default default] No available mdevs where found. Creating an new one... _allocate_mdevs /var/lib/openstack/lib/python3.10/site-packages/nova/virt/libvirt/driv</p>
<p class="MsoNormal">er.py:8496</p>
<p class="MsoNormal">2023-09-21 14:34:47.809 1901814 DEBUG nova.virt.libvirt.driver [<removed> - - default default] Attempting to create new mdev... _create_new_mediated_device /var/lib/openstack/lib/python3.10/site-packages/nova/virt/libvirt/driver.py:8385</p>
<p class="MsoNormal">2023-09-21 14:34:48.455 1901814 INFO nova.virt.libvirt.driver [<removed> - - default default] Failed to create mdev. No free space found among the following devices: ['pci_0000_4b_03_1', … <truncated list>].</p>
<div style="mso-element:para-border-div;border:none;border-bottom:solid windowtext 1.0pt;padding:0cm 0cm 1.0pt 0cm">
<p class="MsoNormal" style="border:none;padding:0cm">2023-09-21 14:34:48.456 1901814 ERROR nova.compute.manager [<removed> - - default default] [instance: 2026e2a2-b17a-43ab-adcb-62a907f58b51] Instance failed to spawn: nova.exception.ComputeResourcesUnavailable:
Insufficient compute resources: mdev-capable resource is not available.</p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Once this happened, ARQ removes the mdev and cleans up.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’ve got Cyborg 2023.2 running and have a device profile like so:</p>
<p class="MsoNormal">karl@Karls-Air ~ % openstack accelerator device profile show e2b07e11-fe69-4f33-83fc-0f9e38adb7ae</p>
<p class="MsoNormal">+-------------+---------------------------------------------------------------------------+</p>
<p class="MsoNormal">| Field | Value |</p>
<p class="MsoNormal">+-------------+---------------------------------------------------------------------------+</p>
<p class="MsoNormal">| created_at | 2023-09-21 13:30:05+00:00 |</p>
<p class="MsoNormal">| updated_at | None |</p>
<p class="MsoNormal">| uuid | e2b07e11-fe69-4f33-83fc-0f9e38adb7ae |</p>
<p class="MsoNormal">| name | VGPU_A40-Q48 |</p>
<p class="MsoNormal">| groups | [{'resources:VGPU': '1', 'trait:CUSTOM_NVIDIA_2235_A40_48Q': 'required'}] |</p>
<p class="MsoNormal">| description | None |</p>
<p class="MsoNormal">+-------------+---------------------------------------------------------------------------+</p>
<p class="MsoNormal">karl@Karls-Air ~ %</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I can see the allocation candidate:</p>
<p class="MsoNormal">karl@Karls-Air ~ % openstack allocation candidate list --resource VGPU=1 | grep A40</p>
<p class="MsoNormal">| 41 | VGPU=1 | 229bf15f-5689-3d2c-b37b-5c8439ea6a71 | VGPU=0/1 | OWNER_CYBORG,CUSTOM_NVIDIA_2235_A40_48Q |</p>
<div style="mso-element:para-border-div;border:none;border-bottom:solid windowtext 1.0pt;padding:0cm 0cm 1.0pt 0cm">
<p class="MsoNormal" style="border:none;padding:0cm">karl@Karls-Air ~ %</p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Am I missing something critical here? Because I cannot seem to figure this out… have I got a PCI address wrong, or something?</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Any help from the Cyborg or Nova teams would be fantastic.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<br>
Karl.</p>
</div>
</body>
</html>