<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
<!--
@font-face
{font-family:SimSun}
@font-face
{font-family:"Cambria Math"}
@font-face
{font-family:Calibri}
@font-face
{font-family:Tahoma}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif}
a:link, span.MsoHyperlink
{color:#0563C1;
text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
{color:#954F72;
text-decoration:underline}
p.msochpdefault, li.msochpdefault, div.msochpdefault
{margin-right:0in;
margin-left:0in;
font-size:12.0pt;
font-family:"Calibri",sans-serif}
span.emailstyle17
{font-family:"Calibri",sans-serif;
color:windowtext}
span.EmailStyle19
{font-family:"Calibri",sans-serif;
color:#1F497D}
.MsoChpDefault
{font-size:10.0pt;
font-family:"Calibri",sans-serif}
@page WordSection1
{margin:1.0in 1.0in 1.0in 1.0in}
-->
</style><style type="text/css" id="owaParaStyle"></style>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div>Hi, Liang</div>
<div><br>
</div>
Sm has its sqlite database to have all service and related information stored, the db can be found at /var/run/sm/sm.db on a controller.
<div><br>
<div>A quick way to list all services is to use smc command. </div>
<div>source /etc/nova/openrc</div>
<div>smc service-list</div>
<div><br>
</div>
<div>This command is similar to sm-dump but sm-dump is only for designers to debug/troubleshooting. smc also provides other sub commands to for querying service, servicegroup, and servicenode.</div>
<div><br>
</div>
<div>Regards,</div>
<div><br>
</div>
<div>Bin</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<div id="divRpF434259" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> Fang, Liang A [liang.a.fang@intel.com]<br>
<b>Sent:</b> Saturday, November 03, 2018 12:43 AM<br>
<b>To:</b> Dinescu, Stefan; starlingx-discuss@lists.starlingx.io<br>
<b>Subject:</b> Re: [Starlingx-discuss] glance api service is not started in all-in-one deployment<br>
</font><br>
</div>
<div></div>
<div>
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Thanks Stefan. Is there any help doc about SM? Where does SM read the service list and the service exec from?</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D">Regards</span></p>
<p class="MsoNormal"><span style="color:#1F497D">Liang<a name="_MailEndCompose"></a></span></p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><a name="_____replyseparator"></a><b>From:</b> Dinescu, Stefan [mailto:Stefan.Dinescu@windriver.com]
<br>
<b>Sent:</b> Friday, November 2, 2018 6:11 PM<br>
<b>To:</b> Fang, Liang A <liang.a.fang@intel.com>; starlingx-discuss@lists.starlingx.io<br>
<b>Subject:</b> RE: [Starlingx-discuss] glance api service is not started in all-in-one deployment</p>
</div>
</div>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black">Hi,
</span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black"> </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black">On StarlingX, glance-api is managed by SM (short for service management).</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black"> </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black">You can see a list of all the services by using "sm-dump" (from a root prompt or use sudo). If it is working, the sate should be "enabled-active". To restart
the service us "sm-restart service glance-api".</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black"> </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black">Also check the logs (/var/log/glance/glance-api.log) for any obvious errors that prevent the service from restarting.</span></p>
<div>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:12.0pt; font-family:"Times New Roman",serif; color:black">
<hr size="2" width="100%" align="center">
</span></div>
<div id="divRpF970727">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black">From:</span></b><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black"> Fang, Liang A [liang.a.fang@intel.com]<br>
<b>Sent:</b> Friday, November 02, 2018 11:34 AM<br>
<b>To:</b> <a href="mailto:starlingx-discuss@lists.starlingx.io" target="_blank" rel="noopener noreferrer">
starlingx-discuss@lists.starlingx.io</a><br>
<b>Subject:</b> [Starlingx-discuss] glance api service is not started in all-in-one deployment</span><span style="font-size:12.0pt; font-family:"Times New Roman",serif; color:black"></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="color:black">Hi</span></p>
<p class="MsoNormal"><span style="color:black"> </span></p>
<p class="MsoNormal"><span style="color:black">I deployed an starlingx all-in-one environment, and it seems glance api service has not been started.</span></p>
<p class="MsoNormal"><span style="color:black">I also checked other services such as cinder api / cinder volume, there are started.</span></p>
<p class="MsoNormal"><i><span style="color:black; background:silver">/bin/sh /usr/lib/ocf/resource.d/openstack/cinder-schedule start</span></i><span style="color:black"></span></p>
<p class="MsoNormal"><i><span style="color:black; background:silver">/bin/sh /usr/lib/ocf/resource.d/openstack/cinder-volume start</span></i><span style="color:black"></span></p>
<p class="MsoNormal"><i><span style="color:black; background:silver">/bin/sh /usr/lib/ocf/resource.d/openstack/cinder-backup start</span></i><span style="color:black"></span></p>
<p class="MsoNormal"><span style="color:black">But these are not started by service file such as openstack-cinder-api.service / openstack-cinder-scheduler.service. This is really different with the deployment by devstack.</span></p>
<p class="MsoNormal"><span style="color:black">Could anybody point out how the services are started? How to restart cinder/glance service in starlingx deployment? Thanks.</span></p>
<p class="MsoNormal"><span style="color:black"> </span></p>
<p class="MsoNormal"><span style="color:black">Regards</span></p>
<p class="MsoNormal"><span style="color:black">Liang</span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>