<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><br><div>hi cboylan. Thanks for reply!<br><br></div><div>I have recheker several times but always the second time failed. The first time always pass. <br><br>Is It maybe the reason in the below email luckyvega wrote.?</div><br><br><div style="position:relative;zoom:1"></div><div id="divNeteaseMailCard"></div><br>At 2018-05-06 18:20:47, "Vega Cai" <luckyvega.g@gmail.com> wrote:<br> <blockquote id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><div dir="ltr">To test whether it's our new patch that causes the problem, I submitted a dummy patch[1] to trigger CI and the CI failed again. Checking the log of nova scheduler, it's very strange that the scheduling starts with 0 host at the beginning.<div><br></div><div><pre><span class="inbox-inbox-inbox-inbox-DEBUG inbox-inbox-inbox-inbox-_May_06_09_40_34_358585" style="padding-left:22em;white-space:pre-wrap;display:block;color:rgb(136,136,136)"><a class="inbox-inbox-inbox-inbox-date" href="http://logs.openstack.org/59/566459/1/check/legacy-tricircle-dsvm-multiregion/f2e2510/logs/screen-n-sch.txt.gz#_May_06_09_40_34_358585" style="color:rgb(136,136,136);text-decoration-line:none">May 06 09:40:34.358585</a> ubuntu-xenial-inap-mtl01-0003885152 nova-scheduler[21962]: DEBUG oslo_service.periodic_task [None req-008ee30a-47a1-40a2-bf64-cb0f1719806e None None] Running periodic task SchedulerManager._run_periodic_tasks {{(pid=23795) run_periodic_tasks /usr/local/lib/python2.7/dist-packages/oslo_service/periodic_task.py:215}}
</span><span class="inbox-inbox-inbox-inbox-DEBUG inbox-inbox-inbox-inbox-_May_06_09_41_23_968029" style="padding-left:22em;white-space:pre-wrap;display:block"><a class="inbox-inbox-inbox-inbox-date" href="http://logs.openstack.org/59/566459/1/check/legacy-tricircle-dsvm-multiregion/f2e2510/logs/screen-n-sch.txt.gz#_May_06_09_41_23_968029" style="color:rgb(136,136,136);text-decoration-line:none">May 06 09:41:23.968029</a><font color="#888888"> ubuntu-xenial-inap-mtl01-0003885152 nova-scheduler[21962]: DEBUG nova.scheduler.manager [None req-c67986fa-2e3b-45b7-96dd-196704945b95 admin admin] </font><b style=""><font color="#ff0000">Starting to schedule for instances: [u'8b227e85-8959-4e07-be3d-1bc094c115c1']</font></b><font color="#888888"> {{(pid=23795) select_destinations /opt/stack/new/nova/nova/scheduler/manager.py:118}}
</font></span><span class="inbox-inbox-inbox-inbox-DEBUG inbox-inbox-inbox-inbox-_May_06_09_41_23_969293" style="padding-left:22em;white-space:pre-wrap;display:block;color:rgb(136,136,136)"><a class="inbox-inbox-inbox-inbox-date" href="http://logs.openstack.org/59/566459/1/check/legacy-tricircle-dsvm-multiregion/f2e2510/logs/screen-n-sch.txt.gz#_May_06_09_41_23_969293" style="color:rgb(136,136,136);text-decoration-line:none">May 06 09:41:23.969293</a> ubuntu-xenial-inap-mtl01-0003885152 nova-scheduler[21962]: DEBUG oslo_concurrency.lockutils [None req-c67986fa-2e3b-45b7-96dd-196704945b95 admin admin] Lock "placement_client" acquired by "nova.scheduler.client.report._create_client" :: waited 0.000s {{(pid=23795) inner /usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:273}}
</span><span class="inbox-inbox-inbox-inbox-DEBUG inbox-inbox-inbox-inbox-_May_06_09_41_23_975304" style="padding-left:22em;white-space:pre-wrap;display:block;color:rgb(136,136,136)"><a class="inbox-inbox-inbox-inbox-date" href="http://logs.openstack.org/59/566459/1/check/legacy-tricircle-dsvm-multiregion/f2e2510/logs/screen-n-sch.txt.gz#_May_06_09_41_23_975304" style="color:rgb(136,136,136);text-decoration-line:none">May 06 09:41:23.975304</a> ubuntu-xenial-inap-mtl01-0003885152 nova-scheduler[21962]: DEBUG oslo_concurrency.lockutils [None req-c67986fa-2e3b-45b7-96dd-196704945b95 admin admin] Lock "placement_client" released by "nova.scheduler.client.report._create_client" :: held 0.006s {{(pid=23795) inner /usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:285}}
</span><span class="inbox-inbox-inbox-inbox-DEBUG inbox-inbox-inbox-inbox-_May_06_09_41_24_276470" style="padding-left:22em;white-space:pre-wrap;display:block;color:rgb(136,136,136)"><a class="inbox-inbox-inbox-inbox-date" href="http://logs.openstack.org/59/566459/1/check/legacy-tricircle-dsvm-multiregion/f2e2510/logs/screen-n-sch.txt.gz#_May_06_09_41_24_276470" style="color:rgb(136,136,136);text-decoration-line:none">May 06 09:41:24.276470</a> ubuntu-xenial-inap-mtl01-0003885152 nova-scheduler[21962]: DEBUG oslo_concurrency.lockutils [None req-c67986fa-2e3b-45b7-96dd-196704945b95 admin admin] Lock "6e118c71-9008-4694-8aee-faa607944c5f" acquired by "nova.context.get_or_set_cached_cell_and_set_connections" :: waited 0.000s {{(pid=23795) inner /usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:273}}
</span><span class="inbox-inbox-inbox-inbox-DEBUG inbox-inbox-inbox-inbox-_May_06_09_41_24_279331" style="padding-left:22em;white-space:pre-wrap;display:block;color:rgb(136,136,136)"><a class="inbox-inbox-inbox-inbox-date" href="http://logs.openstack.org/59/566459/1/check/legacy-tricircle-dsvm-multiregion/f2e2510/logs/screen-n-sch.txt.gz#_May_06_09_41_24_279331" style="color:rgb(136,136,136);text-decoration-line:none">May 06 09:41:24.279331</a> ubuntu-xenial-inap-mtl01-0003885152 nova-scheduler[21962]: DEBUG oslo_concurrency.lockutils [None req-c67986fa-2e3b-45b7-96dd-196704945b95 admin admin] Lock "6e118c71-9008-4694-8aee-faa607944c5f" released by "nova.context.get_or_set_cached_cell_and_set_connections" :: held 0.003s {{(pid=23795) inner /usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:285}}
</span><span class="inbox-inbox-inbox-inbox-DEBUG inbox-inbox-inbox-inbox-_May_06_09_41_24_302854" style="padding-left:22em;white-space:pre-wrap;display:block;color:rgb(136,136,136)"><a class="inbox-inbox-inbox-inbox-date" href="http://logs.openstack.org/59/566459/1/check/legacy-tricircle-dsvm-multiregion/f2e2510/logs/screen-n-sch.txt.gz#_May_06_09_41_24_302854" style="color:rgb(136,136,136);text-decoration-line:none">May 06 09:41:24.302854</a> ubuntu-xenial-inap-mtl01-0003885152 nova-scheduler[21962]: DEBUG oslo_db.sqlalchemy.engines [None req-c67986fa-2e3b-45b7-96dd-196704945b95 admin admin] MySQL server mode set to STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION {{(pid=23795) _check_effective_sql_mode /usr/local/lib/python2.7/dist-packages/oslo_db/sqlalchemy/engines.py:308}}
</span><span class="inbox-inbox-inbox-inbox-DEBUG inbox-inbox-inbox-inbox-_May_06_09_41_24_321713" style="padding-left:22em;white-space:pre-wrap;display:block"><a class="inbox-inbox-inbox-inbox-date" href="http://logs.openstack.org/59/566459/1/check/legacy-tricircle-dsvm-multiregion/f2e2510/logs/screen-n-sch.txt.gz#_May_06_09_41_24_321713" style="color:rgb(136,136,136);text-decoration-line:none">May 06 09:41:24.321713</a><font color="#888888"> ubuntu-xenial-inap-mtl01-0003885152 nova-scheduler[21962]: DEBUG nova.filters [None req-c67986fa-2e3b-45b7-96dd-196704945b95 admin admin] </font><b style=""><font color="#ff0000">Starting with 0 host(s)</font></b><font color="#888888"> {{(pid=23795) get_filtered_objects /opt/stack/new/nova/nova/filters.py:70}}
</font></span><span class="inbox-inbox-inbox-inbox-INFO inbox-inbox-inbox-inbox-_May_06_09_41_24_322136" style="padding-left:22em;white-space:pre-wrap;display:block;color:rgb(0,0,102)"><a class="inbox-inbox-inbox-inbox-date" href="http://logs.openstack.org/59/566459/1/check/legacy-tricircle-dsvm-multiregion/f2e2510/logs/screen-n-sch.txt.gz#_May_06_09_41_24_322136" style="color:rgb(0,0,102);text-decoration-line:none">May 06 09:41:24.322136</a> ubuntu-xenial-inap-mtl01-0003885152 nova-scheduler[21962]: INFO nova.filters [None req-c67986fa-2e3b-45b7-96dd-196704945b95 admin admin] Filter RetryFilter returned 0 hosts
</span><span class="inbox-inbox-inbox-inbox-DEBUG inbox-inbox-inbox-inbox-_May_06_09_41_24_322614" style="padding-left:22em;white-space:pre-wrap;display:block;color:rgb(136,136,136)"><a class="inbox-inbox-inbox-inbox-date" href="http://logs.openstack.org/59/566459/1/check/legacy-tricircle-dsvm-multiregion/f2e2510/logs/screen-n-sch.txt.gz#_May_06_09_41_24_322614" style="color:rgb(136,136,136);text-decoration-line:none">May 06 09:41:24.322614</a> ubuntu-xenial-inap-mtl01-0003885152 nova-scheduler[21962]: DEBUG nova.filters [None req-c67986fa-2e3b-45b7-96dd-196704945b95 admin admin] Filtering removed all hosts for the request with instance ID '8b227e85-8959-4e07-be3d-1bc094c115c1'. Filter results: [('RetryFilter', None)] {{(pid=23795) get_filtered_objects /opt/stack/new/nova/nova/filters.py:129}}
</span><span class="inbox-inbox-inbox-inbox-INFO inbox-inbox-inbox-inbox-_May_06_09_41_24_323029" style="padding-left:22em;white-space:pre-wrap;display:block;color:rgb(0,0,102)"><a class="inbox-inbox-inbox-inbox-date" href="http://logs.openstack.org/59/566459/1/check/legacy-tricircle-dsvm-multiregion/f2e2510/logs/screen-n-sch.txt.gz#_May_06_09_41_24_323029" style="color:rgb(0,0,102);text-decoration-line:none">May 06 09:41:24.323029</a> ubuntu-xenial-inap-mtl01-0003885152 nova-scheduler[21962]: INFO nova.filters [None req-c67986fa-2e3b-45b7-96dd-196704945b95 admin admin] Filtering removed all hosts for the request with instance ID '8b227e85-8959-4e07-be3d-1bc094c115c1'. Filter results: ['RetryFilter: (start: 0, end: 0)']
</span><span class="inbox-inbox-inbox-inbox-DEBUG inbox-inbox-inbox-inbox-_May_06_09_41_24_323419" style="padding-left:22em;white-space:pre-wrap;display:block;color:rgb(136,136,136)"><a class="inbox-inbox-inbox-inbox-date" href="http://logs.openstack.org/59/566459/1/check/legacy-tricircle-dsvm-multiregion/f2e2510/logs/screen-n-sch.txt.gz#_May_06_09_41_24_323419" style="color:rgb(136,136,136);text-decoration-line:none">May 06 09:41:24.323419</a> ubuntu-xenial-inap-mtl01-0003885152 nova-scheduler[21962]: DEBUG nova.scheduler.filter_scheduler [None req-c67986fa-2e3b-45b7-96dd-196704945b95 admin admin] Filtered [] {{(pid=23795) _get_sorted_hosts /opt/stack/new/nova/nova/scheduler/filter_scheduler.py:404}}
</span><span class="inbox-inbox-inbox-inbox-DEBUG inbox-inbox-inbox-inbox-_May_06_09_41_24_323861" style="padding-left:22em;white-space:pre-wrap;display:block;color:rgb(136,136,136)"><a class="inbox-inbox-inbox-inbox-date" href="http://logs.openstack.org/59/566459/1/check/legacy-tricircle-dsvm-multiregion/f2e2510/logs/screen-n-sch.txt.gz#_May_06_09_41_24_323861" style="color:rgb(136,136,136);text-decoration-line:none">May 06 09:41:24.323861</a> ubuntu-xenial-inap-mtl01-0003885152 nova-scheduler[21962]: DEBUG nova.scheduler.filter_scheduler [None req-c67986fa-2e3b-45b7-96dd-196704945b95 admin admin] There are 0 hosts available but 1 instances requested to build. {{(pid=23795) _ensure_sufficient_hosts /opt/stack/new/nova/nova/scheduler/filter_scheduler.py:278}}
</span><span class="inbox-inbox-inbox-inbox-DEBUG inbox-inbox-inbox-inbox-_May_06_09_41_26_358317" style="padding-left:22em;white-space:pre-wrap;display:block;color:rgb(136,136,136)"><a class="inbox-inbox-inbox-inbox-date" href="http://logs.openstack.org/59/566459/1/check/legacy-tricircle-dsvm-multiregion/f2e2510/logs/screen-n-sch.txt.gz#_May_06_09_41_26_358317" style="color:rgb(136,136,136);text-decoration-line:none">May 06 09:41:26.358317</a> ubuntu-xenial-inap-mtl01-0003885152 nova-scheduler[21962]: DEBUG oslo_service.periodic_task [None req-008ee30a-47a1-40a2-bf64-cb0f1719806e None None] Running periodic task SchedulerManager._run_periodic_tasks {{(pid=23794) run_periodic_tasks /usr/local/lib/python2.7/dist-packages/oslo_service/periodic_task.py:215}}</span></pre></div><div><br></div><div>I copy the log between two periodic task log records to show one whole scheduling process.</div><div><br></div><div>Zhiyuan</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, 4 May 2018 at 23:52 Clark Boylan <<a href="mailto:cboylan@sapwetik.org">cboylan@sapwetik.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
On Fri, May 4, 2018, at 2:37 AM, Sean McGinnis wrote:<br>
> On Fri, May 04, 2018 at 04:13:41PM +0800, linghucongsong wrote:<br>
> > <br>
> > Hi all!<br>
> > <br>
> > Recently we meet a strange problem in our ci. look this link: <a href="https://review.openstack.org/#/c/532097/" rel="noreferrer" target="_blank">https://review.openstack.org/#/c/532097/</a><br>
> > <br>
> > we can pass the ci in the first time, but when we begin to start the gate job, it will always failed in the second time.<br>
> > <br>
> > we have rebased several times, it alway pass the ci in the first time and failed in the second time.<br>
> > <br>
> > This have not happen before and make me to guess is it really we start the ci from the new fresh vms each time?<br>
> <br>
> A new VM is spun up for each test run, so I don't believe this is an issue with<br>
> stale artifacts on the host. I would guess this is more likely some sort of<br>
> race condition, and you just happen to be hitting it 50% of the time.<br>
<br>
Additionally you can check the job logs to see while these two jobs did run against the same cloud provider they did so in different regions on hosts with completely different IP addresses. The inventory files [0][1] are where I would start if you suspect oddness of this sort. Reading them I don't see anything to indicate the nodes were reused.<br>
<br>
[0] <a href="http://logs.openstack.org/97/532097/16/check/legacy-tricircle-dsvm-multiregion/c9b3d29/zuul-info/inventory.yaml" rel="noreferrer" target="_blank">http://logs.openstack.org/97/532097/16/check/legacy-tricircle-dsvm-multiregion/c9b3d29/zuul-info/inventory.yaml</a><br>
[1] <a href="http://logs.openstack.org/97/532097/16/gate/legacy-tricircle-dsvm-multiregion/ad547d5/zuul-info/inventory.yaml" rel="noreferrer" target="_blank">http://logs.openstack.org/97/532097/16/gate/legacy-tricircle-dsvm-multiregion/ad547d5/zuul-info/inventory.yaml</a><br>
<br>
Clark<br>
<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">BR<div>Zhiyuan</div></div></div>
</blockquote></div><br><br><span title="neteasefooter"><p> </p></span>