<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:x="urn:schemas-microsoft-com:office:excel" 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=utf-8">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:宋体;
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:"\@宋体";
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:宋体;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
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="ZH-CN" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi, Yipei,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D">The issue is that the OS_REGION_NAME should be “Pod2” for the Node2 for Nova,Cinder, Neutron endpoint registration in KeyStone, but when creating
endpoint in Keystone, devstack will use command like “openstack endpoint create” to access KeyStone, the OS_REGION_NAME should be the region name where the KeyStone located, in two-nodes installation, it should be “RegionOne” for the command itself.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D">So it can be fixed by adding one more configurable global variable to separate KeyStone region name and other services(Nova,Cinder,Neutron) region
name.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></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<o:p></o:p></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"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></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:newypei@gmail.com]
<br>
<b>Sent:</b> Monday, February 29, 2016 10:02 AM<br>
<b>To:</b> OpenStack Development Mailing List (not for usage questions)<br>
<b>Cc:</b> Vega Cai; joehuang; </span><span style="font-size:10.0pt">时鹏飞</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><br>
<b>Subject:</b> Re: [tricircle] playing tricircle with devstack under two-region configuration<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">Hi Pengfei,<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">I also encounter the same error when installing devstack on node2. I insert a command "export OS_REGION_NAME=Pod2" in line 1262 in stack.sh and it works. However, I am not sure whether it is correct. I am trying to verify
it. Recently, I try to re-install devstack on node1, but I encounter some errors. The link is <a href="http://paste.openstack.org/show/488005/">http://paste.openstack.org/show/488005/</a>. Do you have any suggestion about it?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">To Joe and Zhiyuan, could you please give me some advice about how to solve it?<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Best regards,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Yipei<o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">On Wed, Feb 24, 2016 at 9:29 AM, Yipei Niu <<a href="mailto:newypei@gmail.com" target="_blank">newypei@gmail.com</a>> wrote:<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">Hi Joe and Zhiyuan,<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">My VM has recovered. When I re-install devstack in node1, I encounter the following errors.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">The info in stack.sh.log is as follows:<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">2016-02-23 11:18:27.238 | Error: Service n-sch is not running<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">2016-02-23 11:18:27.238 | + /home/stack/devstack/functions-common:service_check:L1625: '[' -n /opt/stack/status/stack/n-sch.failure ']'<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">2016-02-23 11:18:27.238 | + /home/stack/devstack/functions-common:service_check:L1626: die 1626 'More details about the above errors can be found with screen, with ./rejoin-stack.sh'<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">2016-02-23 11:18:27.238 | + /home/stack/devstack/functions-common:die:L186: local exitcode=0<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">2016-02-23 11:18:27.239 | [Call Trace]<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">2016-02-23 11:18:27.239 | ./stack.sh:1354:service_check<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">2016-02-23 11:18:27.239 | /home/stack/devstack/functions-common:1626:die<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">2016-02-23 11:18:27.261 | [ERROR] /home/stack/devstack/functions-common:1626 More details about the above errors can be found with screen, with ./rejoin-stack.sh<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">2016-02-23 11:18:28.271 | Error on exit<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">2016-02-23 11:18:28.953 | df: '/run/user/112/gvfs': Permission denied<o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">The info in n-sch.log is as follows:<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">stack@nyp-VirtualBox:~/devstack$ /usr/local/bin/nova-scheduler --config-file /et ^Mc/nova/nova.conf & echo $! >/opt/stack/status/stack/n-sch.pid; fg || echo "n-sch ^M failed to start" | tee "/opt/stack/status/stack/n-sch.failure"<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">[1] 29467<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">/usr/local/bin/nova-scheduler --config-file /etc/nova/nova.conf<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">2016-02-23 19:13:00.050 ^[[00;32mDEBUG oslo_db.api [^[[00;36m-^[[00;32m] ^[[01;35m^[[00;32mLoading backend 'sqlalchemy' from 'nova.db.sqlalchemy.api'^[[00m ^[[00;33mfrom (pid=29467) _load_backend /usr/local/lib/python2.7/dist-packages/oslo_db/api.py:238^[[00m<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">2016-02-23 19:13:00.300 ^[[01;33mWARNING oslo_reports.guru_meditation_report [^[[00;36m-^[[01;33m] ^[[01;35m^[[01;33mGuru mediation now registers SIGUSR1 and SIGUSR2 by default for backward compatibility. SIGUSR1 will
no longer be registered in a future release, so please use SIGUSR2 to generate reports.^[[00m<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">2016-02-23 19:13:00.304 ^[[01;31mCRITICAL nova [^[[00;36m-^[[01;31m] ^[[01;35m^[[01;31mValueError: Empty module name<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[00m<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-02-23 19:13:00.304 TRACE nova ^[[01;35m^[[00mTraceback (most recent call last):<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-02-23 19:13:00.304 TRACE nova ^[[01;35m^[[00m File "/usr/local/bin/nova-scheduler", line 10, in <module><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-02-23 19:13:00.304 TRACE nova ^[[01;35m^[[00m sys.exit(main())<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-02-23 19:13:00.304 TRACE nova ^[[01;35m^[[00m File "/opt/stack/nova/nova/cmd/scheduler.py", line 43, in main<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-02-23 19:13:00.304 TRACE nova ^[[01;35m^[[00m topic=CONF.scheduler_topic)<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-02-23 19:13:00.304 TRACE nova ^[[01;35m^[[00m File "/opt/stack/nova/nova/service.py", line 281, in create<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-02-23 19:13:00.304 TRACE nova ^[[01;35m^[[00m db_allowed=db_allowed)<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-02-23 19:13:00.304 TRACE nova ^[[01;35m^[[00m File "/opt/stack/nova/nova/service.py", line 167, in __init__<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-02-23 19:13:00.304 TRACE nova ^[[01;35m^[[00m self.manager = manager_class(host=self.host, *args, **kwargs)<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-02-23 19:13:00.304 TRACE nova ^[[01;35m^[[00m File "/opt/stack/nova/nova/scheduler/manager.py", line 49, in __init__<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-02-23 19:13:00.304 TRACE nova ^[[01;35m^[[00m self.driver = importutils.import_object(scheduler_driver)<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-02-23 19:13:00.304 TRACE nova ^[[01;35m^[[00m File "/usr/local/lib/python2.7/dist-packages/oslo_utils/importutils.py", line 44, in import_object<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-02-23 19:13:00.304 TRACE nova ^[[01;35m^[[00m return import_class(import_str)(*args, **kwargs)<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-02-23 19:13:00.304 TRACE nova ^[[01;35m^[[00m File "/usr/local/lib/python2.7/dist-packages/oslo_utils/importutils.py", line 30, in import_class<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-02-23 19:13:00.304 TRACE nova ^[[01;35m^[[00m __import__(mod_str)<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-02-23 19:13:00.304 TRACE nova ^[[01;35m^[[00mValueError: Empty module name<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">^[[01;31m2016-02-23 19:13:00.304 TRACE nova ^[[01;35m^[[00m<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">n-sch failed to start<o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Best regards,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Yipei<o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">On Tue, Feb 23, 2016 at 10:23 AM, Yipei Niu <<a href="mailto:newypei@gmail.com" target="_blank">newypei@gmail.com</a>> wrote:<o:p></o:p></span></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">Hi Jeo,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">I have checked. The Neutron API has not started, but no process is listening 9696.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Best regards,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Yipei<o:p></o:p></span></p>
</div>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</div>
</body>
</html>