<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: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=iso-2022-jp">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
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-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
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="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-CA">Hi all,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">I tried to bring up a STX/OpenStack system using Devstack, folloing the general procedure of Devstack and wiki/StarlingX/Devstack/stx-config.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">I am able to bring up all service except sysin-agent, i.e. remove sysinv-agent from the ENABLED_SERVICES:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">ENABLED_SERVICES+=,tsconfig,fm-common,fm-api,fm-rest-api,fm-mgr,sysinv-api,sysinv-cond<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">./stack.sh was able to run to completion successfully, all (total 70+ devstack@*services) are able to run under Systemd, except sysinv-cond failed.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">Not sure anybody else hit the same or similar issues, so I posted some issues and my temporary ‘fixing’:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">ISSUE 1: sysinv-api failed to start:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">++/opt/stack/stx-config/devstack/lib/stx-config:start_sysinv_api:240 echo 'Waiting for sysinv-api (192.168.56.221:6385) to start...'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">Waiting for sysinv-api (192.168.56.221:6385) to start...<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">++/opt/stack/stx-config/devstack/lib/stx-config:start_sysinv_api:241 timeout 60 sh -c 'while ! wget --no-proxy -q -O- http://192.168.56.221:6385/; do sleep 1; done'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">++/opt/stack/stx-config/devstack/lib/stx-config:start_sysinv_api:242 die 242 'sysinv-api did not start'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">++functions-common:die:187 local exitcode=0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">[Call Trace]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">./stack.sh:1380:run_phase<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">/opt/stack/devstack/functions-common:1707:run_plugins<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">/opt/stack/devstack/functions-common:1674:source<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">/opt/stack/stx-config/devstack/plugin.sh:28:start_sysinv<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">/opt/stack/stx-config/devstack/lib/stx-config:210:start_sysinv_api<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">/opt/stack/stx-config/devstack/lib/stx-config:242:die<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">[ERROR] /opt/stack/stx-config/devstack/lib/stx-config:242 sysinv-api did not start<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">Error on exit<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">stack@ubuntu16045server1:~/devstack$<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">root cause:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">Dec 03 20:01:54 ubuntu16045server1 sysinv-api[23537]: ERROR sysinv File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2292, in register_opt<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">Dec 03 20:01:54 ubuntu16045server1 sysinv-api[23537]: ERROR sysinv if _is_opt_registered(self._opts, opt):<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">Dec 03 20:01:54 ubuntu16045server1 sysinv-api[23537]: ERROR sysinv File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line 356, in _is_opt_registered<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">Dec 03 20:01:54 ubuntu16045server1 sysinv-api[23537]: ERROR sysinv raise DuplicateOptError(opt.name)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">Dec 03 20:01:54 ubuntu16045server1 sysinv-api[23537]: ERROR sysinv DuplicateOptError: duplicate option: fatal_deprecations<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">Solution to fix:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">Remove the following lines from <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"> ../stx-config/sysinv/sysinv/sysinv/sysinv/openstack/common/log.py 140<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">@@ -137,9 +137,11 @@ log_opts = [<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"> cfg.BoolOpt('publish_errors',<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"> default=False,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"> help='publish error events'),<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">- cfg.BoolOpt('fatal_deprecations',<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">- default=False,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">- help='make deprecations fatal'),<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">ISSUE 2: sysinv-agent failed to start<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">+functions-common:service_check:1542 for service in '${ENABLED_SERVICES//,/ }'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">+functions-common:service_check:1544 sudo systemctl is-enabled devstack@sysinv-agent.service<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">enabled<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">+functions-common:service_check:1548 sudo systemctl status devstack@sysinv-agent.service --no-pager<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">● devstack@sysinv-agent.service - Devstack devstack@sysinv-agent.service<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"> Loaded: loaded (/etc/systemd/system/devstack@sysinv-agent.service; enabled; vendor preset: enabled)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"> Active: failed (Result: exit-code) since Mon 2018-12-03 20:19:33 EST; 5s ago<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">Main PID: 32164 (code=exited, status=2)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">Dec 03 20:19:33 ubuntu16045server1 systemd[1]: Started Devstack devstack@sysinv-agent.service.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">Dec 03 20:19:33 ubuntu16045server1 systemd[1]: devstack@sysinv-agent.service: Main process exited, code=exited, status=2/INVALIDARGUMENT<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">Dec 03 20:19:33 ubuntu16045server1 systemd[1]: devstack@sysinv-agent.service: Unit entered failed state.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">Dec 03 20:19:33 ubuntu16045server1 systemd[1]: devstack@sysinv-agent.service: Failed with result 'exit-code'.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">Root cause:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">sysinv/sysinv-agent/sysinv-agent is referring various Titanium specific paths and files.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">e.g.:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">18 . /etc/init.d/functions<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">19 . /etc/build.info<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">20<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">21<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">22 PLATFORM_CONF="/etc/platform/platform.conf"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">23 NODETYPE=""<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">24 DAEMON_NAME="sysinv-agent"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">25 SYSINVAGENT="/usr/bin/${DAEMON_NAME}"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">26 SYSINV_CONF_DIR="/etc/sysinv"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">27 SYSINV_CONF_FILE="${SYSINV_CONF_DIR}/sysinv.conf"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">28 SYSINV_CONF_DEFAULT_FILE="/opt/platform/sysinv/${SW_VERSION}/sysinv.conf.default"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">29 SYSINV_READY_FLAG=/var/run/.sysinv_ready<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">Solution to fix:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">There’s no easy fix to this one. It looks the files for service sysinv-agent need to be recreated, in the way similar to sysinv-api.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">Some minor issues including:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">Pycrypto is required by controllerconfig/common/dcmanager.py but not installed<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">HOST_IP needs to be defined in very early stage<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">Thanks!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">Marvin<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
</div>
</body>
</html>