<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;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:#1F497D;}
span.EmailStyle19
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
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">Anyone familiar with python-eventlet? I meet a problem when upgrade python-eventlet from “0.18.4-2” to “0.20.1-2”, when do CentOS7.5 upgrade.<o:p></o:p></p>
<p class="MsoNormal">Eventlet will hook/patch some basic python function, such as “call”/”check_call” from subprocess.py<o:p></o:p></p>
<p class="MsoNormal">The issue is that, after upgrade to 0.20.1-2 version, these functions don’t work as expected.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">For the pass log (with eventlet 0.18.4), below log is as expected:<o:p></o:p></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow">2018-08-28 05:38:33.816 21142 INFO sysinv.agent.pci [-] Could not determine DPDK support for NIC (vendor 0x8086 device: 0x100e), defaulting to False</span><o:p></o:p></p>
<p class="MsoNormal">But for the fail log(with eventlet 0.20.1), it seems the exception is not handled correctly:<o:p></o:p></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow">2018-08-28 03:48:21.687 21302 ERROR sysinv.openstack.common.periodic_task [-] Error during AgentManager._agent_audit: Command '['query_pci_id', '-v 0x8086', '-d 0x100e']' returned non-zero
exit status 1</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Is there any code style change with new eventlet?<o:p></o:p></p>
<p class="MsoNormal">Thanks.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Pass log:<o:p></o:p></p>
<p class="MsoNormal">2018-08-28 05:38:33.477 21142 INFO sysinv.openstack.common.rpc.common [-] Connected to AMQP server on localhost:5672<o:p></o:p></p>
<p class="MsoNormal">2018-08-28 05:38:33.485 21142 INFO sysinv.agent.manager [-] Sysinv Agent audit running inv_get_and_report.<o:p></o:p></p>
<p class="MsoNormal">2018-08-28 05:38:33.552 21177 INFO migrate.versioning.api [-] 0 -> 1...<o:p></o:p></p>
<p class="MsoNormal">2018-08-28 05:38:33.750 21177 INFO migrate.versioning.api [-] done<o:p></o:p></p>
<p class="MsoNormal">2018-08-28 05:38:33.750 21177 INFO migrate.versioning.api [-] 1 -> 2...<o:p></o:p></p>
<p class="MsoNormal">2018-08-28 05:38:33.816 21142 INFO sysinv.agent.pci [-] Could not determine DPDK support for NIC (vendor 0x8086 device: 0x100e), defaulting to False<o:p></o:p></p>
<p class="MsoNormal">2018-08-28 05:38:34.032 21142 INFO sysinv.agent.pci [-] Could not determine DPDK support for NIC (vendor 0x8086 device: 0x100e), defaulting to False<o:p></o:p></p>
<p class="MsoNormal">2018-08-28 05:38:34.033 21142 WARNING sysinv.agent.pci [-] Enabling device enp0s8 to query link speed<o:p></o:p></p>
<p class="MsoNormal">2018-08-28 05:38:34.036 21142 WARNING sysinv.agent.pci [-] ATTR speed unknown for: enp0s8 (flags: 0x1002)<o:p></o:p></p>
<p class="MsoNormal">2018-08-28 05:38:34.036 21142 WARNING sysinv.agent.pci [-] Disabling device enp0s8 after querying link speed<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Fail log:<o:p></o:p></p>
<p class="MsoNormal">2018-08-28 03:48:21.373 21302 INFO sysinv.openstack.common.rpc.common [-] Connected to AMQP server on localhost:5672<o:p></o:p></p>
<p class="MsoNormal">2018-08-28 03:48:21.382 21302 INFO sysinv.agent.manager [-] Sysinv Agent audit running inv_get_and_report.<o:p></o:p></p>
<p class="MsoNormal">2018-08-28 03:48:21.463 21337 INFO migrate.versioning.api [-] 0 -> 1...<o:p></o:p></p>
<p class="MsoNormal">2018-08-28 03:48:21.631 21337 INFO migrate.versioning.api [-] done<o:p></o:p></p>
<p class="MsoNormal">2018-08-28 03:48:21.631 21337 INFO migrate.versioning.api [-] 1 -> 2...<o:p></o:p></p>
<p class="MsoNormal">2018-08-28 03:48:21.687 21302 ERROR sysinv.openstack.common.periodic_task [-] Error during AgentManager._agent_audit: Command '['query_pci_id', '-v 0x8086', '-d 0x100e']' returned non-zero exit status 1<o:p></o:p></p>
<p class="MsoNormal">2018-08-28 03:48:21.687 21302 TRACE sysinv.openstack.common.periodic_task Traceback (most recent call last):<o:p></o:p></p>
<p class="MsoNormal">2018-08-28 03:48:21.687 21302 TRACE sysinv.openstack.common.periodic_task File "/usr/lib64/python2.7/site-packages/sysinv/openstack/common/periodic_task.py", line 182, in run_periodic_tasks<o:p></o:p></p>
<p class="MsoNormal">2018-08-28 03:48:21.687 21302 TRACE sysinv.openstack.common.periodic_task task(self, context)<o:p></o:p></p>
<p class="MsoNormal">2018-08-28 03:48:21.687 21302 TRACE sysinv.openstack.common.periodic_task File "/usr/lib64/python2.7/site-packages/sysinv/agent/manager.py", line 1010, in _agent_audit<o:p></o:p></p>
<p class="MsoNormal">2018-08-28 03:48:21.687 21302 TRACE sysinv.openstack.common.periodic_task force_updates=None)<o:p></o:p></p>
<p class="MsoNormal">2018-08-28 03:48:21.687 21302 TRACE sysinv.openstack.common.periodic_task File "/usr/lib64/python2.7/site-packages/sysinv/agent/manager.py", line 1028, in agent_audit<o:p></o:p></p>
<p class="MsoNormal">2018-08-28 03:48:21.687 21302 TRACE sysinv.openstack.common.periodic_task self.ihost_inv_get_and_report(icontext)<o:p></o:p></p>
<p class="MsoNormal">2018-08-28 03:48:21.687 21302 TRACE sysinv.openstack.common.periodic_task File "/usr/lib64/python2.7/site-packages/sysinv/agent/manager.py", line 575, in ihost_inv_get_and_report<o:p></o:p></p>
<p class="MsoNormal">2018-08-28 03:48:21.687 21302 TRACE sysinv.openstack.common.periodic_task pci_net_array = self._ipci_operator.pci_get_net_attrs(inic.pciaddr)<o:p></o:p></p>
<p class="MsoNormal">2018-08-28 03:48:21.687 21302 TRACE sysinv.openstack.common.periodic_task File "/usr/lib64/python2.7/site-packages/sysinv/agent/pci.py", line 470, in pci_get_net_attrs<o:p></o:p></p>
<p class="MsoNormal">2018-08-28 03:48:21.687 21302 TRACE sysinv.openstack.common.periodic_task stdout=fnull, stderr=fnull)<o:p></o:p></p>
<p class="MsoNormal">2018-08-28 03:48:21.687 21302 TRACE sysinv.openstack.common.periodic_task File "/usr/lib64/python2.7/subprocess.py", line 542, in check_call<o:p></o:p></p>
<p class="MsoNormal">2018-08-28 03:48:21.687 21302 TRACE sysinv.openstack.common.periodic_task raise CalledProcessError(retcode, cmd)<o:p></o:p></p>
<p class="MsoNormal">2018-08-28 03:48:21.687 21302 TRACE sysinv.openstack.common.periodic_task CalledProcessError: Command '['query_pci_id', '-v 0x8086', '-d 0x100e']' returned non-zero exit status 1<o:p></o:p></p>
<p class="MsoNormal">2018-08-28 03:48:21.687 21302 TRACE sysinv.openstack.common.periodic_task<o:p></o:p></p>
<p class="MsoNormal">2018-08-28 03:48:21.929 21337 INFO migrate.versioning.api [-] done<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Best Regards<o:p></o:p></p>
<p class="MsoNormal">Shuicheng<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>