<div dir="ltr">OK. Got it. Thanks a lot for your help!<div><br></div><div>Best regards,</div><div>Yipei</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 23, 2016 at 11:41 AM, joehuang <span dir="ltr"><<a href="mailto:joehuang@huawei.com" target="_blank">joehuang@huawei.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="ZH-CN" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi, Yipei,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d">When you play Tricircle, it’s important to know that Tricircle is the OpenStack API gateway to other OpenStack instances. In the Readme, Pod1,
Pod2 are two OpenStack instances, before trying Tricircle, you can make sure the environment is normal or not by executeing command separately on Pod1, Pod2, just Nova –os-region-name Pod1, or Nova –os-region-name Pod2, in fact, because Pod1,Pod2 are two
normal OpenStack instances, any command to Pod1,Pod2 should be successful. Otherwise that means there are some issue in the installation of the environment itself. Only when each bottom OpenStack can work correctly, then you can even manually add Tricircle,
or through the scripts in the github to install Tircircle automaticly, as the API gateway to Pod1 and Pod2, just like you add one load balancer before your multiple web servers.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d">After the Tricircle was added, then the API will flow from Tricircle services like Nova-APIGW/Cinder-APIGW/Neutron API to the bottom Pod1, Pod2.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d">So if you use Nova boot, and some error happened, you can ask question:
<u></u><u></u></span></p>
<p style="margin-left:18.0pt">
<u></u><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d"><span>1.<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d">Is the command sent to the Tricircle Nova-APIGW?<u></u><u></u></span></p>
<p style="margin-left:18.0pt">
<u></u><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d"><span>2.<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d">What’ll will do for the Nova-APIGW for the next step?<u></u><u></u></span></p>
<p style="margin-left:18.0pt">
<u></u><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d"><span>3.<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d">Is the API request forwarded by Tricircle correctly to the proper bottom OpenStack?<u></u><u></u></span></p>
<p style="margin-left:18.0pt">
<u></u><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d"><span>4.<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d">Is the bottom OpenStack working normal even without Tricircle?<u></u><u></u></span></p>
<p style="margin-left:18.0pt">
<u></u><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d"><span>5.<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d">Is the API request forwarded by Tricircle includes the correct request content?<u></u><u></u></span></p>
<p style="margin-left:18.0pt">
<u></u><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d"><span>6.<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d">…<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d">You can carry the map before you try to fix the issue. And break down a big system into smaller part, and make sure which part works fine, which
not in order.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d">From the information you provided, can’t make judgment the error is occurred at Tricircle services, or bottom pod, or which pod. Don’t know which
step the error occurred. And don’t know the request information, how the requested will be routed and processed, a lot of context needed to diagnose an error.
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d">Best Regards<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d">Chaoyi Huang ( Joe Huang )</span><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Yipei Niu [mailto:<a href="mailto:newypei@gmail.com" target="_blank">newypei@gmail.com</a>]
<br>
<b>Sent:</b> Wednesday, March 23, 2016 10:36 AM<br>
<b>To:</b> OpenStack Development Mailing List (not for usage questions)<br>
<b>Cc:</b> joehuang; Zhiyuan Cai<br>
<b>Subject:</b> [tricircle] playing tricircle with two node configuration<u></u><u></u></span></p>
</div><div><div class="h5">
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">Hi, Joe and Zhiyuan,<u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">I have already finished installing devstack in two nodes with tricircle. I encounter some errors when testing cross-pod L3 networking with DevStack. I followed the README.md in github, every thing goes well until I boot
virtual machines with the following command:<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">nova boot --flavor 1 --image 60a8184b-a4be-463d-a8a1-48719edc37a3 --nic net-id=76356099-f3bd-40a5-83bd-600b78b671eb --availability-zone az1 vm1<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">The info in the terminal is as follows:<u></u><u></u></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">Your request was processed by a Nova API which does not support microversions (X-OpenStack-Nova-API-Version header is missing from response). Warning: Response may be incorrect.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Your request was processed by a Nova API which does not support microversions (X-OpenStack-Nova-API-Version header is missing from response). Warning: Response may be incorrect.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Your request was processed by a Nova API which does not support microversions (X-OpenStack-Nova-API-Version header is missing from response). Warning: Response may be incorrect.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">ERROR (ClientException): Unknown Error (HTTP 500)<u></u><u></u></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">I run rejoin-stack.sh and find some error in n-api screen. In n-api.log, the error is as follows:<u></u><u></u></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">2016-03-22 19:19:38.248 ^[[01;31mERROR nova.api.openstack.extensions [^[[01;36mreq-cf58e7aa-bd7d-483f-aa57-bca5268ce963 ^[[00;36madmin admin^[[01;31m] ^[[01;35m^[[01;31mUnexpected exception in API method^[[00m<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-03-22 19:19:38.248 TRACE nova.api.openstack.extensions ^[[01;35m^[[00mTraceback (most recent call last):<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-03-22 19:19:38.248 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m File "/opt/stack/nova/nova/api/openstack/extensions.py", line 478, in wrapped<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-03-22 19:19:38.248 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m return f(*args, **kwargs)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-03-22 19:19:38.248 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m File "/opt/stack/nova/nova/api/validation/__init__.py", line 73, in wrapper<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-03-22 19:19:38.248 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m return func(*args, **kwargs)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-03-22 19:19:38.248 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m File "/opt/stack/nova/nova/api/validation/__init__.py", line 73, in wrapper<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-03-22 19:19:38.248 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m return func(*args, **kwargs)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-03-22 19:19:38.248 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m File "/opt/stack/nova/nova/api/openstack/compute/servers.py", line 604, in create<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-03-22 19:19:38.248 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m **create_kwargs)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-03-22 19:19:38.248 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m File "/opt/stack/nova/nova/hooks.py", line 149, in inner<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-03-22 19:19:38.248 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m rv = f(*args, **kwargs)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-03-22 19:19:38.248 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m File "/opt/stack/nova/nova/compute/api.py", line 1504, in create<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-03-22 19:19:38.248 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m check_server_group_quota=check_server_group_quota)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-03-22 19:19:38.248 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m File "/opt/stack/nova/nova/compute/api.py", line 1097, in _create_instance<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-03-22 19:19:38.248 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m auto_disk_config, reservation_id, max_count)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-03-22 19:19:38.248 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m File "/opt/stack/nova/nova/compute/api.py", line 871, in _validate_and_build_base_options<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-03-22 19:19:38.248 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m pci_request_info, requested_networks)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-03-22 19:19:38.248 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m File "/opt/stack/nova/nova/network/neutronv2/api.py", line 981, in create_pci_requests_for_sriov_ports<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-03-22 19:19:38.248 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m neutron = get_client(context, admin=True)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-03-22 19:19:38.248 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m File "/opt/stack/nova/nova/network/neutronv2/api.py", line 149, in get_client<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-03-22 19:19:38.248 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m _ADMIN_AUTH = _load_auth_plugin(CONF)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-03-22 19:19:38.248 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m File "/opt/stack/nova/nova/network/neutronv2/api.py", line 125, in _load_auth_plugin<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-03-22 19:19:38.248 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m raise neutron_client_exc.Unauthorized(message=err_msg)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-03-22 19:19:38.248 TRACE nova.api.openstack.extensions ^[[01;35m^[[00mUnauthorized: Unknown auth plugin: None<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-03-22 19:19:38.248 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m<u></u><u></u></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">2016-03-22 20:04:19.992 ^[[00;36mINFO nova.api.openstack.wsgi [^[[01;36mreq-ed35efe8-5dc0-40b0-bb2b-c1a73618aa50 ^[[00;36madmin admin^[[00;36m] ^[[01;35m^[[00;36mHTTP exception thrown: Unexpected API Error. Please report
this at <a href="http://bugs.launchpad.net/nova/" target="_blank">http://bugs.launchpad.net/nova/</a> and attach the Nova API log if possible.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><class 'neutronclient.common.exceptions.Unauthorized'>^[[00m<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">2016-03-22 20:04:19.993 ^[[00;32mDEBUG nova.api.openstack.wsgi [^[[01;36mreq-ed35efe8-5dc0-40b0-bb2b-c1a73618aa50 ^[[00;36madmin admin^[[00;32m] ^[[01;35m^[[00;32mReturning 500 to user: Unexpected API Error. Please report
this at <a href="http://bugs.launchpad.net/nova/" target="_blank">http://bugs.launchpad.net/nova/</a> and attach the Nova API log if possible.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><class 'neutronclient.common.exceptions.Unauthorized'>^[[00m ^[[00;33mfrom (pid=17273) __call__ /opt/stack/nova/nova/api/openstack/wsgi.py:1180^[[00m<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">2016-03-22 20:04:20.007 ^[[00;36mINFO nova.osapi_compute.wsgi.server [^[[01;36mreq-ed35efe8-5dc0-40b0-bb2b-c1a73618aa50 ^[[00;36madmin admin^[[00;36m] ^[[01;35m^[[00;36m192.168.56.101 "POST /v2.1/1f824c3b19a64fa1a401125f41324731/servers
HTTP/1.1" status: 500 len: 520 time: 1.1018770^[[00m<u></u><u></u></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Best regards,<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Yipei<u></u><u></u></span></p>
</div>
</div>
</div></div></div>
</div>
</blockquote></div><br></div>