<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:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@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;}
@font-face
{font-family:"\@SimSun";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* 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, experts,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">XenServer CI failed frequently with an error "No valid host was found. " for more than a week. I think it is cause by placement update.<o:p></o:p></p>
<p class="MsoNormal">It looks ` _get_provider_ids_matching ` return empty when allocate candidates, but filter statements looks good(vcpu/memory/disk):<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">coalesce(usage_vcpu.used, :coalesce_1) + :coalesce_2 <= (inv_vcpu.total - inv_vcpu.reserved) * inv_vcpu.allocation_ratio AND inv_vcpu.min_unit <= :min_unit_1 AND inv_vcpu.max_unit >= :max_unit_1 AND :step_size_1 % inv_vcpu.step_size = :param_1,
coalesce(usage_memory_mb.used, :coalesce_1) + :coalesce_2 <= (inv_memory_mb.total - inv_memory_mb.reserved) * inv_memory_mb.allocation_ratio AND inv_memory_mb.min_unit <= :min_unit_1 AND inv_memory_mb.max_unit >= :max_unit_1 AND :step_size_1 % inv_memory_mb.step_size
= :param_1, coalesce(usage_disk_gb.used, :coalesce_1) + :coalesce_2 <= (inv_disk_gb.total - inv_disk_gb.reserved) * inv_disk_gb.allocation_ratio AND inv_disk_gb.min_unit <= :min_unit_1 AND inv_disk_gb.max_unit >= :max_unit_1 AND :step_size_1 % inv_disk_gb.step_size
= :param_1<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Also, database looks good:<o:p></o:p></p>
<p class="MsoNormal">mysql> select * from inventories;<o:p></o:p></p>
<p class="MsoNormal">+---------------------+---------------------+----+----------------------+-------------------+-------+----------+----------+----------+-----------+------------------+<o:p></o:p></p>
<p class="MsoNormal">| created_at | updated_at | id | resource_provider_id | resource_class_id | total | reserved | min_unit | max_unit | step_size | allocation_ratio |<o:p></o:p></p>
<p class="MsoNormal">+---------------------+---------------------+----+----------------------+-------------------+-------+----------+----------+----------+-----------+------------------+<o:p></o:p></p>
<p class="MsoNormal">| 2018-08-27 10:14:12 | 2018-08-27 10:16:11 | 1 | 1 | 0 | 24 | 0 | 1 | 24 | 1 | 0 |<o:p></o:p></p>
<p class="MsoNormal">| 2018-08-27 10:14:12 | 2018-08-27 10:16:11 | 2 | 1 | 1 | 98293 | 512 | 1 | 98293 | 1 | 0 |<o:p></o:p></p>
<p class="MsoNormal">| 2018-08-27 10:14:12 | 2018-08-27 10:16:11 | 3 | 1 | 2 | 450 | 0 | 1 | 450 | 1 | 2 |<o:p></o:p></p>
<p class="MsoNormal">+---------------------+---------------------+----+----------------------+-------------------+-------+----------+----------+----------+-----------+------------------+<o:p></o:p></p>
<p class="MsoNormal">3 rows in set (0.00 sec)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">mysql> select * from resource_providers;<o:p></o:p></p>
<p class="MsoNormal">+---------------------+---------------------+----+--------------------------------------+--------------+------------+----------+------------------+--------------------+<o:p></o:p></p>
<p class="MsoNormal">| created_at | updated_at | id | uuid | name | generation | can_host | root_provider_id | parent_provider_id |<o:p></o:p></p>
<p class="MsoNormal">+---------------------+---------------------+----+--------------------------------------+--------------+------------+----------+------------------+--------------------+<o:p></o:p></p>
<p class="MsoNormal">| 2018-08-27 10:14:11 | 2018-08-27 10:16:11 | 1 | cb831119-c68f-47ac-92ba-0f19c1a56b31 | xrtmia-03-11 | 2 | NULL | 1 | NULL |<o:p></o:p></p>
<p class="MsoNormal">+---------------------+---------------------+----+--------------------------------------+--------------+------------+----------+------------------+--------------------+<o:p></o:p></p>
<p class="MsoNormal">1 row in set (0.00 sec)<o:p></o:p></p>
<p class="MsoNormal"><o:p></o:p></p>
<p class="MsoNormal">It is a alo environment deployed by devstack.<o:p></o:p></p>
<p class="MsoNormal">Anyone has some suggestions about that?<o:p></o:p></p>
<p class="MsoNormal">Thank you very much.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">BR.<o:p></o:p></p>
<p class="MsoNormal">Naichuan Sun<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>