<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<style>
    font{
        line-height: 1.7;
    }
</style>
<div style="font-family:"微软雅黑"; font-size: 14px; color:#000000; line-height:1.7;">
<div>
<div>
<pre class="prettyprint"><code class="hljs lasso has-numbering"><pre class="prettyprint"><code class="hljs perl has-numbering"><pre class="tw-data-text tw-ta tw-text-medium" data-placeholder="Translation" id="tw-target-text" style="height: 36px;" data-fulltext="" dir="ltr"><span lang="en">View all services:</span></pre></code></pre><pre class="prettyprint"><code class="hljs perl has-numbering">sudo systemctl status <span class="hljs-string">"devstack<span class="hljs-variable">@*</span>"</span></code></pre></code></pre>
<pre class="prettyprint"><code class="hljs lasso has-numbering"><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 1.7;"><br></span></code></pre>
<pre class="prettyprint"><code class="hljs lasso has-numbering"><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 1.7;">Track the log of a given service</span>:
journalctl <span class="hljs-attribute">-f</span> <span class="hljs-subst">--</span>unit devstack@n<span class="hljs-attribute">-cpu</span><span class="hljs-built_in">.</span>service

<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 1.7;">Track logs of a group of services</span>:
journalctl <span class="hljs-attribute">-f</span> <span class="hljs-subst">--</span>unit devstack@n<span class="hljs-subst">-*</span>

<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 1.7;">Trace the associated service log</span>:
journalctl <span class="hljs-attribute">-f</span> <span class="hljs-subst">--</span>unit devstack@n<span class="hljs-attribute">-cpu</span><span class="hljs-built_in">.</span>service <span class="hljs-subst">--</span>unit devstack@n<span class="hljs-attribute">-cond</span><span class="hljs-built_in">.</span>service

<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 1.7;">Increase the timestamp by adding the parameter -o short-precise</span>):
journalctl <span class="hljs-attribute">-f</span> <span class="hljs-attribute">-o</span> short<span class="hljs-attribute">-precise</span> <span class="hljs-subst">--</span>unit devstack@n<span class="hljs-attribute">-cpu</span><span class="hljs-built_in">.</span>service

<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 1.7;">Display the color by increasing the -a parameter</span>:
journalctl <span class="hljs-attribute">-af</span> <span class="hljs-subst">--</span>unit devstack@c<span class="hljs-attribute">-vol</span></code></pre>
</div>
<div><span><br>
</span></div>
<div><span><br>
</span></div>
<div id="ntes-pcmail-signature" style="font-family:'微软雅黑'"><style type="text/css">
        a#ntes-pcmail-signature-default:hover {
            text-decoration: underline;
            color: #199cff;
            cursor: pointer;
        }
        a#ntes-pcmail-signature-default:active {
            text-decoration: underline;
            color: #246fce;
            cursor: pointer;
        }
    </style></div>
<br>
</div>
<div class="J-reply" style="background-color:#f2f2f2;color:black;padding-top:6px;padding-bottom:6px;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;margin-top:45px;margin-bottom:20px;font-family:'微软雅黑';">
<div style="font-size:14px;line-height:1.5;word-break:break-all;margin-left:10px;margin-right:10px">
On <span class="mail-date">10/10/2017 10:09</span>,<a class="mail-to" style="text-decoration:none;color:#2a83f2;" href="mailto:huanglingyan2@huawei.com">huanglingyan (A)<huanglingyan2@huawei.com></a> wrote:
</div>
</div>
<blockquote id="ntes-pcmail-quote" style="margin: 0; padding: 0; font-size: 14px; font-family: '微软雅黑';">
<style type="text/css"><!--
/* 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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        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;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML 预设格式 Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.HTMLChar
        {mso-style-name:"HTML 预设格式 Char";
        mso-style-priority:99;
        mso-style-link:"HTML 预设格式";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
-->
</style>
<div class="WordSection1">
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">Hi,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">I am new to openstack and trying to use devstack to launch an all-in-one openstack environment on my machine.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">Unfortunately it says error when I created an instance. However, I could not get the corresponding logging file.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">In /var/log, there’s no dirs or files like nova/ , neutron/, cinder/</span><span lang="ZH-CN" style="font-size:9.0pt;font-family:宋体;color:#333333">,</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">etc
 .<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">In /opt/stack/logs/, there are 4 types of file:
<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">         dstat-csv.log, error.log, stack.sh.log, worlddump.txt.
<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">   only record the process of installing devstack, no information of other operation like launching an instance.  No files like n-* or c-*
 exists.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">Can not find any files named like nova.log.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">My environments:<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">         Server: ARMv8 architecture server,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">         OS: Ubuntu 16.04,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">         Devstack: stable/pike,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">What I did:<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">As stack user:<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">Try to configure the local.conf file, ./unstack.sh and ./stack.sh:<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">         /opt/stack/Local.conf:     [[local|localrc]]<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">ADMIN_PASSWORD=secret<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">DATABASE_PASSWORD=$ADMIN_PASSWORD<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">RABBIT_PASSWORD=$ADMIN_PASSWORD<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">SERVICE_PASSWORD=$ADMIN_PASSWORD<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">HOST_IP=10.67.247.28<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">LOGFILE=$DEST/logs/stack.sh.log<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">VERBOSE=true<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">SCREEN_LOGDIR=/opt/stack/logs<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">LOGDAYS=2<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">LOG_COLOR=true<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">CINDER_BRANCH=stable/pike<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">GLANCE_BRANCH=stable/pike<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">HORIZON_BRANCH=stable/pike<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">KEYSTONE_BRANCH=stable/pike<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">KEYSTONECLIENT_BRANCH=stable/pike<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">NOVA_BRANCH=stable/pike<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">NOVACLIENT_BRANCH=stable/pike<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">NEUTRON_BRANCH=stable/pike<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333">SWIFT_BRANCH=stable/pike<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:137.4pt">
<span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">When I try to use screen command, like “screen –list”,
<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">it says:<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">No Sockets found in /var/run/screen/S-stack.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">When I use dashboard to create an instance,  <o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">the console tab says:<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">         Console cannot be loaded.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">The log tab says:<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">         Log of instance *** cannot be obtained.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">I must get something wrong, please point it out for me.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">Thank you in advance,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:9.6pt"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">Lingyan Huang<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</blockquote>
<!--😀--></div>
</body>
</html>