<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">I started thinking whether passing the test of Mr. Jenkins is a mindless dreaming….:)  What does the “TOX” say? :)<div><br></div><div>Shixiong</div><div><br></div><div><br><div><br><div>Begin forwarded message:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; color:rgba(0, 0, 0, 1.0);"><b>From: </b></span><span style="font-family:'Helvetica';">Shixiong Shang <<a href="mailto:sparkofwisdom.cloud@gmail.com">sparkofwisdom.cloud@gmail.com</a>><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; color:rgba(0, 0, 0, 1.0);"><b>Subject: </b></span><span style="font-family:'Helvetica';"><b>Re: [openstack-dev] [Neutron] tox run forever</b><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; color:rgba(0, 0, 0, 1.0);"><b>Date: </b></span><span style="font-family:'Helvetica';">February 27, 2014 at 9:41:34 PM EST<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; color:rgba(0, 0, 0, 1.0);"><b>To: </b></span><span style="font-family:'Helvetica';">"OpenStack Development Mailing List (not for usage questions)" <<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>><br></span></div><br><div><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Hi, Clark:</div><div><br></div><div>Thanks a lot for the prompt response! I added the OS_TEST_TIMEOUT value (300 sec) and was tailing the tmp file. It turned out that the TOX run stopped at the following point. My machine was tossed so badly that it became unresponsive and I had to hard reboot it….I am pulling my teeth off now…..Is it normal to see Traceback?</div><div><br></div><div><div>2014-02-27 21:33:51,212     INFO [neutron.api.extensions] Extension 'agent' provides no backward compatibility map for extended attributes</div><div>2014-02-27 21:33:51,212     INFO [neutron.api.extensions] Extension 'Allowed Address Pairs' provides no backward compatibility map for extended attributes</div><div>2014-02-27 21:33:51,212     INFO [neutron.api.extensions] Extension 'Neutron Extra Route' provides no backward compatibility map for extended attributes</div><div>2014-02-27 21:33:51,522    ERROR [neutron.api.rpc.agentnotifiers.dhcp_rpc_agent_api] No DHCP agents are associated with network '397fab50-26aa-4cb7-8aa4-c4d43909a00b'. Unable to send notification for 'network_create_end' with payload: {'network': {'status': 'ACTIVE', 'subnets': [], 'name': 'net1', 'provider:physical_network': u'physnet1', 'admin_state_up': True, 'tenant_id': 'test-tenant', 'provider:network_type': 'vlan', 'shared': False, 'id': '397fab50-26aa-4cb7-8aa4-c4d43909a00b', 'provider:segmentation_id': 1000}}</div><div>2014-02-27 21:33:51,567    ERROR [neutron.api.v2.resource] create failed</div><div>Traceback (most recent call last):</div><div>  File "neutron/api/v2/resource.py", line 84, in resource</div><div>    result = method(request=request, **args)</div><div>  File "neutron/api/v2/base.py", line 347, in create</div><div>    allow_bulk=self._allow_bulk)</div><div>  File "neutron/api/v2/base.py", line 600, in prepare_request_body</div><div>    raise webob.exc.HTTPBadRequest(msg)</div><div>HTTPBadRequest: Invalid input for cidr. Reason: '10.0.2.0' isn't a recognized IP subnet cidr, '10.0.2.0/32' is recommended.</div></div><div><br></div><div><br></div><div>Thanks again!</div><div><br></div><div>Shixiong</div><div><br></div><div><br></div><div apple-content-edited="true">
<div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto; -webkit-text-stroke-width: 0px; word-spacing: 0px; white-space: normal; text-transform: none; line-height: normal; letter-spacing: normal; font-weight: normal; font-variant: normal; font-style: normal; font-size: 12px; font-family: Helvetica;"><b style="font-size: 14px; font-family: 'Times New Roman', serif; white-space: nowrap;"><span style="font-family: Arial, sans-serif; color: rgb(102, 102, 102); font-size: 12px;"><br class="Apple-interchange-newline"><br></span></b></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><b style="font-size: 14px; font-family: 'Times New Roman', serif; white-space: nowrap;"><span style="font-family: Arial, sans-serif; color: rgb(102, 102, 102); font-size: 12px;"><br></span></b></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><b style="font-size: 14px; font-family: 'Times New Roman', serif; white-space: nowrap;"><span style="font-family: Arial, sans-serif; color: rgb(102, 102, 102); font-size: 12px;">Shixiong Shang</span></b></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><b style="font-size: 14px; font-family: 'Times New Roman', serif; white-space: nowrap;"><span style="font-family: Arial, sans-serif; color: rgb(102, 102, 102); font-size: 12px;"><br></span></b></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><b style="font-size: 14px; font-family: 'Times New Roman', serif; white-space: nowrap;"><span style="font-family: Arial, sans-serif; color: rgb(102, 102, 102); font-size: 12px;">!--- Stay Hungry, Stay Foolish ---!</span></b></div>
</div>
<br><div><div>On Feb 27, 2014, at 8:28 PM, Clark Boylan <<a href="mailto:clark.boylan@gmail.com">clark.boylan@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">On Thu, Feb 27, 2014 at 4:43 PM, Shixiong Shang<br><<a href="mailto:sparkofwisdom.cloud@gmail.com">sparkofwisdom.cloud@gmail.com</a>> wrote:<br><blockquote type="cite">Hi, guys:<br><br>I created a fresh local repository and pulled the most recent Neutron code. Before I put in my own code, I did TOX run. However, seems like it is stuck to the following condition for over a hour and didn't go any further. Yesterday, the TOX had been running with a fresh copy of Neutron, but didn't return SUCCESS after the entire night.<br><br>I assume the copy from MASTER BRANCH should already be sanitized.....However, what I saw in the past 48 hours told me different story. Did I do anything wrong?<br><br><br>shshang@net-ubuntu2:~/github/neutron$ tox -e py27<br>py27 create: /home/shshang/github/neutron/.tox/py27<br>py27 installdeps: -r/home/shshang/github/neutron/requirements.txt, -r/home/shshang/github/neutron/test-requirements.txt, setuptools_git>=0.4<br>py27 develop-inst: /home/shshang/github/neutron<br>py27 runtests: commands[0] | python -m neutron.openstack.common.lockutils python setup.py testr --slowest --testr-args=<br>[pbr] Excluding argparse: Python 2.6 only dependency<br>running testr<br>running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_LOG_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./neutron/tests/unit} --list<br>running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_LOG_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./neutron/tests/unit}  --load-list /tmp/tmpbZwLwg<br>running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_LOG_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./neutron/tests/unit}  --load-list /tmp/tmp39qJYM<br>running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_LOG_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./neutron/tests/unit}  --load-list /tmp/tmpppXiTc<br>running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_LOG_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./neutron/tests/unit}  --load-list /tmp/tmpPhJZDc<br><br>Thanks!<br><br>Shixiong<br>_______________________________________________<br>OpenStack-dev mailing list<br><a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br></blockquote><br>I think there are two potential problems here. Either a test is<br>deadlocking due to something it has done or<br>neutron.openstack.common.lockutils is deadlocking. In either case<br>OS_TEST_TIMEOUT is not set in .testr.conf so the test suite will not<br>timeout individual tests if necessary. I would start by setting that<br>in the .testr.conf next to OS_STDOUT_CAPTURE and you probably want a<br>value of like 300 (that is seconds).<br><br>The other thing you can do to debug this is grab the subunit log file<br>out of .testrepository. While tests are running it will have a tmp<br>random generated name. After tests have run it will be moved to a file<br>named after the most recent test run eg 1 for the first run. The<br>subunit log should offer clues to what was running at the time of<br>deadlocking.<br><br>Clark<br><br>_______________________________________________<br>OpenStack-dev mailing list<br><a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br></blockquote></div><br></div></div></blockquote></div><br></div></body></html>